Microsoft Azure Data FundamentalsDescribe how to work with non-relational data on AzureMedium

A manufacturing company uses legacy applications that rely heavily on Apache Cassandra for their operational data. The company wants to migrate these applications to Azure without rewriting their data access layer. Which Azure Cosmos DB API should they use to minimize code changes?

  1. AAzure Cosmos DB for Cassandra API
  2. BAzure Cosmos DB for Gremlin (Graph) API
  3. CAzure Cosmos DB for NoSQL (Core) API
  4. DAzure Cosmos DB for Table API
Show answer & explanation

Correct answer: A. Azure Cosmos DB for Cassandra API

The Azure Cosmos DB for Cassandra API provides wire protocol compatibility with Apache Cassandra. This allows existing Cassandra applications to connect to Azure Cosmos DB without significant code changes, facilitating a smooth migration.

Why the other options are wrong

  • B. The Gremlin (Graph) API is for graph databases, completely different from Cassandra.
  • C. The NoSQL (Core) API uses a different data model (document) and query language (SQL-like), requiring significant code changes for Cassandra applications.
  • D. The Table API is a simple key-value store, not compatible with Cassandra's column-family model.

Azure Cosmos DB Cassandra API

The Azure Cosmos DB for Cassandra API provides compatibility with Apache Cassandra, allowing existing Cassandra applications and tools to interact with Cosmos DB as if it were a native Cassandra database.

  • Wire protocol compatible with Apache Cassandra.
  • Enables migration of existing Cassandra applications to Azure Cosmos DB.
  • Supports Cassandra Query Language (CQL).
  • Leverages Cosmos DB's global distribution and scalability.

Memory trick: Cosmos APIs: Your bridge to other databases.

More Describe how to work with non-relational data on Azure questions