Interview Prep
š” Prep Tips
ā ACID properties are key
ā Know when to use NoSQL
ā Index optimization
Interview Preparation Journey
When would you choose SQL over NoSQL for a new project?
How do you decide which columns to index in a database?
How do you handle database migrations in production without downtime?
How do you optimize a database query that's running slow?
What is the difference between ACID and BASE?
What is database normalization and when would you denormalize?
What is the difference between a clustered and non-clustered index?
What is a database transaction and what are isolation levels?
What is the difference between a primary key and a foreign key?
What is database connection pooling and why is it important?
What is database sharding and how does it work?
What is database replication and what are the types?
What is database partitioning and when would you use it?
What is a database view and when would you use it?
What is database deadlock and how do you prevent it?
Scenario: Your database is experiencing high CPU usage during peak hours. How would you diagnose and fix it?
Scenario: You need to design a database schema for an e-commerce platform. What would you consider?
Scenario: Your database is running out of storage. How would you handle this?
Scenario: How would you handle database replication lag in a read-heavy application?
Scenario: In MySQL, when would you choose InnoDB over MyISAM?
Scenario: Your database has become too large and queries are slow. How would you optimize it?
Scenario: You need to migrate data from one database to another without downtime. How would you do it?
Scenario: Your database is experiencing lock contention. How would you resolve it?
Scenario: You need to design a database for a social media platform. What would you consider?
Scenario: Your database queries are timing out. How would you diagnose and fix this?
Scenario: You need to handle database backups and disaster recovery. How would you design it?
Scenario: Your database needs to handle both OLTP and OLAP workloads. How would you design it?
Scenario: You need to implement database-level security. What measures would you take?
Scenario: Your database needs to support full-text search. How would you implement it?
Scenario: You need to optimize a database for write-heavy workloads. How would you do it?