Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 10 Topic 2 Discussion

Salesforce Certified Platform Developer II (Plat-Dev-301) PDII Question # 10 Topic 2 Discussion

PDII Exam Topic 2 Question 10 Discussion:
Question #: 10
Topic #: 2

When the code is executed, the callout is unsuccessful and the following error appears within the Developer Console:

System.CalloutException: Unauthorized endpoint

Which recommended approach should the developer implement

to resolve the callout exception?


A.

Annotate the getkRFCatalogContents method with @Future (Callout-true),


B.

Change the access modifier for ERPCatalog from public to global.


C.

Use the SetHeader() method to specify Basic Authentication,


D.

Create a remote site setting configuration that includes the endpoint.


Get Premium PDII Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.