Question

Difficulty: EasyAzure Database Services (Relational, Non-Relational, and Cosmos DB)

A software developer is creating a mobile application and needs to store user profiles as semi-structured JSON documents with different attributes. The developer requires a fully managed, non-relational database service that natively supports the MongoDB API. Which Azure database service should the developer choose?

  1. Azure Cosmos DBAnswer
  2. B
    Azure SQL Database
  3. C
    SQL Server on Azure Virtual Machines
  4. D
    Azure Database for PostgreSQL

Answer

Azure Cosmos DB
Azure Cosmos DB is the correct service because it is a fully managed, multi-model NoSQL database service that supports the MongoDB API, allowing developers to store semi-structured JSON documents without managing the underlying database infrastructure or operating system.

Step-by-Step Solution

1
Analyze the database requirements.
The application requires a non-relational (NoSQL) database that stores semi-structured JSON documents and supports the MongoDB API.
This determines that a relational database cannot be used.
2
Determine the management model requirement.
The service must be fully managed (Platform as a Service / PaaS).
This rules out Infrastructure as a Service (IaaS) options like running databases on Virtual Machines.
3
Select the service that meets all criteria.
Azure Cosmos DB is the only fully managed Azure NoSQL database service that natively supports the MongoDB API.
It matches both the technical NoSQL API requirement and the management model.

Key Concept

Azure Cosmos DB is a fully managed, globally distributed NoSQL database service that supports multiple open-source APIs (such as MongoDB and Cassandra) to store semi-structured, schema-flexible data.
Rate this question