Docsity

Section 1_ Integration Patterns — Remote Process Invocation, Batch, and Virtualization (33, Exams of Information Integration

Toggle sidebar
bg1
Section 1: Integration Patterns — Remote Process
Invocation, Batch, and Virtualization (33% Weight)
Remote Process Invocation — Request and Reply
1. An order management system must call Salesforce, get a confirmation number back, and use
that response to update the customer in real time. Which Salesforce integration pattern best fits
this requirement? (Authentic)
A. Fire and Forget
B. Request and Reply
C. Batch Data Synchronization
D. Data Virtualization
Answer: B
Rationale: Remote Process Invocation — Request and Reply is the synchronous pattern where
the caller waits for a response payload to use immediately. The order system needs the
confirmation number returned in the same call, which is the defining characteristic of Request
and Reply .
2. Universal Containers opens bank accounts in Salesforce and must sync them to the core
banking system in real time. Support agents need to inform customers of the newly created
bank account ID, which must be generated by the core banking system. Which integration
pattern is recommended? (Authentic)
A. Streaming API PushTopic
B. Outbound Message
C. Platform Event
D. Request and Reply
Answer: D
Rationale: The business requires a synchronous response — the bank account ID generated by
the core system — before the agent can complete the interaction. Request and Reply is the only
pattern that returns a response payload in the same transaction .
3. A healthcare provider is designing a patient intake integration. The system must handle a
300% traffic spike during flu season without manual intervention and must guarantee that no
patient data is lost during transmission. These represent which type of requirements?
(Authentic)
A. Non-functional requirements
B. Functional requirements
C. Business requirements
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download Section 1_ Integration Patterns — Remote Process Invocation, Batch, and Virtualization (33 and more Exams Information Integration in PDF only on Docsity!

Section 1: Integration Patterns — Remote Process

Invocation, Batch, and Virtualization (33% Weight)

Remote Process Invocation — Request and Reply

  1. An order management system must call Salesforce, get a confirmation number back, and use that response to update the customer in real time. Which Salesforce integration pattern best fits this requirement? (Authentic) A. Fire and Forget B. Request and Reply C. Batch Data Synchronization D. Data Virtualization

Answer: B Rationale: Remote Process Invocation — Request and Reply is the synchronous pattern where the caller waits for a response payload to use immediately. The order system needs the confirmation number returned in the same call, which is the defining characteristic of Request and Reply.

  1. Universal Containers opens bank accounts in Salesforce and must sync them to the core banking system in real time. Support agents need to inform customers of the newly created bank account ID, which must be generated by the core banking system. Which integration pattern is recommended? (Authentic) A. Streaming API PushTopic B. Outbound Message C. Platform Event D. Request and Reply

Answer: D Rationale: The business requires a synchronous response — the bank account ID generated by the core system — before the agent can complete the interaction. Request and Reply is the only pattern that returns a response payload in the same transaction.

  1. A healthcare provider is designing a patient intake integration. The system must handle a 300% traffic spike during flu season without manual intervention and must guarantee that no patient data is lost during transmission. These represent which type of requirements? (Authentic) A. Non-functional requirements B. Functional requirements C. Business requirements

D. User requirements

Answer: A Rationale: Scalability (handling traffic spikes) and reliability (no data loss) define how the system performs, not what business function it performs. These are classic non-functional requirements.

Remote Process Invocation — Fire and Forget

  1. Which Salesforce integration pattern is best suited for publishing a Salesforce event to multiple downstream systems where the publisher does not need to know who the subscribers are? (Authentic) A. Request and Reply B. Fire and Forget via Platform Events C. Remote Call-In D. Data Virtualization

Answer: B Rationale: Platform Events implement the Fire and Forget pattern with a publish/subscribe model. The publisher emits the event, and one or more subscribers consume it independently. The publisher does not need to know subscriber identity, which is the key decoupling advantage.

  1. Northern Trail Outfitters submits orders to a manufacturing system web service. The system experiences outages that keep the service unavailable for several days. What solution should an architect recommend to handle errors during these types of service outages? (Authentic) A. Use middleware queuing and buffering to insulate Salesforce from system outages B. Use Platform Event replay and custom scheduled Apex to retrieve missed events C. Use @future job and custom scheduled Apex to retry failed service calls D. Use Outbound Messaging to automatically retry failed service calls

Answer: A Rationale: Middleware queuing and buffering decouple Salesforce from the unreliable external system. Messages are stored in the middleware until the target system is available, preventing user-facing failures and data loss. Outbound Messaging has limited retry and is not designed for multi-day outages.

  1. An architect is reviewing an existing integration where Salesforce synchronously calls an Inventory System whenever an Opportunity closes. When the Inventory System is down, the synchronous Apex triggers fail, preventing users from closing deals. What is the primary pain point and the optimal architectural pattern to resolve it? (Authentic) A. The pain point is data inconsistency; the fix is Batch Data Synchronization

B. A shared Connected App for the three external system integrations C. A unique integration user for each external system integration D. A Connected App for each external system integration

Answer: D Rationale: A Connected App for each external system integration satisfies both requirements: each system gets its own credentials (least privilege), and each system's activity is independently auditable. A shared user or shared Connected App violates least privilege and obscures audit trails.

Data Virtualization

  1. A Service Cloud agent needs to see the latest inventory from a back-office system inside Salesforce, but the data must NOT be persisted in Salesforce. Which integration pattern fits? (Authentic) A. Batch Data Synchronization B. Data Virtualization (External Objects) C. UI Update Based on Data Changes D. Fire and Forget

Answer: B Rationale: Data Virtualization, implemented in Salesforce via External Objects (Salesforce Connect with OData or a custom Apex adapter), surfaces external data on demand without storing copies in Salesforce. This is exactly the no-persistence inventory lookup scenario.

  1. A global financial company wants community users to view financial transactions from a core banking system that processes 10 million transactions per day. What should an integration architect recommend? (Authentic) A. Use Salesforce External Service to display financial transactions in a community Lightning page B. Use Salesforce Connect to display the financial transactions as an external object C. Migrate the financial transaction records to Salesforce custom object and use ETL tool to keep systems in sync D. Use Iframe to display core banking financial transactions data in the customer community

Answer: B Rationale: Salesforce Connect (Data Virtualization) surfaces external data in real time without persisting it in Salesforce. Migrating 10 million daily transactions into Salesforce would exceed storage and governor limits and introduce unacceptable latency.

  1. A Salesforce org, middleware, and a historical data store (20 million records and growing) exist with connectivity between them. Call center agents need to view related historical case

items. Which mechanism and pattern are recommended to maximize declarative configuration? (Authentic) A. Use ESB tool with Data Virtualization pattern, expose OData endpoint, and use Salesforce Connect B. Use an ESB tool with Fire and Forget pattern and publish a Platform Event C. Use an ESB tool with Request-Reply pattern and make a real-time Apex callout D. Use an ETL tool with Batch Data Synchronization pattern to migrate historical data into Salesforce

Answer: A Rationale: Data Virtualization via Salesforce Connect maximizes declarative configuration: the external data is surfaced as External Objects alongside the Case object without persisting 20 million records in Salesforce. Batch migration of 20 million growing records is impractical and unnecessary.

Remote Call-In

  1. An external billing system needs to call Salesforce to create Cases and update Accounts when its own records change. Which Salesforce pattern describes this? (Authentic) A. Remote Process Invocation — Request and Reply B. Remote Call-In C. Data Virtualization D. Fire and Forget

Answer: B Rationale: Remote Call-In is the pattern for an external system invoking Salesforce. Implementation options include REST/SOAP API, Apex REST/SOAP web services, Bulk API, and Composite API depending on volume and shape.

  1. An architect is asked to build a solution that allows a service to access Salesforce through the API. What is the first thing the architect should do? (Authentic) A. Create a special user solely for the integration purposes B. Authenticate the integration using the existing single sign-on C. Create a Connected App D. Define the integration pattern

Answer: C Rationale: A Connected App must be created first to enable API access and define OAuth settings for the external service. The integration user and authentication flow depend on the Connected App configuration.

  1. A mobile application secured with OAuth needs to obtain GPS coordinates and store them in a custom geolocation field. The field is secured with Field Level Security so users can view but not change it. What should be done? (Authentic) A. The mobile device makes a SOAP API inbound call B. The mobile device receives a REST Apex callout C. The mobile device makes a REST API inbound call D. The mobile device makes a REST Apex inbound call

Answer: C Rationale: A REST API inbound call from the mobile device is the appropriate mechanism. REST is lightweight and well-suited for mobile clients; the field-level security is enforced server- side, allowing read-only access as configured.

Platform Events and CDC

  1. A customer is comparing Platform Events with Outbound Messaging for real-time needs. They expect 3,000 customers to view messages. Which three considerations should be evaluated? (Choose three) (Authentic) A. Number of concurrent subscribers to Platform Events is capped at 2,000. Outbound Messaging can pass only 100 notifications in a single message B. Both offer declarative means for asynchronous near-real-time needs; neither is best suited for real-time integrations C. Both retry messages and deliver in sequence, with no duplicate delivery D. Message sequence is possible in Outbound Messaging but not guaranteed with Platform Events E. Both are highly scalable, but only Platform Events have Event Delivery and Event Publishing limits

Answer: A, D, E Rationale: Concurrent subscribers to Platform Events are capped at 2,000; Outbound Messaging sends a maximum of 100 notifications per message (A). Outbound Messaging guarantees sequence, while Platform Events do not (D). Both are scalable, but only Platform Events enforce Event Delivery and Publishing limits (E). Neither guarantees exactly-once delivery without duplicates (C is false).

  1. Northern Trail Outfitters has implemented middleware for orchestration. The architect needs to ensure the middleware can process order changes with replay capability. Which solution should be used? (Authentic) A. Implement Change Data Capture on the order object and leverage the replay ID in the middleware solution B. Use Remote Process Invocation Fire and Forget pattern on insert using Flow Builder C. Use Outbound Messaging with automated retry

D. Use Batch Data Synchronization via ETL

Answer: A Rationale: Change Data Capture (CDC) publishes change events for Salesforce records, and the replay ID allows subscribers (including middleware) to retrieve missed events after downtime. This is the correct mechanism for reliable, replayable change propagation.

  1. Which Salesforce API enables a Lightning component to refresh automatically when a related record changes elsewhere in the org? (Authentic) A. UI Update Based on Data Changes pattern via Streaming API, CDC, or empApi B. Request and Reply C. Batch Data Synchronization D. Remote Call-In

Answer: A Rationale: UI Update Based on Data Changes is the Salesforce pattern for refreshing a UI when underlying data changes. It is typically implemented through the Streaming API, Change Data Capture, or empApi in Lightning to push notifications to the browser.

  1. An external system needs to subscribe to a high-throughput stream of Salesforce events with replay support and gRPC efficiency. Which API should the architect recommend? (Authentic) A. Streaming API (CometD) B. Pub/Sub API (gRPC) C. Apex REST D. Outbound Messages

Answer: B Rationale: Pub/Sub API is the modern Salesforce event API that uses gRPC and HTTP/2 for high-throughput, low-latency event streaming with native replay support. Salesforce recommends Pub/Sub API over the legacy CometD-based Streaming API for new builds.

  1. A company wants to synchronize data changed in Salesforce to a third party with a JSON- based API endpoint. What capability should an Integration Architect consider? (Authentic) A. Use an Outbound Message with the record data B. Use Change Data Capture (CDC) C. Use a Workflow Rule with Outbound Messaging D. Use a Batch Apex job

Answer: B Rationale: CDC automatically publishes change events for Salesforce records in JSON format, which a third-party subscriber can consume. Outbound Messaging uses SOAP XML, not JSON, and requires a publicly exposed SOAP endpoint.

Answer: A, B Rationale: The middleware must establish a secure API gateway and the gateway component must be deployable behind a DMZ. OAuth enforcement is important but does not address the firewall/DMZ requirement directly; direct ODBC access bypasses the security requirement.

  1. A company's enterprise architect has requirements around caching, queuing, error handling, alerts, retries, and event handling. Which three recommendations should the Salesforce integration architect make? (Choose three) (Authentic) A. Transform a fire-and-forget mechanism to request-reply in middleware B. Provide true message queuing for integration scenarios C. Message transformation and protocol translation should be done within Salesforce D. Event handling processes such as writing to a log or sending an error message can be handled by middleware E. In a publish/subscribe scenario, middleware can route requests to active subscribers

Answer: B, D, E Rationale: True message queuing (B), event handling and logging (D), and publish/subscribe routing (E) are all appropriate middleware responsibilities. Transformation and protocol translation should be handled by middleware, not within Salesforce (C is incorrect).

Section 4: Security and Authentication (Overlaps with All Domains)

OAuth, Named Credentials, and Connected Apps

  1. A financial services client requires integration with a core banking system. The security team mandates that no static credentials be stored in Salesforce. The banking API supports OAuth 2.0 Client Credentials flow and requires a client assertion signed with a private key. Which Salesforce feature should be evaluated? (Authentic) A. Shield Platform Encryption B. Remote Site Settings C. Connected App with OAuth D. Named Credentials with an Auth Provider and certificate

Answer: D Rationale: Named Credentials used with an Auth Provider handle the OAuth dance automatically. For Client Credentials flow requiring signed assertions, Salesforce supports configuring this via Auth Providers and Named Credentials using certificates stored securely in the platform, ensuring no static secrets are exposed in code.

  1. A company's security assessment identified secrets such as usernames, passwords, and OAuth tokens used in callouts from Salesforce. Which two persistence mechanisms should an integration architect require to protect secrets? (Choose two) (Authentic) A. Encrypted Custom Fields B. Named Credentials C. Remote Site Settings D. Protected Custom Settings

Answer: B, D Rationale: Named Credentials securely store endpoint URLs and authentication parameters, and Protected Custom Settings restrict visibility of secrets to the package or namespace. Remote Site Settings only whitelist URLs and do not store credentials.

  1. Northern Trail Outfitters needs to secure an integration with an external Microsoft Azure API Gateway. What integration security mechanism should be employed? (Authentic) A. Configure mutual server authentication with two-way SSL using CA-issued certificates B. Configure a Connected App with an authorization endpoint of the API gateway and configure OAuth settings C. Use an API-only user profile and implement an external identity provider with federated API access D. Implement Salesforce Shield with Encryption at Rest and generate a tenant secret

Answer: B Rationale: Configuring a Connected App with the API gateway's authorization endpoint and OAuth settings enables the OAuth 2.0 flow between Salesforce and the Azure API Gateway. Two-way SSL is an alternative but OAuth is the standard mechanism for API gateway integration.

  1. Which component validates access tokens and approves access to the protected REST API resource in an OAuth 2.0 flow? (Authentic) A. The client application B. The authorization server C. The resource server D. The identity provider

Answer: C Rationale: The resource server hosts the protected API and validates access tokens before granting access. The authorization server issues tokens; the client application requests them.

Section 5: Resilience, Error Handling, and Operations (21% Weight)

Idempotency, Retry, and Fault Handling

A. Implement exponential backoff and retry with idempotency B. Increase API limits by purchasing more licenses C. Use only synchronous calls D. Disable API limits for the integration user

Answer: A Rationale: Exponential backoff with retry and idempotency handles transient limit errors gracefully. API limits cannot be disabled; purchasing more licenses is not an architectural solution.

Section 6: System Landscape and Business Needs (8% + 14% Weight)

System Landscape Evaluation

  1. A customer is migrating from a legacy system to Salesforce and wants to integrate all existing systems. Which three constraints and pain points should an architect consider when choosing the integration pattern? (Choose three) (Authentic) A. System types — APIs, file systems, email B. Reporting and usability requirements C. Multi-language and multi-currency requirements D. Error handling mechanisms E. Data volume and processing volume

Answer: A, D, E Rationale: System types (A), error handling mechanisms (D), and data volume/processing volume (E) are direct integration constraints. Reporting/usability and multi-language/multi- currency are business requirements, not integration pattern constraints.

  1. An architect is reviewing an existing integration where Salesforce triggers a synchronous update to an external Inventory System when an Opportunity closes. The Inventory System experiences downtime, causing Salesforce transaction failures. What is the primary pain point and the optimal architectural pattern? (Authentic) A. Pain point: data inconsistency; pattern: Batch Data Synchronization B. Pain point: tight coupling; pattern: Fire and Forget C. Pain point: API limits; pattern: Data Virtualization D. Pain point: security; pattern: Named Credentials

Answer: B Rationale: Tight coupling makes Salesforce availability dependent on the external system. Fire and Forget (asynchronous) decouples the systems, allowing Salesforce to commit the transaction immediately.

  1. Which two system constraint questions should be considered when designing an integration to send orders from Salesforce to a fulfillment system? (Choose two) (Authentic) A. What latency is acceptable for orders to reach the fulfillment system? B. Which system will validate order shipping addresses? C. Can the fulfillment system implement a contract-first Outbound Messaging interface? D. Can the fulfillment system participate in idempotent design to avoid duplicate orders?

Answer: A, D Rationale: Latency tolerance determines synchronous vs. asynchronous pattern selection, and idempotency capability determines whether retry is safe. Address validation is a data quality question, and Outbound Messaging contract-first design is a specific implementation detail rather than a fundamental constraint.

Section 7: Constructed Questions Aligned to Exam Blueprint

Additional Integration Patterns and API Selection

  1. A Salesforce org must expose data to an external system that requires a strictly typed, contract-first interface with WS-Security. Which API should the architect recommend? A. REST API B. SOAP API C. Bulk API 2. D. GraphQL API

Answer: B Rationale: SOAP API supports WSDL-based contracts, WS-Security, and strict typing, making it the correct choice for enterprise systems requiring contract-first SOAP interfaces.

  1. An integration must process 200,000 records from Salesforce to an external data warehouse on a nightly basis. Which combination is most appropriate? A. REST API with synchronous calls B. SOAP API with synchronous calls C. Bulk API 2.0 for query and middleware orchestration D. GraphQL API

Answer: C Rationale: Bulk API 2.0 is designed for high-volume asynchronous data extraction. REST and SOAP synchronous calls would exceed API limits and performance constraints for 200, records.

Answer: B Rationale: Fire and Forget with middleware queuing decouples the systems and buffers messages during outages. Idempotent consumers ensure safe retry when the target system recovers.

  1. A Salesforce org must integrate with an external system that uses OData for data access. Which Salesforce feature should be used to surface external data without replication? A. Salesforce Connect with OData adapter B. Apex REST callouts C. Outbound Messaging D. Platform Events

Answer: A Rationale: Salesforce Connect with an OData adapter surfaces external data as External Objects in real time, without replication. Apex callouts would require custom code; Outbound Messaging and Platform Events are for event-driven patterns.

  1. Which two considerations are critical when selecting between REST and SOAP for an integration? (Choose two) A. REST is generally preferred for lightweight, mobile, and JSON-based integrations B. SOAP is generally preferred when WS-Security and formal contracts are required C. REST always provides higher throughput than SOAP D. SOAP is always simpler to implement than REST

Answer: A, B Rationale: REST is lighter and better suited to mobile/JSON scenarios; SOAP is preferred for enterprise-grade security and contract-first requirements. Neither is universally higher- throughput or simpler — the choice depends on the use case.

  1. An integration must synchronize 5,000 records hourly between Salesforce and an external CRM, with conflict resolution. Which combination is most appropriate? A. Batch Data Synchronization with Bulk API and middleware conflict resolution B. Synchronous Request and Reply for each record C. Data Virtualization D. Fire and Forget without conflict handling

Answer: A Rationale: Hourly volume of 5,000 records with conflict resolution is best handled by Batch Data Synchronization, using Bulk API for efficient transfer and middleware for conflict resolution logic.

  1. Which Salesforce API is best suited for building a custom UI that requires efficient, field-level data retrieval with a single round trip? A. SOAP API B. GraphQL API

C. Bulk API 2. D. Streaming API

Answer: B Rationale: GraphQL API allows clients to specify the exact fields needed in a typed query, reducing over-fetching and round trips — ideal for custom UIs.

  1. A legacy system can only consume flat files via SFTP. Which integration mechanism should the architect recommend? A. Platform Events B. Middleware with file-based integration and scheduled batch jobs C. Salesforce Connect D. Outbound Messaging

Answer: B Rationale: Middleware with file-based integration and scheduled batch jobs accommodates the legacy system's SFTP constraint while integrating with Salesforce via APIs.

  1. Which pattern should be used when an external system needs to be notified of Salesforce record changes but cannot expose an API endpoint? A. Remote Call-In B. Outbound Messaging or Platform Events with a middleware subscriber C. Data Virtualization D. Request and Reply

Answer: B Rationale: Outbound Messaging or Platform Events push notifications to subscribers, and middleware can receive them on behalf of a system that cannot expose an endpoint.

Additional Middleware and Security Questions

  1. When should an architect recommend skipping middleware and using point-to-point integration? A. When there are only two systems, the integration is simple, and long-term scalability is not a concern B. Always — middleware is unnecessary C. Never — middleware is always required D. When the integration involves more than five systems

Answer: A

Answer: B Rationale: A Connected App enables external applications to authenticate to Salesforce via OAuth and access APIs. It defines the authentication protocols, scopes, and callback URLs.

  1. Which integration pattern is most appropriate for an external system that needs to read Salesforce data on demand, but the data volume is too large to replicate? A. Batch Data Synchronization B. Data Virtualization via Salesforce Connect C. Fire and Forget D. Outbound Messaging

Answer: B Rationale: Data Virtualization via Salesforce Connect surfaces external data in real time without replication, which is ideal for large datasets that cannot be fully replicated.

  1. Which Salesforce feature provides declarative, point-and-click integration with external systems using prebuilt connectors? A. Apex triggers B. Salesforce Connect C. External Services D. Batch Apex

Answer: C Rationale: External Services allows declarative registration of external APIs (using OpenAPI specifications) so that Flows and Apex can invoke them without custom callout code.

  1. What is the primary benefit of using Pub/Sub API over Streaming API (CometD) for external event subscribers? A. Pub/Sub API uses gRPC for higher throughput and native replay support B. Pub/Sub API is older and more established C. Pub/Sub API does not require authentication D. Pub/Sub API only works within Salesforce

Answer: A Rationale: Pub/Sub API uses gRPC and HTTP/2, providing higher throughput, lower latency, and native replay support compared with the legacy CometD-based Streaming API.

  1. Which consideration is most important when designing an integration that must handle Salesforce API limits gracefully? A. Implementing retry logic with exponential backoff and idempotency keys B. Disabling API limits for the integration user C. Using only synchronous calls D. Increasing the number of API calls per transaction

Answer: A Rationale: Retry with exponential backoff and idempotency keys ensures transient limit errors are handled gracefully without creating duplicates. API limits cannot be disabled.

  1. Which pattern is best suited for an integration that must update a Salesforce UI in near real time when external data changes? A. Batch Data Synchronization B. UI Update Based on Data Changes using Platform Events or CDC C. Data Virtualization D. Remote Process Invocation — Fire and Forget

Answer: B Rationale: UI Update Based on Data Changes uses event-driven mechanisms (Platform Events, CDC, or Streaming API) to push updates to the UI when underlying data changes.

Additional Scenario-Based Questions

  1. A company has a Salesforce org that must integrate with 12 external systems. The integrations involve complex transformations, routing, and error handling. What architecture should the architect recommend? A. Point-to-point integrations between Salesforce and each system B. Middleware (ESB) as a central integration layer C. Direct database connections D. Batch files exchanged via FTP

Answer: B Rationale: With 12 systems requiring complex transformations, routing, and error handling, a central middleware/ESB layer reduces complexity, centralizes governance, and improves maintainability compared with 12 point-to-point connections.

  1. An architect is evaluating whether to use Platform Events or CDC for an integration. The requirement is to notify an external system whenever an Account's Rating field changes. Which solution is most appropriate? A. Platform Events published by a trigger B. Change Data Capture C. Outbound Messaging D. Batch Apex

Answer: B Rationale: CDC automatically publishes change events for standard and custom objects without custom code, making it the simplest solution for field-change notifications to an external system.