Courseiva

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

A social networking application needs to store and query relationships between users, such as 'friends of friends' to recommend new connections. The application must traverse these relationships efficiently. Which Azure NoSQL data store and API should they choose?

⚠ Common exam trap

Candidates often confuse document databases (like MongoDB API or SQL API) with graph databases, assuming any NoSQL store can handle relationships efficiently, but only a dedicated graph database like Gremlin API provides native traversal operators for multi-hop queries.

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 with Gremlin API

Azure Cosmos DB with Gremlin API is correct because it provides a graph database model specifically designed for storing and querying highly connected data, such as user relationships. The Gremlin API supports graph traversal queries (e.g., 'friends of friends') natively using the Apache TinkerPop graph traversal language, enabling efficient navigation of edges and vertices without expensive join operations.

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 with MongoDB API

    Why it's wrong here

    Azure Cosmos DB with MongoDB API stores data as BSON documents and supports MongoDB's aggregation pipeline for complex transformations. It is designed for document-oriented workloads, not graph relationships, and it has no native support for graph concepts such as vertices, edges, or traversal operations. To compute 'friends of friends', an application would need to issue repeated queries for each hop and manually assemble the results, which is inefficient and error-prone compared to Gremlin API's single traversal query.

    When this WOULD be correct

    A question requiring a document database with flexible schema, high availability, and MongoDB compatibility (e.g., storing user profiles with complex nested data) would make Azure Cosmos DB with MongoDB API the correct answer.

  • Azure Cosmos DB with Gremlin API

    Why this is correct

    Azure Cosmos DB with Gremlin API is the correct choice because it provides a native graph database engine built on the property graph model. Data is stored as vertices (nodes) and edges (relationships), and queries are expressed in Gremlin, a declarative graph traversal language. This allows the database to perform efficient, index-backed traversals like finding friends-of-friends in a single operation, without expensive recursive joins or multiple round trips, which is exactly what a social networking graph requires.

  • Azure Table Storage

    Why it's wrong here

    Azure Table Storage is a schemaless key-value/wide-column store that organizes data into partitioned entities accessed by partition key and row key. It has no concept of relationships or edges between entities, so modeling 'friends of friends' would force an application to perform multiple manual lookups and then join the results in client-side code. Because it lacks built-in graph traversal or indexing on arbitrary relationship attributes, it is impractical for real-time relationship queries and would degrade quickly as the social graph grows.

    When this WOULD be correct

    A question requiring a cost-effective, schema-less NoSQL store for storing large amounts of structured, non-relational data (e.g., device logs, metadata) with simple key-based lookups and no complex querying needs would make Azure Table Storage correct.

  • Azure Cosmos DB with SQL API

    Why it's wrong here

    Azure Cosmos DB with SQL API stores documents as JSON and supports SQL-like queries with joins, subqueries, and user-defined functions. While it can represent relationships by embedding or storing entity IDs as fields, it does so by executing on-the-fly joins or multiple queries for each hop in a graph path. Unlike a dedicated graph API, there are no native edge indexes or traversal operators, so multi-level traversals like 'friends of friends of friends' become exponentially slower and require increasingly complex queries, making it suboptimal for this use case.

    When this WOULD be correct

    A question requiring storing and querying JSON documents with SQL-like queries, such as an e-commerce product catalog where items are retrieved by category or price range, and no graph relationships need to be traversed.

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 with Gremlin APICorrect answer

Why this is correct

Azure Cosmos DB with Gremlin API is the correct choice because it provides a native graph database engine built on the property graph model. Data is stored as vertices (nodes) and edges (relationships), and queries are expressed in Gremlin, a declarative graph traversal language. This allows the database to perform efficient, index-backed traversals like finding friends-of-friends in a single operation, without expensive recursive joins or multiple round trips, which is exactly what a social networking graph requires.

Azure Cosmos DB with MongoDB APIWrong answer — click to see why

Why this is wrong here

The MongoDB API is designed for document storage with rich queries, but it lacks native graph traversal capabilities needed for efficient 'friends of friends' queries.

★ When this WOULD be the correct answer

A question requiring a document database with flexible schema, high availability, and MongoDB compatibility (e.g., storing user profiles with complex nested data) would make Azure Cosmos DB with MongoDB API the correct answer.

Why candidates choose this

Candidates may associate MongoDB with social applications due to its popularity and flexibility, overlooking that graph-specific APIs are required for relationship traversal.

Azure Table StorageWrong answer — click to see why

Why this is wrong here

Azure Table Storage is a key-value store that does not support graph queries like traversing 'friends of friends' relationships efficiently. It lacks native graph traversal capabilities, making it unsuitable for this use case.

★ When this WOULD be the correct answer

A question requiring a cost-effective, schema-less NoSQL store for storing large amounts of structured, non-relational data (e.g., device logs, metadata) with simple key-based lookups and no complex querying needs would make Azure Table Storage correct.

Why candidates choose this

Candidates may confuse Table Storage with a general-purpose NoSQL option, overlooking its lack of graph or relational query support, and assume it can handle any non-relational workload.

Azure Cosmos DB with SQL APIWrong answer — click to see why

Why this is wrong here

The SQL API is designed for document-based queries using SQL syntax, not for graph traversal like 'friends of friends'. It lacks native graph traversal capabilities such as recursive queries or Gremlin steps.

★ When this WOULD be the correct answer

A question requiring storing and querying JSON documents with SQL-like queries, such as an e-commerce product catalog where items are retrieved by category or price range, and no graph relationships need to be traversed.

Why candidates choose this

Candidates may assume the SQL API is versatile enough for any query pattern, or they may be more familiar with SQL and overlook the specific graph traversal requirement.

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

This DP-900 question is part of Courseiva's 820-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.