Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 1 Question 109 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 109
Topic #: 1
[All Platform Developer II Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: C

The correct feature to use is C, Named Credentials. Named Credentials are a secure way of storing the endpoint and authentication details for callouts to external services. When URLs change frequently, using Named Credentials allows you to manage the endpoint URL in one place without changing the Apex code.


Named Credentials

Contribute your Thoughts:

Alesia
3 days ago
This question reminds me of that time I accidentally hardcoded a URL and had to update it in 100 places when it changed. Lesson learned - use Named Credentials!
upvoted 0 times
...
Dalene
13 days ago
Hmm, I was thinking D) Remote Site Settings, but C) Named Credentials makes more sense. It's like having a little black book for all your callout URLs.
upvoted 0 times
...
Beatriz
18 days ago
I agree, Named Credentials would make it easier to update the URLs without changing the Apex class.
upvoted 0 times
...
Hollis
21 days ago
I agree, C) Named Credentials is the best option. Keeps the code clean and makes it easy to update the URLs later.
upvoted 0 times
...
Lindsay
23 days ago
C) Named Credentials sounds like the way to go. That way, the URLs can be managed separately without modifying the Apex class.
upvoted 0 times
Adaline
2 days ago
I agree, using Named Credentials will definitely make it easier to update the URLs without changing the Apex class.
upvoted 0 times
...
Jina
12 days ago
C) Named Credentials sounds like the way to go. That way, the URLs can be managed separately without modifying the Apex class.
upvoted 0 times
...
...
Delisa
27 days ago
I think the developer should use Named Credentials.
upvoted 0 times
...

Save Cancel