MediumApplicationNoSQL DatabasesMultiple Choice
Which embedding pattern should you use when a blog post can have millions of comments?
Application — Tests your understanding of this concept.
Answer Options
AEmbed all comments as an array in the post document
BReference comments in a separate collection with a postId field
CUse a bucket pattern embedding 100 comments per document
DStore comments as a Redis List with the postId as key
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 15+ more NoSQL Databases questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the NoSQL Databases topic (Databases).
More NoSQL Databases Questions
Which NoSQL database type is best suited for storing a social network graph where you need to traverse friend-of-friend relationships?
Medium-EasyIn the CAP theorem, which two properties does MongoDB prioritize?
Medium-EasyWhat is the correct order of stages in a MongoDB aggregation pipeline to optimize performance?
MediumIn DynamoDB single-table design, what is the main reason to store multiple entity types in one table?
MediumWhich Redis command would you use to implement an atomic 'check-and-set' distributed lock?
Medium