AZ-204 · Question #134
You are designing a web application to manage user satisfaction surveys. The number of questions that a survey includes is variable. Application users must be able to display results for a survey as…
The correct answer is D. Table API. For a web application managing user satisfaction surveys with a variable number of questions, where quick display and statistical computation are critical, the Azure Cosmos DB Table API is the most suitable choice.
Question
Options
- ACore
- BMongo DB
- CGremlin
- DTable API
How the community answered
(23 responses)- A4% (1)
- B4% (1)
- C17% (4)
- D74% (17)
Why each option
For a web application managing user satisfaction surveys with a variable number of questions, where quick display and statistical computation are critical, the Azure Cosmos DB Table API is the most suitable choice.
The Core (SQL) API is document-oriented and while flexible, the Table API can offer a simpler and potentially more cost-effective solution for schema-less data with straightforward key-value access patterns.
The MongoDB API is a document database, similar to the Core API, and while suitable for flexible schemas, the Table API might be a more direct fit for simple key-value-like survey data with a focus on fast retrieval by keys.
The Gremlin API is for graph databases, focused on relationships between data points, which is not the primary requirement for storing isolated survey responses and computing statistics.
The Azure Cosmos DB Table API is optimized for storing schema-less, key-value data with high throughput and low latency, making it ideal for survey responses with variable questions. Its simple entity model allows for fast retrieval based on PartitionKey and RowKey, facilitating quick display of results and efficient aggregation for statistical computations.
Concept tested: Azure Cosmos DB API selection for schema-less data
Source: https://learn.microsoft.com/en-us/azure/cosmos-db/table-introduction
Topics
Community Discussion
No community discussion yet for this question.