AZ-204 · Question #585
Drag and Drop Question You manage an Azure Cosmos DB for a NoSQL API account named account1. You configure account1 with the default consistency level. An application named app1 must access…
The correct answer is Session; Session. When using the Azure Cosmos DB SDK with direct mode connections, the maximum consistency level that can be set for both read and write operations is Session consistency. This is because in direct mode, only Session, Consistent Prefix, Eventual, and Bounded Staleness (for reads)…
Question
Exhibit
Answer Area
Drag items
Correct arrangement
- Session
- Session
Explanation
When using the Azure Cosmos DB SDK with direct mode connections, the maximum consistency level that can be set for both read and write operations is Session consistency. This is because in direct mode, only Session, Consistent Prefix, Eventual, and Bounded Staleness (for reads) are supported, but critically, the SDK client-side override cannot exceed the account's default consistency level AND is capped at Session when overriding - Strong and Bounded Staleness cannot be requested as overrides via the SDK client for both read and write operations when using direct mode. Session consistency is the strongest level achievable as a client-side override for both reads and writes in this configuration.
Topics
Community Discussion
No community discussion yet for this question.
