Part 1【Platform Developer II】Salesforce 認定 Platform デベロッパー II 資格練習問題集と解析
Salesforce Basic
◐01.UC has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Products__c. on the Account object that allows sales reps to specify which of UC's products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, including the Products__c field. What should the developer do to ensure the value of Products__c is in the current user's language?
Options:
A. Set the locale on each record in the SOQL result list.
B. Use the locale clause in the SOQL query.
C. Use toLabel(Products__c) in the fields list of the SOQL query.
D. Call the translate() method on each record in the SOQL result list.
Correct Answer: C
◐02.An org records customer order information in a custom object, Order__c, that has fields for the shipping address. A developer is tasked with adding code to calculate shipping changes on an order, based on a flat percentage rate associated with the region of the shipping address. What should the developer use to store the rates by region, so that when the changes are deployed to production no additional steps are needed for the calculation to work?
Options:
A. Custom object
B. Custom metadata type
C. Custom list setting
D. Custom hierarchy setting
Correct Answer: B
◐03.A software company uses a custom object, Defect__c, to track defects in their software. Defect__c has organization-wide defaults set to private. Each Defect__c has a related list of Reviewer__c records, each with a lookup field to User that is used to indicate that the User will review the Defect__c. What should be used to give the User on the Reviewer__c record read only access to the Defect__c record on the Reviewer__c record?
Options:
A. Apex managed sharing
B. View All on Defect__c
C. Criteria-based sharing
D. Lightning web component
Correct Answer: A
◐04.A developer is asked to develop a new AppExchange application. A feature of the program creates Survey records when a Case reaches a certain stage and is of a certain Record Type. This feature needs to be configurable, as different Salesforce instances require Survets at different times. Additionally, the out-of-the-box AppExchange app needs to come with a set of best practice settings that apply to most customers. What should the developer use to store and package the custom configuration settings for the app?
Options:
A. Custom metadata
B. Custom settings
C. Custom objects
D. Custom labels
Correct Answer: A
◐05.A developer used custom settings to store some configuration data that changes occasionally. However, tests are now failing in some of the sandboxes that were recently refreshed. What should be done to eliminate this issue going forward?
Options:
A. Set the setting type on the custom setting to Hierarchy.
B. Set the setting type on the custom setting to List.
C. Replace custom settings with static resources.
D. Replace custom settings with custom metadata.
Correct Answer: D
◐06.A developer needs to store variables to control the style and behavior of a Lightning Web Component. Which feature should be used to ensure that the variables are testable in both Production and all Sandboxes?
Options:
A. Custom variable
B. Custom object
C. Custom metadata
D. Custom setting
Correct Answer: C
◐07.Which method should be used to convert a Date to a String in the current user's locale?
Options:
A. Date.parse
B. Date.format
C. String.format
D. String.valueOf
Correct Answer: B
◐08.A developer is creating a Lightning web component to display a calendar. The component will be used in multiple countries. In some locales, the first day of the week is a Monday, or a Saturday, or a Sunday. What should the developer do to ensure the calendar displays accurately for users in every locale?
Options:
A. Use a custom metadata type to store key/value pairs.
B. Query the FirstDayofweek field from the Locale for the current user.
C. Use UerInfo.getLocale() in the component.
D. Import the firstDayofweek property in the component.
Correct Answer: C
◐09.Universal Containers decided to use Salesforce to manage a new hire interview process. A custom object called Candidate was created with organization-wide defaults set to Private A lookup on the Candidate object sets an employee as an Interviewer. What should be used to automatically give Read access to the record when the lookup field is set to the Interviewer user?
Options:
A. The record can be shared using a sharing rule.
B. The record can be shared using a permission set.
C. The record cannot be shared with the current setup.
D. The record can be shared using an Apex class.
Correct Answer: D
◐10.A developer is asked to find a way to store secret data with an ability to specify which profiles and users can access which secrets. What should be used to store this data?
Options:
A. Static resources
B. Custom settings
C. Custom metadata
D. System.Cookie class
Correct Answer: B
ここから先は
¥ 500
この記事が気に入ったらサポートをしてみませんか?