Salesforce
PDII · Question #341
PDII Question #341: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #341. The question stem and answer options stay visible for context.
Question
The Account object has a field, Audit_Code__c, that is used to specify what type of auditing the Account needs and a Lookup to User, Auditor__c, that is the assigned auditor. When an Account is initially created, the user specifies the Audit_Code__c. Each User in the org has a unique text field, Audit_Code_c, that is used to automatically assign the correct user to the Account's Auditor__c field. What should be changed to most optimize the code's efficiency? (Choose two.)
Exhibit
Options
- AAdd an initial SOQL query to get all distinct audit codes.
- BAdd a WHERE clause to the SOQL query to filter on audit codes.
- CBuild a Map> of audit code to accounts.
- DBuild a Map> of Account Id to audit codes.
Unlock PDII to see the answer
You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
