A social application must find friends of friends and suggest new connections by following many-to-many relationships several levels deep with low latency. Which database meets this requirement with the least development effort?
Show the answer
Correct answerC. Amazon Neptune
AWhy not this: DynamoDB answers key lookups quickly, but each hop of a traversal needs another query written in the application.
BWhy not this: Redshift is built for analytical queries over large data sets, not low-latency traversal for each user request.
CWhy this is right: Neptune stores relationships as graph edges and traverses several levels in one query.
DWhy not this: Aurora PostgreSQL needs repeated self-joins for each level, which become complex and slow as depth grows.
Amazon Neptune is a graph database that stores relationships directly and answers multi-level traversals with graph query languages such as Gremlin and openCypher. A relational database such as Aurora PostgreSQL can model the same data, but each level needs another self-join, which grows costly and complex as the depth increases.