最新的Salesforce Platform Developer I (PDI) - PDI免費考試真題

問題1
How should a developer write unit tests for a private method in an Apex class?

正確答案: C
說明:(僅 VCESoft 成員可見)
問題2
What is a considerations for running a flow in debug mode?

正確答案: B
說明:(僅 VCESoft 成員可見)
問題3
What is the value of the Trigger.old context variable in a before insert trigger?

正確答案: C
說明:(僅 VCESoft 成員可見)
問題4
A developer creates a batch Apex job to update a large number of records, and receives reports of the job timing out and not completing.
What is the first step towards troubleshooting the issue?

正確答案: B
說明:(僅 VCESoft 成員可見)
問題5
What can be easily developed using the Lightning Component framework?

正確答案: A
說明:(僅 VCESoft 成員可見)
問題6
Management asked for opportunities to be automatically created for accounts with annual revenue greater than $1, 000,000. A developer created the following trigger on the Account object to satisfy this requirement.
for (Account a : Trigger.new) {
if (a.AnnualRevenue > 1000000) {
List<Opportunity> oppList = [SELECT Id FROM Opportunity WHERE AccountId = :a.Id]; if (oppList.size() == 0) { Opportunity oppty = new Opportunity(Name = a.Name, StageName = 'Prospecting', CloseDate = System.
today().addDays(30));
insert oppty;
}
}
}
Users are able to update the account records via the UI and can see an opportunity created for high annual revenue accounts. However, when the administrator tries to upload a list of 179 accounts using Data Loader, it fails with system, Exception errors.
Which two actions should the developer take to fix the code segment shown above?
Choose 2. answers

正確答案: B,C
說明:(僅 VCESoft 成員可見)
問題7
A developer has a Visualforce page and custom controller to save Account records. The developer wants to display any validation rule violations to the user.
How can the developer make sure that validation rule violations are displayed?

正確答案: B
說明:(僅 VCESoft 成員可見)
問題8
The values 'High', 'Medium', and 'Low' are identified as common values for multiple picklists across different objects.
What is an approach a developer can take to streamline maintenance of the picklists and their values, while also restricting the values to the ones mentioned above?

正確答案: D
說明:(僅 VCESoft 成員可見)
問題9
Which two events need to happen when deploying to a production org?
Choose 2 answers

正確答案: A,B
說明:(僅 VCESoft 成員可見)
問題10
Universal Containers has developed custom Apex code and Lightning Components in a Sandbox environment. They need to deploy the code and associated configurations to the Production environment.
What is the recommended process for deploying the code and configurations to Production?

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