Microsoft Azure
Azure Cosmos DB Developer Specialty
DP-420
Specialize in Azure Cosmos DB with the DP-420 exam designed for developers.
147 questions
0 views
Free
Questions 81–90 of 147
What happens when you configure a Cosmos DB container with a unique key policy?
-
A
Enforces uniqueness of specified fields
-
B
Increases read throughput automatically
-
C
Reduces storage costs by 50%
-
D
Disables multi-region writes
Explanation
A unique key policy enforces the uniqueness of the specified fields in documents within the container.
Which service in Azure Cosmos DB enables automatic scaling of throughput?
-
A
Autoscale provisioned throughput
-
B
Manual throughput settings
-
C
Fixed resource model
-
D
Azure Functions provisioning
Explanation
Autoscale provisioned throughput adjusts automatically based on load, while others do not provide dynamic scaling.
You are configuring a multi-region Cosmos DB account. What is the key benefit of enabling region writes?
-
A
Reduced latency for users
-
B
Decrease in global consistency
-
C
Increased instance costs
-
D
Loss of read capacity
Explanation
Enabling region writes minimizes latency for users by allowing them to write closest to their geographical location.
A company needs real-time analytics on their transactions stored in Cosmos DB. What feature should they use?
-
A
Change feed
-
B
Stored procedures
-
C
Triggers
-
D
Manual querying
Explanation
The change feed allows real-time processing of transactions, while others do not provide the same real-time capabilities.
Which consistency level provides the strongest guarantee in Cosmos DB?
-
A
Strong
-
B
Bounded Staleness
-
C
Eventual
-
D
Session
Explanation
Strong consistency guarantees reads reflect all writes immediately; others do not.
A company needs to optimize their Cosmos DB performance for queries that involve a range of documents. What should they implement?
-
A
Partitioning Strategy
-
B
Change Feed
-
C
Stored Procedures
-
D
Throughput Scaling
Explanation
Partitioning Strategy ensures efficient access to relevant documents during range queries; others don't enhance query performance directly.
You are configuring a Cosmos DB for a multi-region write scenario. What must you consider for latency?
-
A
Use Strong Consistency
-
B
Use Multi-Region Writes
-
C
Avoid Partitioning
-
D
Use Serverless Mode
Explanation
Multi-Region Writes enable reduced latency across regions; others either increase latency or are irrelevant for the scenario.
Which service in Azure Cosmos DB provides multi-region writes?
-
A
Multi-Region Write
-
B
Shared Throughput
-
C
Single Region Mode
-
D
Global Database
Explanation
Multi-Region Write allows writes in any region, unlike other options.
A company needs to handle massive traffic with low latency and global distribution. What should they choose?
-
A
Azure SQL Database
-
B
Azure Blob Storage
-
C
Azure Cosmos DB
-
D
Azure Table Storage
Explanation
Azure Cosmos DB is designed for high throughput and global distribution.
What happens when you exceed the provisioned throughput in Azure Cosmos DB?
-
A
Requests are aborted
-
B
Requests are queued
-
C
You are billed for the overflow
-
D
Throttling occurs
Explanation
Throttling occurs when the requests exceed provisioned throughput limits.