0
0
DBMS Theoryknowledge~20 mins

NoSQL database types (document, key-value, column, graph) in DBMS Theory - 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 by data structure
Which NoSQL database type is best suited for storing data as flexible JSON-like documents that can vary in structure?
AKey-value store
BGraph database
CDocument store
DColumn store
Attempts:
2 left
💡 Hint
Think about a database that stores data as self-contained objects with fields and values.
🧠 Conceptual
intermediate
2:00remaining
Best NoSQL type for relationships between entities
Which NoSQL database type is designed to efficiently manage and query complex relationships between entities using nodes and edges?
AColumn store
BGraph database
CKey-value store
DDocument store
Attempts:
2 left
💡 Hint
Think about social networks or recommendation systems that need to explore connections.
query_result
advanced
2:00remaining
Output of a key-value store query
Given a key-value store with pairs: {"user1": "Alice", "user2": "Bob", "user3": "Carol"}, what is the result of querying the key "user2"?
A"Bob"
B"user2"
Cnull
DError: key not found
Attempts:
2 left
💡 Hint
Key-value stores return the value for the exact key queried.
📋 Factual
advanced
2:00remaining
Correct query to retrieve a column family in a column store
Which of the following is a valid CQL (Cassandra Query Language) statement to select all rows from the column family 'users'?
ASELECT * FROM users;
BFETCH ALL FROM users;
CGET * FROM users;
DREAD * users;
Attempts:
2 left
💡 Hint
CQL syntax is similar to SQL for selecting data.
optimization
expert
3:00remaining
Optimizing queries in a graph database
Which approach best improves query performance when searching for shortest paths between nodes in a large graph database?
AIncrease the number of columns in the column family storing nodes
BStore graph data as JSON documents for faster access
CConvert graph data into key-value pairs for quick lookup
DUse indexes on node properties and limit traversal depth
Attempts:
2 left
💡 Hint
Indexes help find starting points quickly and limiting depth reduces search space.