A development team wants to migrate a MongoDB application to Azure with MINIMAL code changes. Which Cosmos DB capability makes this possible?
- A. Cosmos DB for MongoDB — a MongoDB-compatible API endpoint✓ Correct
- B. Cosmos DB automatically converts MongoDB code to SQL
- C. Cosmos DB requires rewriting the app in Cassandra Query Language
- D. Cosmos DB for Gremlin
Explanation
Cosmos DB exposes multiple wire-compatible APIs; Cosmos DB for MongoDB speaks the MongoDB protocol, so existing drivers and most application code keep working against the new endpoint. Option B doesn't exist. Gremlin (D) is the graph API — wrong model. Option C is backwards: API choice exists precisely to avoid rewrites.