A customer of Salesforce has used Platform Events to integrate their Salesforce instance with an external third-party artificial intelligence (AI) system. The AI system provides a prediction score for each lead that is received by Salesforce. Once the prediction score is received, the lead information is saved to Platform Events for other processes. The trigger on the Platform Events has failed ever since it was rolled out to production. Which type of monitoring should the integration consultant have considered to monitor this integration?
Correct Answer: A
Troubleshooting failures in Platform Event-triggered logic is challenging because these triggers execute under the "Automated Process" system user, making them invisible to standard user-level monitoring. To diagnose why a trigger is failing in production, an Integration Architect must set up debug logs specifically for that trigger or the automated process user. Debug logs provide a granular view into the execution execution path, including Apex errors, governor limit consumption, and specific DML failures. Without these logs, it is impossible to determine if the failure is due to a null pointer exception, a validation rule violation, or a record locking conflict.678 Option B is a design-time validation step; while important, it would not help mon9itor or troubleshoot a runtime failure in a deployed trigger. Option C focuses on high-level consumption limits; while reaching the "Created Per Hour" limit would prevent events from1011 being published, it would not explain why an existing trigger is failing once the event has already arrived in the bus. By proactively establishing debug logs for the integration's triggers, the consultant can pinpoint the exact line of code or system constraint causing the failure, ensuring a faster "Mean Time to Repair" (MTTR) for critical AI-driven business processes.
Integration-Architect Exam Question 47
Universal Containers (UC) is decommissioning its legacy CRM system and migrating data to Salesforce. The data migration team asked for a recommendation to optimize the performance of the data load. Which approach should be used to meet the requirement?
Correct Answer: C
For large-scale data migrations, the Bulk API is the primary architectural tool for high-performance loading. To maximize throughput and "optimize performance," the architect should recommend processing jobs in parallel mode. In parallel mode, Salesforce processes multiple batches of a job simultaneously, taking advantage of the multi-tenant platform's concurrent processing capabilities. This significantly reduces the total time required for a massive data migration compared to serial mode (Option B), which processes batches one by one. However, the architect must warn the team about potential lock contention. If multiple parallel batches attempt to update the same parent record or participate in complex sharing calculations at the same time, "Unable to lock row" errors may occur. To mitigate this while maintaining parallel speed, the data should be sorted by Parent ID to ensure that batches do not overlap on the same records. Option A is rarely necessary for standard migrations unless the volume exceeds extreme thresholds. Parallel Bulk API is the standard "best practice" for ensuring the migration completes within the allotted cutover window.
Integration-Architect Exam Question 48
Northern Trail Outfitters has had an increase in requests from other business units to integrate opportunity information with other systems from Salesforce. The developers have started writing asynchronous @future callouts directly into the target systems. The CIO is concerned about the viability of this approach and scaling for future growth. What should be done to mitigate the CIO's concerns?
Correct Answer: B
The CIO's concern regarding "viability" and "scaling" is rooted in the risks associated with tightly coupled, point-to-point integrations. Using @future methods for direct callouts creates a "spaghetti" architecture where Salesforce must manage the specific endpoints, authentication, and error logic for every external system. The architect should recommend implementing an Enterprise Service Bus (ESB). An ESB acts as a centralized middleware layer that provides mediation, routing, and orchestration. By moving the integration logic to an ESB, Salesforce only needs to send a single message to the bus. The ESB then takes responsibility for delivering that data to multiple business units and external systems. This decouples Salesforce from the downstream systems; if a target system changes its API or is replaced, only the ESB configuration needs to be updated, not the Salesforce Apex code. While External Services (Option A) provide a low-code way to call APIs, they still represent point-to-point connections and do not solve the broader orchestration and scaling challenges. ETL tools (Option C) are designed for bulk data movement and would not satisfy the need for the near real-time updates that the existing callout logic likely supports. An ESB provides the "quality of service" features-such as guaranteed delivery, retries, and protocol transformation-that are necessary for a growing enterprise to maintain a stable and scalable integration landscape.
Integration-Architect Exam Question 49
A business requires automating the check and updating of the phone number type classification (mobile vs. landline) for all incoming calls delivered to its phone sales agents. The following conditions exist: * At peak, the call center can receive up to 100,000 calls per day. * The phone number type classification is a service provided by an external service API. * Business is flexible with timing and frequency to check and update the records (throughout the night or every 6-12 hours is sufficient). A Remote-Call-In pattern and/or Batch Synchronization (Replication via ETL: System -> Salesforce) are determined to work with a middleware hosted on customer premise. In order to implement these patterns and mechanisms, which component should an integration architect recommend?
Correct Answer: A
In this scenario, the architecture involves a Remote-Call-In pattern or Batch Synchronization, where an external system (the middleware or ETL tool) initiates communication with Salesforce to update records. For any external system to securely access Salesforce APIs and perform these updates, it must be authenticated and authorized. The Connected App is the foundational framework that allows an external application to integrate with Salesforce using APIs and standard protocols, such as OAuth 2.0 and SAML. By configuring a Connected App, the architect can define which permissions (Scopes) the middleware has, such as the ability to access data via the REST or Bulk API. This is the correct choice because the middleware needs to "log in" to Salesforce to push the phone classification data back into the Account or Contact records. Option B, an API Gateway, is typically used to manage and secure requests going out of an organization to external services, or to provide a facade for on-premise APIs; it does not handle the inbound authentication into Salesforce itself. Option C, Remote Site Settings, is a configuration used solely to permit Salesforce to make outbound calls to a specific external URL (for example, if Salesforce were calling the phone classification service directly via Apex). Given that the business is flexible with timing (allowing for nightly or 12-hour syncs) and handles 100,000 calls, a Batch Synchronization pattern via an ETL tool is highly efficient. The ETL tool will authenticate against the Connected App using a secure OAuth flow (such as the JWT Bearer Flow for server-to-server integration), retrieve the new phone numbers, call the external classification API, and then bulk-update the Salesforce records. This setup ensures a secure, scalable, and manageable integration that respects Salesforce's security architecture while meeting the high-volume data requirements of the call center.
Integration-Architect Exam Question 50
When a user clicks "Check Preferences" as part of a Lightning flow, preferences from an externally hosted RESTful service are to be checked in real time. The service has OpenAPI 2.0 definitions. Which integration pattern and mechanism should be selected?
Correct Answer: B
This scenario describes a classic Request and Reply pattern where a user action in the UI requires an immediate, synchronous response from an external system to determine the next step in a business process (the Flow). The requirement specifies that an OpenAPI 2.0 (Swagger) definition is available. For an Integration Architect, this is a prime use case for External Services. External Services allow you to import an OpenAPI schema and automatically generate "Invocable Actions" that can be used directly in Flow Builder without writing a single line of Apex code. Why this is the best fit: * Low Code: It fulfills the requirement purely through declarative configuration, which reduces maintenance and development costs. * Real-Time: It performs a synchronous HTTP callout and waits for the Boolean/String values to be returned to the Flow variables. * Type Safety: Because it uses the OpenAPI definition, Salesforce understands the data types (Boolean /String) natively. Option A (Data Virtualization) is more suitable for viewing and searching large external datasets as if they were records; it is over-engineered for a simple "check status" function. Option C (Remote Call-In) is the inverse of the requirement; it refers to an external system calling into Salesforce. By using Enhanced External Services, the architect provides a scalable, declarative solution that perfectly aligns with modern Salesforce development best practices for real-time external system interaction.