Process Automation Accredited Professional Free Sample Questions

20 free sample questions213 in the full practice test

Try simulator

AP-221 Sample Questions

  1. Question 1

    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?

    Answer and explanation

    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.

  2. Question 2

    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?

    Answer and explanation

    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.

  3. Question 3

    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?

    Answer and explanation

    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.

  4. Question 4

    Multiple answers

    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)

    Answer and explanation

    Correct answers: B, C

  5. Question 5

    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?

    Answer and explanation

    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.

  6. Question 6

    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?

    Answer and 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

  7. Question 7

    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?

    Answer and 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.

  8. Question 8

    True or False: A single before-save record-triggered Flow can perform updates on records that are related to the triggering record.

    Answer and 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.

  9. Question 9

    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?

    Answer and 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.

  10. Question 10

    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?

    Answer and 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.

Register free to unlock 10 more sample questions

Lifetime One

Own this practice test forever.

$79.99
$75.99
one-time
  • Full access to 213 questions
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • Brainy AI Assistant
  • Lifetime updates

Two

Any 2 exams per month.

$20.00/exam
$39.99
/month
  • 2 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 1,000 Brainy AI Credits
  • Cancel anytime

Premium Twelve

Any 12 exams over 3 months.

$15.00/exam
$179.99
/3 months
  • 4 active exam slots
  • Study, Timed & Flashcard Modes
  • All past and future versions i
  • Detailed Explanations
  • Study Tracking & Past Attempts
  • 15,000 Brainy AI Credits
  • Dedicated support
  • Friend seat included — full access

Trusted by professionals at

NvidiaSupabaseGitHubOpenAITursoClerkClaude AIAmazon