AP-221 Sample Questions & Answers
Digs into Flow Builder's capabilities for building flows, orchestrations and approval steps, the single biggest weight, plus picking the right automation tool, low-code integration options, testing automations, and ongoing monitoring.
Launch the full AP-221 simulator →Showing 10 of 20 free samples.
- Question 1Intermediate
Tools and Best Practices · Design Best Practices
An administrator is building a record-triggered Flow that updates child records when a parent record is updated. To adhere to best practices, the administrator needs to get all related child records, loop through them, and then update them. What is the correct pattern to perform this bulk update without hitting governor limits?
Show answer & explanation
Correct answer: B
This is the standard bulkification pattern in Flow. Placing a DML element (like 'Update Records') inside a loop will execute it for every item, quickly exceeding the governor limit of 150 DML statements per transaction. The correct approach is to query the records, loop through them to make changes in memory using Assignment elements on a collection variable, and then perform a single 'Update Records' operation on the entire collection after the loop concludes.
flowchart TD Start --> Get_Children[Get All Child Records] Get_Children --> Loop_Start{Loop Through Children} Loop_Start --> Assign[Assignment: Modify record & Add to Collection] Assign --> Loop_Start Loop_Start -->|After Last| Update_Collection[Update Entire Collection] Update_Collection --> End - Question 2Beginner
Integration · External Service Integration
A consultant needs to call an external REST API from a Flow to retrieve shipping cost estimates. The API is defined by an OpenAPI 2.0 schema. The consultant has successfully registered the API as an External Service. What is the next step to make this API call within the Flow?
Show answer & explanation
Correct answer: B
Once an External Service is registered, Salesforce automatically generates corresponding invocable actions. These actions become available in Flow Builder under the 'Action' element. The consultant would add an 'Action' element, filter by the 'External Service' category, and then select the specific action that corresponds to the desired API endpoint.
- Question 3Intermediate
Tools and Best Practices · Flow Types and Triggers
True or False: A single before-save record-triggered Flow can perform updates on records that are related to the triggering record.
Show answer & explanation
Correct answer: B
Before-save Flows are highly efficient because they operate on the record data before it is saved to the database. A key limitation of this efficiency is that they can only update fields on the triggering record itself. To update related records (parent or child), an after-save Flow is required.
- Question 4Beginner
Automation Basics · Choosing the Right Automation Tool
A company has a complex approval process for expense reports that requires approval from the submitter's direct manager. If the amount is over $1,000, it also requires approval from the department head. If the amount is over $10,000, it must finally be approved by the CFO. Which automation tool is designed specifically for this type of multi-step, conditional, hierarchical approval routing?
Show answer & explanation
Correct answer: C
While Flow and Orchestration can handle approvals, the native Approval Process tool is purpose-built for this exact use case. It allows for defining entry criteria, multiple approval steps with their own criteria, and dynamic assignment of approvers based on hierarchies (like a submitter's manager) or specific users/queues. This makes it the most direct and efficient tool for the described scenario.
- Question 5Beginner
Testing, Distribution, and Monitoring · Flow Testing Strategies
During the testing of a new screen flow, an administrator uses the 'Debug' feature in Flow Builder. The admin notices that when the flow executes a 'Create Records' element, no actual record is created in the Salesforce database. Why is this happening?
Show answer & explanation
Correct answer: C
A key feature of the Flow Debug tool is that it runs transactions in rollback mode. This means any database changes (create, update, delete) made during the debug run are not committed to the database. This allows for safe testing without creating unwanted test data. The debug log will show that the DML operation was requested, but it is rolled back at the end of the debug run.
- Question 6Intermediate
Automation Basics · Flow Types and Triggers
A consultant is building a before-save record-triggered flow on the Case object. The goal is to set a default Priority of 'Medium' ONLY when a new Case is created and the Priority field is left blank by the user. Which set of conditions should be configured in the Flow's start element?
Show answer & explanation
Correct answer: B
To optimize the flow to run only when absolutely necessary, the entry criteria should be as specific as possible. Setting the trigger to 'A record is created' correctly targets only new cases. Adding the condition 'Priority Is Null = True' ensures the flow only runs when the field is blank, preventing it from executing unnecessarily on new cases where a priority is already set.
- Question 7Advanced
Integration · Low-Code Customization
A business requires a process where a custom object record, 'Project,' needs to be reviewed. However, the reviewer is not a standard Salesforce user and should only interact with the approval via email. The requirement is to send an email with 'Approve' and 'Reject' links. When the reviewer clicks a link, the Project status should be updated accordingly in Salesforce without requiring them to log in. Which integration capability is best suited for this requirement?
Show answer & explanation
Correct answer: C
Standard approval emails require the user to log in to Salesforce. To allow an external, unauthenticated user to take action, a public endpoint is needed. The best practice is to create a public Apex REST service that accepts the record ID and the decision (approve/reject) as parameters. A Flow can generate the email with unique URLs pointing to this service, which then handles the record update securely.
- Question 8Intermediate
Automation Basics · Choosing the Right Automation Tool
Case Study: Universal Containers (UC) is implementing a complex discount approval system for its sales team. The system needs to manage multi-level approvals and provide a clear audit trail.
Company Background: UC is a global logistics company with a large sales organization structured in regional teams, each with a Sales Manager and a Regional Director. The company uses the standard Opportunity and Quote objects.
Current Situation: The current discount process is manual, handled via email, and lacks visibility. This leads to inconsistent discounting and slow deal cycles. The VP of Sales wants an automated, enforceable, and auditable process within Salesforce.
Requirements:
- If a discount on a Quote is between 15% and 25%, it must be approved by the Quote owner's direct Sales Manager.
- If the discount exceeds 25%, it must first be approved by the Sales Manager, and then by the Regional Director.
- Sales reps must be able to recall an approval request if they need to make changes.
- All approval actions (submission, approval, rejection, recall) must be tracked on the Quote record.
Which automation solution should the consultant recommend to meet all of UC's requirements?
Show answer & explanation
Correct answer: B
The standard Approval Process is perfectly suited for this scenario. It natively supports multi-step approvals with distinct entry criteria for each step (e.g., Step 1 for >15%, Step 2 for >25%). It can dynamically assign approvers based on the user hierarchy (manager, manager's manager). Crucially, it provides built-in features for recalling requests and automatically maintains an 'Approval History' related list, fulfilling the audit trail requirement without extra configuration.
- Question 9BeginnerSelect 3
Testing, Distribution, and Monitoring · Declarative Distribution Options
Which three of the following are valid ways to distribute a Screen Flow to users? (Select THREE)
Show answer & explanation
Correct answers: A, B, D
- Question 10Intermediate
Automation Basics · Flow Types and Triggers
An administrator created a record-triggered flow on the Account object. The flow is designed to run only when an Account's 'Type' field is changed to 'Customer'. After activation, the administrator observes that the flow is running every time any field on a customer Account is updated, not just during the initial change. What is the most likely cause of this issue?
Show answer & explanation
Correct answer: A
When the trigger is 'created or updated' and the optimization is set to 'Actions and Related Records', the entry condition 'Type Equals Customer' will be true for every subsequent update to that record. To make the flow run only when the change occurs, the optimization must be set to 'Only when a record is updated to meet the condition requirements'.
Ready for the real thing?
The full AP-221 simulator has every exam-style question, timed mode, and instant scoring.