Microsoft PL-400 Practice Test - Questions Answers, Page 19
List of questions
Question 181

HOTSPOT
You need to complete a Power Apps component framework (PCF) control.
How should you define the order in the manifest? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: 1
The css order element is the order in which the CSS files should load.
Box 2: 1
The html order element is the order in which the HTML files should load.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/css
https://docs.microsoft.com/en-us/powerapps/developer/component-framework/manifest-schema-reference/html
Question 182

HOTSPOT
You are developing a business process flow.
JavaScript must be used to implement additional business logic in the business process flow.
You need to evaluate the JavaScript code.
What is the result of running each code segment? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: Hides the control in the body of the form.
The Client API form context (formContext) provides a reference to the form or to an item on the form, such as, a quick view control or a row in an editable grid, against which the current code is executed. setVisible sets a value that indicates whether the control is visible.
Box 2: Add an event handler to enable a function named TestFunction to run when the business process flow stage changes.
addOnStageChange adds a function as an event handler for the OnStageChange event so that it will be called when the business process flow stage changes.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/clientapi-form-context
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/formcontext-dataprocess/eventhandlers/addonstagechange
Question 183

HOTSPOT
A company has a canvas app that has a screen with a gallery of contacts.
Users must be able to search the gallery by last name, email address, and country/region. They must also be able to sort by last name, followed by country/region.
You need to define the expression that meets the requirements.
How should you complete the expression? To answer, select the appropriate options from the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: SortByColums
The SortByColumns function can be used to sort a table based on one or more columns.
The parameter list for SortByColumns provides the names of the columns to sort by and the sort direction per column.
Sorting is performed in the order of the parameters (sorted first by the first column, then the second, and so on).
Box 2: Filter
The Filter function finds records in a table that satisfy a formula. Use Filter to find a set of records that match one or more criteria and to discard those that don't.
Incorrect Answers:
Lookup: The LookUp function finds the first record in a table that satisfies a formula. Use LookUp to find a single record that matches one or more criteria. Search: Search function uses a single string to match instead of a formula.
Reference: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-sort
Question 184

DRAG DROP
You are a Power Platform developer.
Users report several access issues.
You need to resolve the user access issues.
What should you use? To answer, drag the appropriate security options to the correct scenarios. Each security option 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: Conditional access
You can limit access to users with block access by location to reduce unauthorized access. By using Conditional Access policies, you can apply the right access controls when needed to help keep your organization secure and stay out of your user's way when not needed. Conditional Access analyses signals such as user, device, and location to automate decisions and enforce organizational access policies for resources.
Box 2: DLP policy
DLP policies enforce rules for which connectors can be used together by classifying connectors as either Business or Non-
Business. If you put a connector in the Business group, it can only be used with other connectors from that group in any given app or flow. Sometimes you might want to block the usage of certain connectors altogether by classifying them as
Blocked.
Box 3: Exfiltration blocking
Email exfiltration controls for connectors
Microsoft Exchange enables admins to disable email autoforwards and autoreplies to remote domains for external recipients.
Exchange does this by using message-type headers, such as Auto Forward received from Outlook and Outlook on web clients.
Reference:
https://docs.microsoft.com/en-us/power-platform/admin/restrict-access-online-trusted-ip-rules https://docs.microsoft.com/en- us/power-platform/admin/wp-data-loss-prevention https://docs.microsoft.com/en-us/power-platform/admin/block-forwardedemail-from-power-automate
Question 185

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.
Explanation:
Box 1: IsBlank
The IsBlank function tests for a blank value or an empty string. The test includes empty strings to ease app creation since some data sources and controls use an empty string when there is no value present.
Box 2: IsType
The IsType function tests whether a record reference refers to a specific table type.
Box 3: AsType
The AsType function treats a record reference as a specific table type, sometimes referred to as casting. You can use the result as if it were a record of the table and again use the Record.Field notation to access all of the fields of that record. An error occurs if the reference isn't of the specific type. Box 4: AsType
Reference: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-isblank-isempty
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-astype-istype
Question 186

HOTSPOT
You are designing an integration between Dataverse and an external application. The external application processes thousands of records per day.
Record processing volumes vary throughout the day. Extremely high processing volumes may occur and may exceed the Dataverse service protection API limits.
You need to implement each service protection limit that is enforced.
Which implementations should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: Number per user over a sliding window of time
Service protection API limits are enforced based on three facets:
The number of requests sent by a user.
The combined execution time required to process requests sent by a user. The number of concurrent requests sent by a user.
The following table describes the default service protection API limits enforced per web server:
Box 2: Combined time per user over a sliding window of time
Box 3: Fixed number per user
Reference:
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/api-limits
Question 187

HOTSPOT
You need to synchronize pharmacy names and ensure that Dynamics 365 Sales data propagates correctly to the Cerner system.
What should you do? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: Use a Data Integration template in Power Apps.
Ensure that the names of the pharmacies are synced between the accounting and the customer management systems.
Note: The Data Integrator (for Admins) is a point-to-point integration service used to integrate data into Dataverse. It supports integrating data between Finance and Operations apps and Dataverse. It also supports integrating data into
Finance and Operations apps and Dynamics 365 Sales.
The Data Integrator (for Admins) consists of the Data Integration platform, out-of-the-box templates provided by our application teams (for example, Finance and Operations apps and Dynamics 365 Sales) and custom templates created by our customers and partners.
Box 2: Create a workflow in Dynamics 365 Sales.
Account numbers should be entered automatically into the pharmaceutical system that is in a Cerner database and kept in sync.
Note: Start When: Use the options in this section to specify when a workflow should start automatically. You can configure a real-time workflow to be run before certain events. This is a very powerful capability because the workflow can stop the action before it occurs. The options are:
Record is created
Record status changes
Record is assigned
Record fields change Record is deleted
Reference: https://docs.microsoft.com/en-us/power-platform/admin/data-integrator
Question 188

HOTSPOT
An online store has a custom web page that allows customers to place their orders against a Microsoft Dataverse database that uses custom products. The custom web page uses Web API patterns to create and update records.
Customers report that orders can be placed for out-of-stock items.
You need to update the page code to ensure that inventory is available before confirming an order.
Which pattern should you use for each step? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Explanation:
Box 1: IsOptimisticConcurrencyEnabled
On a multi-threaded and multi-user system like Power Apps, operations and data changes often happen in parallel. A problem arises when two or more update or delete operations on the same piece of data happen at the same time. This situation could potentially result in data loss. The optimistic concurrency feature provides the ability for your applications to detect whether a table record has changed on the server in the time between when your application retrieved the record and when it tries to update or delete that record.
Box 2: If-Match: Etag
Use If-Match and If-None-Match headers with ETag values to check whether the current version of a resource matches the one last retrieved, matches any previous version or matches no version. These comparisons form the basis of conditional operation support. Dataverse provides ETags to support conditional retrievals, optimistic concurrency, and limited upsert operations.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/optimistic-concurrency
https://docs.microsoft.com/en-us/powerapps/developer/data-platform/webapi/perform-conditional-operations-using-web-api
Question 189

A Power Platform solution includes the following Web API call:
GET http://contoso.crm.dynamics.com/api/data/v9.1/RelationshipDefinitions?$select=SchemaName
You need to explain what this line of code is doing.
What does the code do?
Retrieve the list of relationships between tables.
Retrieve a list of tables that are related to each other.
Retrieve a list of one-to-many relationships with other tables.
Retrieve a list of tables that have more than one relationship.
Retrieve a list of many-to-many relationships with other tables.
Explanation:
https://docs.microsoft.com/en-us/power-apps/developer/data-platform/webapi/query-metadataweb-api
Question 190

HOTSPOT
You need to correct the JavaScript code that communicates with the address verification API.
For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Question