Tools
CV Builder
Donate
Search questions…
⌘
K
English
Tiếng Việt
日本語
한국어
Español
العربية
বাংলা
čeština
Dansk
Deutsch
Ελληνικά
Suomi
Français
Gaeilge
ગુજરાતી
Hausa
हिन्दी
Hrvatski
Magyar
Bahasa Indonesia
Italiano
Basa Jawa
ქართული
Lietuvių
मराठी
Melayu
Malti
नेपाली
Nederlands
Norsk
ਪੰਜਾਬੀ
Polski
Português
Română
Русский
Slovenščina
Shqip
Svenska
Kiswahili
தமிழ்
తెలుగు
ภาษาไทย
Türkçe
اردو
简体中文
flow
Home
Topics
Categories
Learning paths
Search
Database Interview Questions · IT Interview Practice
Home
/
#Database
#Database
85 questions
What are the pros and cons of TypeORM?
Node.js
#database
Middle
›
What are the pros and cons of Sequelize?
Node.js
#orm
Middle
›
How do TypeORM and Sequelize compare, and when would you choose each?
Node.js
#orm
Senior
›
What is SQL and what is it used for?
SQL
#database
Junior
›
How does NULL behave in SQL?
SQL
#database
Junior
›
What are primary keys and foreign keys?
SQL
#database
Middle
›
What database constraints are there?
SQL
#database
Middle
›
What is database normalization?
SQL
#database
Middle
›
What are transactions and ACID properties?
SQL
#database
Middle
›
What are views and materialized views?
SQL
#database
Middle
›
What are transaction isolation levels?
SQL
#database
Senior
›
What causes deadlocks and how do you prevent them?
SQL
#database
Senior
›
What are stored procedures and when should you use them?
SQL
#database
Senior
›
What are DDL, DML, DCL and TCL?
SQL
#database
Senior
›
What are common SQL data types and how do you choose them?
SQL
#database
Middle
›
How do you query 10B records under 100ms?
System Design
#database
Senior
›
How would you shard a database for 1 billion users?
System Design
#database
Senior
›
How do you scale MySQL when traffic grows 100x?
System Design
#database
Senior
›
How do you store 100M log events per day?
System Design
#database
Senior
›
How do you build full-text search over 100M+ records?
System Design
#searching
Senior
›
Real-time revenue analytics over millions of transactions/day: how?
System Design
#database
Senior
›
Store & query transaction history for hundreds of millions of accounts
System Design
#scaling
Senior
›
Migrate a 10TB database with zero downtime: what is the plan?
System Design
#data-migration
Senior
›
Backup & disaster recovery for a database of tens of TB
System Design
#database
Senior
›
How do you import 100M CSV records into a DB fast?
System Design
#performance
Senior
›
How do you design an audit log for years of traceability?
System Design
#logging
Senior
›
How does CDC sync data across systems?
System Design
#database
Middle
›
How do you partition a single table with billions of rows?
System Design
#sql
Middle
›
How do you export a huge dataset without impacting the live system?
System Design
#performance
Middle
›
How do you handle a hot key or hot row under heavy contention?
System Design
#performance
Middle
›
How do you prevent deadlocks with thousands of concurrent transactions?
System Design
#concurrency
Middle
›
What is PostgreSQL and why choose it?
PostgreSQL
#database
Junior
›
What data types does PostgreSQL offer beyond standard SQL?
PostgreSQL
#database
Junior
›
What is psql and what are its essential commands?
PostgreSQL
#database
Junior
›
How do auto-incrementing IDs work (SERIAL, sequences, IDENTITY)?
PostgreSQL
#database
Junior
›
What are schemas in PostgreSQL?
PostgreSQL
#database
Junior
›
How do array columns work in PostgreSQL?
PostgreSQL
#database
Junior
›
What are generated columns?
PostgreSQL
#database
Junior
›
How does JSONB work and when should you use it?
PostgreSQL
#database
Middle
›
How does full-text search work in PostgreSQL?
PostgreSQL
#database
Middle
›
What is MVCC in PostgreSQL?
PostgreSQL
#database
Middle
›
What are PostgreSQL extensions?
PostgreSQL
#database
Middle
›
What are LISTEN and NOTIFY?
PostgreSQL
#database
Middle
›
What constraints does PostgreSQL support?
PostgreSQL
#database
Middle
›
How does locking work in PostgreSQL?
PostgreSQL
#database
Senior
›
What is MongoDB and how does it differ from SQL databases?
MongoDB
#database
Junior
›
What are documents and collections in MongoDB?
MongoDB
#database
Junior
›
What is BSON and what data types does MongoDB support?
MongoDB
#database
Junior
›
What is the MongoDB shell (mongosh) and its essential commands?
MongoDB
#database
Junior
›
How does text search work in MongoDB?
MongoDB
#database
Middle
›
How do transactions work in MongoDB?
MongoDB
#database
Middle
›
What is Mongoose and why use an ODM?
MongoDB
#database
Middle
›
How does schema validation work in MongoDB?
MongoDB
#database
Middle
›
What are change streams?
MongoDB
#database
Senior
›
How do write concern and read concern affect consistency?
MongoDB
#database
Senior
›
What is Redis and what is it used for?
Redis
#database
Junior
›
What data types does Redis support?
Redis
#database
Junior
›
How do strings and keys work in Redis?
Redis
#database
Junior
›
How does key expiration (TTL) work in Redis?
Redis
#database
Junior
›
How do Redis lists work and how are they used for queues?
Redis
#database
Junior
›
How do Redis hashes and sets work?
Redis
#database
Junior
›
What are sorted sets and how are they used?
Redis
#database
Junior
›
What is redis-cli and its essential commands?
Redis
#database
Junior
›
How does Redis differ from a traditional database?
Redis
#database
Junior
›
How does Redis persistence work (RDB vs AOF)?
Redis
#database
Middle
›
How do Redis transactions work?
Redis
#database
Middle
›
Why are Redis operations atomic and why does it matter?
Redis
#database
Middle
›
How does Lua scripting work in Redis?
Redis
#database
Senior
›
What advanced Redis data structures and modules exist?
Redis
#database
Senior
›
What is Amazon DynamoDB?
Cloud & AWS
#database
Middle
›
How do you optimize a slow database query?
Site Reliability & Operations
#database
Middle
›
How does Spring Data JPA work and what are derived queries?
Spring Boot
#spring
Middle
›
How does @Transactional work, including propagation and rollback?
Spring Boot
#database
Middle
›
What is MySQL, and how do InnoDB and MyISAM differ?
MySQL
#database
Junior
›
How do you choose data types in MySQL, and what are common pitfalls?
MySQL
#database
Junior
›
What is an index, and how does a primary key differ from a secondary index?
MySQL
#database
Junior
›
Explain INNER, LEFT, and RIGHT JOIN in MySQL with examples.
MySQL
#database
Junior
›
How do B-tree, composite, and covering indexes work, and what is the leftmost-prefix rule?
MySQL
#database
Middle
›
How do you read EXPLAIN and use it to optimize a slow query?
MySQL
#performance
Middle
›
Explain transactions and isolation levels in InnoDB, and the anomalies they prevent.
MySQL
#database
Middle
›
What are the trade-offs between normalization and denormalization?
MySQL
#database
Middle
›
How does MySQL master–replica replication work, and how does it help read scaling?
MySQL
#database
Middle
›
How do row locks and MVCC work in InnoDB, and how do you avoid deadlocks?
MySQL
#database
Senior
›
When do you reach for partitioning versus sharding to scale MySQL?
MySQL
#database
Senior
›
How do you tune a MySQL server: buffer pool, slow query log, and connections?
MySQL
#performance
Senior
›