Microsoft PL-400 Practice Test - Questions Answers, Page 18
List of questions
Question 171

As part of the month-end financial closing process, a company uses a batch job to copy all orders into a staging database.
The staging database is used to calculate any outstanding amounts owed by clients, and must process all historical data.
You need to ensure that only the data affected during the month is included in the integration process.
What are two possible ways to achieve this goal? Each correct answer presents a complete solution.
NOTE: Each correct selection is worth one point.
Use change tracking on the orders and run the integration to retrieve new orders and the orders that have the total amount changed in the last month.
Create a system view with the orders that have the Modified On field in the last month and run the integration on this subset.
Use change tracking on the order lines and run the integration every week and retrieve only the order lines that have been created or deleted in the last month.
Create a system view with the order lines that have the Modified On field in the last month and run the integration on this subset.
Explanation:
C: The change tracking feature in Microsoft Dataverse provides a way to keep the data synchronized in an efficient manner by detecting what data has changed since the data was initially extracted or last synchronized. Deletions and creations are tracked.
D: On modified Order Lines, not on Modified Orders.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/use-change-tracking-synchronize-data- external-systems https://docs.microsoft.com/en-us/powerapps/developer/data-platform/behavior-format-date-time-attribute
Question 172

A company is creating a one-way integration from the Common Data Service to an external system. Data will be sent from a webhook to an Azure Function.
You need to configure the Azure Function to handle data from the webhook.
Which class and data type must the Azure Function handle?
RemoteExecutionContext in .NET binary format
RemoteExecutionContext in JSON format
RemoteExecutionContext in XML format
IPluginExecutionContext in JSON format
IPluginExecutionContext in XML format
Explanation:
The body will contain string that represents the JSON value of an instance of the RemoteExecutionContext class.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/use-webhooks
Question 173

DRAG DROP
Teachers in a school district use Azure skill bots to teach specific classes. Students sign into an online portal to submit completed homework to their teacher for review. Students use a Power Virtual Agents chatbot to request help from teachers.
You need to incorporate the skill bot for each class into the homework bot.
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.
Explanation:
Step 1: Create a manifest for the skill bot
You can use skills to extend another bot. A skill is a bot that can perform a set of tasks for another bot. A skill's interface is described by a manifest.
Step 2: Register the skill bot in Power Virtual Agents
Power Virtual Agents enables you to extend your bot using Microsoft Bot Framework skills.
First, create a Power Virtual Agents bot and create and deploy the skill using pro-code tools into your organization.
Next, register a skill in Power Virtual Agents.
Step 3: Register the homework bot in Power Virtual Agents
You can use your Power Virtual Agents bot as a skill with Bot Framework bots.
The Bot Framework and Power Virtual Agents bots must be deployed in the same tenant.
Reference: https://docs.microsoft.com/en-us/azure/bot-service/skill-implement-skill https://docs.microsoft.com/en- us/azure/bot-service/skills-write-manifest
Question 174

DRAG DROP
A company has a Common Data Service (CDS) environment.
All accounts in the system with a relationship type of Customer set must have an account number. A plug-in has been developed.
When a Customer is updated with a relationship type, the plug-in sets the account number if not provided by the user.
You need to register the plug-in.
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.
Explanation:
Step 1: In the Plug-in Registration tool, select Register New Assembly.
You use the Plug-in Registration tool (PRT) to register your plug-in assemblies and steps.
Registering an assembly is the process of uploading the assembly to the Dataverse database.
Step 2: In the Plug-in Registration tool, Select Register New Step,..PreOperation
PreOperation occurs before the main system operation and within the database transaction.
If you want to change any values for an entity included in the message, you should do it here.
Step 3: In the Plug-in Registration tool, Select Register New Image, change the Image type to be a PreImage, and..
If your plug-in step is registered in the PreValidation or PreOperation stages of the execution pipeline, you could use the
Organization service to retrieve the current value of the property, but this is not a good practice for performance. A better practice is to define a pre-entity image with your plug-in step registration.
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/register-plug-in
Question 175

HOTSPOT
You are creating a package for a Power Platform solution. The package will include custom code and sample data.
The package must include all files that need to be installed.
You need to configure the package.
Which setting should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: PackageTemplate.cs
Define custom code for your package in the PackageTemplate.cs file.
Box 2: ImportConfig.xml
The sample data and some flat files for solutions specified in the ImportConfig.xml file are imported before the solution import completes.
Box 3: Copy Always
Set the Copy to Output Directory value to Copy Always. This ensures that your file is available in the generated package.
Reference: https://docs.microsoft.com/en-us/power-platform/alm/package-deployer-tool
Question 176

HOTSPOT
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.
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.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if
Question 177

HOTSPOT
A company imports data from files.
The following code is created to import the files. (Line numbers are included for reference only.)
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: No
The For Each loop is exited if there is an error. Need ContinueOnError in the right place.
Box 2: No
The ContinueOnError statement should be placed in the For Each loop before line 13.
Box 3: Yes
Box 4: No
This code is just for displaying the result on the screen.
Question 178

DRAG DROP
A company has a model-driven app.
A form that validates the date entered requires a custom button. The button must be available only under certain conditions.
You need to define the CommandDefinition in the RibbonDiffXML to meet the conditions for the button.
Which elements should you use? To answer, drag the appropriate elements to the correct conditions. Each element 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.
Explanation:
Box 1: Display Rule
When configuring ribbon elements, you can define specific rules to control when the ribbon elements will display.
Box 2: Action
Define the actions to be performed by a command bar or ribbon control in a element together with rules that control whether the control is enabled or visible in the ribbon.
Box 3: Enable Rule
When configuring ribbon elements, you can define specific rules to control when the ribbon elements are enabled.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-enable-rules
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-display-rules
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/define-ribbon-actions
Question 179

HOTSPOT
A clothing store uses Power Apps apps to interact with customers. Customer data is stored in Microsoft Dataverse.
The store offers discounts for customers. You assign a group discount to all customers in a category. Applicable group discounts are added to any customer-specific discounts. Discount information is stored in the following columns:
If the total discount on an order exceeds 30 percent, a manager must approve the order before the order is fulfilled anddelivered.
You need to create a flow that notifies managers when approvals are required.
How should you configure the flow trigger? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: store_totaldiscount
If the total discount on an order exceeds 30 percent, a manager must approve the order before the order is fulfilled and delivered.
Box 2: @greater(add(triggerBody()..
When to use triggerBody() ? Ц When you want to fetch attributes from the body of the trigger.
Incorrect Answers:
When to use triggerOutputs() ? Ц Whenever you need to access anything from within the body as well as some info from the header as well.
Reference:
https://d365demystified.com/2020/09/06/using-triggerbody-triggeroutput-to-read-cds-trigger-metadata-attributes-in-a-flow- power-automate/
Question 180

DRAG DROP
You are creating technical designs for several complex business processes.
You need to implement custom business logic based on the requirements.
Which implementation methods should you use? To answer, drag the appropriate implementation methods to the correct requirements. Each implementation method 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.
Explanation:
Box 1: Business rule
You can create business rules and recommendations to apply logic and validations without writing code or creating plug-ins.
Business rules provide a simple interface to implement and maintain fastchanging and commonly used rules.
By combining conditions and actions, you can do any of the following with business rules:
Set column values
Clear column values
Set column requirement levels
Show or hide columns
Enable or disable columns
Validate data and show error messages
Create business recommendations based on business intelligence.
Box 2: Power Automate flow
You can create a cloud flow that performs one or more tasks (such as sending a report in email): Once a day, an hour, or a minute
On a date that you specify
After a number of days, hours, or minutes that you specify
Reference: https://docs.microsoft.com/en-us/power-automate/run-scheduled-tasks
Question