Microsoft Azure Data FundamentalsDescribe how to work with non-relational data on AzureMedium
A manufacturing company is migrating its existing on-premises application that heavily relies on Apache Cassandra to Azure. The application requires a database service that is compatible with existing Cassandra drivers and tools, and can scale horizontally to handle large volumes of time-series data from IoT sensors. Which Azure Cosmos DB API should the company choose?
- AAzure Cosmos DB for NoSQL (Core) API
- BAzure Cosmos DB for MongoDB API
- CAzure Cosmos DB for Apache Cassandra
- DAzure Cosmos DB for Gremlin (Graph) API
Show answer & explanationAnswer & explanation
Correct answer: C. Azure Cosmos DB for Apache Cassandra
Azure Cosmos DB for Apache Cassandra provides wire-protocol compatibility with existing Apache Cassandra applications and tools. This allows the manufacturing company to migrate their on-premises Cassandra application to Azure with minimal code changes, while benefiting from Cosmos DB's global distribution and scalability for their time-series IoT data.
Why the other options are wrong
- A. The NoSQL (Core) API uses a JSON-based data model and is not compatible with Cassandra drivers.
- B. The MongoDB API is compatible with MongoDB applications, not Cassandra.
- D. The Gremlin API is for graph databases and is not suitable for Cassandra workloads.
Azure Cosmos DB for Apache Cassandra
An Azure Cosmos DB API that offers wire-protocol compatibility with existing Apache Cassandra applications.
- Allows seamless migration of Apache Cassandra workloads to Azure Cosmos DB.
- Supports Cassandra Query Language (CQL).
- Benefits from Cosmos DB's global distribution, elastic scalability, and high availability.
- Compatible with existing Cassandra SDKs and tools.
Memory trick: Cosmos DB is a 'universal adapter' for different NoSQL databases.