Salesforce Certified Platform Developer II — Question 40

Universal Containers wants to use an external Web Service provided by a third-party vendor to validate that shipping and billing addresses are correct. The current vendor uses basic password authentication, but Universal Containers might switch to a different vendor who uses OAuth.
What would allow Universal Containers to switch vendors without updating the code to handle authentication?

Answer options

Correct answer: D

Explanation

The correct answer is D, Named Credential, as it provides a unified way to manage authentication details for external services, allowing for seamless vendor changes. Options A, B, and C do not offer the same level of abstraction for handling different authentication methods, thus requiring code modifications when switching vendors.