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 Build Solution, each with the answer and an explanation.

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

Build Solution questions

1–3 of 3 free
Question 1 Choose 1
Northern Trail Outfitters (NTO) wants to improve the quality of callouts from Salesforce to its REST APIs. For this purpose, NTO will require all API Clients/consumers to adhere to REST API Markup Language (RAML) specifications that include the field-level definition of every API request and response Payload. The RAML specs serve as interface contracts that Apex REST API Clients can rely on. Which design specification should the integration architect include in the integration architecture to ensure that Apex REST API Clients’ unit tests confirm Adherence to the RAML specs?
Show answerHide answer

Correct answer: C Implement HttpCalloutMock to return responses per RAML specification

Explanation

Explanation:

Apex requires unit tests for callout logic, and Salesforce does not allow real HTTP callouts during test execution. Developers must use the HttpCalloutMock interface to simulate the external endpoint's response. The key requirement here is that the unit tests must confirm adherence to the RAML specification, meaning the mock responses need to be built directly from the field-level request and response payload definitions in the RAML contract.

By implementing HttpCalloutMock so that it returns responses that precisely match the structure, fields, and data types defined in the RAML specification, the architect ensures that:

The Apex client code is tested against a realistic, contract-accurate response.
Any mismatch between what the Apex code expects and what the actual API contract defines, such as missing fields, incorrect data types, or unexpected null values, will surface as test failures.
The tests validate actual adherence to the interface contract, rather than simply confirming that a callout occurred without throwing an exception.

This makes the mock the actual mechanism for validating conformance to the RAML specification. It is not enough to simply use a mock or invoke it; the mock's content must be driven by the specification for the tests to provide meaningful contract validation.

Why not the others:

A. Require Clients to implement HttpCalloutMock:
This only states that mocking must be used. It is a necessary but insufficient design specification because it says nothing about validating adherence to the RAML contract itself. Any mock implementation, including one returning arbitrary or incorrect data, would satisfy this requirement, defeating the purpose of the validation.

B. Call the HttpCalloutMock implementation from the clients:
This describes basic test setup mechanics, such as using Test.setMock() to inject the mock, but it does not address the actual goal of confirming that payloads conform to RAML. Implementing and invoking a mock without RAML-based content does not prove specification adherence.

Key exam takeaway
The differentiator is what the mock returns, not simply that a mock exists or is invoked. To validate a contract, test doubles should be built from that contract.

Reference
Apex Developer Guide - Testing HTTP Callouts (HttpCalloutMock interface, Test.setMock())
Question 2 Choose 1
Northern Trail Outfitters is creating a distributable Salesforce package. The package needs to call into a Custom Apex REST endpoint in the central org. The security team wants to ensure a specific integration account is used in the central org that they will authorize after installation. Which item should an architect recommend?
Show answerHide answer

Correct answer: C Create an authentication provider in the package and set the consumer key and consumer secret of the connected app in the central org

Explanation

Explanation:

Northern Trail Outfitters is distributing a Salesforce managed package that needs to call a Custom Apex REST endpoint in the central org. The security team requires that a specific integration account be used, which they will authorize after installation.

Authentication Provider + Connected App

The package can include an authentication provider configuration.

The consumer key and consumer secret of the connected app in the central org are used to establish secure OAuth flows.

This ensures that the integration account in the central org is explicitly authorized by the security team.

This approach provides a scalable and secure way to handle authentication across distributed packages.

Why not the other options?

A. Contact Salesforce Support to enable API access for managed packages

Incorrect. API access is already supported for managed packages. No special support case is required for this purpose.

B. Use an encrypted field to store the password

Incorrect. Storing passwords in encrypted fields is insecure and does not align with Salesforce best practices. OAuth and connected apps provide the recommended approach for secure authentication.

Key Exam Point

For a managed package that needs to securely authenticate to a central Salesforce org, an Authentication Provider combined with a Connected App can provide an OAuth-based authentication mechanism while allowing the central security team to authorize the required integration account.

Reference
Salesforce Documentation: Connected Apps and OAuth
Salesforce Documentation: Authentication Providers
Question 3 Choose 1
A company needs to integrate a legacy on-premise application that can only support SOAP API. The integration architect determines that the Fire and Forget integration pattern is most appropriate for sending data from Salesforce to the external application and getting a response back in a strongly-typed format. Which integration capabilities should be used?
Show answerHide answer

Correct answer: C Outbound Messaging for Salesforce to Legacy System direction and SOAP API using Enterprise WSDL for the communication back from legacy system to Salesforce

Explanation

Explanation:

The question gives two important architectural clues:

The legacy application only supports SOAP.
The integration pattern is Fire and Forget, with a response coming back in a strongly typed format.

For the Salesforce-to-legacy direction, Outbound Messaging is appropriate for a Fire and Forget pattern. Salesforce can send a SOAP-based outbound message to an external listener when the configured record change occurs. The sender does not need to wait synchronously for the receiving application to complete its processing.

For the reverse direction, the legacy system needs to call Salesforce using the Salesforce SOAP API. The Enterprise WSDL is strongly typed and is generated for a specific Salesforce organization. It contains the organization's objects and fields, making it appropriate when the integration requires a strongly typed representation of Salesforce data.

Therefore:

Salesforce → Legacy: Outbound Messaging
Legacy → Salesforce: SOAP API + Enterprise WSDL

Why the other options are incorrect

A. Platform Events + Enterprise WSDL — Incorrect

Platform Events provide an event-driven mechanism and are asynchronous, but the scenario specifically identifies a legacy application that only supports SOAP and asks for the appropriate capability for the Fire and Forget pattern.

Outbound Messaging is the Salesforce capability specifically designed for sending SOAP-based notifications to an external system.

Platform Events would be more appropriate when the external application can consume Salesforce event channels, rather than when the stated legacy integration requirement is based on SOAP.

B. Outbound Messaging + Partner WSDL — Incorrect

The Partner WSDL is designed to be more generic and loosely typed. It uses generic representations that allow the same integration code to work across different Salesforce organizations.

The question explicitly requires the response to be in a strongly typed format. The Enterprise WSDL is strongly typed and organization-specific, making it the appropriate choice.

Enterprise vs. Partner WSDL

WSDL → Characteristics
Enterprise WSDL → Strongly typed, organization-specific, suited to tightly coupled integrations
Partner WSDL → Loosely typed, generic, suited to integrations that need to work across multiple Salesforce organizations

Exam takeaway

Remember this combination:

Fire and Forget + SOAP legacy system → Outbound Messaging

And when the Salesforce SOAP API must provide a strongly typed interface:

Enterprise WSDL

Therefore:

Answer: C. Outbound Messaging + SOAP API using Enterprise WSDL.

That's the last free question in Build Solution

You've seen the free 30% (3 of 12 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