ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 90 - Certified Manufacturing Cloud Accredited Professional discussion

Report
Export

A Salesforce consultant built an integration that calls an external endpoint via an Apex callout. However, the callout is failing with the following error: 'System.CalloutException: Unauthorized endpoint'.

What should the consultant do to fix this error?

A.
Create a connected app for the external system.
Answers
A.
Create a connected app for the external system.
B.
Register the URL in Remote Site Settings.
Answers
B.
Register the URL in Remote Site Settings.
C.
Ensure that the integration user has the necessary permissions to perform the callout.
Answers
C.
Ensure that the integration user has the necessary permissions to perform the callout.
Suggested answer: B

Explanation:

Remote Site Settings let you specify the external domains that your Apex code can access. If you don't register the URL of the external endpoint in Remote Site Settings, you will get an unauthorized endpoint error when you try to make a callout. You can also use named credentials to store the URL and authentication settings for the external system.Reference:Remote Site Settings,Named Credentials

asked 23/09/2024
Peter Shillingford
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first