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 31–40 of 147

Q31

Which API consistency level allows reads to be served from the local region only?

  • A Bounded staleness
  • B Session
  • C Strong
  • D Eventual
Explanation Session consistency allows reads to return the latest updated data per session; the others don't restrict reads to the local region.
Q32

A company needs to ingest large amounts of geospatial data into Azure Cosmos DB. Which API would be most appropriate?

  • A SQL API
  • B Gremlin API
  • C Cassandra API
  • D Table API
Explanation SQL API supports geospatial data natively; the other APIs lack this feature.
Q33

What happens when a stored procedure exceeds the 5 second execution limit in Azure Cosmos DB?

  • A It automatically retries.
  • B It returns a timeout error.
  • C It continues execution indefinitely.
  • D It deletes itself.
Explanation Stored procedures return a timeout error if execution exceeds 5 seconds; the others do not accurately describe the behavior.
Q34

Which service is used to manage data consistency in Cosmos DB?

  • A Consistency levels
  • B Database indexing
  • C Partitioning strategies
  • D Change feed
Explanation Consistency levels define how data is synchronized in Cosmos DB, while the other options focus on data retention or access techniques.
Q35

A company needs to prevent unauthorized access to their Cosmos DB account. Which security feature should they implement first?

  • A Virtual Network Service Endpoints
  • B Throughput scaling
  • C Cosmos DB triggers
  • D Change feed
Explanation Virtual Network Service Endpoints limit access to network traffic, while the other options do not focus on security measures directly.
Q36

You are configuring a multi-region Cosmos DB account. What happens if one region becomes unavailable?

  • A Data is lost
  • B Failover occurs automatically
  • C Operations are stopped
  • D Replica data is deleted
Explanation Automatic failover ensures continuity during regional unavailability, whereas the other options imply data issues or service disruptions that are not accurate.
Q37

Which consistency level allows reads of stale data?

  • A Eventual
  • B Bounded Staleness
  • C Strong
  • D Session
Explanation Eventual consistency permits stale reads, while others do not.
Q38

A company needs to enable multi-region write support in Azure Cosmos DB. Which configuration is required?

  • A Use Multi-master replication
  • B Enable Strong consistency
  • C Set Request Units to low
  • D Limit partition keys to single region
Explanation Multi-master replication allows multi-region writes, while others do not support that feature.
Q39

What happens when you exceed provisioned throughput in Azure Cosmos DB?

  • A Requests are queued
  • B Requests fail with 429 error
  • C Database shuts down
  • D Throughput is automatically increased
Explanation Exceeding throughput results in a 429 error, indicating too many requests.
Q40

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

  • A Eventual Consistency
  • B Strong Consistency
  • C Bounded Staleness
  • D Session Consistency
Explanation Eventual Consistency provides lower latency but is less guaranteed in data availability than Strong Consistency.