Free Exam DP-420: Building AI Applications with Azure Cosmos DB Practice Questions
200 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the Exam DP-420: Building AI Applications with Azure Cosmos DB practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1A read must always return the most recently committed version of an item. Which Azure Cosmos DB consistency level provides this guarantee?
- A. Session
- B. Strong
- C. Bounded staleness
- D. Eventual
Answer: B
Explanation: The documentation states, "The reads are guaranteed to return the most recent committed version of an item." This is the strong consistency guarantee; session is scoped to a session, bounded staleness permits lag, and eventual permits stale reads.
Reference: Consistency levels in Azure Cosmos DB — Strong consistency
2An Azure-hosted application must authenticate to Cosmos DB while eliminating application-managed credentials and their rotation. Which identity mechanism meets this objective?
- A. A service principal using an application-managed client secret
- B. A service principal using an application-managed certificate
- C. A managed identity in Microsoft Entra ID
- D. An account key retrieved by the application from Key Vault
Answer: C
Explanation: Microsoft states, "Managed identities eliminate the need to manage credentials by providing an automatically managed identity in Microsoft Entra ID." Account keys and connection strings remain credentials that the application must protect.
Reference: Secure your Azure Cosmos DB for NoSQL account — Identity management, managed identities
3A vector policy declares 1,536 dimensions for /embedding. What requirement applies to vectors stored at that path?
- A. 1,536 is a minimum; vectors can have different larger lengths
- B. 1,536 is a maximum; vectors can have different smaller lengths
- C. All vectors at the path should have the declared dimensionality
- D. 1,536 constrains query vectors, but stored vectors can vary in length
Answer: C
Explanation: Microsoft states, "All vectors in a path should have the same number of dimensions." A policy describes the common vector shape for that path, rather than allowing per-item dimensionality changes.
Reference: Vector search in Azure Cosmos DB for NoSQL — Container vector policies, dimensions
4A globally distributed, single-write-region account uses bounded staleness with a version-count limit K and a time limit T. How do these configured limits constrain replication lag?
- A. The version-count limit governs writes, while the time limit governs reads
- B. Replication lag may continue until both configured limits have been reached
- C. Only one limit is active, selected when the account is configured
- D. The first of the two configured limits reached bounds the permitted lag
Answer: D
Explanation: Microsoft describes "The number of versions (K) of the item" and "The time interval (T) reads might lag behind the writes" as the two bounded-staleness limits. The first limit reached controls the permitted lag; the other choices do not provide these configured bounds.
Reference: Consistency levels in Azure Cosmos DB — Bounded staleness consistency
5An application's identity needs permission to query and create items, without administrative account management. Which authorization plane governs those data operations?
- A. Native data-plane RBAC with appropriate container-scoped data actions
- B. The Azure Cosmos DB Account Reader control-plane role alone
- C. The Cosmos DB Operator control-plane role alone
- D. The Azure Contributor control-plane role alone
Answer: A
Explanation: Microsoft instructs, "Use native data plane role-based access control to query, create, and access items within a container". Administrative roles and network access alone do not grant those item permissions.
Reference: Secure your Azure Cosmos DB for NoSQL account — Identity management, data plane authorization
6A vector workload considers changing stored vector elements from float32 to float16. What documented tradeoff should be evaluated?
- A. About half the vector storage footprint, with possible accuracy reduction
- B. About half the vector storage footprint, with no possible accuracy reduction
- C. About one quarter of the vector storage footprint, with possible accuracy reduction
- D. About twice the vector storage footprint, with improved numeric precision
Answer: A
Explanation: Microsoft states, "Using float16 instead can reduce the storage footprint of vectors by 50%, however some reduction in accuracy may result." Storage savings do not imply a guarantee of unchanged accuracy.
Reference: Vector search in Azure Cosmos DB for NoSQL — Container vector policies, float16 Note
7Which consistency level explicitly provides read-your-writes within a single client session without requiring strong consistency?
- A. Session
- B. Eventual
- C. Consistent prefix
- D. Bounded staleness
Answer: A
Explanation: Microsoft states, "In session consistency, within a single client session, reads are guaranteed to honor the read-your-writes, and write-follows-reads guarantees." This is a session-scoped guarantee, unlike the lag bound or weaker guarantees of the alternatives.
Reference: Consistency levels in Azure Cosmos DB — Session consistency
8A policy requires all application authentication to use Microsoft Entra ID rather than account keys. Which account configuration enforces this authentication boundary?
- A. Set properties.disableLocalAuth to false
- B. Rotate both account keys but leave local authentication enabled
- C. Assign data-plane roles but leave local authentication enabled
- D. Set properties.disableLocalAuth to true
Answer: D
Explanation: Microsoft's disable-key-authentication procedure sets "--set properties.disableLocalAuth=true". Assigning roles or rotating keys alone leaves key-based authentication available unless local authentication is disabled.
Reference: Connect to Azure Cosmos DB for NoSQL using role-based access control and Microsoft Entra ID — Disable key-based authentication
9What is the documented maximum vector dimensionality for the flat index type?
- A. 256 dimensions
- B. 1,536 dimensions
- C. 4,096 dimensions
- D. 505 dimensions
10A service passes a session token to another SDK client. What does that token represent when the receiving client reads?
- A. An exact historical item version
- B. A maximum version the client may read
- C. A minimum version barrier for the read
- D. An account-wide lock on subsequent writes
Answer: C
Explanation: The documentation explains, "The Session Token is used as a minimum version barrier but not as a specific (possibly historical) version of the data to be retrieved from the database." It is neither a snapshot selector, upper bound, nor write lock.
Reference: Consistency levels in Azure Cosmos DB — Session consistency, session token semantics
Topics in this practice bank
These topics describe the available practice for Exam DP-420: Building AI Applications with Azure Cosmos DB. Review the examination outline and its sources for scope and allocation details.
Design and develop database solutions
- Evaluate resource models and SDK solutions
- Implement database operations
- Design and implement data models and partitioning strategies
- Implement change feed
- Design and implement Azure Cosmos DB solutions by using AI-assisted tools
Secure, optimize, and deploy database solutions
- Implement database security controls
- Implement availability and recovery solutions
- Optimize and remediate database performance
- Implement Fleet management and monitoring across multiple accounts and subscriptions
Implement AI and analytics capabilities in database solutions
- Design and implement AI retrieval
- Design and implement agent memory stores
- Design and implement operational analytics on Azure Cosmos DB
How to use these free practice questions
Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.
These are independent study questions, not actual examination items. For examination requirements and official information, view Exam DP-420: Building AI Applications with Azure Cosmos DB details.