Salesforce Certified Platform Developer II — Question 272

An org has a requirement that addresses on Contacts and Accounts should be normalized to a company standard by Apex code any time that they are saved.
What is the optimal way to implement this?

Answer options

Correct answer: A

Explanation

The correct answer is A because it allows for a streamlined approach where the Contact trigger directly invokes the Account trigger to handle address normalization, ensuring that the process is efficient and avoids duplication. Options B and D involve multiple triggers running independently, which could lead to complexity and potential performance issues. Option C incorrectly suggests that the Account trigger should control the normalization for Contacts, which is not optimal in this scenario.