Which consistency level in Azure Cosmos DB provides the highest performance with relaxed consistency guarantees?
AEventual
BBounded Staleness
CStrong
DSession
Explanation
Eventual consistency prioritizes performance over up-to-date data; others provide stronger guarantees.
Q2
A company needs to store large amounts of unstructured data efficiently. Which Azure Cosmos DB API would be the best fit?
ATable API
BGraph API
CMongoDB API
DSQL API
Explanation
The MongoDB API is ideal for unstructured data; others are less effective for that use case.
Q3
What happens when a request exceeds the provisioned throughput in Azure Cosmos DB?
ARequest is automatically throttled
BRequest is queued for processing
CRequest fails with a rate limit error
DNo effect, request is ignored
Explanation
Requests over throughput limits face throttling and return a rate limit error; others describe incorrect behaviors.
Q4
Which feature of Azure Cosmos DB ensures minimal latency?
AGlobal distribution
BData warehousing
CConcurrent transactions
DAutomatic backups
Explanation
Global distribution allows access closer to users, minimizing latency. Other options do not directly influence latency as effectively.
Q5
A company needs to partition a large dataset in Azure Cosmos DB. What should they consider when choosing a partition key?
ARandom string value
BStatic data value
CHighly dynamic property
DValue with uniform distribution
Explanation
A uniform distribution of values for partition key ensures even data distribution. The other options could lead to data skew from uneven partitions.
Q6
You are configuring a Cosmos DB account for multi-tenant architecture. What is a recommended approach for tenant isolation?
AUse a single partition key
BCreate unique containers per tenant
CStore tenants in the same database
DUse combined resource groups
Explanation
Creating unique containers per tenant offers better isolation. The other options may lead to security and performance issues.
Q7
Which consistency model in Azure Cosmos DB offers the least data consistency?
AEventual Consistency
BStrong Consistency
CSession Consistency
DBounded Staleness
Explanation
Eventual consistency provides the least consistency, allowing for data to be out-of-date temporarily.
Q8
A company needs to ensure that sensitive data submitted to a Cosmos DB will be automatically encrypted at rest. Which feature should they enable?
AClient-Side Encryption
BAzure Security Center
CTransparent Data Encryption
DAzure Key Vault
Explanation
Transparent Data Encryption automatically encrypts data at rest in Cosmos DB.
Q9
What happens when a user configures a Cosmos DB container with a throughput of 400 RU/s?
AAll reads are unlimited.
B400 RU/s for all operations.
COnly writes can exceed 400 RUs.
DContainer can scale without limits.
Explanation
A configured throughput of 400 RU/s caps the total request units per second for all operations.
Q10
Which consistency model guarantees linearizability in Azure Cosmos DB?
AStrong
BEventual
CBounded Staleness
DSession
Explanation
Strong consistency ensures linearizability by guaranteeing the latest write is always visible.