Level 1: Bronze
A memorized definition. Not wrong, but it stops there.
Relational is tables and NoSQL is free form.
2 stars Asked often.
In one or two sentences
Relational databases center on tables, SQL and transactions. NoSQL stresses flexible models such as documents or key value pairs and horizontal scaling. You choose by the shape of the data and how it is accessed.
Say it out loud, or type it below. What you type never leaves this device.
A memorized definition. Not wrong, but it stops there.
Relational is tables and NoSQL is free form.
Correct, but too broad or missing context.
Relational has a fixed schema and strong joins and transactions. NoSQL has a flexible schema and spreads large data across servers more easily.
Reaches principle, use and trade-off, with words that invite the next question.
NoSQL is not one technology. It covers key value, document, column and graph stores. The choice rests on access patterns, not fashion. With complex relationships and a need for strong correctness, relational fits. With huge volumes of simple key lookups or frequently changing structure, NoSQL may fit. Scalability usually costs you joins and some strong consistency. The line has blurred, since relational systems store JSON and many NoSQL systems offer transactions.
These are likely next questions from an interviewer. Think of your answer first, then press the button.
1 / 3
How do horizontal and vertical scaling differ?
Vertical scaling makes one server stronger. Horizontal scaling adds servers and splits the data. The latter has a higher ceiling but brings distributed complexity.
2 / 3
What is the CAP theorem?
When the network partitions you must choose between consistency and availability. Also look at the latency and consistency trade-off when there is no partition.
3 / 3
What is sharding?
Splitting data across nodes by a key. A poor key concentrates load on one node, and joins and transactions across nodes get hard.
This is a textbook level concept, so no outside source is listed.