Free Demo Questions

Test Online Free Microsoft DP-420 Exam Questions and Answers

Practice a live sample before buying full access. This page keeps the free DP-420 question set organized by page so visitors and search engines can reach the canonical -questions.html URL directly.

Updated Apr 22, 2025 35 Questions 3 Pages
Page 3 of 3
Previous Page
Question 31 Selectable Answer
You plan to store order data in Azure Cosmos DB for NoSQL account. The data contains information about orders and their associated items.
You need to develop a model that supports order read operations. The solution must minimize the number or requests.

Answer:
Explanation:
Azure Cosmos DB is a multi-model database that supports various data models, such as documents, key-value, graph, and column-family3. The core content-model of Cosmos DB’s database engine is based on atom-record-sequence (ARS), which allows it to store and query different types of data in a flexible and efficient way3.
To develop a model that supports order read operations and minimizes the number of requests, you should consider the following factors:
✑ The size and shape of your data
✑ The frequency and complexity of your queries
✑ The latency and throughput requirements of your application
✑ The trade-offs between storage efficiency and query performance
Based on these factors, one possible model that you could implement is
B. Create a single database that contains one container. Create a separate document for each order and embed the order items into the order documents.
This model has the following advantages:
✑ It stores orders and order items as self-contained documents that can be easily retrieved by order ID1.
✑ It avoids storing redundant data or creating additional containers for order items1.
✑ It allows you to view the order history of a customer with simple queries1.
✑ It leverages the benefits of embedding data, such as reducing the number of requests, improving query performance, and simplifying data consistency2.
This model also has some limitations, such as:
✑ It may not be suitable for some order items that have data that is greater than 2 KB, as it could exceed the maximum document size limit of 2 MB2.
✑ It may not be optimal for scenarios where order items need to be queried independently from orders or aggregated by other criteria2.
✑ It may not support transactions across multiple orders or customers, as transactions are scoped to a single logical partition2.
Depending on your specific use case and requirements, you may need to adjust this model or choose a different one. For example, you could use a hybrid data model that combines embedding and referencing data2, or you could use a graph data model that expresses entities and relationships as vertices and edges.
Question 32 Selectable Answer
You need to identify which connectivity mode to use when implementing App2. The solution must support the planned changes and meet the business requirements.
Which connectivity mode should you identify?

Answer:
Explanation:
Scenario: Develop an app named App2 that will run from the retail stores and query the data in account2. App2 must be limited to a single DNS endpoint when accessing account2.
By using Azure Private Link, you can connect to an Azure Cosmos account via a private endpoint. The private endpoint is a set of private IP addresses in a subnet within your virtual network.
When you're using Private Link with an Azure Cosmos account through a direct mode connection, you can use only the TCP protocol. The HTTP protocol is not currently supported.
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-private-endpoints
Question 33 Selectable Answer
You have a database in an Azure Cosmos DB for NoSQL account. The database contains a container named container1. The indexing mode container1 is set to none. You configure Azure Cognitive Search to extract data from container1 and make the data searchable. You discover that the Cognitive Search index is missing all the data from the Azure Cosmos DB index.
What should you do to resolve the issue?

Answer:
Question 34 Selectable Answer
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?

Answer:
Explanation:
Cosmos DB Operator: Can provision Azure Cosmos accounts, databases, and containers.
Cannot access any data or use Data Explorer.
Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/role-based-access-control
Question 35 Written Answer
HOTSPOT
You have an Azure Cosmos DB for NoSQL account named account that has the disablekey Basedletadatwrite Access property enabled.
You are developing an app named App1 that will be used by a use1 named DevUser1 to create containers in account1. DevUser1 has a non-privileged user account in the Azure AD tenant.
You need to ensure that DevUser1 can use App1 to create containers in account1.
What should you do? To answer, select the appropriate options in the answer area. NOTE Each correct selection is worth one point.


Answer:

Showing page 3 of 3
Previous Page