exam questions

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 242 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 242
Topic #: 1
[All Certified 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?

  • A. Remote Site Settings
  • B. Session Id
  • C. Named Credentials
  • D. Connected Apps
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️
Reference:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_callouts_named_credentials.htm

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Liquad
8 months, 3 weeks ago
For example, if an endpoint URL changes, you update only the named credential. All callouts that reference the named credential simply continue to work.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...