A company needs to ensure that API requests to Azure Cosmos DB are authenticated and authorized. What should they use?
AAzure Managed Identities
BCosmos DB SQL API
CResource Tokens
DShared Access Signatures
Explanation
Azure Managed Identities provide seamless authentication for Azure services, while the others either lack integration or add complexity.
Q102
What happens when you delete a container in Azure Cosmos DB?
AData is kept for recovery
BData is permanently lost
CContainer can be restored later
DTriggers still run after deletion
Explanation
Deleting a container permanently removes its data without recovery options, while the other options are incorrect regarding the nature of deletion.
Q103
Which consistency level provides strongest guarantees in Azure Cosmos DB?
AStrong
BSession
CEventual
DBounded Staleness
Explanation
Strong consistency ensures the most up-to-date data, while others have looser guarantees.
Q104
A company needs to secure their data in Azure Cosmos DB. Which feature should they use?
ARole-Based Access Control
BAutomatic Indexing
CGeo-Replication
DRequest-Unit Pricing
Explanation
Role-Based Access Control provides fine-grained security while the others focus on performance or redundancy.
Q105
You are configuring a container with unique keys in Azure Cosmos DB. What happens if two documents use the same value for the unique key?
AAn error occurs
BThe first document is ignored
CThe second document overwrites the first
DBoth documents are saved
Explanation
Documents cannot have duplicate values for unique keys, which triggers an error.
Q106
Which service provides globally distributed, multi-model support?
AAzure Cosmos DB
BAzure Blob Storage
CAzure SQL Database
DAzure Table Storage
Explanation
Azure Cosmos DB is designed for global distribution and multi-model data storage, while the others are more specialized services.
Q107
A company needs to store unstructured data with low latency. Which consistency model should they use?
AStrong
BBounded Staleness
CSession
DEventual
Explanation
Eventual consistency offers low latency access for unstructured data, unlike stronger models that incur higher latency.
Q108
You are configuring throughput for a new Azure Cosmos DB container. What happens if you set the Request Units (RUs) below the minimum requirement?
AContainer is created successfully.
BRequest fails with insufficient RUs.
CContainer will have no performance limit.
DThroughput will automatically scale up.
Explanation
If RUs are set below the minimum, requests will fail due to insufficient resources, while the other options misrepresent the expected behavior.
Q109
Which indexing mode optimizes for write-heavy workloads in Cosmos DB?
AConsistent
BNone
CLazy
DAutomatic
Explanation
None indexing mode skips indexing to optimize writes, while others affect read performance and querying.
Q110
A company needs to ensure its Azure Cosmos DB account is globally distributed. What feature should they use?
AGeo-Replication
BMulti-Model
CPartitioning
DServerless
Explanation
Geo-Replication allows Azure Cosmos DB to be globally distributed by replicating data across multiple regions.