Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Arch-204 Exam - Topic 4 Question 13 Discussion

Posted by Hui on Jun 18, 2026 at 12:27 AM

What is the first thing an integration architect should validate if a callout from a Lightning web component (LWC) to an external endpoint is failing?

Suggested Answer: C

When an integration initiated from the client-side (the browser) fails, the architect must first look at the browser's security policies. In Salesforce, Lightning Web Components are subject to the Lightning Component framework's Content Security Policy (CSP).

CSP is a security layer that prevents cross-site scripting (XSS) and other code injection attacks by restricting which domains the browser is allowed to communicate with. If an LWC attempts to make a fetch() call to an external REST endpoint, the browser will block the request unless that specific domain is whitelisted in CSP Trusted Sites.

Option B (Remote Site Settings) is a common distractor; these settings are strictly for server-side Apex callouts and have no effect on client-side JavaScript requests. Option A (CORS) is also a browser security mechanism, but it must be configured on the external server to allow Salesforce to access its resources. While CORS is necessary, the first thing to validate within the Salesforce environment for a failing LWC callout is the CSP Trusted Site entry. Without this whitelisting, the request will be terminated by the browser before it even leaves the client, regardless of how the external server is configured.


Get Premium Plat-Arch-204 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
BO
Bo 2 months ago
I feel C is important too, but CORS is the first check for me.
AN
Annmarie 2 months ago
I lean towards B. Remote Site Settings are often overlooked.
MI
Millie 2 months ago
I think it’s definitely A. CORS is crucial for external calls.
GE
Gearldine 2 months ago
Really? I thought it was the URL that mattered most.
GU
Gussie 3 months ago
I always start with CORS, seems like the obvious choice.
HU
Hubert 3 months ago
Wait, isn't CSP also crucial?
CH
Chuck 3 months ago
I think Remote Site Settings is more important.
ME
Melodie 3 months ago
Definitely check CORS first!
LY
Lynna 3 months ago
I definitely remember that CORS is crucial for external calls, so I would lean towards that being the right answer.
AN
Annita 4 months ago
I feel like CSP might be important too, but I can't recall if it's the first step or not.
SO
Solange 4 months ago
I remember practicing a question about Remote Site Settings, so maybe that's the first thing to validate?
LO
Louann 4 months ago
I think the first thing to check would be if the endpoint domain is in the CORS settings, but I'm not entirely sure.
0/2000 characters

Save Cancel