Scrivio Interview library

Databases

1,153 questions in 39 topics. JPA and transactions, writing SQL, how relational databases work inside, NoSQL and search.

Data access, JPA and transactions

12 topics, 333 questions

SQL language

4 topics, 137 questions

Relational databases

15 topics, 443 questions
Relational data modelingEntity relationship modeling, primary, foreign, natural and surrogate keys, normalization 1NF to BCNF44 questionsIndexesB-tree indexes, hash indexes, composite indexes and column order34 questionsQuery planning and optimizationEXPLAIN and EXPLAIN ANALYZE, cost-based optimizer and statistics, sargable predicates41 questionsACID, isolation and MVCCACID properties, write-ahead logging, dirty, non-repeatable and phantom reads31 questionsLocks inside the databaseRow, page and table locks, shared and exclusive locks, SELECT FOR UPDATE31 questionsViews, procedures and triggersViews, materialized views, stored procedures and functions24 questionsStorage engine internalsPages and the buffer pool, B+ trees, LSM trees and compaction22 questionsPostgreSQLProcess architecture, shared buffers and WAL, VACUUM and autovacuum, tuple visibility and xmin39 questionsMySQL and InnoDBInnoDB architecture and buffer pool, clustered primary key, redo and undo logs30 questionsOracle and SQL ServerOracle sequences, ROWNUM and FETCH FIRST, Oracle undo and read consistency, PL/SQL basics24 questionsReplication and high availabilitySynchronous vs asynchronous replication, replication lag and read-your-writes, failover and leader election25 questionsPartitioning and shardingTable partitioning, horizontal sharding strategies, shard keys and hot spots22 questionsDatabase securityLeast-privilege accounts, SQL injection beyond PreparedStatement, encryption at rest and in transit21 questionsOperating databasesCapacity planning, monitoring metrics, backup and restore drills31 questionsAnalytics, warehouses and change data captureStar and snowflake schemas, ETL vs ELT, change data capture with Debezium24 questions