Last updated: August 2026
AB-400 — Power Platform Developer Associate
Test your knowledge with official exam-style questions
Questions and options are shuffled each attempt
Email me this practice set
Get a link sent to your inbox so you can pick this back up anytime.
▶Microsoft Certified: Power Platform Developer Associate — Practice Set 1: All Questions & Explanations
Full question text, answer options, and explanations for this practice set — a spoiler-free alternative is the interactive quiz above for scored, shuffled practice.
1. A sales operations lead asks that the Close Reason field on an opportunity form becomes required whenever Status is set to Lost, and that a helpful message appears next to the field. The team has no developer capacity this sprint. Which approach best meets the requirement?
- A. Write a synchronous plug-in registered on the PreOperation stage of the Update message
- B. Configure a business rule on the table that sets the field to business required and shows an error message(correct)
- C. Build a PCF code component that replaces the Close Reason field
- D. Register an OnChange JavaScript web resource that calls Xrm.Navigation.openErrorDialog
Explanation: A business rule is out-of-the-box functionality that can conditionally make a column business required and show messages without any code, which is the first thing to check before choosing custom code. Why the other options are wrong. A: A plug-in would work but is custom code that adds build, deployment, and maintenance cost for a requirement the platform already covers. C: A PCF component is intended for custom rendering, not for conditional requirement rules, and is far more effort than needed. D: A web resource script is custom client code that must be maintained and does not need to be written for this simple rule.
2. A finance team requires that an invoice record can never be saved when its total exceeds the customer's approved credit limit. Invoices are created by a model-driven app, by Power Automate flows, by nightly data imports, and by an external system calling the Dataverse Web API. Where should the validation logic be implemented?
- A. In a synchronous Dataverse plug-in registered on the Create and Update messages(correct)
- B. In a canvas app formula that runs before Patch is called
- C. In a JavaScript OnSave handler on the invoice form
- D. In a business rule scoped to the invoice form only
Explanation: Only server-side logic runs for every channel that writes to Dataverse. A synchronous plug-in on Create and Update (typically PreOperation) can throw an InvalidPluginExecutionException to block the save regardless of how the request arrived. Why the other options are wrong. B: A canvas app formula protects only that one app and is bypassed by every other writer. C: Client scripts run only inside the form, so flows, imports, and API calls bypass the check. D: A business rule scoped to a form runs only in that form; only table-scoped rules run on the server, and they cannot perform this cross-table comparison.
3. An industrial company streams roughly 40 million sensor readings per day into Dataverse. Readings have a flexible JSON payload, must scale horizontally, and should expire automatically after 30 days. Which table type fits best?
- A. Virtual table backed by an OData provider
- B. Standard table plus a nightly bulk delete job
- C. Elastic table(correct)
- D. Standard table with a rollup column
Explanation: Elastic tables are built for very high volume, horizontally scalable workloads with flexible schema (JSON columns) and support automatic time-to-live expiry of rows. Why the other options are wrong. A: A virtual table only exposes external data; it would not store or expire the readings in Dataverse. B: A standard table with bulk delete would still struggle with ingestion scale and leaves cleanup to a scheduled job rather than built-in expiry. D: Standard tables are relational and are not designed for this ingestion volume or flexible schema.
4. A solution contains a cloud flow that calls an internal API. The base URL differs between the development, test, and production environments, and the team wants to deploy the same solution package everywhere without editing the flow after import. What should the developer use?
- A. A hard-coded URL in the HTTP action with a different flow version per environment
- B. An environment variable of type Text whose current value is set in each environment(correct)
- C. A global variable in a Compose action
- D. A connection reference for the API
Explanation: Environment variables separate configuration from the solution. The definition travels in the solution, and each target environment supplies its own current value, so no flow edits are required after import. Why the other options are wrong. A: Maintaining a different flow version per environment defeats the goal of one deployable package. C: A Compose action is scoped to a single flow run and cannot be configured per environment. D: A connection reference abstracts a connection, not a configuration value such as a URL.
5. After importing version 2.0 of a managed solution into the test environment, a tester reports that the updated Account form layout is not visible. A colleague had edited the same form directly in test last month. What is the most likely cause and the correct fix?
- A. The form is cached; clear the browser cache of every tester
- B. A newer managed layer from another publisher blocks it; delete the publisher
- C. An unmanaged customization in the Active layer overrides the managed layer; remove the active customization(correct)
- D. The managed solution failed silently; re-export it as unmanaged
Explanation: Unmanaged customizations are stored in the top Active layer and take precedence over managed layers. Viewing the component's solution layers and using Remove active customization lets the managed definition show through. Why the other options are wrong. A: Browser caching rarely persists for a month and would not explain a layering conflict. B: Deleting a publisher is destructive and unrelated; the symptom points to the unmanaged top layer, not a publisher problem. D: An import failure would surface an error; re-exporting as unmanaged would also make the problem worse by flattening layering.
6. A developer registers a JavaScript function as the OnChange handler for the Industry column in the form designer. The function must read other form values and show a notification. How should the handler be configured so it can reach the form context?
- A. Call Xrm.Page.getAttribute inside the function
- B. Store the formContext in a global variable when the page loads
- C. Select Pass execution context as first parameter and call executionContext.getFormContext()(correct)
- D. Register the handler only through the web resource HTML file
Explanation: Selecting Pass execution context as first parameter supplies an executionContext argument. Calling getFormContext() on it returns the form context in a supported way. Why the other options are wrong. A: Xrm.Page is deprecated and should not be used in new code. B: A global variable works fragilely and breaks with multiple forms or quick-create contexts. D: An HTML web resource is not the place to register form event handlers.
7. On the Account form, a script must retrieve the first five active contacts of the current account and display their names. Which approach is the supported, recommended way from client script?
- A. Call Xrm.WebApi.retrieveMultipleRecords with $select, a $filter on the parent account and statecode, and $top=5(correct)
- B. Open the contact view with Xrm.Navigation.openForm
- C. Use Xrm.Page.data.retrieve to read the contacts
- D. Issue a synchronous XMLHttpRequest to the Web API endpoint with a hard-coded bearer token
Explanation: Xrm.WebApi wraps the Dataverse Web API for form scripts, handles authentication for the signed-in user, and supports OData options such as $select, $filter, and $top. Why the other options are wrong. B: openForm navigates to a form; it does not return data to your script. C: Xrm.Page.data.retrieve does not exist as a supported Web API call. D: Hard-coded tokens and synchronous requests are insecure and block the UI.
8. A model-driven app needs a new command bar button that runs custom JavaScript on the main form and uses the form's data. Which tool and setting configure this?
- A. Create a business rule with a Run Script action
- B. Use the command designer, set the action to JavaScript, select the library and function, and pass PrimaryControl as a parameter(correct)
- C. Add a canvas app component library to the form
- D. Edit the sitemap and add a subarea
Explanation: The modern command designer lets you add a button and set its action to Power Fx or JavaScript. Passing PrimaryControl gives the function access to the form context. Why the other options are wrong. A: Business rules cannot run JavaScript. C: A component library supplies canvas components and is not how command bar commands are defined. D: The sitemap controls navigation, not command bar buttons.
9. Before a form script deletes related notes, the developer wants to ask the user to confirm, and continue only if the user clicks OK. Which Client API call fits best?
- A. Xrm.Navigation.openErrorDialog
- B. formContext.ui.setFormNotification
- C. Xrm.Navigation.openAlertDialog
- D. Xrm.Navigation.openConfirmDialog(correct)
Explanation: openConfirmDialog displays a dialog with confirm and cancel buttons and returns a promise whose result indicates which button was selected. Why the other options are wrong. A: openErrorDialog is meant for displaying an error and not for a confirm or cancel decision. B: setFormNotification shows a banner but does not collect a decision. C: openAlertDialog has a single OK button and cannot return a choice.
10. A PCF code component displays a bound numeric field. When the value changes on the form, the component must redraw its UI with the new value. Which lifecycle method is called by the framework to do this?
- A. destroy
- B. getOutputs
- C. updateView(correct)
- D. init
Explanation: updateView is called when any property bag value changes, such as a bound field value, so the component can refresh its rendering. Why the other options are wrong. A: destroy runs when the component is removed to release resources. B: getOutputs returns values to the framework after notifyOutputChanged; it does not render input changes. D: init runs once when the component is first loaded to set up state.
11. A developer needs to declare the bound properties, the TypeScript bundle, and a CSS file for a new PCF code component. Which file defines these?
- A. tsconfig.json
- B. ControlManifest.Input.xml(correct)
- C. package.json
- D. pcfconfig.json
Explanation: ControlManifest.Input.xml declares the control, its properties, resources (code, CSS, resx), and feature usage such as Device or WebAPI. Why the other options are wrong. A: tsconfig.json configures the TypeScript compiler. C: package.json lists npm dependencies and scripts, not the control definition. D: pcfconfig.json is a tooling config file for the build output path and does not describe the control contract.
12. Which statement best describes a Power Apps code app?
- A. A web app written with code (such as TypeScript) that runs in the Power Apps player and uses Power Platform connections and data sources(correct)
- B. A server-side assembly registered with the Plug-in Registration Tool
- C. A Power Pages site template
- D. A reusable canvas component distributed in a component library
Explanation: Code apps let developers build custom front ends in code while running them on Power Platform, where they use connections, Dataverse tables, flows, and agents under platform governance. Why the other options are wrong. B: Server-side assemblies registered with the tool are plug-ins. C: Power Pages site templates describe websites, not code apps. D: Component libraries hold reusable canvas components, not full code-first apps.
13. A developer wants to set a column value on the record being created, inside the database transaction, without issuing a second update call. Which plug-in stage is the best fit?
- A. PreValidation (stage 10)
- B. PostOperation (stage 40)
- C. PreOperation (stage 20)(correct)
- D. Asynchronous PostOperation
Explanation: PreOperation runs inside the transaction before the core operation, so changes made to the Target entity are saved with the record without an extra call. Why the other options are wrong. A: PreValidation runs before the transaction and is mainly for early validation or cancel. B: In PostOperation the record is already written, so changing it needs another update. D: Asynchronous plug-ins run later outside the user's transaction and cannot change the data being saved.
14. Inside a plug-in registered on the Create message, how does the code access the record that is being created?
- A. Read context.OutputParameters["Target"] on every stage
- B. Read context.InputParameters["Target"] and cast it to Entity(correct)
- C. Read the PrimaryEntityId from the registration tool
- D. Call RetrieveMultiple with no filter and take the latest row
Explanation: For Create, the InputParameters collection contains Target as an Entity holding the columns submitted by the caller. Why the other options are wrong. A: OutputParameters holds results after the operation and does not carry the incoming Target. C: The Plug-in Registration Tool is for registration; it does not provide runtime data to your code. D: An unfiltered query is inefficient and may return another record.
15. An Update plug-in must compare the previous value of the Credit Limit column with the new value. The Target entity contains only changed columns. How can the plug-in read the earlier value?
- A. Register a post-image and read the old value from it
- B. Increase the plug-in depth
- C. Read the audit table inside the plug-in
- D. Register a pre-image on the step that includes the Credit Limit column(correct)
Explanation: A pre-image is a snapshot of the record before the operation. Registering it with the needed columns exposes the old values through PreEntityImages. Why the other options are wrong. A: A post-image contains values after the operation, so it holds the new value. B: Depth is a loop-protection counter and holds no data. C: Querying audit is slow, not guaranteed to be enabled, and unnecessary when a pre-image exists.
16. A team wants a reusable, parameterized server operation that flows, canvas apps, and external clients can call through the Web API by name, with strongly typed request and response parameters. Which approach is recommended?
- A. Add a calculated column
- B. Create a custom API and implement its logic in a plug-in(correct)
- C. Register a webhook on the Update message
- D. Create a classic workflow with an on-demand trigger
Explanation: A custom API defines a new message with typed request parameters and response properties, and a plug-in provides the logic. It is callable through the Web API and the Organization service. Why the other options are wrong. A: A calculated column computes a value on a row and is not a callable operation. C: A webhook publishes an event to an HTTP endpoint and does not define a callable message. D: Classic workflows are not the recommended way to expose new messages.
17. A client application creates an account by sending a POST to the accounts entity set. What does Dataverse return on success by default?
- A. HTTP 200 with the full created record
- B. HTTP 201 with a Location header only for batch requests
- C. HTTP 202 Accepted with a job ID
- D. HTTP 204 No Content with an OData-EntityId header containing the new record URL(correct)
Explanation: By default a create returns 204 No Content and an OData-EntityId header with the URI of the new row. Adding Prefer: return=representation returns the record body instead. Why the other options are wrong. A: A 200 with a body requires the return=representation preference. B: Create via POST does not depend on batching to return its entity reference header. C: 202 is not the standard create response for this call.
18. A scheduled back-end service with no signed-in user must read and write Dataverse data. Which setup is correct?
- A. Embed a personal access token in the service
- B. Use the resource owner password credentials flow with a shared admin account
- C. Register an app in Microsoft Entra ID, create an application user in the Dataverse environment with a security role, and use the client credentials flow(correct)
- D. Use implicit grant from a browser
Explanation: Unattended services use a Microsoft Entra app registration with the client credentials flow, and Dataverse must have a matching application user with a security role to authorize the calls. Why the other options are wrong. A: Dataverse authentication is based on Microsoft Entra tokens, not personal access tokens. B: Shared admin credentials are insecure, break with MFA, and are discouraged. D: Implicit grant is a browser-based interactive flow and is unsuitable for a back-end service.
19. A company needs a job that cleans up stale Dataverse records every night at 02:00. Which Azure Functions trigger is the natural choice?
- A. Blob trigger
- B. Timer trigger(correct)
- C. Event Grid trigger from Dataverse tables
- D. HTTP trigger called manually
Explanation: A timer trigger runs a function on a CRON schedule, which fits a recurring nightly cleanup. Why the other options are wrong. A: A Blob trigger reacts to storage changes, not to a time schedule. C: Dataverse does not emit table changes to Event Grid by default for this purpose, and the need is time-based. D: A manually called HTTP trigger is not scheduled.
20. In a cloud flow, a Scope action named Try wraps several steps. A second Scope named Catch must run only when something inside Try fails or times out. How should Catch be configured?
- A. Set Catch to run after Try with has failed and has timed out selected(correct)
- B. Put both scopes in an Apply to each loop
- C. Enable a retry policy on Catch
- D. Place Catch in a Condition that checks the status code
Explanation: Configure run after on the Catch scope for the Try scope with has failed and has timed out checked, which creates the try-catch pattern. Why the other options are wrong. B: Looping both scopes does not create a failure path. C: Retry policies re-attempt actions and do not create alternate error branches. D: A Condition cannot see the failure of an earlier scope unless run after lets Catch run at all.
21. A flow starts when a Dataverse row is modified, but it only needs to run when the Status Reason column changes to Approved. How can the developer reduce unnecessary runs?
- A. Set the trigger's Select columns to statuscode and add a Filter rows expression for the approved value(correct)
- B. Switch the trigger to run on a schedule
- C. Use a Condition as the first action to stop the flow when not Approved
- D. Increase the retry count
Explanation: Select columns limits the trigger to changes in specific columns and Filter rows evaluates an OData filter on the server, so non-matching changes do not start a run at all. Why the other options are wrong. B: A schedule would delay processing and does not filter events. C: A first-step Condition still starts (and counts) a run for every change. D: Retry policy controls re-attempts after failures, not which events start the flow.
22. A developer builds a custom agent in Microsoft Foundry that needs to look up and update Dataverse rows through a standard tool interface instead of hand-written REST wrappers. What is the best integration approach?
- A. Call plug-in assemblies directly from the agent
- B. Export Dataverse tables to CSV for the agent to read
- C. Hard-code the table schema into the system prompt
- D. Connect the agent to a Power Platform MCP server so Dataverse capabilities are exposed as tools over the Model Context Protocol(correct)
Explanation: Model Context Protocol servers expose capabilities as discoverable tools. Integrating a Power Platform MCP server lets the agent use Dataverse data through a standard, governed interface. Why the other options are wrong. A: Plug-in assemblies run inside the Dataverse pipeline and are not directly callable by an external agent. B: CSV exports are stale and cannot update rows. C: A schema in the prompt gives no ability to read or update live data.
23. When an order is created in Dataverse, three independent downstream systems must each receive the event reliably and asynchronously. Which service endpoint is the best fit?
- A. An Azure Service Bus topic with one subscription per system(correct)
- B. A single webhook to a shared HTTP endpoint
- C. An Azure Service Bus queue read by all three systems
- D. A custom connector
Explanation: A Service Bus topic delivers a copy of each message to every subscription, giving durable, asynchronous fan-out to multiple consumers. Why the other options are wrong. B: A single webhook is a synchronous-style point-to-point call and does not provide durable fan-out. C: With a queue, competing consumers each get different messages instead of all three getting every message. D: A custom connector wraps an API for use in apps and flows; it is not a Dataverse event publishing endpoint.
24. An integration loads customer data from an ERP system, where each customer has a unique ERP number. The job must create the account if it is missing and update it if it exists, without first querying for the Dataverse GUID. What should the developer use?
- A. Use Delete then Create
- B. Use a duplicate detection rule
- C. Define an alternate key on the ERP number column and send UpsertRequest with the key(correct)
- D. Query by name, then call Create or Update
Explanation: An alternate key lets the record be identified by the ERP number. UpsertRequest then creates or updates in one call and reports whether the row was created. Why the other options are wrong. A: Delete then Create loses relationships and history. B: Duplicate detection warns users about similar rows; it does not perform upserts. D: Query-then-write requires extra round trips and creates race conditions.
25. A developer is creating a custom connector for a REST API protected by Microsoft Entra ID. Which authentication type should be selected on the connector's Security tab?
- A. OAuth 2.0 with the Microsoft Entra ID identity provider(correct)
- B. Windows authentication through the cloud only
- C. Basic authentication
- D. No authentication
Explanation: OAuth 2.0 with the Microsoft Entra ID identity provider matches an API protected by Entra ID. After saving, the generated redirect URL must be added to the app registration. Why the other options are wrong. B: Windows authentication targets on-premises APIs via a gateway and is not the Entra OAuth option. C: Basic authentication sends a username and password the Entra-protected API does not accept. D: No authentication would leave calls rejected by the protected API.