nerdexam
Microsoft

AZ-204 · Question #159

You are developing an application to store information about the organizational structure for a company. Users must be able to determine which people report to a particular manager, the office where…

The correct answer is E. MongoDB. The application stores organizational structure data involving reporting relationships, employee locations, and project assignments. The Azure Cosmos DB MongoDB API is suitable for this because its flexible document model can efficiently store and query complex, nested, and…

Submitted by alyssa_d· Mar 30, 2026Develop for Azure storage

Question

You are developing an application to store information about the organizational structure for a company. Users must be able to determine which people report to a particular manager, the office where employees work, and the projects that are assigned to an employee. Which Azure Cosmos DB API should you use for the application?

Options

  • ACore
  • BCassandra
  • CTable API
  • DGremlin
  • EMongoDB

How the community answered

(66 responses)
  • A
    5% (3)
  • B
    14% (9)
  • C
    5% (3)
  • D
    2% (1)
  • E
    76% (50)

Why each option

The application stores organizational structure data involving reporting relationships, employee locations, and project assignments. The Azure Cosmos DB MongoDB API is suitable for this because its flexible document model can efficiently store and query complex, nested, and semi-structured data like organizational hierarchies and employee attributes.

ACore

The Core (SQL) API is relational and typically requires a fixed schema, which might be less flexible for the varied and evolving nature of organizational data compared to a document model.

BCassandra

The Cassandra API is a wide-column store optimized for high-throughput writes and specific access patterns, which is not the primary strength for complex hierarchical queries as described.

CTable API

The Table API is a key-value store optimized for simple point lookups, lacking the rich querying and flexible schema capabilities needed for complex organizational data.

DGremlin

The Gremlin API (Graph API) is specifically designed for highly interconnected data and traversing relationships, which would also be a strong candidate, but MongoDB can also handle this effectively with its flexible document model if relationships are modeled through embedded or referenced IDs.

EMongoDBCorrect

The Azure Cosmos DB MongoDB API provides a flexible document model that can easily store and query hierarchical and relational data, such as reporting structures and employee attributes, enabling efficient retrieval of information like people reporting to a manager, employee office locations, and assigned projects. Its capabilities for complex queries and schema flexibility make it well-suited for varied organizational data requirements.

Concept tested: Azure Cosmos DB API selection for organizational data

Source: https://learn.microsoft.com/en-us/azure/cosmos-db/choose-api

Topics

#Cosmos DB#MongoDB API#document model#organizational data

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice