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?
Select one answer.
Marked answer: C
Community Discussion
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
Chose C1
Option C Why it's correct: It only modifies the Status field if the Type is 'Customer' or 'Prospect', matching the business requirement. It avoids changing any other data. Uses String.isNotBlank() as a safe check before comparing types. Fix needed: accountUpdades → accountUpdates.