Microsoft Azure Data FundamentalsDescribe how to work with non-relational data on AzureMedium

A startup is building a new social media platform where user connections (friends, followers) are highly interconnected and need to be queried efficiently for recommendations and network analysis. Which Azure Cosmos DB API is most appropriate for modeling and querying this type of data?

  1. ACassandra API
  2. BSQL API
  3. CTable API
  4. DGremlin API
Show answer & explanation

Correct answer: D. Gremlin API

The Gremlin API is designed for graph databases, which are ideal for representing and querying highly connected data like social networks, recommendations, and fraud detection. Its graph traversal capabilities allow efficient exploration of relationships.

Why the other options are wrong

  • A. Cassandra API is for wide-column data, suitable for high-throughput writes but not graph traversal.
  • B. SQL API is for document data, not optimized for complex graph relationships.
  • C. Table API is a key-value store, not suitable for representing complex relationships.

Azure Cosmos DB Gremlin API

An API for Azure Cosmos DB that supports graph database models and queries using the Apache TinkerPop Gremlin traversal language.

  • Ideal for highly connected data like social networks, recommendation engines.
  • Allows efficient traversal of nodes (vertices) and edges (relationships).
  • Provides powerful graph query capabilities.

Memory trick: Gremlin maps the graph of connections.

More Describe how to work with non-relational data on Azure questions