Salesforce Certified Platform Developer II — Question 273
A developer wrote an Apex class to make several callouts to an external system.
If the URLs used in these callouts will change often, which feature should the developer use to minimize changes needed to the Apex class?
Answer options
- A. Remote Site Settings
- B. Session Id
- C. Named Credentials
- D. Connected Apps
Correct answer: C
Explanation
Named Credentials provide a convenient way to manage the authentication and endpoints for callouts, allowing developers to change URLs without modifying the Apex class. Remote Site Settings require manual updates in Salesforce, while Session Id and Connected Apps do not specifically address the issue of changing URLs for callouts.