AP-221 Process Automation Accredited Professional Practice Questions
Prepare for AP-221 with more than an answer.
- Exam fee
- $150 USD
- Level
- Accredited Professional
- Valid for
- To be announced (maintenance details will be shared in 2025)
Domains covered on the exam 4
- Automation Basics27%
- Tools and Best Practices32%
- Testing, Distribution, and Monitoring18%
- Integration23%
- 1
A flow needs to display a dynamic list of choices to a user based on the active products in the org. The list of products changes frequently. Which Flow resource is the most appropriate and maintainable solution for generating this list of choices?
Show answer details
Correct answer: C
A 'Record Choice Set' is specifically designed for this purpose. It dynamically queries an object (Product2) based on specified filter criteria (e.g., IsActive = True) at runtime. This ensures the list of choices presented to the user is always up-to-date without any manual intervention, making it the most maintainable and scalable solution.
- 2
True or False: The 'Migrate to Flow' tool can successfully convert Process Builder processes that contain 'Scheduled Actions'.
Show answer details
Correct answer: A
The 'Migrate to Flow' tool is capable of converting Process Builder's Scheduled Actions. It translates them into 'Scheduled Paths' within the resulting record-triggered Flow. This allows the time-dependent automation logic to be preserved during the migration from the legacy tool to Flow Builder.
- 3
A consultant needs to build an automation that deletes a specific, custom log record 30 days after it has been created. The automation must run daily to check for any records that meet this criterion. Which type of Flow is the most efficient solution for this requirement?
Show answer details
Correct answer: C
A Scheduled-Trigger Flow is designed for batch processing on a recurring schedule (e.g., daily, weekly). The consultant can configure it to run once per day, query for all log records where the CreatedDate is 30 days in the past, and then use a 'Delete Records' element to remove them in a single, efficient transaction. A scheduled path on a record-triggered flow would create many pending interviews and is less efficient for this batch-cleanup use case.
- 4
A Flow running in a production environment fails due to an unhandled exception. The administrator has enabled Process Automation Settings to send error emails. Who will receive the error notification email by default?
Show answer details
Correct answer: C
By default, Salesforce sends Flow and Process error emails to the administrator who last modified the corresponding flow or process. This behavior can be overridden in the Process Automation Settings, where administrators can specify Apex Exception Email recipients to receive these notifications instead.
- 5
A global logistics company uses a Salesforce org for order management and an external, on-premise system for warehouse inventory management. When an Order's status in Salesforce is updated to 'Ready for Fulfillment', the warehouse system needs to be notified immediately to begin the packing process. The connection can sometimes be unreliable, so a mechanism is needed to ensure the notification is eventually delivered. The warehouse system has a middleware listener that can subscribe to Salesforce Platform Events.
The business requires a solution that decouples the Salesforce Order update from the warehouse notification to prevent the user's save operation from failing if the warehouse system is down. The solution must be highly reliable and scalable.
Which design provides the most reliable and decoupled solution to notify the warehouse system?
sequenceDiagram participant User participant Salesforce participant EventBus as Salesforce Event Bus participant Middleware participant WarehouseSystem as Warehouse System User->>Salesforce: Update Order Status to 'Ready' Salesforce->>Salesforce: After-Save Flow Triggers Salesforce->>EventBus: Publishes 'Fulfillment Request' Event Salesforce-->>User: Save Successful Note over EventBus, Middleware: Asynchronous Subscription EventBus->>Middleware: Delivers Event Middleware->>WarehouseSystem: Process Fulfillment RequestShow answer details
Correct answer: B
This scenario is a classic use case for Platform Events. By having the after-save flow publish a Platform Event, the Salesforce transaction is completed quickly and is decoupled from the external system. If the warehouse system is down, the event is still published to the event bus. The external middleware, as a subscriber, can retrieve the event once it comes back online (within the 72-hour retention period). This provides the required reliability and decoupling. A direct REST callout would couple the systems and could cause the save to fail.
- 6
A financial services firm uses a record-triggered Flow on the Opportunity object to calculate complex commission structures. The Flow is configured to run after the record is saved. During periods of high volume, users report 'UNABLE_TO_LOCK_ROW' errors when multiple sales reps update opportunities for the same Account simultaneously. Which modification to the automation strategy is most effective at mitigating this record-locking contention?
Show answer details
Correct answer: C
Record locking contention occurs when multiple transactions try to update related records (like the parent Account) simultaneously. The best way to resolve this is to decouple the resource-intensive calculation from the initial save transaction. Publishing a Platform Event allows the initial transaction to commit quickly. A separate, asynchronous Platform Event-triggered Flow can then handle the commission calculation, which significantly reduces the duration of the record lock and prevents contention errors.
- 7
A healthcare provider is automating their patient intake process using a multi-screen Flow. One of the requirements is to allow the intake coordinator to upload a patient's insurance card (as a file) and associate it with the newly created Contact record. However, the Contact record does not exist until the Flow is finished. How should a consultant configure the Flow to handle the file upload and its association to the record?
Show answer details
Correct answer: B
The File Upload component requires the 'Related Record ID' to be set to automatically create the ContentDocumentLink that associates the file. Since the Contact record doesn't exist initially, the correct sequence is to: 1) Collect patient info. 2) Use a 'Create Records' element to create the Contact. 3) On a subsequent screen, use the File Upload component and pass the ID from the newly created Contact into its 'Related Record ID' attribute. This ensures the file is correctly linked upon upload.
- 8
A consultant is designing a Flow Orchestration for a complex employee onboarding process that involves IT, HR, and Facilities departments. The IT setup can happen in parallel with the Facilities setup, but both must be completed before HR can conduct the final orientation. Which combination of Orchestration components best models this process?
Show answer details
Correct answer: D
Flow Orchestration is designed for these scenarios. A Stage is a logical phase of the process. By placing the IT and Facilities Interactive Steps in the same initial Stage and running them in parallel, both departments can work simultaneously. The second Stage for HR will only begin once the first Stage (containing both parallel steps) is complete, correctly enforcing the business logic.
- 9
When migrating a legacy Workflow Rule to a record-triggered Flow using the 'Migrate to Flow' tool, which two outcomes should the administrator anticipate and validate post-migration? (Select TWO)
Show answer details
Correct answer: B, C
- 10
A retail company wants to use a screen flow to guide sales associates through a custom return process. This flow needs to be accessible from a button on the Account record page. After the flow completes, it should automatically navigate the user back to the Account record they started from. What is the most reliable, declarative way to achieve this navigation?
Show answer details
Correct answer: C
When a screen flow is launched from a Quick Action on a record page, the standard 'Finish' button behavior is to return the user to that record. This is the most straightforward and declarative method to achieve the desired navigation without needing custom components or manual links. The key is the context provided by launching from the record-specific action.
