A team runs a product catalog built on existing MongoDB drivers and wants to move it onto a managed Azure service while keeping its application code and query syntax largely unchanged. Which Cosmos DB API should it choose?
Show answer and explanation
Answer: C
The API for MongoDB implements the MongoDB wire protocol, so applications using MongoDB drivers can connect with minimal changes. Query operators and the document model carry over, which reduces rewrite effort. The Table API matches Azure Table Storage, Gremlin targets graph data, and Core (SQL) is the native document interface with its own query language.
Why the other options are wrong
- A. The Table API follows Azure Table Storage semantics. It does not speak the MongoDB wire protocol, so existing drivers would not connect.
- B. The Gremlin API serves graph workloads built on vertices and edges. A document catalog queried through MongoDB drivers would not map onto it directly.
- D. The Core (SQL) API is native to Cosmos DB and uses SQL-style queries. Driver code written for MongoDB would need significant rewriting.