microsoft pl-400 practice test

Microsoft Power Platform Developer (beta)

Note: Test Case questions are at the end of the exam
Last exam update: May 13 ,2024
Page 1 out of 10. Viewing questions 1-15 out of 152

Question 1 Topic 8, Mixed Questions

HOTSPOT
A company is building a new model-driven app.
The app must integrate with a number of on-premises and cloud solutions. No VPNs are in place.
You need to determine the method for each integration.
Which methods should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation:
Box 1: Webhook
With Dataverse, you can send data about events that occur on the service to a web app by using webhooks. A webhook is a
lightweight HTTP pattern for connecting web APIs and services with a publish-and-subscribe model. Webhook senders notify
receivers about events by making requests to receiver endpoints with some information about the events.
Webhooks enable developers and ISVs to integrate Dataverse data with their own custom code hosted on external services.
Box 2: Azure Service Bus
Service Bus provides a secure and reliable communication channel between Dataverse runtime data and external, cloud-
based line-of-business apps. This capability is especially useful in keeping disparate Dataverse systems or other Dataverse
servers synchronized with business data changes.
Box 3: Azure Event hub
Azure Event Hubs is a big data streaming platform and event ingestion service. It can receive and process millions of events
per second. Data sent to an event hub can be transformed and stored by using any real-time analytics provider or
batching/storage adapters.
Note: The most popular approaches in Dataverse involve webhooks, Azure messaging (Service Bus, Event Hubs), Azure
Logic Apps, or Power Automate.
Reference: https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/why-cds-any-type-app

Discussions
0 / 1000

Question 2 Topic 8, Mixed Questions

HOTSPOT
A company updates their client contact information periodically. The contact entity has alternate keys defined.
You have the following code. (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.
Hot Area:

Answer:

Explanation:
Reference: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/use-alternate-key-create-record

Discussions
0 / 1000

Question 3 Topic 8, Mixed Questions

HOTSPOT
A company must copy customer account data changes from a Common Data Service (CDS) instance into an external
system.
Azure Storage Queues are used to pass the changes from CDS to the external system.
You have the following code. (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.
Hot Area:

Answer:

Explanation:
Box 1: Yes
Box 2: Yes
Box 3: No
Either new/updated or removed/deleted.
Box 4: Yes

Discussions
0 / 1000

Question 4 Topic 8, Mixed Questions

You need to identify the execution mode that is being used for the ISV solution reported by User5.
Which type of execution mode is in use?

  • A. asynchronous
  • B. atomicity
  • C. transfer
  • D. synchronous
Answer:

D

User Votes:
A
50%
B
50%
C
50%
D
50%

Explanation:
User5 receives the error message: Endpoint unavailable during a test of the technician dispatch ISV solution.
When you choose to use a synchronous execution mode any failure will be reported back to the user of the application with
an Endpoint unavailable error dialog informing the user that the webhook service endpoint may be configured incorrectly or
is not available.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/use-webhooks

Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 5 Topic 8, Mixed Questions

DRAG DROP
A company uses Dynamics 365 Sales.
Sales commission must be calculated when an order is placed. You create an Azure Function to perform the calculation. The
Azure Function has an HTTP trigger.
You need to configure the Plug-in Registration tool to send data to the Azure Function when an order is placed. You open
the Plug-in Registration tool and connect to Dynamics 365 Sales.
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.
Select and Place:

Answer:

Explanation:
Step 1:SelectRegister New Web Hook.
Configure Dynamics 365 Sales to Call Your Webhook in Azure Functions 1. Open the Plug-in Registration Tool and connect
to your organization. 2. Select Register->Register New Web Hook

Step 2: Enter the endpoint URL

Step 3: Register a New Step for Create of SalesOrder.
Register a new webhook, and then tie that webhook to an event in Dynamics 365 Sales. Select your newly registered
webhook, right-click it, and then choose "Register New Step." Note that the webhook here is set to execute whenever a
change to an account record is detected within Dynamics 365 Sales.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in

Discussions
0 / 1000

Question 6 Topic 8, Mixed Questions

The communication department for a company plans to add a publicly accessible survey page to the companys public
website.
You must add the new survey page to the companys public website and capture data from the page to a Common Data
Service environment.
Explicit user credentials must not be required to write survey data to Common Data Service.
You need to implement authentication.
Which authentication mechanism should you implement?

  • A. Microsoft 365
  • B. X.509 certificate
  • C. Azure AD Conditional Access
  • D. Claims-based
Answer:

C

User Votes:
A
50%
B
50%
C
50%
D
50%

Explanation:
With Azure AD Conditional Access the users are authenticated by Azure Active Directory (Azure AD).
Incorrect Answers:
A: Using Microsoft 365 authentication does not require that your register your applications as OAuth does. You must simply
provide a User Principal Name (UPN) and password for a valid user.
Reference:
https://docs.microsoft.com/en-us/power-platform/admin/wp-security

Discussions
vote your answer:
A
B
C
D
0 / 1000

Question 7 Topic 8, Mixed Questions

DRAG DROP
You are developing a Power Platform app for a school. The school plans to use the app to gather information about classes
and students.
You must design a plug-in for the app. You must store data about students in the Contacts table and store data about
classes in a custom table.
You need to select the stage in the event pipeline for each function.
Which stages should you use? To answer, drag the appropriate plug-in stages to the correct functions. Each plug-in stage
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.
Select and Place:

Answer:

Explanation:
Box 1: PreValidation
For the initial operation, this stage will occur before the main system operation.
This provides an opportunity to include logic to cancel the operation before the database transaction.
Box 2: 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.
Avoid cancelling an operation here. Canceling will trigger a rollback of the transaction and have significant performance
impact.
Box 3: PostOperation
Occurs after the main system operation and within the database transaction.
Use this stage to modify any properties of the message before it is returned to the caller.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/event-framework

Discussions
0 / 1000

Question 8 Topic 8, Mixed Questions

HOTSPOT
A training company implements a Common Data Service (CDS) environment. The company has created and stores
information about courses in a custom entity.
A Power Automate flow must be created whether a course has been created that starts within the next seven days and must
be accurate to the minute.
You need to define an expression that meets the requirements.
Which functions should you use for the expression? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation:
Box 1: less
less checks whether the first value is less than the second value. Return true when the first value is less, or return false
when the first value is more.
Box 2 : ticks
ticks(timestamp: string) - Returns the number of ticks (100 nanoseconds interval) since 1 Jan 1601 00:00:00 UT
Syntax: ticks('')
Box 3: triggerBody triggerBody returns a trigger's body output at runtime.
Box 4: ticks
Box 5: getFutureTime getFutureTime teturn the current timestamp plus the specified time units.
Syntax: getFutureTime(, , ?)
Reference: https://docs.microsoft.com/en-us/azure/logic-apps/workflow-definition-language-functionsreference

Discussions
0 / 1000

Question 9 Topic 8, Mixed Questions

HOTSPOT
An organization has a custom Assignments entity that guides agent actions. Team leaders for each assignment group must
be able to review any changes made to assignment data by their agents.
You have the following JSON segment:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation:
Box 1: Yes
Delta query lets you query for additions, deletions, or updates to users, by way of a series of delta function calls. Delta query
enables you discover changes to users without having to fetch the entire set of users from Microsoft Graph and compare
changes.
Box 2: No
Tracking user changes
Tracking user changes is a round of one or more GET requests with the delta function. You make a GET request much like
the way you list users, except that you include the following:
The delta function.
A state token (deltaToken or skipToken) from the previous GET delta function call.
Delta tokens are only valid for a specific period before the client application needs to run a full synchronization again. For
directory objects (application, administrativeUnit, directoryObject, directoryRole, group, orgContact, oauth2permissiongrant,
servicePrincipal, and user), the limit is 7 days.
Box 3: No
There is limited support for $filter:
The only supported $filter expression is for tracking changes on a specific object: $filter=id+eq+{value}. Box 4: Yes
Reference:
https://docs.microsoft.com/en-us/graph/api/user-delta

Discussions
0 / 1000

Question 10 Topic 8, Mixed Questions

DRAG DROP
A developer must register a step using the Plug-in registration tool.
You need to associate the correct Event Pipeline Stage of Execution with its purpose.
Which stage should you associate with each description? To answer, drag the appropriate stages to the correct descriptions.
Each stage 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.
Select and Place:

Answer:

Explanation:
Box 1: PreValidation
For the initial operation, this stage will occur before the main system operation.
This provides an opportunity to include logic to cancel the operation before the database transaction.
Box 2: 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.
Box 3: PostOperation
Occurs after the main system operation and within the database transaction.
Use this stage to modify any properties of the message before it is returned to the caller.
Incorrect Answers:
MainOperation: For internal use only except for Custom API and Custom virtual table data providers.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/data-platform/event-framework

Discussions
0 / 1000

Question 11 Topic 8, Mixed Questions

DRAG DROP You are creating a PowerApps connector between Dynamics 365 Sales and Slack.
You must generate a Slack notification whenever a new product is added to Dynamics 365 Sales. You must not be required
to sign in directly into Dynamics 365 Sales to generate notifications. You created a Power Apps connector between
Dynamics 365 Sales in Slack to enable this to happen.
You need to configure the appropriate security for each scenario?
Which security components should you configure?
NOTE: Each correct selection is worth one point.
Select and Place:

Answer:

Explanation:
Box 1: API key
Api Key based authentication: The user will need to provide the API key while creating the connection.
Box 2: OAuth
Oauth 2.0 is the most frequently used type, which uses the Oauth 2 authentication framework to authenticate with the
service. Before using this authentication type, you'll need to register your application with the service so that it can receive
access tokens for the users.
Box 3: Basic Authentication
Basic Authentication is the simplest type of authentication, where the user just has to provide the username and password to
create the connection.
Reference: https://docs.microsoft.com/en-us/connectors/custom-connectors/connection-parameters

Discussions
0 / 1000

Question 12 Topic 8, Mixed Questions

HOTSPOT
You work for a multinational company that has Azure and Common Data Service environment in the United States (UTC-7)
and Japan (UTC+9).
You create Azure Functions for each location to update key data.
You need to configure the functions to run at 4:00 AM on weekdays at each location.
Which schedule formats should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation:
Box 1: 0 0 4 * * 1-5
Azure Functions uses the NCronTab library to interpret NCRONTAB expressions.
An NCRONTAB expression is similar to a CRON expression except that it includes an additional sixth field at the beginning
to use for time precision in seconds: {second} {minute} {hour} {day} {month} {day-of-week}
NCRONTAB time zones
The numbers in a CRON expression refer to a time and date, not a time span. For example, a 5 in the hour field refers to
5:00 AM, not every 5 hours.
The default time zone used with the CRON expressions is Coordinated Universal Time (UTC).
To have your CRON expression based on another time zone, create an app setting for your function app named
WEBSITE_TIME_ZONE.
1-5 is weekdays Box 2: 0 0 4 * * 1-5
Reference:
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-timer?
Develop integrations

Discussions
0 / 1000

Question 13 Topic 8, Mixed Questions

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 and configure a Common Data Service application user.
You do not have administrator access to the Common Data Service 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.
Answer:

A D E

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
F
50%

Explanation:
Reference: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/walkthrough-register-app-azure-
active-directory

Discussions
vote your answer:
A
B
C
D
E
F
0 / 1000

Question 14 Topic 8, Mixed Questions

HOTSPOT
A manufacturing company takes online orders.
The company requires automatic validation of order changes. Requirements are as follows:
If validation is successful, the order is submitted.

If exceptions are encountered, a message must be shown to the customer.

You need to set up and deploy a plug-in that encapsulates the rules.
Which options should you use? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Answer:

Explanation:
Box 1: PreValidation
PreValidation: For the initial operation, this stage will occur before the main system operation.
This provides an opportunity to include logic to cancel the operation before the database transaction.
Box 2: Synchronous
Ideally, you should only cancel operations using synchronous plug-ins registered in the PreValidation stage. Box 3: Pre
Image
Box 4: throw ..
When you throw an InvalidPluginExecutionException exception within a synchronous plug-in an error dialog with your
message will be displayed to the user.
Reference: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/event-framework
https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/handle-exceptions

Discussions
0 / 1000

Question 15 Topic 8, Mixed Questions

You are creating a Power Apps app that retrieves customer information from Azure Active Directory when you use the app to
look up a customer record.
You create an Azure Function by using JSON code to retrieve the customer information.
You need to make the application work.
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 that uses the Azure Function API.
  • C. Copy your JSON code to the app.
  • D. Create a custom connector that uses the JSON code.
  • E. Create an API definition for the Azure Function.
Answer:

B E

User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%

Explanation:
E: Before exporting an API, you must describe the API using an OpenAPI definition.
B: This OpenAPI definition contains information about what operations are available in an API and how the request and
response data for the API should be structured. PowerApps and Microsoft Flow can create custom connectors for any
OpenAPI 2.0 definition.
Reference: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/azure-functions/app-service-export-api-to-
powerapps-and-flow.md

Discussions
vote your answer:
A
B
C
D
E
0 / 1000
To page 2