Which partitioning strategy can yield the best scalability in Cosmos DB?
ASingle partition key
BComposite partition key
CHash partitioning only
DUnpartitioned container
Explanation
A composite partition key balances load across multiple keys, enhancing scalability, while single or unpartitioned keys can create hotspots.
Q62
A company needs to query Cosmos DB for specific users based on their age and city. Which index option is recommended?
ACreate a spatial index
BUse composite indexes
CUse automatic indexing
DManually index every document
Explanation
Composite indexes allow efficient multi-property queries, directly supporting this type of query, whereas other options may not optimize performance.
Q63
What happens when you exceed the provisioned throughput on a Cosmos DB container?
ARequests are throttled
BRequests fail with no response
CData is deleted automatically
DServer allocates more resources
Explanation
Exceeding provisioned throughput leads to throttling, resulting in HTTP 429 status codes, while other options are not accurate.
Q64
Which service helps manage throughput in Azure Cosmos DB?
ARequest Units (RUs)
BPartition Keys
CBlob Storage
DVirtual Machine Scale Sets
Explanation
Request Units (RUs) measure throughput while others do not.
Q65
A company needs to integrate Azure Cosmos DB with Azure Functions. What approach should they take?
ADirect connection via SQL API
BUse Event Grid notification
CImplement Change Feed Trigger
DStore daily backups in Blob
Explanation
Change Feed Trigger automatically reacts to changes; the others do not effectively enable integration.
Q66
What happens when you delete a container in Azure Cosmos DB?
AAll stored procedures are deleted
BData is permanently removed
CThroughput is reduced for the account
DIndexing settings are preserved
Explanation
Deleting a container permanently removes all data while the others imply incorrect outcomes.
Q67
Which API model is used for global distribution in Cosmos DB?
AMulti-master model
BSingle-master model
CTransactional model
DSharded model
Explanation
The multi-master model allows for concurrent writes in a globally distributed system, while others do not.
Q68
A company needs to store large volumes of structured data with low latency and scalability. Which Cosmos DB API should they use?
ASQL API
BTable API
CGremlin API
DCassandra API
Explanation
The SQL API is designed for structured data and offers low latency.
Q69
You are configuring consistency levels in Cosmos DB. What happens when you select Strong consistency?
AUnlimited read availability
BLowest latency reads
CLinearizability
DEventual consistency
Explanation
Strong consistency guarantees linearizable reads after writes, unlike the others.
Q70
Which consistency model guarantees the lowest latency in Azure Cosmos DB?
AStrong
BEventual
CBounded Staleness
DSession
Explanation
Eventual consistency provides the lowest latency but does not guarantee immediate consistency, unlike the others.