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…
Question
Options
- ACore
- BCassandra
- CTable API
- DGremlin
- EMongoDB
How the community answered
(66 responses)- A5% (3)
- B14% (9)
- C5% (3)
- D2% (1)
- E76% (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.
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.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.