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 21–30 of 147

Q21

You are configuring throughput for your Cosmos DB container. What happens if you set the throughput lower than the actual consumption?

  • A Throughput is automatically increased.
  • B Requests are throttled.
  • C Data is lost.
  • D Latency decreases.
Explanation Requests exceeding set throughput will be throttled; others incorrectly suggest adjustments or outcomes that don’t occur.
Q22

What happens when you enable analytical store in Azure Cosmos DB?

  • A Improved performance for OLTP operations.
  • B Real-time analytics capabilities on transactional data.
  • C Data replication to an on-premises SQL server.
  • D Automatic backup of all Cosmos containers.
Explanation Enabling analytical store offers real-time analytics while keeping transactional data intact; other options describe unrelated features.
Q23

A company needs to ensure that all documents in their Cosmos DB are consistent across global regions. Which consistency level should they choose?

  • A Eventual consistency.
  • B Bounded staleness.
  • C Session consistency.
  • D Strong consistency.
Explanation Strong consistency guarantees linearizability across regions, unlike the other options which allow for some degree of inconsistency.
Q24

You are configuring a multi-region setup for Azure Cosmos DB. What setting must you enable for automatic failover?

  • A Multi-master replication.
  • B Change feed processor.
  • C Service endpoints.
  • D Account configuration.
Explanation Automatic failover is set via account configuration; the other options do not relate directly to enabling failover.
Q25

Which service is primarily used for high availability in Azure Cosmos DB?

  • A Multi-region writes
  • B MongoDB API
  • C Transactional processing
  • D Azure Functions
Explanation Multi-region writes enable high availability by replicating data across multiple regions, while others do not directly provide this feature.
Q26

A company needs to perform complex analytical queries on their data in Azure Cosmos DB. Which feature should they utilize?

  • A Change feed
  • B Aggregation pipeline
  • C Stored procedures
  • D Synapse Link
Explanation Azure Synapse Link allows for complex analytics while Change feed and others are not ideal for that purpose.
Q27

What happens when you configure a Cosmos DB container's throughput to zero?

  • A All data is deleted
  • B Container becomes read-only
  • C Data remains but cannot be accessed
  • D Data is fully accessible
Explanation Setting throughput to zero makes the container inaccessible, although the data is not deleted.
Q28

Which isolation level in Cosmos DB optimizes for performance but can result in reading uncommitted changes?

  • A Read-Only
  • B Read Committed
  • C Snapshot
  • D Eventual
Explanation Eventual consistency allows for improved performance at the cost of potential stale reads.
Q29

A company needs to store large amounts of streaming data for analysis in Azure Cosmos DB. Which API would be most suited for their needs?

  • A SQL API
  • B MongoDB API
  • C Cassandra API
  • D Gremlin API
Explanation Cassandra API is optimized for time-series and streaming data scenarios.
Q30

You are configuring throughput for a new container in Azure Cosmos DB. What happens if you exceed the provisioned RU/s?

  • A You get throttled and receive 429 errors.
  • B Throughput is automatically increased.
  • C Queries will be ignored.
  • D No effect, it remains stable.
Explanation Exceeding provisioned throughput results in throttling and 429 status codes indicating rate-limiting.