Microsoft

PL-400 Free Practice Questions — Page 20

Question 186

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution. Determine whether the solution meets the stated goals. Some question sets might have more than once correct solution, while others might not have a correct solution. After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen. A university implements Dynamics 365 Sales. Several departments use opportunity records to bid for funding for projects within their own departments. You configure the system to ensure that each department can only work on their own records. Employees in multiple departments often need to work together on an opportunity. Employees report that they are not able to see opportunities from other departments. You need to ensure that employees from more than one department can work on the same opportunities when necessary. Solution: Share the individual opportunity that members of one department are working on with all members of the second department, and give those members the appropriate permissions. Does the solution meet the goal?

A. Yes
B. No
Show Answer
Correct Answer: A
Explanation:
The goal is to allow employees from more than one department to work on the same opportunity when necessary, while keeping departments restricted to their own records by default. Sharing an individual opportunity record with users from another department and granting appropriate permissions is a supported Dynamics 365 mechanism that enables cross-department collaboration on specific records without changing the overall security model. Therefore, the solution meets the stated goal.

Question 187

You are creating a canvas app to retrieve user sign in information from Microsoft Azure Active Directory (Azure AD) when someone searches for information about an end user. You create an Azure Function to retrieve the required information by using JSON. You need to ensure that the application functions correctly. Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.

A. Create a Power Automate flow to import data.
B. Create a custom connector by using the Azure Function API.
C. Use app designer in the Power Platform admin center.
D. Use Azure Service Bus.
E. Create an API definition for the Azure Function.
Show Answer
Correct Answer: B, E
Explanation:
A canvas app cannot directly call an Azure Function unless it is exposed in a way Power Apps understands. Creating an API definition for the Azure Function defines the endpoints, methods, and JSON schema. Creating a custom connector based on that Azure Function API allows the canvas app to securely call the function and retrieve Azure AD sign-in information. Other options are not required for this integration.

Question 188

You are creating an integration that uses an Azure function to create records in the Common Data Service when leads are submitted from your company website. You create a user and grant the user the Basic User security role. You do not have administrator access to the environment you are using or access to Azure Active Directory. Company policy dictates that service accounts must be used for integrations, and integrations must not be granted privileges beyond what is needed. You need to recommend actions that an administrator should perform to configure access for the Azure Function. Which three actions should you perform? Each correct selection presents part of the solution. NOTE: Each correct selection is worth one point.

A. Create an application registration in Azure Active Directory.
B. Assign the system administrator security role to the application user.
C. Assign the Power Platform administrator role to the application user in Azure Active Directory.
D. Create a new security role with the minimum required permissions and assign to the application user.
E. Grant the application delegated permissions to the Dynamics CRM API in Azure Active Directory.
F. Deploy Azure B2B guest permissions to the application user.
Show Answer
Correct Answer: A, D, E
Explanation:
An Azure Function integrating with Dataverse using a service account should authenticate via an app registration in Azure Active Directory, which an administrator must create. To follow least-privilege principles, the administrator should create a custom Dataverse security role with only the required permissions and assign it to the application user. The app registration must also be granted appropriate permissions to the Dynamics CRM (Dataverse) API so it can create records. Admin-level roles or excessive privileges are not required.

Question 189

You are creating a model-driven app. You create JavaScript code to display a message when a record is saved. You need to configure the associated JavaScript web resource name when adding the event handler to the form. Which field should you use?

A. Event Type
B. Component
C. Function
D. Library
Show Answer
Correct Answer: D
Explanation:
When adding an event handler to a model-driven app form, the JavaScript web resource that contains the code is specified in the **Library** field. The **Function** field is then used to specify the function name within that web resource to execute on the event (such as OnSave). Therefore, the associated JavaScript web resource name belongs in the Library field.

Question 190

You develop a model-driven app to manage customer information. You have the system administrator security role on all environments. You create a business process flow that is associated with the Contact table. You grant users Create, Read, and Write permissions on the business process flow. Users report that the new business process flow does not appear when the users create new contact records. You verify that you can view the business process flow when you sign into the app and create a new contact record. You need to resolve the issue. What should you do?

A. Grant users the Run Flows privilege.
B. In the app designer, ensure that the business process flow is added to the app.
C. Grant users the Organization Read permission on the Process table.
D. Open the business process flow and associate the flow with the user security roles by using the Edit security button on the command bar.
Show Answer
Correct Answer: D
Explanation:
Business process flows are not only controlled by table privileges; they must also be explicitly enabled for the users’ security roles. Even if users have Create, Read, and Write permissions on the BPF, they will not see it unless the flow is associated with their security roles. Opening the business process flow and using the Edit security option to associate it with the appropriate roles ensures the BPF appears when users create new contact records.

Question 191

HOTSPOT - The following code updates the customersizecode choice column on the Account table if the numberofemployees column value is greater than 100. Line numbering is provided for information 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.

Illustration for PL-400 question 191 Illustration for PL-400 question 191
Show Answer
Correct Answer: No No No
Explanation:
1) Retrieve expects a Guid for the record ID; the method signature uses string without conversion. 2) The Update only sets customersizecode; numberofemployees is not updated, so an update plug-in filtered on that column would not execute. 3) GetAttributeValue<int> returns the default value (0) when the attribute is null, so no exception is thrown.

Question 192

You are configuring a custom connector for a web service. The web service is hosted in two different regions. The web service URL includes a common domain name and a unique sub-domain for each region. The custom connector must allow the region to be entered for additional regions when creating the connection. You need to create a policy template. Which template type should you use?

A. Set HTTP header
B. Route request
C. Set host URL
D. Set query string parameter
Show Answer
Correct Answer: C
Explanation:
The requirement is to dynamically construct the service URL based on a region-specific subdomain while keeping the common domain. The **Set host URL** policy template is designed to dynamically set or modify the hostname of the request URL using connection parameters (such as region). Route request is for selecting between predefined endpoints, not building hostnames, and headers or query parameters do not change the URL host. Therefore, Set host URL is the correct choice.

Question 193

DRAG DROP - A company is configuring Microsoft Power Virtual Agents and Power Automate flows that use model-driven apps. The company has a website that uses Power Pages. You create Power Virtual Agents bot topics. You must configure the following: • Use a bot on the website. • Create Bot Framework skills. • Create a support request from the bot without human interaction. You need to configure the website.

Illustration for PL-400 question 193
Show Answer
Correct Answer: Use a bot on the website: Power Pages Create Bot Framework skills: Power Virtual Agents Create support request from the bot: Power Automate
Explanation:
Power Pages is used to embed and expose a Power Virtual Agents bot on a website. Bot Framework skills are created and managed through Power Virtual Agents. Creating a support request without human interaction requires an automated workflow, which is handled by Power Automate flows triggered from the bot.

Question 194

HOTSPOT - 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.

Illustration for PL-400 question 194
Show Answer
Correct Answer: Full name of the primary contact: Expand Query = primarycontactid($select=fullname) Account with the highest credit limit: Row count = 1 and Sort By = creditlimit desc
Explanation:
To retrieve a related contact’s full name from the Account table, an OData $expand on the primarycontactid navigation property with $select=fullname is required. To get the account with the highest credit limit, limit the result set to one row and sort the records by creditlimit in descending order.

Question 195

You are developing a model-driven app for a company that sells sporting goods. You add a button to a page that displays information for a product. The button must copy information for the selected product and create a record in the data source. You add the following code to the button. (Line numbers are included for reference only.) You need to complete the code. Which function should you insert at line 01?

A. UpdateContext(
B. IsMatch(
C. LoadData(
D. Patch(
E. SaveData(
Show Answer
Correct Answer: D
Explanation:
The requirement is to copy information from the selected product and create a new record in the data source. In Power Apps (including model-driven apps with Power Fx commands), the Patch function is used to create or update records in a data source. The other options either validate text (IsMatch), work with local storage (LoadData, SaveData), or manage context variables (UpdateContext), none of which create records in a data source.

$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.