AZ-204 · Question #160
You are developing a mobile app that uses an API which stores geospabal data in Azure Cosmos DB. The app will be used to find restaurants in a particular area and related information including food…
The correct answer is A. MongoDB. The application stores geospatial data for restaurants and requires querying by location, along with other related information. The Azure Cosmos DB MongoDB API is ideal as it supports geospatial indexing and queries, alongside a flexible document model for restaurant details.
Question
Options
- AMongoDB
- BGremlin
- CCassandra
- DCore
How the community answered
(26 responses)- A73% (19)
- B8% (2)
- C15% (4)
- D4% (1)
Why each option
The application stores geospatial data for restaurants and requires querying by location, along with other related information. The Azure Cosmos DB MongoDB API is ideal as it supports geospatial indexing and queries, alongside a flexible document model for restaurant details.
The Azure Cosmos DB MongoDB API natively supports geospatial indexing and query operators, which are crucial for efficiently finding restaurants within a specified area, and its flexible document model is well-suited for storing diverse information like food types and menu details. This combination allows for both location-based searches and the retrieval of comprehensive restaurant data within a single API.
The Gremlin API is designed for graph traversal and is not optimized for geospatial queries or document storage of restaurant details.
The Cassandra API is a wide-column store suitable for high-throughput, specific access patterns, but it lacks native geospatial indexing and the flexible document model needed.
The Core (SQL) API supports some geospatial functions but the MongoDB API offers more comprehensive and familiar geospatial query capabilities for developers already familiar with MongoDB.
Concept tested: Azure Cosmos DB API for geospatial and flexible data
Source: https://learn.microsoft.com/en-us/azure/cosmos-db/mongodb/mongodb-feature-support#geospatial-indexes
Topics
Community Discussion
No community discussion yet for this question.