Salesforce Platform Developer II - PDII 模擬練習

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?

正解: A
解説: (PassTest メンバーにのみ表示されます)
A developer sees test failures in the sandbox but not in production. No code or metadata changes have been actively made to either environment since the sandbox was created. Which consideration should be checked to resolve the issue?

正解: C
解説: (PassTest メンバーにのみ表示されます)
Refer to the code snippet below:
Java
public static void updateCreditMemo(String customerId, Decimal newAmount){ List<Credit_Memo__c> toUpdate = new List<Credit_Memo__c>(); for(Credit_Memo__c creditMemo : [Select Id, Name, Amount__c FROM Credit_Memo__c WHERE Customer_Id__c = :customerId LIMIT 50]) { creditMemo.Amount__c = newAmount; toUpdate.add(creditMemo);
}
Database.update(toUpdate,false);
}
A custom object called Credit_Memo__c exists in a Salesforce environment. As part of a new feature development, the developer needs to ensure race conditions are prevented when a set of records are mod1ified within an Apex transaction. In the preceding Apex code, how can the developer alter the que2ry statement to use SOQL features to prevent race conditions within a tr3ansaction?4

正解: D
解説: (PassTest メンバーにのみ表示されます)
Universal Containers develops a Visualforce page that requires the inclusion of external JavaScript and CSS files. They want to ensure efficient loading and caching of the page. Which feature should be utilized to achieve this goal?

正解: B
解説: (PassTest メンバーにのみ表示されます)
The Lightning Component allows users to click a button to save their changes and then redirects them to a different page. Currently, when the user hits the Save button, the records are getting saved, but they are not redirected. Which three techniques can a developer use to debug the JavaScript?1

正解: C,D,E
解説: (PassTest メンバーにのみ表示されます)
A company's support process dictates that any time a case is closed with a status of 'Could not fix,' an Engineering Review custom object record should be created and populated with information from the case, the contact, and any of the products associated with the case. What is the correct way to automate this using an Apex trigger?12

正解: B
解説: (PassTest メンバーにのみ表示されます)
Which statement is considered a best practice for writing bulk safe Apex triggers?

正解: C
解説: (PassTest メンバーにのみ表示されます)
A developer is tasked with ensuring that email addresses entered into the system for Contacts and for a custom object called Survey_Response__c do not belong to a list of blocked domains. The list of blocked domains is stored in a custom object for ease of maintenance by users. The Survey_Response__c object is populated via a custom Visualforce page. What is the optimal way to implement this?

正解: B
解説: (PassTest メンバーにのみ表示されます)
Which technique can run custom logic when a Lightning web component is loaded?

正解: A
解説: (PassTest メンバーにのみ表示されます)