ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 390 - Certified Platform Developer II discussion

Report
Export

Consider the following code snippet:

Which two steps should the developer take to add flexibility to change the endpolnt and credentials without needing to modify code?

Choose 2 answers

A.
Create a Named Credential, endPoint_NC, to store the endpoint and credentials.
Answers
A.
Create a Named Credential, endPoint_NC, to store the endpoint and credentials.
B.
Store the URL of the endpoint in a custom Label named endPointURL.
Answers
B.
Store the URL of the endpoint in a custom Label named endPointURL.
C.
Use req.setEndpoint(,callcut:endPoint_NC,); within the callout request.
Answers
C.
Use req.setEndpoint(,callcut:endPoint_NC,); within the callout request.
D.
Use req.setEndpoint(Label.endPointURL);.
Answers
D.
Use req.setEndpoint(Label.endPointURL);.
Suggested answer: A, C
asked 23/09/2024
Andrew Li
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first