An organization is deploying a globally distributed fleet management application. The database is hosted on an Azure Cosmos DB API for NoSQL account configured with multi-region writes enabled across three regions: East US, West US, and North Europe. Each region handles local telemetry data ingestion and updates from fleet vehicles. The application has the following requirements:
- Readings from vehicles must be processed with low write latency.
- Across all regions, telemetry readings must be read in the exact order they were written.
- The read lag between the write region and other regions must not exceed a maximum of minutes or updates.
Which consistency level should you configure as the default for the Azure Cosmos DB account?
- AStrong
- BSession
- Bounded StalenessCevap
- DEventual
Cevap
Bounded Staleness
Bounded Staleness consistency is the correct choice because it allows the developer to define a maximum lag in terms of time (up to minutes) and updates (up to updates). It is fully supported on Azure Cosmos DB accounts with multi-region writes enabled and ensures that reads from any region are guaranteed to see updates in the correct order (Consistent Prefix).
Adım Adım Çözüm
Anahtar Kavram
Azure Cosmos DB Consistency Levels in Multi-Region Write Configurations