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 61–70 of 147

Q61

Which partitioning strategy can yield the best scalability in Cosmos DB?

  • A Single partition key
  • B Composite partition key
  • C Hash partitioning only
  • D Unpartitioned container
Explanation A composite partition key balances load across multiple keys, enhancing scalability, while single or unpartitioned keys can create hotspots.
Q62

A company needs to query Cosmos DB for specific users based on their age and city. Which index option is recommended?

  • A Create a spatial index
  • B Use composite indexes
  • C Use automatic indexing
  • D Manually index every document
Explanation Composite indexes allow efficient multi-property queries, directly supporting this type of query, whereas other options may not optimize performance.
Q63

What happens when you exceed the provisioned throughput on a Cosmos DB container?

  • A Requests are throttled
  • B Requests fail with no response
  • C Data is deleted automatically
  • D Server allocates more resources
Explanation Exceeding provisioned throughput leads to throttling, resulting in HTTP 429 status codes, while other options are not accurate.
Q64

Which service helps manage throughput in Azure Cosmos DB?

  • A Request Units (RUs)
  • B Partition Keys
  • C Blob Storage
  • D Virtual Machine Scale Sets
Explanation Request Units (RUs) measure throughput while others do not.
Q65

A company needs to integrate Azure Cosmos DB with Azure Functions. What approach should they take?

  • A Direct connection via SQL API
  • B Use Event Grid notification
  • C Implement Change Feed Trigger
  • D Store daily backups in Blob
Explanation Change Feed Trigger automatically reacts to changes; the others do not effectively enable integration.
Q66

What happens when you delete a container in Azure Cosmos DB?

  • A All stored procedures are deleted
  • B Data is permanently removed
  • C Throughput is reduced for the account
  • D Indexing settings are preserved
Explanation Deleting a container permanently removes all data while the others imply incorrect outcomes.
Q67

Which API model is used for global distribution in Cosmos DB?

  • A Multi-master model
  • B Single-master model
  • C Transactional model
  • D Sharded model
Explanation The multi-master model allows for concurrent writes in a globally distributed system, while others do not.
Q68

A company needs to store large volumes of structured data with low latency and scalability. Which Cosmos DB API should they use?

  • A SQL API
  • B Table API
  • C Gremlin API
  • D Cassandra API
Explanation The SQL API is designed for structured data and offers low latency.
Q69

You are configuring consistency levels in Cosmos DB. What happens when you select Strong consistency?

  • A Unlimited read availability
  • B Lowest latency reads
  • C Linearizability
  • D Eventual consistency
Explanation Strong consistency guarantees linearizable reads after writes, unlike the others.
Q70

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

  • A Strong
  • B Eventual
  • C Bounded Staleness
  • D Session
Explanation Eventual consistency provides the lowest latency but does not guarantee immediate consistency, unlike the others.