Azure CosmoDB Flashcards
What is Azure Cosmos DB?
Azure Cosmos DB is a globally distributed, multi-model database service that offers low-latency and high-availability.
What are the key models supported by Azure Cosmos DB?
It supports multiple data models such as key-value, document, graph, and column-family.
What is the purpose of Cosmos DB in Azure architecture?
The purpose of Cosmos DB is to provide globally distributed, low-latency access to NoSQL and relational data with high availability.
What are the major use cases for Azure Cosmos DB?
Real-time IoT data processing, retail transactions, social media analytics, gaming leaderboards.
How does Azure Cosmos DB ensure high availability?
By replicating data globally across multiple regions and offering SLAs for 99.999% availability.
What are the primary data consistency levels in Azure Cosmos DB?
Strong, Bounded Staleness, Session, Consistent Prefix, and Eventual consistency.
What is the default consistency level in Cosmos DB?
Session consistency is the default level, providing a balance between performance and consistency.
How is data ingested into Azure Cosmos DB?
Data is ingested through RESTful APIs, SDKs, and data migration tools like Azure Data Factory.
What is the maximum data size for a single Cosmos DB partition?
The maximum size for a single partition is 20 GB.
What is a partition key in Azure Cosmos DB?
A partition key is a unique value used to distribute data across multiple partitions for scalability.
How does Cosmos DB store data?
Cosmos DB stores data across distributed partitions and retains it based on the storage capacity you configure.
What are the main governance features of Cosmos DB?
- role-based access control (RBAC),
- Azure Policy integration, 3. Auditing through Azure Monitor.
How does Cosmos DB achieve scalability?
It achieves scalability through automatic partitioning of data and horizontal scaling across multiple regions.
How is security managed in Cosmos DB?
Security is managed through encryption-at-rest, encryption-in-transit, VNET isolation, and identity-based access control.
What unit of measurement is Cosmo DB using to measure messing throughput
Throughput is measured in Request Units (RUs), and determines the cost of operations on the database.
How does Azure Cosmos DB optimize performance?
Through features like Request Units (RUs) per second and the use of SSD storage to ensure low-latency operations.
What are the disaster recovery options in Azure Cosmos DB?
Automatic regional failover, multi-region writes, and geo-replication for business continuity.
What Azure services can be integrated with Azure Cosmos DB?
Azure Functions, Azure Synapse, Azure Event Hubs, and Power BI can be integrated with Cosmos DB.
How does Cosmos DB ensure data durability?
Cosmos DB ensures durability through automatic backups and geo-replication.
What is a key feature of Cosmos DB’s global distribution?
It allows data to be transparently replicated to any number of Azure regions globally.
How does Cosmos DB handle multi-region writes?
Cosmos DB supports multi-region writes for applications that require high availability and low-latency writes.