- A
Use the SQL API only for both workloads.
Why wrong: The SQL API cannot efficiently handle graph traversals like friend recommendations.
- B
Use the MongoDB API only for both workloads.
Why wrong: The MongoDB API provides document storage but lacks built-in graph traversal capabilities.
- C
Use the Gremlin API only for both workloads.
Why wrong: The Gremlin API is for graph data, not for SQL-like queries on JSON documents.
- D
Use the SQL API for the posts and the Gremlin API for the follower graph.
Correct. The SQL API handles document queries with SQL, and the Gremlin API handles graph traversals. Both can be used within the same Azure Cosmos DB account.
Quick Answer
The answer is to use the SQL API for the posts and the Gremlin API for the follower graph, which requires two separate Azure Cosmos DB accounts. This is correct because Azure Cosmos DB supports multiple API models, but each account is locked to a single API—you cannot combine document and graph workloads within one account. The SQL API handles SQL-like queries on JSON documents for the user posts, while the Gremlin API enables graph traversal for follower relationships, so you must provision one account per API to satisfy both workloads. On the DP-900 exam, this tests your understanding of Cosmos DB’s multi-model capability and the critical constraint that APIs are account-scoped, not mixed. A common trap is assuming a single account can serve both, but the exam emphasizes that each API is exclusive to its account. Memory tip: “One account, one API—documents and graphs need separate keys.”
DP-900 Practice Question: Describe considerations for working with non-relational data on Azure
This DP-900 practice question tests your understanding of describe considerations for working with non-relational data on azure. The scenario asks you to isolate a root cause — eliminate options that address a different problem before choosing. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.
A social media application stores user posts as JSON documents. Each post contains fields like post_id, author, content, and timestamp. The application needs to query posts by author and date range using SQL-like queries. Additionally, the application requires the ability to traverse follower relationships as a graph to suggest new friends. The development team wants to use a single Azure Cosmos DB account to minimize management overhead. Which combination of Azure Cosmos DB APIs should they choose?
Clue words in this question
Noticing these words before you look at the options changes how you read each choice.
Clue:
"minimum / minimize"Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.
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
Use the SQL API for the posts and the Gremlin API for the follower graph.
Option D is correct because Azure Cosmos DB supports multiple API models within a single account, but only one API per account. To handle both SQL-like queries on JSON documents and graph traversal queries, you need separate accounts: one using the SQL API (or MongoDB API) for the document workload and another using the Gremlin API for the graph workload. The question states 'a single Azure Cosmos DB account,' which is a constraint; however, the correct answer acknowledges that you cannot mix APIs in one account, so the only way to meet both requirements is to use two accounts—one for each API. The answer D correctly pairs the SQL API for posts and the Gremlin API for the follower graph, implying two accounts.
Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use the SQL API only for both workloads.
Why it's wrong here
The SQL API cannot efficiently handle graph traversals like friend recommendations.
- ✗
Use the MongoDB API only for both workloads.
Why it's wrong here
The MongoDB API provides document storage but lacks built-in graph traversal capabilities.
- ✗
Use the Gremlin API only for both workloads.
Why it's wrong here
The Gremlin API is for graph data, not for SQL-like queries on JSON documents.
- ✓
Use the SQL API for the posts and the Gremlin API for the follower graph.
Why this is correct
Correct. The SQL API handles document queries with SQL, and the Gremlin API handles graph traversals. Both can be used within the same Azure Cosmos DB account.
Clue confirmation
The clue word "minimum / minimize" in the question point toward this answer.
Related concept
Read the scenario before looking for a memorised answer.
Common exam traps
Common exam trap: answer the scenario, not the keyword
The trap here is that candidates assume a single Azure Cosmos DB account can support multiple APIs simultaneously, but in reality each account is locked to one API at creation time, so you must use separate accounts for document and graph workloads.
Detailed technical explanation
How to think about this question
Azure Cosmos DB's Gremlin API implements the Apache TinkerPop graph traversal standard, enabling complex graph queries like shortest path or friend-of-friend recommendations using Gremlin steps (e.g., out(), in(), both()). The SQL API uses a SQL-like query language over JSON documents, supporting WHERE clauses on fields like author and timestamp. Under the hood, each API uses a different data model and indexing strategy: the SQL API indexes document properties, while the Gremlin API indexes vertices and edges for graph traversal. A real-world scenario is a social app that needs both user timeline queries (SQL) and friend suggestions (Gremlin), requiring separate accounts because Cosmos DB does not allow multi-API access within a single account.
KKey Concepts to Remember
- Read the scenario before looking for a memorised answer.
- Find the constraint that changes the correct option.
- Eliminate answers that are true in general but not in this case.
TExam Day Tips
- Watch for words such as best, first, most likely and least administrative effort.
- Review why wrong options are wrong, not only why the correct option is correct.
Key takeaway
Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.
Real-world example
How this comes up in practice
A cloud solutions architect for a retail company is evaluating services for a new workload. The correct answer here reflects best practice for the specific scenario described — not a general cloud recommendation. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Cloud exam questions reward reading the constraint carefully: the same technology can be right or wrong depending on the use case.
What to study next
Got this wrong? Here's your next step.
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
- →
Describe considerations for working with non-relational data on Azure — study guide chapter
Learn the concepts, then practise the questions
- →
Describe considerations for working with non-relational data on Azure practice questions
Targeted practice on this topic area only
- →
All DP-900 questions
982 questions across all exam domains
- →
Microsoft Azure Data Fundamentals DP-900 study guide
Full concept coverage aligned to exam objectives
- →
DP-900 practice test guide
How to use practice tests most effectively before exam day
Related practice questions
Related DP-900 practice-question pages
Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.
Describe core data concepts practice questions
Practise DP-900 questions linked to Describe core data concepts.
Describe an analytics workload on Azure practice questions
Practise DP-900 questions linked to Describe an analytics workload on Azure.
Identify considerations for relational data on Azure practice questions
Practise DP-900 questions linked to Identify considerations for relational data on Azure.
Describe considerations for working with non-relational data on Azure practice questions
Practise DP-900 questions linked to Describe considerations for working with non-relational data on Azure.
DP-900 fundamentals practice questions
Practise DP-900 questions linked to DP-900 fundamentals.
DP-900 scenario practice questions
Practise DP-900 questions linked to DP-900 scenario.
DP-900 troubleshooting practice questions
Practise DP-900 questions linked to DP-900 troubleshooting.
Practice this exam
Start a free DP-900 practice session
Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.
FAQ
Questions learners often ask
What does this DP-900 question test?
Describe considerations for working with non-relational data on Azure — This question tests Describe considerations for working with non-relational data on Azure — Read the scenario before looking for a memorised answer..
What is the correct answer to this question?
The correct answer is: Use the SQL API for the posts and the Gremlin API for the follower graph. — Option D is correct because Azure Cosmos DB supports multiple API models within a single account, but only one API per account. To handle both SQL-like queries on JSON documents and graph traversal queries, you need separate accounts: one using the SQL API (or MongoDB API) for the document workload and another using the Gremlin API for the graph workload. The question states 'a single Azure Cosmos DB account,' which is a constraint; however, the correct answer acknowledges that you cannot mix APIs in one account, so the only way to meet both requirements is to use two accounts—one for each API. The answer D correctly pairs the SQL API for posts and the Gremlin API for the follower graph, implying two accounts.
What should I do if I get this DP-900 question wrong?
Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.
Are there clue words in this question I should notice?
Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.
What is the key concept behind this question?
Read the scenario before looking for a memorised answer.
About these practice questions
Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →
Same concept, more angles
1 more ways this is tested on DP-900
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. A social networking application stores user profiles as JSON documents. Each profile can have different fields (e.g., education, work history, interests) depending on what the user fills in. The application also needs to traverse friend connections as a graph to recommend new friends. The development team wants to use a single Azure Cosmos DB account for both workloads. Which combination of Azure Cosmos DB APIs should they choose?
medium- ✓ A.SQL API for profiles and Gremlin API for graph
- B.MongoDB API for profiles and SQL API for graph
- C.Gremlin API for both profiles and graph
- D.Table API for profiles and Gremlin API for graph
Why A: The SQL API (formerly DocumentDB API) is optimized for storing and querying JSON documents with flexible schemas, making it ideal for user profiles with varying fields. The Gremlin API is designed specifically for graph traversal queries, which is required for recommending friends based on friend connections. Using both APIs on the same Cosmos DB account allows the application to handle both workloads efficiently within a single service.
Keep practising
More DP-900 practice questions
- An e-commerce application processes customer orders. When an order is placed, the system must decrement the inventory co…
- A company runs an e-commerce application on Azure SQL Database. The application experiences heavy read traffic from repo…
- A company uses Azure SQL Database for an order management system. The Orders table has columns: OrderID (int, primary ke…
- A gaming company stores player scores in Azure Cosmos DB using the NoSQL API. Each document contains fields: PlayerID (u…
- A gaming company stores player profiles as JSON documents. Each profile includes standard fields like playerId, username…
- A company is migrating an on-premises SQL Server database to Azure. They want to ensure that database administrators (DB…
Last reviewed: Jun 11, 2026
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.
Question Discussion
Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.
Sign in to join the discussion.