最新的Salesforce Certified Platform Developer II - Multiple Choice - Plat-Dev-301免費考試真題

問題1
A developer is writing a Visualforce page that queries accounts in the system and presents a data table with the results. The users want to be able to filter the results based on up to five fields. However, the users want to pick the five fields to use as filter fields when they run the page.
Which Apex code feature is required to facilitate this solution?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題2
Given the following information regarding Universal Containers (UC):
* UC represents their customers as Accounts in Salesforce.
* All customers have a unique Customer__Number_c that is unique across all of UC's systems.
* UC also has a custom Invoice c object, with a Lookup to Account, to represent invoices that are sent out from their external system.
UC wants to integrate invoice data back into Salesforce so Sales Reps can see when a customer pays their bills on time.
What is the optimal way to implement this?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題3
A developer is writing a Jest test for a Lightning web component that conditionally displays child components based on a user's checkbox selections.
What should the developer do to properly test that the correct components display and hide for each scenario?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題4
A developer created a Lightning web component mat allows users to Input a text value that is used to search for Accounts by calling an Apex method. The Apex method returns a list of account to apply and is called imperatively from a JavaScript event handler.

Which two changes should the developer make so the Apex method functions correctly. Choose 2 answers

正確答案: A,B
問題5
A software company uses a custom object, Defact__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 < 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?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題6
A user receives the generic "An internal server error has occurred" while interacting with a custom Lightning component.
What should the developer do to ensure a more meaningful message?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題7
A developer is asked to develop a new AppFxchange 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 Surveys 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?

正確答案: C
說明:(僅 VCESoft 成員可見)
問題8
A company notices that their unit tests in a test class with many methods to create many records for prerequisite reference data are slow.
What can a developer to do address the issue?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題9
A developer is building a Lightning web component that searches
for Contacts. The component must communicate the search
results to other unrelated Lightning web components, that are in
different DOM trees, when the search completes.
What should the developer do to implement the communication?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題10
Universal Containers (UC) has enabled the translation workbench and has translated picklist values. UC has a custom multi-select picklist field, Product__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 Product_c field.
What should the developer do to ensure the value of Products__c is in the current user's language?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題11
Universal Containers wants to notify an external system in the event that an unhandled exception occurs when their nightly Apex batch job runs.
What is the appropriate publish/subscribe logic to meet this requirement?

正確答案: C
說明:(僅 VCESoft 成員可見)