Practice Free DP-420 Exam Online Questions
HOTSPOT
You have an Apache Spark pool in Azure Synapse Analytics that runs the following Python code in a notebook.

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

You need to provide a solution for the Azure Functions notifications following updates to con-product. The solution must meet the business requirements and the product catalog requirements.
Which two actions should you perform? Each correct answer presents part of the solution. NOTE: Each correct selection is worth one point.
- A . Configure the trigger for each function to use a different leaseCollectionPrefix
- B . Configure the trigger for each function to use the same leaseCollectionNair.e
- C . Configure the trigger for each function to use a different leaseCollectionName
- D . Configure the trigger for each function to use the same leaseCollectionPrefix
You have an Azure subscription that contains an Azure Cosmos DB for NoSQL database named DB1.
You develop a software as a service (SaaS) app named App1 that uses DB1. App1 will be used by multiple vendors to manage their customers.
You need to create a container in DB1 that will store customer and order details for each vendor.
The solution must meet the following requirements:
• Each vendor must have a unique tenant ID.
• The performance of the container must be optimized for reads.
• Customer IDs can be duplicated across the container but must be unique for each vendor.
• The container must be optimized for concurrent queries from multiple customers. Each query will return data for a single vendor.
How should you configure the container?
- A . Add a partition key to the tenant ID and a unique key policy to the customer ID.
- B . Add hierarchical partition key on (tenant identifier, customer identifier).
- C . Add a partition key to the customer ID and a unique key policy to the tenant ID.
- D . Add hierarchical partition key on (customer identifier, tenant identifier).
You have a database named db1in an Azure Cosmos DB for NoSQL account named account 1. You need to write JSON data to db1 by using Azure Stream Analytics. The solution must minimize costs.
Which should you do before you can use db1 as an output of Stream Analytics?
- A . in account, add a private endpoint.
- B . In db1, create containers that have a custom indexing policy and analytical store disabled.
- C . In account, enable a dedicated gateway.
- D . In db1, create containers that have an automatic indexing policy and analytical store enabled.
You have an Azure Cosmos DB for NoSQL database that hosts a container named Container1 For Container1. the DefaultTimeToLive property is -1.
You insert an item into Container1. The property of the inserted item is 10O0.
When will the item be deleted automatically?
- A . one second after the item is last accessed
- B . 1,000 seconds after the item is last accessed
- C . 1.000 seconds after the item is last modified
- D . never
You have an Azure Cosmos DB Core (SQL) API account.
You configure the diagnostic settings to send all log information to a Log Analytics workspace.
You need to identify when the provisioned request units per second (RU/s) for resources within the account were modified.
You write the following query.
AzureDiagnostics
| where Category == "ControlPlaneRequests"
What should you include in the query?
- A . | where OperationName startswith "AccountUpdateStart"
- B . | where OperationName startswith "SqlContainersDelete"
- C . | where OperationName startswith "MongoCollectionsThroughputUpdate"
- D . | where OperationName startswith "SqlContainersThroughputUpdate"
HOTSPOT
You have a development environment that uses multiple Azure subscriptions.
You plan to deploy a single Azure Cosmos DB account that will contain a single database in each subscription.
You need to automate the deployment by using an Azure Resource Manager (ARM) template.
The solution must meet the following requirements:
• Minimize Azure Cosmos DB-related charges.
• Maximize the available request units per second (RU/s) without increasing costs.
How should you complete the template? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

You have a container named container1 in an Azure Cosmos DB Core (SQL) API account.
You need to provide a user named User1 with the ability to insert items into container1 by using role-based access control (RBAC). The solution must use the principle of least privilege.
Which roles should you assign to User1?
- A . CosmosDB Operator only
- B . DocumentDB Account Contributor and Cosmos DB Built-in Data Contributor
- C . DocumentDB Account Contributor only
- D . Cosmos DB Built-in Data Contributor only
HOTSPOT
You have the Azure Cosmos DB for NoSQL containers shown in the following table.

You have the items shown in the following table.

When will each item expire? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

HOTSPOT
You have an Azure Cosmos DB Core (SQL) API account named storage1 that uses provisioned throughput capacity mode.
The storage1 account contains the databases shown in the following table.

The databases contain the containers shown in the following table.

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



