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 131–140 of 147

Q131

A company needs to restrict access to its Cosmos DB database to select IP ranges. What should be configured?

  • A Private Link
  • B Firewall rules
  • C RBAC permissions
  • D Network Security Group
Explanation Firewall rules specifically allow or deny access based on IP ranges; other options do not directly serve this purpose.
Q132

You are configuring a document in Cosmos DB with a maximum size of 2 MB. What happens when you attempt to insert a document larger than this limit?

  • A The document is truncated automatically.
  • B An error is returned.
  • C The document is stored in blob storage.
  • D The document is split into parts.
Explanation Inserting a document larger than the maximum size results in an error; other options do not reflect Cosmos DB behavior.
Q133

Which service should you use for event-driven computing with Cosmos DB?

  • A Azure Functions
  • B Azure Logic Apps
  • C Azure Data Factory
  • D Azure Batch
Explanation Azure Functions is designed for event-driven computing, while the others serve different purposes.
Q134

A company needs to analyze exit transactions from its online store via real-time analytics. What feature of Cosmos DB should they use?

  • A Change Feed
  • B Stored Procedures
  • C Transactional Batch
  • D Resource Token
Explanation Change Feed allows for listening to changes in data, which is ideal for real-time analytics.
Q135

What happens when a stored procedure in Cosmos DB exceeds the specified timeout value?

  • A The operation is aborted
  • B It retries automatically
  • C The data is saved anyway
  • D Only the timeout is logged
Explanation The operation is aborted on a timeout, ensuring data integrity and avoiding incomplete transactions.
Q136

Which partitioning strategy benefits high throughput?

  • A Hash partitioning
  • B Range partitioning
  • C List partitioning
  • D Round-robin partitioning
Explanation Hash partitioning distributes data evenly across partitions, optimizing throughput; other options can lead to uneven data distribution.
Q137

A company needs to ensure low latency for global applications. Which feature of Azure Cosmos DB will help?

  • A Multi-region writes
  • B DocumentDB support
  • C Centralized storage
  • D Single-region replication
Explanation Multi-region writes reduce latency by allowing writes in multiple locations, while the others either do not or worsen latency issues.
Q138

What happens when you set consistency to 'Eventual' in Azure Cosmos DB?

  • A Immediate data availability
  • B Data may be stale temporarily
  • C No write conflicts allowed
  • D Guaranteed order of transactions
Explanation Eventual consistency allows data to be replicated, causing possible temporary staleness; the other options oppose the concept of eventual consistency.
Q139

Which service allows automatic scaling of throughput in Cosmos DB?

  • A Autoscale Provisioned Throughput
  • B Table Storage
  • C Blob Storage
  • D Queue Storage
Explanation Autoscale Provisioned Throughput automatically scales based on workload, while others do not directly manage Cosmos DB throughput.
Q140

A company needs real-time analytics on their Cosmos DB data. Which feature should they enable?

  • A Change Feed
  • B Global Distribution
  • C Multi-model support
  • D Server-side Scripts
Explanation Change Feed allows applications to listen for changes in real-time, while other options do not offer immediate updates.