ExamGecko
Question list
Search
Search

List of questions

Search

Question 201 - Certified B2B Commerce Administrator discussion

Report
Export

A developer needs to make a call to a long running web service which is critical to finalizing their checkout process. Which three items should the developer consider in their implementation?

A.
A new CORS entry may need to be created in Setup
Answers
A.
A new CORS entry may need to be created in Setup
B.
A new Named Credential may need to be created in Setup
Answers
B.
A new Named Credential may need to be created in Setup
C.
An Apex method returning a Continuation will need to be created
Answers
C.
An Apex method returning a Continuation will need to be created
D.
Requests to the service should be brokered to prevent limit exceptions
Answers
D.
Requests to the service should be brokered to prevent limit exceptions
E.
A new Remote Site may need to be created in Setup
Answers
E.
A new Remote Site may need to be created in Setup
Suggested answer: A, B, C

Explanation:

To make a call to a long running web service, a developer should consider the following items in their implementation:

A new CORS entry may need to be created in Setup.CORS stands for Cross-Origin Resource Sharing, and it is a mechanism that allows web browsers to make requests to servers on different origins1.A CORS entry defines a trusted origin for an external web service and allows the browser to access its resources2.If the web service is not on the same origin as the Salesforce org, a CORS entry is required to avoid cross-origin errors3.

A new Named Credential may need to be created in Setup.A Named Credential specifies the URL of an external web service and its authentication settings4.It can also store certificates or secrets for secure communication4.By using a Named Credential, a developer can simplify the callout code and avoid hardcoding sensitive information5.

An Apex method returning a Continuation will need to be created.A Continuation is a class in Apex that allows making long-running requests to external web services without blocking the user interface6.It works by sending the request asynchronously and returning a placeholder response that can be used to resume the processing later6.A Continuation can handle requests that take up to 120 seconds, which is longer than the normal limit of 10 seconds for synchronous callouts7.Reference:Cross-Origin Resource Sharing (CORS),Create a CORS Whitelist Entry,Make Long-Running Callouts with Continuations,Named Credentials,Apex Web Services and Callouts,Continuation Class,Apex Governor Limits

asked 23/09/2024
Wessel Beulink
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first