0
0
HLDsystem_design~20 mins

NoSQL database types (document, key-value, column, graph) in HLD - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
NoSQL Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Identify the NoSQL database type from its description
Which NoSQL database type stores data as flexible, self-describing JSON-like documents allowing nested structures and varied fields per record?
ADocument store
BKey-value store
CColumn store
DGraph database
Attempts:
2 left
💡 Hint
Think about databases that store data in JSON or BSON format.
🧠 Conceptual
intermediate
2:00remaining
Match the NoSQL type to its main use case
Which NoSQL database type is best suited for storing and querying relationships between entities, such as social networks or recommendation systems?
AColumn store
BKey-value store
CDocument store
DGraph database
Attempts:
2 left
💡 Hint
Think about databases that model data as nodes and edges.
query_result
advanced
2:00remaining
Output of a key-value store retrieval
Given a key-value store with pairs: {"user1": "Alice", "user2": "Bob", "user3": "Carol"}, what is the output of retrieving the value for key "user2"?
HLD
GET user2
A"Alice"
B"Bob"
Cnull
D"user2"
Attempts:
2 left
💡 Hint
Key-value stores return the value for the given key.
🧠 Conceptual
advanced
2:00remaining
Identify the correct column-family query syntax
Which option shows a valid CQL (Cassandra Query Language) statement to select all columns from the "users" table where "userid" equals 123?
ASELECT * FROM users WHERE userid = 123;
BSELECT ALL FROM users WHERE userid == 123;
CGET * FROM users WHERE userid = 123;
DSELECT * FROM users WHERE userid = '123';
Attempts:
2 left
💡 Hint
CQL syntax is similar to SQL but uses single equals for conditions.
🔍 Analysis
expert
3:00remaining
Find the error in a graph database query
Given this Cypher query to find friends of 'Alice': MATCH (a:Person {name: 'Alice'})-[:FRIEND]->(friend) RETURN friend.name, which option describes the error if the query returns no results despite data existing?
AThe node label should be lowercase :person instead of :Person
BThe property name should be friend.names instead of friend.name
CThe relationship type should be lowercase :friend instead of :FRIEND
DThe query is missing a WHERE clause to filter by name
Attempts:
2 left
💡 Hint
Relationship types in Cypher are case-sensitive.