Which recommended approach should the developer implement to the callout exception?

A developer created the code to perform an HTP GET request to an external system.

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 the callout exception?
A . create a remote site setting configuration that includes the endpoint.
B. Annotate the getERPCatalogContents method With @Future (Callout-true)
C. use the setHeader () method to specify Basic Authentication.
D. Change the access modifier for ERPCatelog from Public to global

Answer: D

Latest PDII Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments