A company needs to restrict access to its Cosmos DB database to select IP ranges. What should be configured?
APrivate Link
BFirewall rules
CRBAC permissions
DNetwork 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?
AThe document is truncated automatically.
BAn error is returned.
CThe document is stored in blob storage.
DThe 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?
AAzure Functions
BAzure Logic Apps
CAzure Data Factory
DAzure 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?
AChange Feed
BStored Procedures
CTransactional Batch
DResource 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?
AThe operation is aborted
BIt retries automatically
CThe data is saved anyway
DOnly 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?
AHash partitioning
BRange partitioning
CList partitioning
DRound-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?
AMulti-region writes
BDocumentDB support
CCentralized storage
DSingle-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?
AImmediate data availability
BData may be stale temporarily
CNo write conflicts allowed
DGuaranteed 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?
AAutoscale Provisioned Throughput
BTable Storage
CBlob Storage
DQueue 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?
AChange Feed
BGlobal Distribution
CMulti-model support
DServer-side Scripts
Explanation
Change Feed allows applications to listen for changes in real-time, while other options do not offer immediate updates.