Salesforce PDII Actual Free Exam Questions & Community Discussion
Which statement is considered a best practice for writing bulk safe Apex triggers?
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
To avoid duplicating code and improve maintainability, how should Universal Containers implement an API integration for code reuse?
Correct Answer: A
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
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?
Correct Answer: A
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
A developer is working with existing functionality that tracks how many times a stage has changed for an Opportunity. When the Opportunity's stage is changed, a workflow rule is fired to increase the value of a field by one. The developer wrote an after trigger to create a child record when the field changes from 4 to 5. A user changes the stage of an Opportunity and manually sets the count field to 4. The count field updates to 5, but the child record is not created. What is the reason this is happening?
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
The test method tests an Apex trigger that the developer knows will make a lot of queries when a lot of Accounts are simultaneously updated. The test method fails at Line 20 because of "too many SOQL queries." What is the correct way to fix this?
Java
Line 12: //Set accounts to be customers
Line 13: for(Account a : DataFactory.accounts)
Line 14: {
Line 15: a.Is_Customer__c = true;
Line 16: }
Line 17:
Line 18: update DataFactory.accounts;
Line 19:
Line 20: List<Account> acctsAfter = [SELECT Number_Of_Transfers__c FROM Account WHERE Id IN :
DataFactory.accounts];
Java
Line 12: //Set accounts to be customers
Line 13: for(Account a : DataFactory.accounts)
Line 14: {
Line 15: a.Is_Customer__c = true;
Line 16: }
Line 17:
Line 18: update DataFactory.accounts;
Line 19:
Line 20: List<Account> acctsAfter = [SELECT Number_Of_Transfers__c FROM Account WHERE Id IN :
DataFactory.accounts];
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
What is the best practice to initialize a Visualforce page in a test class?
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Given the following containment hierarchy:
HTML
<template>
<c-my-child-components></c-my-child-components>
</template>
What is the correct way to communicate the new value of a property named "passthrough" to my-parent- component if the property is defined within my-child-component?
HTML
<template>
<c-my-child-components></c-my-child-components>
</template>
What is the correct way to communicate the new value of a property named "passthrough" to my-parent- component if the property is defined within my-child-component?
Correct Answer: C
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
A developer is responsible for formulating the deployment process for a Salesforce project. The project follows a source-driven development approach, and the developer wants to ensure efficient deployment and version control of the metadata changes. Which tool or mechanism should be utilized for managing the source- driven deployment process?78
Correct Answer: B
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
Universal Containers wants to notify an external system, in the event that an unhandled exception occurs, by publishing a custom event using Apex. What is the appropriate publish/subscribe logic to meet this requirement?
Correct Answer: D
Vote an answer
Explanation: Only visible for EduDump members. You can sign-up / login (it's free).
0
0
0
10
