DP-420 English PDF practice questions: 271 questions with answers and available explanations. Access covers this exam only. One-time payment; no automatic renewal.
Exam overview
For developers modeling, querying and optimizing Azure Cosmos DB data, including support for AI applications.
Exam code
DP-420
Official exam / credential
Azure Cosmos DB AI Developer
Exam format
Proctored assessment; interactive items may be included
Exam duration
100 minutes
Official exam languages
English, Japanese, Simplified Chinese, Korean, German, French, Spanish, Portuguese (Brazil), Traditional Chinese, Italian
Official exam languages and practice-question file languages are listed separately. Confirm the exam version and available languages when booking with the provider.
Start with the provider’s current objectives as a checklist, then test whether you can explain each topic and apply it in a practical setting. Use the free sample questions as a diagnostic for finding the areas that need review.
Attempt the question before opening its answer and explanation.
For every missed question, verify the underlying concept with official documentation or hands-on practice instead of memorising an answer.
Before booking, recheck the exam code, version and available test languages on the provider’s official page.
Questions follow the source order. Expand each answer to see its explanation.
Disclaimer: All questions on ExamPico are compiled from internet sources and are provided for study reference only.
Question 1
HOTSPOT - You have an Azure Cosmos DB Core (SQL) API account named account1 that has the disableKeyBasedMetadataWriteAccess property enabled. You are developing an app named App1 that will be used by a user named DevUser1 to create containers in account1. DevUser1 has a non-privileged user account in the Azure Active Directory (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. Hot Area:
Show answer and explanation
Answer
CB
Explanation
With disableKeyBasedMetadataWriteAccess enabled, use RBAC to grant container creation permissions. Container creation is a control-plane operation via the Azure Resource Manager API.
Question 2
HOTSPOT - You have an Azure Cosmos DB Core (SQL) account that has a single write region in West Europe. You run the following Azure CLI script. 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:
Show answer and explanation
Answer
YNN
Explanation
failover-priority-change makes North Europe the write region. West Europe becomes read-only. Adding a region increases cost.
Question 3
You are developing an application that will use an Azure Cosmos DB Core (SQL) API account as a data source. You need to create a report that displays the top five most ordered fruits as shown in the following table. A collection that contains aggregated data already exists. The following is a sample document: Which two queries can you use to retrieve data for the report? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point. A. B. C. D.
A. SELECT TOP i.name, i.types, i.orders FROM items i WHERE EXISTS(SELECT VALUE t FROM t IN i.types WHERE t.name = 'fruit') ORDER BY i.orders, i.types
B. SELECT TOP i.name, i.types, i.orders FROM items i WHERE EXISTS(SELECT VALUE t FROM t IN i.types WHERE t.name = 'fruit') ORDER BY i.orders DESC
C. SELECT TOP i.name, i.types, i.orders FROM items i WHERE EXISTS(SELECT VALUE t FROM t IN i.types WHERE t.name = 'fruit') ORDER BY i.types DESC
D. SELECT TOP i.name, i.types, i.orders FROM items i WHERE ARRAY_CONTAINS(i.types, {name: 'fruit'}) ORDER BY i.orders DESC
Show answer and explanation
Answer
BD
Explanation
Top five fruits require ORDER BY i.orders DESC. Options B and D filter fruit items and sort by orders descending.
Question 4
HOTSPOT - You have a database in an Azure Cosmos DB Core (SQL) API account. You plan to create a container that will store employee data for 5,000 small businesses. Each business will have up to 25 employees. Each employee item will have an emailAddress value. You need to ensure that the emailAddress value for each employee within the same company is unique. To what should you set the partition key and the unique key? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
Show answer and explanation
Answer
AB
Explanation
Use companyId as partition key. Unique key on emailAddress enforces uniqueness per company (logical partition).
Question 5
HOTSPOT - You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. The container1 container has 120 GB of data. The following is a sample of a document in container1. The orderId property is used as the partition key. 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:
Show answer and explanation
Answer
YYN
Explanation
Partition key is orderId. Queries without orderId equality are cross-partition. Query with orderId equality is single-partition.
Downloads and personal use
Purchase this exam question set separately with 1, 3, 6 or 12 months of download access.
After payment confirmation, My Library shows the generation status. We will email you when your PDF is ready to download.
Download again during your term. Purchase a new term after expiry.
PDFs are licensed for personal study only and must not be resold or shared publicly.
Files already saved to your device are not remotely deleted when access expires.