Courseiva

DP-900 Practice Question: Describe considerations for working with non-relational data on Azure

A manufacturing company stores IoT sensor data as JSON documents in Azure Cosmos DB. Each document contains a device ID, a timestamp, and a varying set of sensor readings. The application frequently queries data by device ID and a time range to retrieve all readings for a specific device over a period. The development team wants to use an API that supports SQL-like queries on this JSON data. Which Azure Cosmos DB API should they choose?

⚠ Common exam trap

Candidates often confuse the MongoDB API's support for JSON documents with SQL-like querying, but MongoDB uses its own query language (e.g., db.collection.find()) rather than SQL syntax, which is a key distinction tested in the DP-900 exam.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Azure Cosmos DB Core (SQL) API

The Azure Cosmos DB Core (SQL) API is the correct choice because it natively supports querying JSON documents using SQL-like syntax, which aligns with the requirement to run SQL-like queries on JSON data. This API provides a rich query language for filtering by device ID and timestamp ranges, making it ideal for the described IoT scenario where documents have varying sensor readings.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Azure Cosmos DB Core (SQL) API

    Why this is correct

    The Core (SQL) API stores each IoT sensor payload as a JSON document in a multi-item container and exposes a first-class SQL query engine over that JSON structure. It supports SELECT, WHERE, JOIN, and functions directly on embedded properties such as deviceId and timestamp without needing a separate translation layer. This makes it the optimal choice when the application requires SQL-like queries over JSON time-series data, with automatic indexing and configurable partition keys for scale.

  • Azure Cosmos DB MongoDB API

    Why it's wrong here

    Although the MongoDB API does store JSON-like BSON documents and can handle IoT payloads, it expects queries written in MongoDB's Query Language (MQL) using operators like $match and $group, not SQL syntax. Adopting it would introduce a compatibility layer based on the MongoDB wire protocol, adding unnecessary complexity when the requirement explicitly calls for SQL-like access. The application would also need MongoDB-specific drivers, so it does not satisfy the stated need as cleanly.

    When this WOULD be correct

    If the question stated that the team wants to use MongoDB tools and drivers, and the data is stored in a format compatible with MongoDB (e.g., BSON), then the MongoDB API would be the correct choice.

  • Azure Cosmos DB Cassandra API

    Why it's wrong here

    The Cassandra API presents a wide-column, partitioned-row data model and uses Cassandra Query Language (CQL) rather than a JSON document model. While it can store time-series data efficiently, it does not natively ingest or query JSON documents as atomic units, and CQL lacks the JSON manipulation features needed to query arbitrary device fields. This makes it unsuitable for the application's stated requirement of storing and querying JSON sensor documents.

    When this WOULD be correct

    A company needs to migrate an existing Cassandra workload to Azure Cosmos DB with minimal code changes, requiring compatibility with Cassandra drivers and CQL for time-series data with a fixed schema.

  • Azure Cosmos DB Gremlin API

    Why it's wrong here

    The Gremlin API models data as vertices, edges, and properties in a graph, which is useful for highly connected data such as social networks or recommendation engines. IoT sensor readings are naturally append-only time-series events, not relationships, and the query pattern is filtering by device ID and timestamp, not traversing graph paths. Gremlin traversal language would be a poor fit and would require awkward remapping of JSON sensor documents into a graph schema.

    When this WOULD be correct

    A social network application needs to model complex relationships between users, such as friends, followers, and likes, and requires queries like 'find all friends of friends who liked a post'. In this scenario, the Gremlin API would be correct because it supports graph traversal queries.

Option-by-option analysis

Why each answer is right or wrong

Understanding why wrong answers are wrong — and when they would be correct — is what separates a 750 score from a 900. The DP-900 exam frequently reuses these exact scenarios with slightly different constraints.

Azure Cosmos DB Core (SQL) APICorrect answer

Why this is correct

The Core (SQL) API stores each IoT sensor payload as a JSON document in a multi-item container and exposes a first-class SQL query engine over that JSON structure. It supports SELECT, WHERE, JOIN, and functions directly on embedded properties such as deviceId and timestamp without needing a separate translation layer. This makes it the optimal choice when the application requires SQL-like queries over JSON time-series data, with automatic indexing and configurable partition keys for scale.

Azure Cosmos DB MongoDB APIWrong answer — click to see why

Why this is wrong here

The MongoDB API supports MongoDB queries, not SQL-like queries. The question explicitly requires an API that supports SQL-like queries on JSON data, which is a feature of the Core (SQL) API.

★ When this WOULD be the correct answer

If the question stated that the team wants to use MongoDB tools and drivers, and the data is stored in a format compatible with MongoDB (e.g., BSON), then the MongoDB API would be the correct choice.

Why candidates choose this

Candidates may confuse the MongoDB API's support for JSON-like documents with SQL-like querying, or assume that any NoSQL API can handle SQL queries.

Azure Cosmos DB Cassandra APIWrong answer — click to see why

Why this is wrong here

The Cassandra API is designed for wide-column stores and uses CQL (Cassandra Query Language), not SQL-like queries on JSON documents. It does not natively support querying JSON documents with varying schemas or SQL syntax.

★ When this WOULD be the correct answer

A company needs to migrate an existing Cassandra workload to Azure Cosmos DB with minimal code changes, requiring compatibility with Cassandra drivers and CQL for time-series data with a fixed schema.

Why candidates choose this

Candidates may confuse Cassandra's wide-column model with document databases, or assume that any NoSQL API supports JSON and SQL-like queries, overlooking the specific API capabilities.

Azure Cosmos DB Gremlin APIWrong answer — click to see why

Why this is wrong here

The Gremlin API is designed for graph databases and graph traversal queries, not for SQL-like queries on JSON documents. The question requires SQL-like queries on JSON data, which is not supported by Gremlin.

★ When this WOULD be the correct answer

A social network application needs to model complex relationships between users, such as friends, followers, and likes, and requires queries like 'find all friends of friends who liked a post'. In this scenario, the Gremlin API would be correct because it supports graph traversal queries.

Why candidates choose this

Candidates may confuse Gremlin with a general-purpose API or think it supports JSON queries because Cosmos DB offers multiple APIs, but Gremlin is specialized for graph data, not document queries.

Analysis generated from the official DP-900blueprint and verified against question context. The “when correct” sections are what AI assistants cite when candidates ask “what’s the difference between these options?”

About these practice questions

One of 820 original DP-900 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DP-900 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DP-900 exam.