Valid Integration-Architect Dumps shared by ExamDiscuss.com for Helping Passing Integration-Architect Exam! ExamDiscuss.com now offer the newest Integration-Architect exam dumps, the ExamDiscuss.com Integration-Architect exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com Integration-Architect dumps with Test Engine here:
What is the first thing an Integration Architect should validate if a callout from a LightningWeb Component to an external endpoint is failing?
Correct Answer: A
Explanation The first thing an integration architect should validate if a callout from a Lightning Web Component to an external endpoint is failing is the endpoint domain has been added to Cross-Origin Resource Sharing (CORS). CORS is a mechanism that allows web browsers to make requests to servers on different origins, such as different domains, protocols, or ports. CORS requires the server to send back a special header that indicates whether the browser is allowed to access the resource or not. If the endpoint domain is not added to the CORS whitelist in Salesforce, the browser will block the callout and throw an error. Option B is not correct because Content Security Policies (CSP) are used to control what resources can be loaded on a Visualforce or Lightning page, such as scripts, stylesheets, images, etc. CSP does not affect the callout from a Lightning Web Component to an external endpoint. Option C is not correct because outbound firewall rules are used to restrict the network traffic from Salesforce to external systems. Firewall rules are configured at the network level, not at the Salesforce level. Option D is not correct because Remote Site Settings are used to specify the domains that are allowed for callouts from Apex code, not from Lightning Web Components. References: Working with CORS and CSP to Call APIs from LWC [Cross-Origin Resource Sharing (CORS)]
Recent Comments (The most recent comments are at the top.)
cipher96 - Jul 13, 2025
Configuring CORS in Salesforce is about allowing inbound requests to Salesforce from external client-side applications. It is not used for outbound callouts from Apex to external systems, which are governed by Remote Site Settings and Named Credentials.
Option B should be correct.
Salesforce enforces a strict CSP by default. For example, it prevents LWC JavaScript from directly connecting to external APIs unless the API's domain is explicitly added to the CSP Trusted Sites list. When you add an external domain to CSP Trusted Sites, Salesforce's CSP directives are updated to allow the LWC's JavaScript (specifically, the connect-src directive) to make requests to that domain. Who controls it: CSP is configured within Salesforce Setup. Configuring CSP Trusted Sites: Go to Setup > Security Controls > CSP Trusted Sites. Click New Trusted Site. Enter the Trusted Site Name and the Trusted Site URL (the domain of your external API). Select the appropriate Context (e.g., Lightning Experience, Experience Builder). Check the CSP Directives, particularly connect-src, to allow the LWC to connect to the external API. Click Save....
Recent Comments (The most recent comments are at the top.)
Configuring CORS in Salesforce is about allowing inbound requests to Salesforce from external client-side applications. It is not used for outbound callouts from Apex to external systems, which are governed by Remote Site Settings and Named Credentials.
Option B should be correct.
Salesforce enforces a strict CSP by default. For example, it prevents LWC JavaScript from directly connecting to external APIs unless the API's domain is explicitly added to the CSP Trusted Sites list. When you add an external domain to CSP Trusted Sites, Salesforce's CSP directives are updated to allow the LWC's JavaScript (specifically, the connect-src directive) to make requests to that domain.
Who controls it: CSP is configured within Salesforce Setup.
Configuring CSP Trusted Sites:
Go to Setup > Security Controls > CSP Trusted Sites.
Click New Trusted Site.
Enter the Trusted Site Name and the Trusted Site URL (the domain of your external API).
Select the appropriate Context (e.g., Lightning Experience, Experience Builder).
Check the CSP Directives, particularly connect-src, to allow the LWC to connect to the external API.
Click Save....