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
Start Mock Test Timed · Full-length · Scored

Questions 91–100 of 147

Q91

Which consistency level allows reads to only see acknowledged writes?

  • A Eventual
  • B Strong
  • C Session
  • D Bounded Staleness
Explanation Session consistency allows reading only acknowledged writes, while others may read stale data or uncommitted writes.
Q92

A company needs to completely avoid any downtime during database migrations. Which Azure Cosmos DB feature should they use?

  • A Manual failover
  • B Change Feed
  • C Multi-region Writes
  • D Continuous Backup
Explanation Multi-region Writes enable active-active database access, reducing downtime during migrations, while others do not directly prevent downtime.
Q93

You are configuring throughput for a container in Cosmos DB. What happens when you exceed the provisioned throughput?

  • A All operations fail immediately
  • B Requests are automatically throttled
  • C The database shuts down
  • D Throughput is temporarily increased
Explanation Requests are throttled when exceeding provisioned throughput, ensuring stability, while others misinterpret operational behavior.
Q94

Which consistency model allows reads to see the most recent committed write?

  • A Strong
  • B Eventual
  • C Bounded Staleness
  • D Session
Explanation Strong consistency ensures the latest write is always read, while others allow for stale reads.
Q95

A company needs to store JSON documents with automatic scaling. Which Cosmos DB API should they choose?

  • A SQL API
  • B MongoDB API
  • C Graph API
  • D Table API
Explanation The SQL API supports JSON documents with automatic scaling capabilities.
Q96

What happens when a partition key value evolves in Cosmos DB?

  • A The item is deleted.
  • B The item is merged.
  • C The item remains unchanged.
  • D It causes a conflict.
Explanation Items retain their partition key and do not change, even if the value evolves.
Q97

Which service provides global distribution for Cosmos DB?

  • A Azure Traffic Manager
  • B Azure Data Factory
  • C Azure Cosmos DB
  • D Azure Blob Storage
Explanation Azure Cosmos DB natively supports global distribution, while the others do not primarily provide this feature.
Q98

A company needs to query their data in real-time with low latency. What should they utilize in Azure Cosmos DB?

  • A Stored Procedures
  • B Change Feed
  • C Serverless API
  • D Partitioning Strategy
Explanation The Change Feed enables real-time processing of changes in the database, unlike the other options.
Q99

What happens when you change the consistency level of Azure Cosmos DB?

  • A Existing data is deleted
  • B All transactions are rolled back
  • C Query performance may vary
  • D New containers are created
Explanation Changing the consistency level can affect the performance of queries depending on the chosen level, while the others are factually incorrect.
Q100

Which consistency model in Azure Cosmos DB ensures the lowest latency?

  • A Eventual consistency
  • B Strong consistency
  • C Session consistency
  • D Bounded staleness
Explanation Eventual consistency provides the fastest response times, allowing for low-latency operations; while the others incur more overhead.