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 101–110 of 147

Q101

A company needs to ensure that API requests to Azure Cosmos DB are authenticated and authorized. What should they use?

  • A Azure Managed Identities
  • B Cosmos DB SQL API
  • C Resource Tokens
  • D Shared Access Signatures
Explanation Azure Managed Identities provide seamless authentication for Azure services, while the others either lack integration or add complexity.
Q102

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

  • A Data is kept for recovery
  • B Data is permanently lost
  • C Container can be restored later
  • D Triggers still run after deletion
Explanation Deleting a container permanently removes its data without recovery options, while the other options are incorrect regarding the nature of deletion.
Q103

Which consistency level provides strongest guarantees in Azure Cosmos DB?

  • A Strong
  • B Session
  • C Eventual
  • D Bounded Staleness
Explanation Strong consistency ensures the most up-to-date data, while others have looser guarantees.
Q104

A company needs to secure their data in Azure Cosmos DB. Which feature should they use?

  • A Role-Based Access Control
  • B Automatic Indexing
  • C Geo-Replication
  • D Request-Unit Pricing
Explanation Role-Based Access Control provides fine-grained security while the others focus on performance or redundancy.
Q105

You are configuring a container with unique keys in Azure Cosmos DB. What happens if two documents use the same value for the unique key?

  • A An error occurs
  • B The first document is ignored
  • C The second document overwrites the first
  • D Both documents are saved
Explanation Documents cannot have duplicate values for unique keys, which triggers an error.
Q106

Which service provides globally distributed, multi-model support?

  • A Azure Cosmos DB
  • B Azure Blob Storage
  • C Azure SQL Database
  • D Azure Table Storage
Explanation Azure Cosmos DB is designed for global distribution and multi-model data storage, while the others are more specialized services.
Q107

A company needs to store unstructured data with low latency. Which consistency model should they use?

  • A Strong
  • B Bounded Staleness
  • C Session
  • D Eventual
Explanation Eventual consistency offers low latency access for unstructured data, unlike stronger models that incur higher latency.
Q108

You are configuring throughput for a new Azure Cosmos DB container. What happens if you set the Request Units (RUs) below the minimum requirement?

  • A Container is created successfully.
  • B Request fails with insufficient RUs.
  • C Container will have no performance limit.
  • D Throughput will automatically scale up.
Explanation If RUs are set below the minimum, requests will fail due to insufficient resources, while the other options misrepresent the expected behavior.
Q109

Which indexing mode optimizes for write-heavy workloads in Cosmos DB?

  • A Consistent
  • B None
  • C Lazy
  • D Automatic
Explanation None indexing mode skips indexing to optimize writes, while others affect read performance and querying.
Q110

A company needs to ensure its Azure Cosmos DB account is globally distributed. What feature should they use?

  • A Geo-Replication
  • B Multi-Model
  • C Partitioning
  • D Serverless
Explanation Geo-Replication allows Azure Cosmos DB to be globally distributed by replicating data across multiple regions.