# Design solution components — Practice reading

Exam: AB-400 — Power Platform Developer Associate
Knowledge domain: Build Microsoft Power Platform solutions (15–20%)
HTML: https://learningpathx.com/learning-path/AB-400/learn/521

This public learning practice includes correct answers and existing explanations. Reading does not save progress or create a test.

## Question 1

Type: single\_choice
Knowledge point: Design Power Apps reusable components including generative pages, code components (PCF), and client scripting

A developer is designing a reusable PCF text editor for model-driven forms on different Dataverse tables. Makers must map Value to the single-line text column that users edit and configure Hint as display-only text. The draft manifest declares both properties as SingleLine.Text with usage="input". Rendering incoming host values already works. User edits must be returned to the hosting form through the component interface. Which design should the developer use?

### Options

**A**

Keep Value and Hint as input properties; after edits, call notifyOutputChanged and return the edited Value from getOutputs.

**B**

Make Value bound and keep Hint as input; after edits, call notifyOutputChanged and return the edited Value from getOutputs.

**C**

Make Value bound and keep Hint as input; after edits, call notifyOutputChanged and return the edited Value from updateView.

**D**

Make Value bound and keep Hint as input; write edits into context.parameters.Value.raw so the host reads them during its next updateView call.

Correct answer: B

### Explanation

Value represents a column the component can change, so it needs bound usage; Hint is read-only configuration and remains input. [Property element](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/manifest-schema-reference/property). After an edit, notifyOutputChanged tells the framework to retrieve the new value through getOutputs, using the manifest property name. Keeping Value as input does not establish the editable-column contract. [Code components](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/custom-controls-overview), [getOutputs](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/reference/control/getoutputs).

## Question 2

Type: single\_choice
Knowledge point: Design Power Apps reusable components including generative pages, code components (PCF), and client scripting

A developer is creating one synchronous OnChange handler for new\_reference, which exists on two model-driven main forms. The same function is registered directly in the form event designer on one form and with addOnChange on the other. It must validate the column on whichever form raised the event. Which handler design and form-designer setting should the developer use?

### Options

**A**

Enable Pass execution context as first parameter; accept executionContext, obtain formContext on the first invocation, and cache it for later invocations.

**B**

Leave Pass execution context as first parameter unchecked; accept executionContext and obtain formContext with getFormContext on every invocation.

**C**

Enable Pass execution context as first parameter; accept executionContext and obtain formContext with getFormContext on every invocation.

**D**

Enable Pass execution context as first parameter; accept formContext as the first argument and call its attribute methods directly.

Correct answer: C

### Explanation

The handler must derive its formContext from the executionContext supplied for each event. Designer registration requires enabling the context parameter, while code registration supplies executionContext automatically. Naming the first argument formContext does not change the object passed to it. Caching a previous formContext also fails to guarantee the context of a later event: context behavior is guaranteed only during its event. [Client API execution context](https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/clientapi-execution-context).

## Question 3

Type: single\_choice
Knowledge point: Design Power Apps reusable components including generative pages, code components (PCF), and client scripting

A developer is replacing a PCF repair estimator with an in-browser generative page in a model-driven test app. The United States environment has generative-page custom API Preview support available. The Device table and global EvaluateRepair custom API are prepared. The API accepts DeviceId (GUID) and DamageNotes (text), returns EstimatedCost (decimal) and Covered (Boolean), and does not update Device rows. Device rows contain saved EstimatedCost and Covered columns. The API's implementing plug-in has no Device Update step. When the user selects Calculate, the page must estimate the selected device's repair using the API and display that estimate. Which page interface design should the developer use?

### Options

**A**

Add Device and EvaluateRepair; on Calculate, pass the selected DeviceId and DamageNotes, then refresh Device and display its saved EstimatedCost and Covered columns.

**B**

Add Device and EvaluateRepair; on Calculate, pass the selected DeviceId and DamageNotes, then display EstimatedCost and Covered from the API response.

**C**

Add Device; on Calculate, save DamageNotes to the selected row, rely on the API's implementing plug-in to calculate the estimate, then refresh the saved estimate columns.

**D**

Add Device and EvaluateRepair; on Calculate, pass the selected DeviceId and DamageNotes, then publish the returned fields through PCF getOutputs and notifyOutputChanged and display the bound values.

Correct answer: B

### Explanation

The page needs a named operation call with an explicit trigger, inputs, and response display. Select the prepared custom API and describe that contract to the page generator. Refreshing Device cannot retrieve this estimate because the API leaves the saved columns unchanged, and a row update cannot trigger the unregistered Update step. This custom API route is Preview. [Generative pages](https://learn.microsoft.com/en-us/power-apps/maker/model-driven-apps/generative-pages). PCF output notifications belong to the component lifecycle; they do not replace the page's consumption of the API response. [Code components](https://learn.microsoft.com/en-us/power-apps/developer/component-framework/custom-controls-overview).

## Question 4

Type: single\_choice
Knowledge point: Design custom connectors and MCP servers for use with Microsoft Power Platform solutions

You are designing a custom connector for a Power Automate flow. The inventory API accepts only delegated Microsoft Entra ID access tokens. Its operation contract is: POST /holds Request: a JSON object with productCode (string) and quantity (integer). 201 response: a JSON object with holdId (string) and acceptedQuantity (integer). An app registration is available, and the connector's Security page provides a Redirect URL. Which connector design matches this contract?

### Options

**A**

Use Microsoft Entra OAuth 2.0 and register the connector's Redirect URL. Define POST /holds with a request object containing productCode and quantity as strings, and a 201 response object containing holdId and acceptedQuantity as strings.

**B**

Use Microsoft Entra OAuth 2.0 and register the legacy global redirect URI. Define POST /holds with a request object containing productCode (string) and quantity (integer), and a 201 response object containing holdId (string) and acceptedQuantity (integer).

**C**

Use Microsoft Entra OAuth 2.0 and register the connector's Redirect URL. Define POST /holds with a request object containing productCode (string) and quantity (integer), and a 201 response object containing holdId (string) and acceptedQuantity (integer).

**D**

Use API key authentication and collect the key when creating a connection. Define POST /holds with a request object containing productCode (string) and quantity (integer), and a 201 response object containing holdId (string) and acceptedQuantity (integer).

Correct answer: C

### Explanation

The connector must describe the API's actual authentication and data contract. Microsoft Entra OAuth 2.0 matches the required delegated access-token route, and the app registration must use the Redirect URL generated for this connector. The request and 201 response schemas must preserve the stated object shapes and integer quantity fields. Matching the schemas alone is insufficient if the authentication method or redirect registration is wrong. Microsoft documents the per-connector redirect requirement and the use of API definitions and connections in its [custom connectors overview](https://learn.microsoft.com/en-us/connectors/custom-connectors/); the [Entra authentication tutorial](https://learn.microsoft.com/en-us/connectors/custom-connectors/azure-active-directory-authentication) specifies copying the connector's Redirect URL into the app registration.

## Question 5

Type: single\_choice
Knowledge point: Design custom connectors and MCP servers for use with Microsoft Power Platform solutions

You are connecting a Foundry prompt agent to an inventory MCP server. The service offers a local stdio entry point and a hosted Streamable HTTP endpoint at https://inventory.example.com/mcp. Both expose tools named get\_stock, get\_price, and place\_order. The hosted endpoint's connection credentials have already been validated. Only get\_stock and get\_price may be made available to this agent. The server must continue exposing place\_order for other clients. Which connection design should you use?

### Options

**A**

Use the hosted Streamable HTTP endpoint as server\_url, set server\_label to inventory, and set allowed\_tools to get\_stock and get\_price.

**B**

Use the hosted Streamable HTTP endpoint as server\_url, set server\_label to inventory, and omit allowed\_tools while instructing the agent to call only get\_stock and get\_price.

**C**

Register the local stdio process and its launch arguments with the Foundry agent, set server\_label to inventory, and set allowed\_tools to get\_stock and get\_price.

**D**

Use the hosted Streamable HTTP endpoint as server\_url, set server\_label to inventory, and set allowed\_tools to inventory.get\_stock and inventory.get\_price.

Correct answer: A

### Explanation

Foundry Agent Service requires a remote MCP endpoint, so the hosted Streamable HTTP endpoint fits this cloud runtime. Set allowed\_tools to the exact exposed names get\_stock and get\_price to restrict this agent's tool surface without changing the server's tools for other clients. Omitting the list includes all server tools; an instruction to avoid a tool does not configure that restriction. The server label identifies the server and does not add a prefix to its tool names. These distinctions are documented in [Connect agents to MCP server endpoints](https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/tools/model-context-protocol), under connection configuration, tool troubleshooting, and hosting a local server.

## Question 6

Type: single\_choice
Knowledge point: Design custom connectors and MCP servers for use with Microsoft Power Platform solutions

A Foundry prompt agent uses an authenticated remote MCP tool to update inventory records. Policy requires human approval for every tool call, so require\_approval is set to always. The service identity is intended to have read and update access to this inventory resource.

A developer approves an update call. The trace then records:

* MCP call approval: accepted.
* Server authentication: succeeded as inventory-service.
* Resource authorization: HTTP 403; update permission missing.
* Effective resource permissions for inventory-service: read only.

Which change addresses this failure while preserving the approval policy?

### Options

**A**

Keep require\_approval set to always, replace the connection credential with a fresh credential for inventory-service, and retain its current resource permissions.

**B**

Set require\_approval to never, retain the authenticated connection for inventory-service, and retain its current resource permissions.

**C**

Keep require\_approval set to always and retain the connection; grant the required inventory update permission to the developer who approved the call.

**D**

Keep require\_approval set to always and retain the connection; grant the required inventory update permission to inventory-service on this resource.

Correct answer: D

### Explanation

The trace shows that approval and server authentication both succeeded. The failure occurs at resource authorization: the authenticated caller has read access but lacks the update permission needed for the intended operation. Granting that permission to inventory-service addresses the reported cause while retaining approval for every call. Refreshing a valid credential would leave the same authorization gap, and granting permission to the approving developer would not change the caller identified in the trace. The [Foundry MCP guide](https://learn.microsoft.com/en-us/azure/foundry/agents/how-to/tools/model-context-protocol) configures authentication through a project connection separately from require\_approval, defines approval as review of a proposed tool call, and calls for checking authentication and connection credentials when investigating unauthorized or forbidden responses. The supplied trace identifies which boundary failed here.

## Question 7

Type: single\_choice
Knowledge point: Design Dataverse code components, including plug-ins and custom APIs

A Dataverse integration sends Update requests for the Shipment table and sometimes resends an unchanged new\_phase value. A plug-in must create an audit row containing the phase before and after the main operation, but only when those values differ. The audit creation and shipment Update must commit or roll back together. The step is registered for Update on Shipment with new\_phase as its filtering attribute. Audit rows are created through IOrganizationService from the plug-in's execution context. Which stage, execution mode, and image plan should you choose?

### Options

**A**

Use synchronous PreOperation with pre-images and post-images containing new\_phase; create the audit when their phase values differ.

**B**

Use asynchronous PostOperation with pre-images and post-images containing new\_phase; create the audit when their phase values differ.

**C**

Use synchronous PostOperation with pre-images and post-images containing new\_phase; create the audit when their phase values differ.

**D**

Use synchronous PostOperation with a post-image containing new\_phase; treat Target as the previous phase and create the audit when those values differ.

Correct answer: C

### Explanation

Synchronous PostOperation provides both required snapshots while the Update transaction remains active. The pre-image supplies the previous phase, and the post-image supplies the phase after the main operation. Creating the audit through IOrganizationService from the plug-in's execution context keeps that write in the same transaction. Filtering on new\_phase does not establish that its value changed, so the plug-in must compare the snapshots. Asynchronous PostOperation provides the snapshots but cannot make the audit participate in the original Update transaction. See [Register a plug-in](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/register-plug-in) and [Database transactions](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/scalable-customization-design/database-transactions).

## Question 8

Type: single\_choice
Knowledge point: Design Dataverse code components, including plug-ins and custom APIs

You are designing a Dataverse custom API named new\_GetAdvice that calculates shipping advice for one existing Shipment row without changing data. Shipment has the logical name new\_shipment and the entity set name new\_shipments. The API must accept a required String input named Region and return a String value named Advice. A Web API client must invoke it at /new\_shipments(&lt;id&gt;)/Microsoft.Dynamics.CRM.new\_GetAdvice. A Power Automate flow must invoke the same API through the Microsoft Dataverse connector. Which API definition meets these requirements?

### Options

**A**

Create an Entity-bound Action for Shipment, using the implicit Target EntityReference, a required String request parameter named Region, and a String response property named Advice.

**B**

Create an Entity-bound Function for Shipment, using the implicit Target EntityReference, a required String request parameter named Region, and a String response property named Advice.

**C**

Create an EntityCollection-bound Action for Shipment, with required Shipment EntityReference and Region String request parameters, and a String response property named Advice.

**D**

Create a Global Action, with required Shipment EntityReference and Region String request parameters, and a String response property named Advice.

Correct answer: A

### Explanation

The required row-specific URL calls for Entity binding to Shipment, which supplies an implicit Target parameter of type EntityReference. Region belongs in the request, and Advice belongs in the response. Although calculating advice without changing data could suit a Function, the Microsoft Dataverse connector requires an Action for this Power Automate call. A Global Action could provide equivalent functionality with an explicit Shipment parameter, but it would require a different invocation URL. See [Create and use custom APIs](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/custom-api).

## Question 9

Type: single\_choice
Knowledge point: Design Dataverse code components, including plug-ins and custom APIs

A publisher is defining a Dataverse custom API whose main plug-in is already selected. Partner developers must be able to register follow-up processing that runs after the operation finishes, but their extensions must not change the operation's behavior or cancel it. The API must be excluded from the Web API $metadata service document. Execution must also require the existing privilege named prvReadAccount. Which configuration meets all three requirements?

### Options

**A**

Set AllowedCustomProcessingStepType to None, IsPrivate to true, and ExecutePrivilegeName to prvReadAccount.

**B**

Set AllowedCustomProcessingStepType to Sync and Async, IsPrivate to true, and ExecutePrivilegeName to prvReadAccount.

**C**

Set AllowedCustomProcessingStepType to Async Only and IsPrivate to true; leave ExecutePrivilegeName unset.

**D**

Set AllowedCustomProcessingStepType to Async Only, IsPrivate to true, and ExecutePrivilegeName to prvReadAccount.

Correct answer: D

### Explanation

Async Only allows additional plug-ins to respond after the operation finishes without changing its behavior or canceling it. IsPrivate controls discovery through the metadata service document; it does not enforce the required execution privilege. ExecutePrivilegeName must therefore name the existing prvReadAccount privilege independently. Sync and Async would preserve the requested discovery and privilege settings but would also permit extensions to change or cancel the operation. See [Create and use custom APIs](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/custom-api).

## Question 10

Type: single\_choice
Knowledge point: Design automations, including Power Automate cloud flows and Copilot Studio workflows

A Power Automate cloud flow uses SharePoint's When an item is created or modified trigger. Its payload contains plain-text ReviewStatus and Region fields. Only events where ReviewStatus is Approved and Region is West are eligible for processing. All other events must avoid starting a flow run. Which design meets this requirement?

### Options

**A**

Use a first Condition action requiring both field values, and skip processing when it is false.

**B**

Add two trigger-condition entries: ReviewStatus equals Approved; Region equals West.

**C**

Add one trigger condition that accepts ReviewStatus equal to Approved or Region equal to West.

**D**

Add a trigger condition requiring ReviewStatus equal to Approved, followed by a Condition action requiring Region equal to West.

Correct answer: B

### Explanation

Both field values determine eligibility before a run starts. Separate trigger conditions use AND by default, so both must match. Checking Region inside the flow is too late: an Approved request from another region has already started a run. [Microsoft Learn: Customize your triggers with conditions](https://learn.microsoft.com/en-us/power-automate/customize-triggers).

## Question 11

Type: single\_choice
Knowledge point: Design automations, including Power Automate cloud flows and Copilot Studio workflows

A developer creates two parent cloud flows and a reusable audit child flow directly within the same solution. Each parent passes an Order ID. The child creates an audit item in SharePoint and must return its Audit ID before the parent performs its next action. Both parents will invoke the routine through Run a Child Flow, and a SharePoint connection is available. Which child-flow configuration meets this contract?

### Options

**A**

Use Manually trigger a flow with an Order ID input; end with Compose containing Audit ID; set the SharePoint connection to Use this connection.

**B**

Use SharePoint's When an item is created trigger and read Order ID from the item; return Audit ID through Respond to a Power App or flow; set the SharePoint connection to Use this connection.

**C**

Use Manually trigger a flow with an Order ID input; return Audit ID through Respond to a Power App or flow; set the SharePoint connection to Use this connection.

**D**

Use Manually trigger a flow with an Order ID input; return Audit ID through Respond to a Power App or flow; set the SharePoint connection to Provided by run-only user.

Correct answer: C

### Explanation

The child needs an explicit Order ID input and an Audit ID response that each parent can consume after Run a Child Flow completes. Its trigger must be Manually trigger a flow. Because the routine uses SharePoint, configure its embedded connection with Use this connection. A parent cannot pass its connection into the child. [Microsoft Learn: Create child flows](https://learn.microsoft.com/en-us/power-automate/create-child-flows).

## Question 12

Type: single\_choice
Knowledge point: Design automations, including Power Automate cloud flows and Copilot Studio workflows

A developer is building an event-triggered workflow in Copilot Studio's redesigned Workflows designer, powered by the GitHub Copilot harness. An agent extracts a proposed Dispatch Date from each new order. A shipping coordinator must supply the confirmed Dispatch Date during every workflow run, including runs where extraction succeeds, before the workflow calls the warehouse connector. Which step should the developer place between extraction and that connector call?

### Options

**A**

Use a human-in-the-loop action to request the coordinator's date only when the extracted date is missing; otherwise use the extracted date.

**B**

Run a prompt to validate the extracted date and use the model's validated date.

**C**

Loop over the agent extraction until it returns a date and use that date.

**D**

Use a human-in-the-loop action to request the coordinator's confirmed date for each order and use the supplied date.

Correct answer: D

### Explanation

The workflow needs coordinator input during every run, after extraction and before the warehouse call. Copilot Studio documents human-in-the-loop actions for requesting information in GitHub Copilot-harness workflows. Requesting the confirmed date at this boundary meets that requirement. Asking only when extraction fails would allow successfully extracted dates to bypass confirmation. [Microsoft Learn: Workflows overview](https://learn.microsoft.com/en-us/microsoft-copilot-studio/workflows-experience/flows-overview).

## Question 13

Type: single\_choice
Knowledge point: Design inbound and outbound integrations using Dataverse and Microsoft Azure

An unattended warehouse service must update the quantity on an existing Dataverse Inventory row and receive the result of that write. Its identity must have only the Dataverse access required for this task. Other applications already receive inventory-change notifications through a separate integration. Which design should you implement for the warehouse service?

### Options

**A**

Register an asynchronous Dataverse Service Bus endpoint for Inventory updates and have the warehouse service consume RemoteExecutionContext messages.

**B**

Have the warehouse service PATCH the row through the Dataverse Web API using an app OAuth token and a mapped application user with the required inventory privileges.

**C**

Register a synchronous Dataverse webhook for Inventory updates and configure an authentication header key for requests to the warehouse service.

**D**

Have the warehouse service PATCH the row through the Dataverse Web API using an app OAuth token, with the Microsoft Entra app registration as the sole access configuration.

Correct answer: B

### Explanation

The warehouse initiates a Dataverse update and needs its response. The Web API provides that command path, and PATCH updates existing rows. [Compose HTTP requests](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/webapi/compose-http-requests-handle-errors). Unattended application access requires the registered app to be mapped to a Dataverse application user with an appropriate security role; obtaining an OAuth token alone does not supply those Dataverse privileges. [OAuth authentication](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/authenticate-oauth). Service Bus endpoints and webhooks send Dataverse event context to external listeners, so they address publication rather than the requested inbound write. [Azure Service Bus integration](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/azure-integration), [Dataverse webhooks](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/use-webhooks).

## Question 14

Type: single\_choice
Knowledge point: Design inbound and outbound integrations using Dataverse and Microsoft Azure

Dataverse order changes must be sent to a billing system through Azure Service Bus. The transport must accept and retain notifications while the billing worker is offline for up to 30 minutes. Each notification includes an immutable operation ID and an order ID; one order can have several separate billing operations. The billing API supports durable idempotency keys throughout the integration's retry period. Testing shows that a notification can be delivered again when the worker stops after billing succeeds but before acknowledging the message. Which design meets these requirements?

### Options

**A**

Register an asynchronous step posting to a Service Bus queue with 24-hour message retention; use the order ID as the billing idempotency key and acknowledge after billing succeeds.

**B**

Register an asynchronous step posting through a one-way Service Bus contract with posting retries; reuse the operation ID as the billing idempotency key for each delivery attempt.

**C**

Register an asynchronous step posting to a Service Bus queue with 24-hour message retention; reuse the operation ID as the billing idempotency key and acknowledge after billing succeeds.

**D**

Register an asynchronous step posting to a Service Bus queue with 24-hour message retention; generate a new billing idempotency key for each delivery and acknowledge after billing succeeds.

Correct answer: C

### Explanation

A Service Bus queue accepts messages without an active listener, and its configured retention covers the worker's outage. A one-way contract requires an active listener; posting retries do not provide acceptance while that listener is absent. [Azure Service Bus integration](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/azure-integration). The observed failure occurs after the billing effect but before acknowledgement, so replay must retain the same operation-level idempotency key. The billing API can then suppress a repeated effect using its stated contract. An order ID would also collapse separate legitimate operations, while a new key for each delivery would make a replay appear to be a new operation.

## Question 15

Type: single\_choice
Knowledge point: Design inbound and outbound integrations using Dataverse and Microsoft Azure

A synchronous PostOperation webhook sends newly created Dataverse orders to a shipping service. In a test, the shipping service creates a shipment, then a later synchronous Dataverse plug-in throws an exception. The order creation is rolled back, but the shipment remains. The business requires shipment creation to start only for committed orders. An order may be saved with shipping pending, and dispatch failures may be handled later. Which redesign meets this requirement?

### Options

**A**

Keep the webhook synchronous in PostOperation and require the shipping service to return HTTP 2xx only after it has durably saved the shipment.

**B**

Register the webhook asynchronously in PostOperation and monitor failed System Jobs for later retry or reconciliation.

**C**

Move the webhook to synchronous PreOperation and cancel the Dataverse operation if the shipping service reports a failure.

**D**

Keep the webhook synchronous in PostOperation and assign an Execution Order that runs it after all other synchronous PostOperation steps.

Correct answer: B

### Explanation

Synchronous PostOperation executes after the main operation but still inside the Dataverse database transaction. A later synchronous exception can therefore roll back the order. Asynchronous PostOperation runs after the record operation completes and outside that transaction. [Dataverse event framework](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/event-framework). Dataverse cannot recall a synchronous webhook request already sent to an external endpoint, which explains the remaining shipment. An asynchronous webhook supports the permitted pending-shipping lifecycle, and its System Job exposes dispatch failures for subsequent handling. Moving a synchronous step last changes its order within the transaction, not its position relative to commit. [Dataverse webhooks](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/use-webhooks).

## Question 16

Type: single\_choice
Knowledge point: Design custom interfaces by using Power Apps code apps

A Power Platform developer is designing a TypeScript code app for the Power Apps host. The app is initialized in a Dataverse-enabled environment, and the Accounts table has been added as a data source. The UI must list accounts and update account details. Which design correctly assigns the generated artifacts to the UI's typed data interface?

### Options

**A**

Use the generated model for record types and read or update records by editing data-source entries in power.config.json.

**B**

Use the generated model for record types and the generated service for executing reads and updates.

**C**

Use the generated service for record types and the generated model for executing reads and updates.

**D**

Use power.config.json for record types and the generated service for executing reads and updates.

Correct answer: B

### Explanation

Adding the Dataverse data source generates model and service artifacts. The model reflects the table schema, while the service provides methods for data operations. The UI should therefore use generated model types with generated service calls. [Connect a code app to Dataverse](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/connect-to-dataverse). The power.config.json file holds connection and publishing metadata rather than account records or their TypeScript model. [Code apps architecture](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/architecture).

## Question 17

Type: single\_choice
Knowledge point: Design custom interfaces by using Power Apps code apps

An existing server-side service holds confidential supplier quotes and a reusable credential for a downstream API. The service authenticates callers and authorizes quote access. A developer is packaging a Power Apps code app SPA that can call this service through a supported connector. To speed startup, a colleague proposes copying a quote snapshot and the API credential into the compiled app. Which publishing design preserves the existing access controls and credential confidentiality?

### Options

**A**

Bundle the quotes and credential, minify the JavaScript, and omit source maps from the published app.

**B**

Encrypt the bundled quotes, and place the decryption key and API credential in a separate JavaScript asset loaded after sign-in.

**C**

Publish UI/code assets, keep quotes and the credential in the existing protected service, and retrieve quotes through the supported connector at runtime.

**D**

Bundle the quotes, retain the credential in the existing protected service, and display the quotes only after the Power Apps host authenticates the user.

Correct answer: C

### Explanation

Code apps serve compiled assets from a publicly accessible endpoint. Confidential quotes and reusable credentials must therefore remain outside those assets. Retrieving quotes through the existing service preserves its authorization checks. [Code apps features and requirements](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/overview). The Power Apps host manages end-user authentication, but hiding bundled content until sign-in does not protect that content from someone who downloads the assets. [Code apps architecture](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/architecture).

## Question 18

Type: single\_choice
Knowledge point: Design custom interfaces by using Power Apps code apps

A team runs the same TypeScript code app in test and production. Each environment has an approved connector connection to a separate Orders store with the same schema. During a production trial, Power Apps host sign-in succeeds, but generated service requests return test orders. Review shows that the app's data-source connection metadata still identifies the test connection. The production connection and required user access already exist. Which change should the developer include in the deployment design?

### Options

**A**

Configure the app's data-source metadata for the production connection through supported Power Apps tooling, and retain host-managed end-user authentication.

**B**

Retain the test connection metadata, and require users to sign in again in production so the generated services select the production store.

**C**

Configure the metadata for the production connection, and authenticate each user by passing that connection's identifier as the user's credential.

**D**

Replace the generated model files with equivalents from production, and retain the test connection metadata and host-managed end-user authentication.

Correct answer: A

### Explanation

Successful host sign-in and requests reaching the test store point to the retained data-source binding. The Power Apps CLI and client library use power.config.json metadata for connections, while the host manages end-user authentication. Configure the production app's metadata for the approved production connection and retain host authentication. Repeating sign-in with the test binding unchanged does not select a different data source. [Code apps architecture](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/architecture).

## Question 19

Type: single\_choice
Knowledge point: Design custom agents that integrate with Microsoft Power Platform

You are designing a Copilot Studio proof of concept that uses the standard harness. It must call a Foundry agent through the built-in Microsoft Foundry connection. The Foundry agent was created in the new Foundry portal, and inspection confirms that only its Responses and A2A endpoints are enabled. The project endpoint URL and connection credentials are valid. Which preparation should you include before the first Studio call?

### Options

**A**

Leave the endpoints unchanged and rely on the existing A2A endpoint.

**B**

Enable the Activity endpoint through the REST API or Python SDK before connecting.

**C**

Leave the endpoints unchanged and rely on the existing Responses endpoint.

**D**

Enable the Activity endpoint through the Foundry portal before connecting.

Correct answer: B

### Explanation

The built-in preview route from standard-harness Studio to a new Foundry agent requires Activity. Since only Responses and A2A are enabled, enable Activity with REST or Python before connecting. Enabling it through the portal is unavailable; the portal may still list only Responses and A2A after a successful programmatic update. [Connect to a Microsoft Foundry agent (preview)](https://learn.microsoft.com/en-us/microsoft-copilot-studio/add-agent-foundry-agent)

## Question 20

Type: single\_choice
Knowledge point: Design custom agents that integrate with Microsoft Power Platform

A developer is designing a Copilot Studio proof of concept for an external orchestrator that sends tasks over A2A on behalf of signed-in employees. The environment is in the early release cycle. Before testing, the agent will be published, the employees will have access to it, and an Entra app registration in the agent's tenant will contain the orchestrator's exact OAuth redirect URI. The orchestrator supports the OAuth 2.0 authorization code flow, and tenant consent requirements will be satisfied. Which harness, channel and permission design should the developer choose?

### Options

**A**

Use the GitHub Copilot harness, publish the A2A client channel, and add the delegated MCS.InvokeAsMCP permission.

**B**

Use the standard harness, publish the A2A client channel, and add the delegated MCS.InvokeAsA2A permission.

**C**

Use the GitHub Copilot harness, publish the A2A client channel, and authenticate the orchestrator with client credentials.

**D**

Use the GitHub Copilot harness, publish the A2A client channel, and add the delegated MCS.InvokeAsA2A permission.

Correct answer: D

### Explanation

The external orchestrator calls a Studio agent, so use the preview outward A2A client channel under the GitHub Copilot harness. The channel uses delegated authentication and requires MCS.InvokeAsA2A. Although the shared Entra API exposes both protocol permissions, MCS.InvokeAsMCP does not authorize A2A calls. Configure the client with the corresponding full scope URI and offline\_access, matching the scope host to the copied channel endpoint. [Connect clients with MCP and A2A channels (preview)](https://learn.microsoft.com/en-us/microsoft-copilot-studio/agents-experience/publication-channels-mcp-agent-to-agent)

## Question 21

Type: single\_choice
Knowledge point: Design custom agents that integrate with Microsoft Power Platform

An integration developer is adding an unattended Dataverse reporting service to an application that separately uses Microsoft 365 Work IQ for signed-in employees. The team is evaluating the preview Dataverse Ask API in an environment where Business Applications in Work IQ is enabled. A semantic model with uniqueName OrdersOps includes the new\_order table for East and West divisions. The service's Entra application is mapped to a Dataverse application user with Read access to the required tables and columns, limited to East division order records. Reporting must use the service's own application identity without employee tokens, accept natural-language questions, and support structured rows plus a summary. Which Dataverse Ask design should the developer use?

### Options

**A**

Use the application user's server-to-server OAuth identity and semanticModelName OrdersOps; treat model inclusion as authorization to read every indexed order.

**B**

Use an employee's delegated OAuth identity, submit the question with semanticModelName OrdersOps, and apply that employee's read permissions.

**C**

Use the application user's server-to-server OAuth identity, submit the question with semanticModelName OrdersOps, and apply the application user's read permissions.

**D**

Use the application user's server-to-server OAuth identity, submit the question with semanticModelName new\_order, and apply the application user's read permissions.

Correct answer: C

### Explanation

The preview Dataverse Ask API supports server-to-server access through a mapped application user, with that user's Dataverse Read permissions limiting results. The model's exact uniqueName, OrdersOps, belongs in semanticModelName; new\_order identifies the table. This meets the service-identity and natural-language query requirements. Delegated access is valid for interactive Dataverse applications, but requiring it here would wrongly extend Microsoft 365 Work IQ's separate delegated-only restriction. [Dataverse Ask prerequisites and authentication](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/ask/get-started), [Ask request and response semantics](https://learn.microsoft.com/en-us/power-apps/developer/data-platform/ask/ask-semantic-model), [Microsoft 365 Work IQ authentication](https://learn.microsoft.com/en-us/microsoft-365/copilot/extensibility/work-iq/api-overview)

## Question 22

Type: single\_choice
Knowledge point: Design monitoring and alerting, including Azure Monitor Application Insights and Microsoft Power Platform monitor alerts

You are designing monitoring for a published Power Apps code app. The operations team needs evidence about operational health and failures during initial loading. Developers also need app-defined events for quote submissions made after successful loading. Which monitoring plan should you select?

### Options

**A**

Use Application Insights browser instrumentation for operational health and startup failures, and for custom quote-submission events.

**B**

Use Monitor for operational health and startup failures, and Application Insights browser instrumentation for custom quote-submission events.

**C**

Use Application Insights browser instrumentation for operational health and startup failures, and Monitor health metrics for custom quote-submission events.

**D**

Use Monitor health metrics for operational health and startup failures, and for custom quote-submission events.

Correct answer: B

### Explanation

The requirements span two stages of the code app's lifecycle. Monitor provides operational-health and startup-failure evidence. Application Insights browser instrumentation provides custom events after successful loading, so using it alone would miss failed startups. Health metrics alone would leave the requested quote-submission event detail uninstrumented. See Microsoft's [code-app Application Insights guidance](https://learn.microsoft.com/en-us/power-apps/developer/code-apps/how-to/set-up-azure-app-insights) and [Monitor operational-health guidance](https://learn.microsoft.com/en-us/power-platform/admin/monitoring/alerts).

## Question 23

Type: single\_choice
Knowledge point: Design monitoring and alerting, including Azure Monitor Application Insights and Microsoft Power Platform monitor alerts

An administrator creates a Dataverse diagnostics export package for a Managed Environment. The documented prerequisites, including permissions and local authentication, have been verified. The package selects an Application Insights resource named Insights-Platform, dedicated to that environment. A code app's browser instrumentation uses a separate resource named Insights-App. Thirty minutes after setup, queries in Insights-App show browser events but no Dataverse export records. Dataverse activity matching the export filters has occurred since setup. Which troubleshooting plan should you follow?

### Options

**A**

Query Insights-App and, if export records remain absent 24 hours after setup, verify the setup permissions and instrumentation key.

**B**

Query Insights-Platform and, if export records remain absent thirty minutes after setup, treat the export as failed and recreate its package.

**C**

Query Insights-App and, if export records remain absent thirty minutes after setup, treat the export as failed and recreate its package.

**D**

Query Insights-Platform and, if export records remain absent 24 hours after setup, verify the setup permissions and instrumentation key.

Correct answer: D

### Explanation

The export package sends Dataverse diagnostics to Insights-Platform, so browser events in Insights-App do not establish whether the platform export is delivering data. Thirty minutes is also within the documented 24-hour delivery window. Query the configured export destination and allow that window before treating continued absence as a setup problem. If records remain absent after 24 hours, verify the configuring user's permissions and the instrumentation key. [Microsoft Learn: Export data to Application Insights](https://learn.microsoft.com/en-us/power-platform/admin/set-up-export-application-insights).

## Question 24

Type: single\_choice
Knowledge point: Design monitoring and alerting, including Azure Monitor Application Insights and Microsoft Power Platform monitor alerts

You are preparing a custom alert in the new Power Platform admin center. The rule must monitor all canvas apps in one production environment using a health metric already displayed in Monitor. The environment is not a Managed Environment. You have the Environment Maker role and are neither a tenant administrator nor an environment administrator. Which plan satisfies the custom-alert prerequisites and correctly describes the rule's evaluation?

### Options

**A**

Arrange Managed Environment enablement and have an environment administrator create the rule; expect an initial on-demand evaluation followed by daily evaluation of 24-hour aggregates.

**B**

Arrange Managed Environment enablement and have an environment maker create the rule; expect an initial on-demand evaluation followed by daily evaluation of 24-hour aggregates.

**C**

Keep the environment unmanaged and have an environment administrator create the rule; expect an initial on-demand evaluation followed by daily evaluation of 24-hour aggregates.

**D**

Arrange Managed Environment enablement and have an environment administrator create the rule; expect an initial on-demand evaluation followed by hourly evaluation of 1-hour aggregates.

Correct answer: A

### Explanation

Custom alerts in Monitor require a Managed Environment and a tenant or environment administrator. The developer's Environment Maker role and the current unmanaged environment do not satisfy those prerequisites. For this environment-scoped canvas-app rule, evaluation occurs on creation and then daily after new 24-hour metric aggregates are produced. The preview 1-hour data-review option applies separately to resource-scoped code-app alerts. [Microsoft Learn: Create alerts for your resources](https://learn.microsoft.com/en-us/power-platform/admin/monitoring/alerts).

