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 1–10 of 147

Q1

Which consistency level in Azure Cosmos DB provides the highest performance with relaxed consistency guarantees?

  • A Eventual
  • B Bounded Staleness
  • C Strong
  • D Session
Explanation Eventual consistency prioritizes performance over up-to-date data; others provide stronger guarantees.
Q2

A company needs to store large amounts of unstructured data efficiently. Which Azure Cosmos DB API would be the best fit?

  • A Table API
  • B Graph API
  • C MongoDB API
  • D SQL API
Explanation The MongoDB API is ideal for unstructured data; others are less effective for that use case.
Q3

What happens when a request exceeds the provisioned throughput in Azure Cosmos DB?

  • A Request is automatically throttled
  • B Request is queued for processing
  • C Request fails with a rate limit error
  • D No effect, request is ignored
Explanation Requests over throughput limits face throttling and return a rate limit error; others describe incorrect behaviors.
Q4

Which feature of Azure Cosmos DB ensures minimal latency?

  • A Global distribution
  • B Data warehousing
  • C Concurrent transactions
  • D Automatic backups
Explanation Global distribution allows access closer to users, minimizing latency. Other options do not directly influence latency as effectively.
Q5

A company needs to partition a large dataset in Azure Cosmos DB. What should they consider when choosing a partition key?

  • A Random string value
  • B Static data value
  • C Highly dynamic property
  • D Value with uniform distribution
Explanation A uniform distribution of values for partition key ensures even data distribution. The other options could lead to data skew from uneven partitions.
Q6

You are configuring a Cosmos DB account for multi-tenant architecture. What is a recommended approach for tenant isolation?

  • A Use a single partition key
  • B Create unique containers per tenant
  • C Store tenants in the same database
  • D Use combined resource groups
Explanation Creating unique containers per tenant offers better isolation. The other options may lead to security and performance issues.
Q7

Which consistency model in Azure Cosmos DB offers the least data consistency?

  • A Eventual Consistency
  • B Strong Consistency
  • C Session Consistency
  • D Bounded Staleness
Explanation Eventual consistency provides the least consistency, allowing for data to be out-of-date temporarily.
Q8

A company needs to ensure that sensitive data submitted to a Cosmos DB will be automatically encrypted at rest. Which feature should they enable?

  • A Client-Side Encryption
  • B Azure Security Center
  • C Transparent Data Encryption
  • D Azure Key Vault
Explanation Transparent Data Encryption automatically encrypts data at rest in Cosmos DB.
Q9

What happens when a user configures a Cosmos DB container with a throughput of 400 RU/s?

  • A All reads are unlimited.
  • B 400 RU/s for all operations.
  • C Only writes can exceed 400 RUs.
  • D Container can scale without limits.
Explanation A configured throughput of 400 RU/s caps the total request units per second for all operations.
Q10

Which consistency model guarantees linearizability in Azure Cosmos DB?

  • A Strong
  • B Eventual
  • C Bounded Staleness
  • D Session
Explanation Strong consistency ensures linearizability by guaranteeing the latest write is always visible.