live chatMcAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
Pass4Test 10%OFF Discount Code

Microsoft Extending Microsoft Power Platform Solutions with Code and AI - AB-400 Exam Questions

QUESTION NO: 1
You are creating a model-driven app that requires complex business logic when a Dataverse record is updated. The app must provide the following functionality:
* Update a record using a REST API and able to manually retry in the event of a failure without additional development.
* Validate the record values and display an error message next to those that are invalid.
Vou need to configure the app with the required business logic.
Which implementation method should you use? To answer, move the appropriate implementation methods to the correct functionalities. You may use each implementation method once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:

Update using a REST API: Power Automate. A cloud flow calls the API with the HTTP action or a connector, has a built-in retry policy, and a failed run can be resubmitted manually from the run history without development.
Validate record values: JavaScript. A client script calls setNotification on a control to display an error message next to the column that is not valid.
Reference:
https://learn.microsoft.com/en-us/power-automate/fix-flow-failures
https://learn.microsoft.com/en-us/power-apps/developer/model-driven-apps/clientapi/reference/controls
/setnotification
QUESTION NO: 2
You fix a bug in the code of your application, which is currently on version 10.0.2.1.
You need to publish an updated version of the solution.
Which version identifier should you use?
Correct Answer: B
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 3
You are designing a custom connector for an internal API used by Contoso, LLC.
Authentication to the API is carried out by using an API key. The API key is stored within Azure Key Vault.
Each environment has a separate instance of the API with a different API key.
You need to reference the API key from Key Vault in the custom connector Which four actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
NOTE: More than one order of answer choices is correct. You will receive credit for any of the correct orders you select
Correct Answer:

Explanation:

A secret in Azure Key Vault is referenced through an environment variable of type Secret, and each environment holds its own value. Dataverse needs a role assignment on the Key Vault to read the secret. The custom connector reads the value with the syntax @environmentVariables( " contoso_ApiKey " ), which uses the schema name of the variable, including the publisher prefix.
Reference:
https://learn.microsoft.com/en-us/power-apps/maker/data-platform/environmentvariables-azure-key-vault-secrets
https://learn.microsoft.com/en-us/connectors/custom-connectors/environment-variables
QUESTION NO: 4
You are developing a Power Platform solution. You plan to add three buttons to a form. The buttons have the following requirements:

You need to complete each button's action.
Which commands should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
Box 1: Now() only.
The Now function returns the current date and time as a date/time value.
Box 2: Switch() or IF()
If and Switch functions in Power Apps determines whether any condition in a set is true (If) or the result of a formula matches any value in a set (Switch) and then returns a result or executes an action.
Box 3: isMatch( TextInput1.Text, " emergency " ,Contains & IgnoreCase ) Example: IsMatch( TextInput1.Text, " hello " , Contains & IgnoreCase ) Tests whether the user ' s input contains the word " hello " (case insensitive).
Reference:
https://docs.micro soft.com/en-us/powerapps/maker/canvas-apps/functions/function-if
QUESTION NO: 5
You are creating various Power Apps apps for a company. Power Automate flows must connect securely to the following external systems:

You need to create custom connectors to access the external systems.
Which type of security should you use for the connectors?
To answer, drag the appropriate security types to the correct external systems. Each security type may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE; Each correct selection is worth one point.
Correct Answer:

Explanation:

Accounts receivable: OAuth 2.0. The client credentials grant type is an OAuth 2.0 flow.
Bing Maps: API key. A unique identifier sent in the query string (or a header) of each request is API key authentication.
Reference:
https://learn.microsoft.com/en-us/connectors/custom-connectors/connection-parameters
QUESTION NO: 6
You manage a Microsoft Power Automate cloud flow. The cloud flow queries Microsoft Dataverse data by using the List rows action.
You need to configure the cloud flow to process 10,000 records in a single run.
What should you do? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Correct Answer: B,C
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 7
A company is developing a Microsoft Dataverse plug-in.
The plug-in must create a follow-up task for a new account
You add the code that receives context(IPIuginExecutionContext) and service(IOrganizationService).
You need to create the remaining code to insert the follow-up task.
Which three code blocks should you use in sequence? To answer, move the appropriate code sequences from the list of sequences to the answer area and arrange them in the correct order.
Correct Answer:

Explanation:

In a plug-in registered on the Create message, the new account is read from context.InputParameters[ " Target
" ]. The task is built as a new Entity, its regardingobjectid is set to an EntityReference of the account (account.
ToEntityReference()), and the row is created with service.Create.
PreEntityImages is not available for a Create message, a lookup must be set with an EntityReference and not the Entity itself, and Update cannot be used for a row that does not exist yet.
Reference:
https://learn.microsoft.com/en-us/power-apps/developer/data-platform/tutorial-write-plug-in
QUESTION NO: 8
You create a Power Automate flow that retrieves data from the Microsoft Dataverse Account table.
The flow uses only a subset of Account table data.
You need to retrieve the required data.
How should you configure the Dataverse List Rows action? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:

Full name of the primary contact: Expand Query = primarycontactid($select=fullname). Expand Query returns columns from a related row by using the navigation property.
Account with the highest credit limit: Row count = 1 and Sort By = creditlimit desc. Sorting in descending order and limiting the result to one row returns the highest value.
Reference:
https://learn.microsoft.com/en-us/power-automate/dataverse/list-rows
QUESTION NO: 9
You are implementing a Power Automate flow in a model-driven app. The flow will facilitate an approval process to increase customer credit limits.
A user must be able to initiate the process from a customer record. The user must be prompted for the amount of the increase.
Once the increase is approved, the customer record must update to reflect the new amount.
You need to add a trigger to the flow and locate the ID of the record to update. The flow should be written to use the least number of steps.
How should you create the flow? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:
Trigger type: When a Dataverse record is selected. The flow is started from the selected row in the model- driven app, can prompt the user for input values, and passes the selected row to the flow.
Record ID to update: From the trigger. The trigger output includes the ID of the selected row, so no extra step is needed.
Reference:
https://learn.microsoft.com/en-us/power-automate/dataverse/overview
QUESTION NO: 10
A company is creating a new system based on Dynamics 365 Sales.
The company has the following requirements for their claim process:
* Approval process must be the same for all claim applications.
* Claim applications must go through approvers at each stage.
* Fields must be shown or hidden, based on the requirements in the approval process.
You need to design the data model for the claim process using out-of-the-box components whenever possible.
Which features should you implement? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Correct Answer:

Explanation:

Box 1: Workflow
You configure the approval processes in a workflow.
Box 2: Business process flow
By integrating your approvals feature with Power Automate, you can implement features such as these:
* Automatically generate and send request-for-approval emails to approvers.
* Include active approve and reject buttons in request-for-approval emails.
* Easy customization of the approval steps, using a framework that most administrators will be able to understand and adjust for themselves.
Box 3: JavaScript
In Dynamics 365, you can hide and show fields using JavaScript. This is useful if you have business logic that determines if fields are displayed or not to the user.
Reference:
https://learn.microsoft.com/en-us/dynamics365/fin-ops-core/fin-ops/organization-administration/configure-approval-process-workf low
QUESTION NO: 11
You are deploying a Power Apps app that uses the custom connector for ServiceNow.
The app loads very slowly for some users. You determine that all records from ServiceNow are being retrieved for every user.
The app must load only incidents that are assigned to each user.
You need to limit the number of records that the connector returns.
What should you do?
Correct Answer: D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 12
An organization has a Dynamics 365 Sales environment. In the development environment, you create a business rule named BusinessRule1 on the Account entity. You deploy BusinessRule1 to production as part of a managed solution.
You need to remove BusinessRule1 from the production environment.
Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.
Correct Answer:

Explanation:

Step 1: In the development environment, navigate to Solutions.
The only supported way of transferring customizations from one CRM organization to another has been through Solutions.
With Solution Management came the concept of Managed and Unmanaged Solutions.
Step 2: Export the solution as managed and import it in the production environment.
Managed is a way to protect your IP (Intellectual Property) with an easy concept of install and uninstall.
Step 3: Select the solution that has BusinessRule1, navigate to the appropriate entity, and delete the rule.
Reference:
http s://www.inogic.com/blog/2016/01/solution-management-with-dynamics-crm-2016/