← All interview questions

Skill Zuno · skillzunos.com · System Design

Relational Database interview questions

Prepare for Relational Database interviews on Skill Zuno. This practice book covers Relational Database interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open Relational Database on Skill Zuno

Also see the Relational Database tutorial.

Relational databases such as PostgreSQL and MySQL store data in tables with a fixed schema and query it with SQL. They give ACID transactions, joins and strong consistency, which makes them the default choice for most systems. Interviews cover normalisation, indexes, transactions and isolation levels, and how to scale a relational database with replicas, partitioning and sharding.

Sample Relational Database interview questions

When should you choose a relational database over NoSQL?

When data is structured and related, you need transactions across rows or tables, and queries vary. Choose NoSQL for massive write volumes, flexible schemas or simple access patterns at huge scale.

What does ACID mean?

Atomicity: all of a transaction happens or none of it does. Consistency: constraints always hold. Isolation: concurrent transactions do not interfere. Durability: committed data survives crashes.

Why not index every column?

Every index must be updated on each insert, update and delete, which slows writes and uses storage. Index the columns used in frequent filters, joins and sorts.

How do read replicas help, and what is their catch?

Replicas take read traffic off the primary. Replication is usually asynchronous, so a user may not see their own write if the next read goes to a lagging replica.

What is a phantom read?

A transaction runs the same range query twice and the second time sees new rows another transaction inserted. Serializable isolation, or repeatable read with range locks, prevents it.

What you can practice

  • Relational Database interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • System Design topics alongside Relational Database on skillzunos.com

More System Design interview questions

All interview questions