Salesforce certification · Exam Salesforce-Platform-Integration-Architect

Salesforce-Platform-Integration-Architect Mock Exam

Salesforce Platform Integration Architect (Plat-Arch-204)

Free Salesforce-Platform-Integration-Architect questions on Maintain Integration, each with the answer and an explanation.

20 questions · 35 minutes · free, no sign-up

Maintain Integration questions

1–6 of 6 free
Question 1 Choose 1
What is the first thing an integration architect should validate if a callout from a Lightning web component to an external endpoint is failing?
Show answerHide answer

Correct answer: A The endpoint URL has been added to Content Security Policies

Explanation

Explanation:

Why A is correct:
Lightning Web Components (LWCs) execute client-side code directly inside the user's browser. By default, Salesforce enforces a strict Content Security Policy (CSP) to help prevent cross-site scripting (XSS) and code injection attacks. This policy blocks outbound client-side HTTP or Fetch requests and WebSocket connections to third-party endpoints unless the target domain is explicitly registered under CSP Trusted Sites, also known as Trusted URLs, in Salesforce Setup with the appropriate directives enabled, such as connect-src.

Why B is incorrect:
Cross-Origin Resource Sharing (CORS) is a browser-level security mechanism enforced by the external server receiving the request. It determines whether that server allows responses to be read by a different origin, such as Salesforce. While CORS configuration issues can cause callouts to fail, configuring CORS within Salesforce whitelist settings is used for incoming requests to Salesforce APIs from external applications, not for outbound requests originating from an LWC.

Why C is incorrect:
Remote Site Settings are required for server-side callouts originating from Apex, such as requests made using the Http class. They do not govern client-side JavaScript or Lightning Web Component execution.

Reference/;
Salesforce Pattern: Client-Side Integration Security / Lightning Security Architecture
Salesforce Documentation: Call APIs from JavaScript (LWC Developer Guide)
Question 2 Choose 1
Northern Trail Outfitters needs to use Shield Platform Encryption to encrypt social security numbers in order to meet a business requirement. Which action should an integration architect take prior to the implementation of Shield Platform Encryption?
Show answerHide answer

Correct answer: B Encrypt the data using the most current key.

Explanation

Explanation:

Before (and as part of) implementing Shield Platform Encryption for sensitive fields such as Social Security Numbers, Salesforce best practice is to ensure that data is encrypted with the most current tenant secret / encryption key.

When a new tenant secret is generated:

Newly created or updated data is encrypted with the new key.
Existing data remains encrypted under the previous key(s).

Salesforce therefore strongly recommends re-encrypting existing sensitive data with the latest key (via the Background Encryption Service or equivalent process) so that all protected data is under the current key material. This is a critical preparatory / early-implementation step for an Integration Architect to plan and execute.

Why the other options are incorrect

A. Encrypt all the data so that it is secure.
This is not recommended. Shield Platform Encryption should be applied selectively to only the data that requires it (based on data classification and threat modeling). Encrypting everything unnecessarily degrades performance and breaks platform functionality (filters, sorting, formulas, unique constraints, etc.).

C. Use Shield Platform Encryption as a user authentication or authorization tool.
This is incorrect. Shield Platform Encryption protects data at rest. It is not a replacement for authentication, authorization, profiles, permission sets, or field-level security. Access control remains the responsibility of the Salesforce security model.
Question 3 Choose 1
A customer imports data from an external system into Salesforce using Bulk API. These jobs have batch sizes of 2,000 and are run in parallel mode. The batches fail frequently with the error “Max CPU time exceeded”. A smaller batch size will fix this error. What should be considered when using a smaller batch size?
Show answerHide answer

Correct answer: A Smaller batch size may increase time required to execute bulk jobs.

Explanation

Explanation:

When using Bulk API with parallel mode and large batch sizes (e.g., 2,000 records), jobs may fail with “Max CPU time exceeded” because Salesforce must process too much logic per batch. Reducing the batch size helps avoid CPU limits, but it introduces trade-offs:

Smaller batch size → Each batch contains fewer records, so Salesforce spends less CPU time per batch. This reduces the likelihood of hitting Apex governor limits.

However, more batches are required to process the same total volume of data.

This increases the overall execution time of the bulk job, since Salesforce must handle more batch overhead (setup, commit, retries).

Why not the other options?

B. Smaller batch size can trigger “Too many concurrent batches” error → Incorrect. That error occurs when too many batches are submitted simultaneously, not because of smaller batch sizes.

C. Smaller batch size may exceed the concurrent API request limits → Incorrect. Bulk API jobs are still counted as a single job submission, regardless of batch size. Smaller batches do not increase API request limits directly.

Thus, the main consideration is that smaller batch sizes improve reliability but increase total job execution time.

Reference

Salesforce Docs: Bulk API Best Practices
Salesforce Help: Bulk API Limits and Performance
Question 4 Choose 1
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?
Show answerHide answer

Correct answer: C The endpoint URL has been added to Content Security Policies (CSP).

Explanation

Explanation:

When a callout from a Lightning Web Component (LWC) to an external endpoint is failing, the first thing an integration architect should validate is whether the endpoint URL has been added to Content Security Policy (CSP) Trusted Sites in Salesforce Setup.

Why CSP is the priority for LWC callouts:

LWC JavaScript runs in the browser: Unlike Apex (server-side), LWC code executes client-side. Salesforce enforces a strict CSP that blocks all outbound API calls to external domains by default to prevent cross-site scripting (XSS) and code injection attacks.

Immediate failure point: If the endpoint domain is not added to CSP Trusted Sites (with the connect-src directive checked), any fetch() call from the LWC will fail immediately with a "Failed to fetch" error, and the browser console will show a CSP violation.

Configuration location: This is configured in Setup → CSP Trusted Sites (formerly Trusted URLs). The connect-src directive must be enabled for API callouts to work.

Why Other Options Are Incorrect

A. The endpoint domain has been added to Cross-Origin Resource Sharing (CORS):
CORS is enforced by the external server, not Salesforce. While CORS can cause failures, you cannot "add" a domain to CORS in Salesforce—that configuration must be done on the third-party endpoint itself. CORS controls whether the browser allows JavaScript to read the response, but it does not control whether the request is sent in the first place.

B. The endpoint URL has been added to Remote Site Settings:
Remote Site Settings authorize Apex callouts (server-side), not LWC JavaScript callouts (client-side). If the integration used an Apex controller to make the callout, Remote Site Settings would be the correct answer. However, the question explicitly specifies the callout originates from a Lightning Web Component.

Key Distinction for the Exam

Callout Origin → Required Salesforce Configuration
LWC / Aura (client-side JavaScript) → CSP Trusted Sites / Trusted URLs
Apex (server-side) → Remote Site Settings (or Named Credentials)

The presence of "Lightning Web Component" in the question is the critical clue pointing to CSP Trusted Sites. This distinction is a frequent exam topic.
Question 5 Choose 1
Northern Trail Outfitters is planning to perform nightly batch loads into Salesforce using the Bulk API. The CIO wants monitoring recommendations for these jobs. Which recommendation should help meet the requirements?
Show answerHide answer

Correct answer: A Visually monitor in the Salesforce UI using the “Bulk Data Load Jobs” in Salesforce in the setup menu.

Explanation

Explanation:

When using Bulk API for nightly batch loads, monitoring is essential to ensure jobs complete successfully and errors are addressed. The recommended approach is:

Bulk Data Load Jobs UI (Setup Menu):

Provides a native monitoring interface in Salesforce.

Administrators can view job status, batch progress, success/failure counts, and error details.

No custom development is required, making it the most straightforward and reliable monitoring method.

Why not the other options?

B. Write error response to a custom error logging object with Apex trigger → Incorrect.
Bulk API jobs are asynchronous and external; Apex triggers cannot intercept Bulk API responses directly. This would require unnecessary custom development and is not scalable.

C. Set debug logs to “finest” for the job user → Incorrect.
Debug logs are intended for troubleshooting Apex code execution, not monitoring Bulk API jobs. They would generate excessive log volume and are not practical for nightly monitoring.

Thus, the best recommendation is to use the Salesforce UI “Bulk Data Load Jobs” page for monitoring.

Reference

Salesforce Docs: Monitor Bulk Data Load Jobs
Salesforce Help: Bulk API Monitoring
Question 6 Choose 1
A Salesforce customer is planning to roll out Salesforce for all of their sales and service staff. Senior management has requested that monitoring be in place for Operations to notify any degradation in Salesforce performance. How should an Integration consultant implement monitoring?
Show answerHide answer

Correct answer: B Identify critical business processes and establish automation to monitor performance against established benchmarks.

Explanation

Explanation:

When rolling out Salesforce to all sales and service staff, senior management wants Operations monitoring to detect and alert on any performance degradation. The right approach is to focus on business process monitoring, not just technical API usage:

Business Process Monitoring:

Identify critical processes (e.g., lead conversion, case resolution, order submission).
Establish benchmarks for acceptable performance (response times, completion times, throughput).
Implement automation and monitoring tools (e.g., Salesforce Event Monitoring, external APM tools, middleware monitoring) to track deviations.

Alerts can be configured when performance falls below thresholds, ensuring proactive notification to Operations.

Why not the other options?

A. Use Salesforce API Limits → This only tracks API usage, not overall Salesforce performance or business process health.
It’s useful for API governance but does not meet the CIO’s requirement.

C. Use APIEVENT to track API calls → This focuses on API activity, not end-to-end performance of sales and service processes.
It’s too narrow for enterprise monitoring.

Thus, the best recommendation is to monitor critical business processes against benchmarks and automate alerts for degradation.

Reference
Salesforce Docs: Event Monitoring
Salesforce Architects Guide: Monitoring Salesforce Performance

That's the last free question in Maintain Integration

You've seen the free 30% (6 of 22 questions). Full access unlocks every question and full-length Salesforce-Platform-Integration-Architect mock exams (60 questions, 105 minutes), a different mock on every attempt.

Unlock full mock exam
Full mock exam

Sit the Salesforce-Platform-Integration-Architect exam before exam day

Full-length mocks with the same number of questions and the same time limit as the real Salesforce-Platform-Integration-Architect exam. Every attempt draws a new set of questions from the full bank, so you can keep going until you pass comfortably.

Get full Salesforce-Platform-Integration-Architect mock exam
  • 60questions per mock
  • 105 mintime limit
  • 124questions in the bank
  • Newmock on every attempt