Microsoft

PL-400 Free Practice Questions — Page 19

Question 176

A company uses Common Data Service rollup fields to calculate insurance exposure and risk profiles for customers. Users report that the system does not update values for the rollup fields when new insurance policies are written. You need to recalculate the value of the rollup fields immediately after a policy is created. What should you do?

A. Create new fields on the customer entity for insurance exposure and risk. Write a workflow process that is triggered when a new policy record is created to calculate the sum of values from policy records.
B. Update the Mass Calculate Rollup Field job to trigger when a new policy record is created.
C. Change the frequency of the Calculate Rollup Field recurring job from every hour to every five minutes.
D. Create a plug-in that uses the CalculateRollupFieldRequest method for the rollup field. Configure a step on the Create event for the policy entity for this plug-in.
Show Answer
Correct Answer: D
Explanation:
Common Data Service (Dataverse) rollup fields are calculated asynchronously by system jobs, so they do not update immediately when related records are created. To force an immediate recalculation after a policy is created, you must explicitly invoke the rollup calculation. A plug-in registered on the Create event of the policy entity can call the CalculateRollupFieldRequest for the relevant rollup fields, ensuring the values are recalculated right away. The other options either change scheduling behavior or replace rollups entirely and do not guarantee immediate updates.

Question 177

You are creating an integration between Microsoft Dataverse and an external system. Messages from Dataverse must be sent to Microsoft Azure Service Bus. An Azure Function will process the messages. Events must be published directly to the ServiceEndpoint for Azure Service Bus. You need to create code for the messages. Which class should you use?

A. RemoteExecutionContext
B. IWorkflowContext
C. IPluginExecutionContext
D. IExecutionContext
Show Answer
Correct Answer: A
Explanation:
When Dataverse events are published directly to an Azure Service Bus ServiceEndpoint, the runtime sends a RemoteExecutionContext payload. This class represents the contextual information serialized and delivered to the external endpoint for processing (such as by an Azure Function). The other context interfaces are used within Dataverse plugins or workflows, not for messages sent to remote service endpoints.

Question 178

HOTSPOT - You create a Power Apps component framework component. You need to test the component. Which option should you use? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for PL-400 question 178
Show Answer
Correct Answer: F12 and select component Data Inputs Context Inputs
Explanation:
Debugging a PCF component in Microsoft Edge is done via browser developer tools (F12) and selecting the component. Data Inputs shows all properties and their types/type-groups defined in the manifest. Context Inputs allows testing the component across multiple form factors such as web, tablet, and phone.

Question 179

You are creating a plug-in for an app that helps government employees get a proof of vaccination card. You must add the following information to a vaccination record before a proof of vaccination card is created: • Vaccination type • Date of vaccination • Name of person administering the vaccine You need to register the plug-in. In which stage should you register the plug-in?

A. PreValidation
B. PostOperation
C. MainOperation
D. PreOperation
Show Answer
Correct Answer: D
Explanation:
In Dataverse/Dynamics 365 plug-in execution, PreOperation is the correct stage when you need to add or modify field values on the target record before it is committed to the database. The requirement states that you must add vaccination type, date, and administrator name to the vaccination record before the proof of vaccination card is created. PreValidation is intended for checks and blocking logic, not reliably populating data, and PostOperation occurs after the record is already saved. Therefore, registering the plug-in in the PreOperation stage ensures the required fields are populated prior to record creation.

Question 180

HOTSPOT - You are developing a Power Platform solution that uses a plug-in. The plug-in includes the following code (line numbers are included for reference): The plug-in includes a step that is registered in the execution pipeline within the PreOperation stage for the Create message. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for PL-400 question 180 Illustration for PL-400 question 180
Show Answer
Correct Answer: No Yes No
Explanation:
1) The code explicitly exits unless Stage == 20 (PreOperation), so it will not run in PostOperation. 2) Missing the required "name" attribute throws an exception, which surfaces as the stated error. 3) In PreOperation, setting the Target attribute persists automatically; no explicit Update call is required.

Question 181

HOTSPOT - You have a plug-in that performs business logic on contact records. The plug-in is registered in the post-operation stage and is executed when a field named custom_field3 is updated. The plug-in contains the following code: For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point.

Illustration for PL-400 question 181 Illustration for PL-400 question 181
Show Answer
Correct Answer: No Yes Yes
Explanation:
Using ColumnSet(true) retrieves all columns and reduces performance. Plug-in images can supply the needed attributes, avoiding an extra retrieve. In pre-operation, changes to the target entity are applied automatically without calling Update.

Question 182

HOTSPOT - A company uses Dynamics 365 Sales. You need to configure the customer lookup search for email activity in the canvas app. How should you complete the expression? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:

Illustration for PL-400 question 182
Show Answer
Correct Answer: Box 1: IsBlank Box 2: IsType Box 3: AsType Box 4: AsType
Explanation:
The expression first checks whether the Company Name lookup is empty using IsBlank. It then determines whether the lookup refers to an Account or a Contact using IsType. Once the type is known, AsType is used to cast the lookup to the correct table so the appropriate name field (Account Name or Full Name) can be accessed.

Question 183

DRAG DROP - You are developing an inventory tracking component for a warehouse. You plan to use the component with a Power Apps app. Truck drivers will use tablet devices to confirm their cargo manifest. Warehouse employees will use their phones to pick and fulfill orders. The phone-based version must run in a Power Apps runtime container. You need to create a single Power Apps component that can be used on both tablet devices and phones. How should you complete the code segment? To answer, drag the appropriate code segments to the correct locations. Each code segment 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.

Illustration for PL-400 question 183
Show Answer
Correct Answer: getClient getFormFactor
Explanation:
Use context.client.getClient() to distinguish Mobile vs Web runtimes, and context.client.getFormFactor() to differentiate phone and tablet form factors within the Power Apps container.

Question 184

DRAG DROP - 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.

Illustration for PL-400 question 184 Illustration for PL-400 question 184
Show Answer
Correct Answer: Accounts receivable: OAuth 2.0 Bing Maps: API key
Explanation:
The accounts receivable API uses the OAuth 2.0 client credentials grant. Bing Maps requires a unique identifier passed in the query string, which corresponds to an API key.

Question 185

You are a Power Apps maker creating a chat bot for a website. The chat bot must recognize geographic attributes to enable additional functionality. You need to recommend a feature. What should you recommend?

A. Fallback topic
B. Power Automate Flow
C. Bot Service compliance
D. Slot filling
Show Answer
Correct Answer: D
Explanation:
Slot filling enables a chatbot to recognize and extract specific entities from user input, such as geographic attributes (city, state, country). This captured information can then be used to drive additional functionality. The other options do not focus on recognizing or extracting user-provided geographic data.

$19

Get all 406 questions with detailed answers and explanations

  • Instant download HTML + PDF delivered the moment payment clears.
  • Secure Stripe checkout we never see or store your card details.
  • 7-day refund if files are defective see our refund policy.