nerdexam
Salesforce

PDII · Question #364

PDII Question #364: Real Exam Question with Answer & Explanation

Sign in or unlock PDII to reveal the answer and full explanation for question #364. The question stem and answer options stay visible for context.

Question

Consider the following code snippet: Which two steps should the developer take to add flexibility to change the endpoint and credentials without needing to modify code? (Choose two.)

Exhibit

PDII question #364 exhibit

Options

  • AUse req.setEndpoint(Label.endPointURL);.
  • BStore the URL of the endpoint in a custom Label named endPointURL.
  • CUse req.setEndpoint('callout:endPoint_NC'); within the callout request.
  • DCreate a Named Credential, endPoint_NC, to store the endpoint and credentials.

Unlock PDII to see the answer

You've previewed enough free PDII questions. Unlock PDII for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full PDII Practice