Salesforce
PDII · Question #414
PDII Question #414: Real Exam Question with Answer & Explanation
Sign in or unlock PDII to reveal the answer and full explanation for question #414. The question stem and answer options stay visible for context.
Question
A developer is asked to update data in an org based on new business rules. The new rules state that Accounts with the type set to 'Customer' should have a status of 'Active', and Accounts with the type set to 'Prospect' should have a status of 'Pending'. No other changes to data should be made. Which code block will accurately meet the business requirements?
Options
- AMap<String, String> statusMap = new Map<String, String>{'Customer'=>'Active',
- BMap<String, String> statusMap = new Map<String, String>{'Customer'=>'Active',
- CList<Account> accountUpdates = new List<Account>(); for ( Account a : [SELECT Id, Type FROM
- DList<Account> accountUpdates = new List<Account>(); for ( Account a : [SELECT Id, Type FROM
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.