Medium1 markMultiple Choice
Domain 2.4: Non-relational data storageDomain 2Non-Relational DataCosmos DBGremlin API

AZ-305 · Question 27 · Domain 2.4: Non-relational data storage

A social media startup is designing a feature to recommend friends to users based on mutual connections, shared interests, and geographic proximity.

The data model requires traversing complex relationships with multiple degrees of separation (e.g., 'Find friends of friends who like hiking'). The queries must return results in milliseconds.

Which Azure Cosmos DB API should you recommend?

Answer options:

A.

SQL API

B.

Cassandra API

C.

Gremlin API

D.

MongoDB API

How to approach this question

Identify the data structure: 'complex relationships' and 'friends of friends' indicates a Graph database.

Full Answer

C.Gremlin API✓ Correct
Azure Cosmos DB for Apache Gremlin is a graph database service. Graph databases are designed to handle highly connected data and complex relationship traversals efficiently. Use cases like social networks, recommendation engines, and fraud detection rely on traversing relationships (edges) between entities (vertices), which the Gremlin API handles natively and with low latency.

Common mistakes

Choosing SQL API because it's the default. Document databases struggle with deep relationship queries.

Practice the full Azure Solutions Architect Expert AZ-305 Practice Exam 3

55 questions · hints · full answers · grading

More questions from this exam