nerdexam
Microsoft

DP-420 · Question #133

You plan to create an Azure Cosmos DB account that will use the NoSQL API. You need to create a grouping strategy for items that will be stored in the account. The solution must ensure that write…

The correct answer is A. logical partitions. In Azure Cosmos DB, ACID transactions (multi-document, using stored procedures, triggers, or transactional batch APIs) are scoped to a single logical partition - meaning all items in the transaction must share the same partition key value. A logical partition is defined by a…

Design and implement data models

Question

You plan to create an Azure Cosmos DB account that will use the NoSQL API. You need to create a grouping strategy for items that will be stored in the account. The solution must ensure that write and read operations on the items can be performed within the same transaction. What should you use to group the items?

Options

  • Alogical partitions
  • Bphysical partitions
  • Cdatabases
  • Dcontainers

How the community answered

(30 responses)
  • A
    80% (24)
  • B
    3% (1)
  • C
    7% (2)
  • D
    10% (3)

Explanation

In Azure Cosmos DB, ACID transactions (multi-document, using stored procedures, triggers, or transactional batch APIs) are scoped to a single logical partition - meaning all items in the transaction must share the same partition key value. A logical partition is defined by a unique partition key value and holds all items with that value. Physical partitions are internal infrastructure managed by Cosmos DB. Databases and containers are organizational units, not the boundary for transactional consistency. Grouping items with the same partition key into the same logical partition is how you enable transactional operations across multiple items.

Topics

#Azure Cosmos DB Partitioning#Logical Partitions#ACID Transactions#Data Grouping Strategy

Community Discussion

No community discussion yet for this question.

Full DP-420 Practice