Certified Platform Developer II Exam QuestionsBrowse all questions from this exam

Certified Platform Developer II Exam - Question 3


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?

Show Answer
Correct Answer: D

Named Credentials in Salesforce allow you to specify the URL of a callout endpoint and its authentication parameters. By using Named Credentials, you can abstract the details of the authentication process. This means that if Universal Containers switches from a vendor using basic password authentication to one using OAuth, the underlying code does not need to be modified to handle the different types of authentication. Instead, only the Named Credential configuration needs to be updated, making it the most flexible and maintainable solution for switching vendors without updating code.

Discussion

3 comments
Sign in to comment
SappaulOption: D
Jun 8, 2021

D is right answer

Bruce888Option: D
Mar 21, 2023

D is the right answer. Only the Named Credential can use a different authorization way.

ParuvOption: D
Jun 26, 2024

Ans: D