DATA-ARCHITECT practice question 2 of 35

Universal Containers (UC) has built a custom application on Salesforce to help track shipments around the world. A majority of the shipping records…

Full set: 257 questions
Universal Containers (UC) has built a custom application on Salesforce to help track shipments around the world. A majority of the shipping records are stored on premise in an external data source. UC needs shipment details to be exposed to the custom application, and the data needs to be accessible in real time. The external data source is not OData enabled, and UC does not own a middleware tool. Which Salesforce Connect procedure should a data architect use to ensure UC's requirements are met?
Answer options
A: Write an Apex class that makes a REST callout to the external API.
B: Develop a process that calls an inviable web service method.
C: Migrate the data to Heroku and register Postgres as a data source.
D: Write a custom adapter with the Apex Connector Framework. Correct answer
Correct Answer:
D. Write a custom adapter with the Apex Connector Framework.
Explanation

Salesforce Connect allows access to external data in real-time. When a pre-built adapter (like OData) is not available and middleware is not an option, the Apex Connector Framework is the designated solution. It enables developers to write a custom adapter in Apex to teach Salesforce how to connect to and interpret data from any external source via its API. This directly addresses the need to connect to a non-OData source without middleware, exposing the data as external objects within the custom application.

Why Incorrect

A. A REST callout is a point-to-point integration and does not use the Salesforce Connect framework to expose data as external objects for seamless UI integration.
B. An invocable web service method is used to call external services from Salesforce automation (like Flow), not for federating data via Salesforce Connect.
C. Migrating data to Heroku is a data replication strategy, not the real-time data access from the existing on-premise source that the requirement specifies.

References

1. Salesforce Developer Documentation. (n.d.). Salesforce Connect Custom Adapters. In Apex Developer Guide. "If the Salesforce Connect adapters included with Salesforce don't suit your needs, you can use the Apex Connector Framework to develop your own custom adapter." (Introduction section).

2. Salesforce Developer Documentation. (n.d.). Create a Custom Adapter for Salesforce Connect. In Salesforce Connect Custom Adapter Development Guide. "Use the Apex Connector Framework to write a custom adapter when the OData 2.0, OData 4.0, and cross-org adapters aren't suitable for your needs." (Unit Introduction).

3. Salesforce Architects. (2022). Salesforce Connect. In Architect's Guide to Data Integration. "For other web services, you can build your own custom adapter using the Apex Connector Framework." (Section: Salesforce Connect Adapters).

Scroll to Top