nerdexam
Microsoft

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.

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

Question

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 types, menu information and the optimal route to a selected restaurant from the user's current location. Which Azure Cosmos DB API should you use for the API?

Options

  • AMongoDB
  • BGremlin
  • CCassandra
  • DCore

How the community answered

(26 responses)
  • A
    73% (19)
  • B
    8% (2)
  • C
    15% (4)
  • D
    4% (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.

AMongoDBCorrect

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.

BGremlin

The Gremlin API is designed for graph traversal and is not optimized for geospatial queries or document storage of restaurant details.

CCassandra

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.

DCore

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

#Cosmos DB#MongoDB API#geospatial queries#API selection

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice