Hard Database Administrator questions
156 questions · 20 points each for a correct first answer.
- 1.Fixing a recurring deadlocklocking, transactionshard
- 2.Transaction ID wraparoundpostgresql, mvcchard
- 3.Partition pruningpartitioning, query-tuninghard
- 4.Choosing a shard keysharding, architecturehard
- 5.Index ignored because of a functionindexing, postgresqlhard
- 6.InnoDB gap locksmysql, lockinghard
- 7.Avoiding split-brainhigh-availability, replicationhard
- 8.Disk filling with WALreplication, postgresqlhard
- 9.Two doctors go off calltransactions, isolation-levelshard
- 10.Commits hang with sync replicationreplication, high-availabilityhard
- 11.Prepared statement slows down laterquery-tuning, postgresqlhard
- 12.Estimates wrong for city and zip codequery-tuning, postgresqlhard
- 13.Index-only scan still reads the tableindexing, mvcchard
- 14.Logical replication stopped after a migrationreplication, postgresqlhard
- 15.pg_upgrade --link and rollbackpostgresql, upgradeshard
- 16.pg_wal growing without limitbackup-recovery, postgresqlhard
- 17.Errant GTIDs block failovermysql, replicationhard
- 18.Online schema change tools for MySQLmysql, schema-changeshard
- 19.Unique email on a partitioned tablepartitioning, postgresqlhard
- 20.Deleting old data every monthpartitioning, postgresqlhard
- 21.Primary demoted when etcd is unreachablehigh-availability, postgresqlhard
- 22.WAL volume spikes after checkpointspostgresql, performancehard
- 23.What encryption at rest protectsdatabase-securityhard
- 24.Row-level security not applieddatabase-security, postgresqlhard
- 25.Risky SECURITY DEFINER functiondatabase-security, postgresqlhard
- 26.Indexes bloat on a counter tablepostgresql, performancehard
- 27.Random UUID keys slow down insertsindexing, data-modellinghard
- 28.Rejoining the old primaryhigh-availability, replicationhard
- 29.OOM killer after raising work_mempostgresql, performancehard
- 30.Restore takes longer than the RTObackup-recovery, high-availabilityhard
- 31.Locks held by nobodytransactions, postgresqlhard
- 32.Faster commits with a durability costmysql, transactionshard
- 33.DR restore blocked by an encryption keyhigh-availability, cloud, backuphard
- 34.A WAL archive with silent gapshigh-availability, postgresql, backuphard
- 35.Low traffic makes WAL archiving laghigh-availability, postgresql, backuphard
- 36.Files needed for a restorehigh-availability, backuphard
- 37.Native incremental backups in PostgreSQL 17high-availability, postgresql, backuphard
- 38.Speeding up point-in-time recoveryhigh-availability, backup, rtohard
- 39.Snapshots of data and WAL volumeshigh-availability, backup, cloudhard
- 40.Keys moved when adding a shardhigh-availability, shardinghard
- 41.All writes hit one shardhigh-availability, shardinghard
- 42.How long Patroni waits before failoverhigh-availability, patroni, failoverhard
- 43.Replica skipped during failoverhigh-availability, patroni, failoverhard
- 44.CDC breaks after every failoverhigh-availability, postgresql, logical-replicationhard
- 45.Kubernetes keeps killing the databasehigh-availability, kubernetes, failoverhard
- 46.All replicas in one zonehigh-availability, kuberneteshard
- 47.Capacity to survive losing a zonehigh-availability, capacity-planninghard
- 48.A transfer between two shardshigh-availability, sharding, distributed-transactionshard
- 49.Joining a small table on every shardhigh-availability, sharding, postgresqlhard
- 50.One celebrity account overloads a shardhigh-availability, shardinghard
- 51.A DB blip removes every app serverhigh-availability, load-balancing, resiliencehard
- 52.Running PostgreSQL on Kuberneteshigh-availability, kubernetes, postgresqlhard
- 53.Why Patroni uses a watchdoghigh-availability, patroni, split-brainhard
- 54.Aurora Global Database in a regional outagehigh-availability, cloud, multi-regionhard
- 55.Multi-AZ instance vs Multi-AZ clusterhigh-availability, cloud, replicationhard
- 56.One replica always lagshigh-availability, replication, replica-laghard
- 57.The drill took 3 hours, not 30 minuteshigh-availability, disaster-recovery, rtohard
- 58.Choosing logical or physical replicationhigh-availability, postgresql, logical-replicationhard
- 59.Routing users to the nearest healthy regionhigh-availability, multi-region, load-balancinghard
- 60.How long a 3 TB restore takeshigh-availability, backup, rtohard
- 61.Starting a chaos experiment safelyhigh-availability, resiliencehard
- 62.Keeping WAL for replicas without slotshigh-availability, postgresql, replicationhard
- 63.Standby failures under ANY 2 of 4high-availability, postgresql, replicationhard
- 64.A base backup that will not starthigh-availability, postgresql, backuphard
- 65.etcd split across two regionshigh-availability, consensus, multi-regionhard
- 66.LIMIT 1 takes minutesindexing, query-tuninghard
- 67.Optional filters in one queryindexing, query-tuninghard
- 68.Index on a frequently updated columnindexinghard
- 69.Failed concurrent index buildindexinghard
- 70.B-tree levels for 2 crore rowsindexinghard
- 71.CTE stops using an indexindexinghard
- 72.Index row size exceeds maximumindexinghard
- 73.Partitioned table with bad estimatesindexing, partitioninghard
- 74.NULLS LAST and the indexindexinghard
- 75.IN list plus ORDER BYindexinghard
- 76.Join ignores the indexindexing, mysqlhard
- 77.Hot right edge of an indexindexing, sql-serverhard
- 78.Physical order and index costindexinghard
- 79.Estimates wrong for a skewed columnindexing, query-tuninghard
- 80.Refreshing a dashboard view without blockingindexinghard
- 81.Fast DISTINCT on a low-cardinality columnindexinghard
- 82.JIT makes a query slowerindexinghard
- 83.Planning time with 5,000 partitionsindexing, partitioninghard
- 84.MySQL prefix index trade-offindexing, mysqlhard
- 85.Choosing a clustered keyindexing, sql-serverhard
- 86.Testing an index before building itindexinghard
- 87.High cache hit ratio, slow queryindexinghard
- 88.Wrong results after an OS upgradepostgresql, upgrades, indexinghard
- 89.Checking an index for corruptionpostgresql, maintenance, corruptionhard
- 90.When an int key runs outpostgresql, data-typeshard
- 91.Adding NOT NULL to a big tablepostgresql, schema-changeshard
- 92.ADD COLUMN that rewrote the tablepostgresql, schema-changeshard
- 93.Inserts slow down with UUID keyspostgresql, mysql, indexinghard
- 94.InnoDB history list keeps growingpostgresql, mysql, mvcchard
- 95.Where old row versions are keptpostgresql, mvcc, mysqlhard
- 96.More autovacuum workers, no speed-uppostgresql, vacuum, performance-tuninghard
- 97.Out of shared memory with partitionspostgresql, partitioninghard
- 98.Disk full with a large pg_walpostgresql, wal, incident-responsehard
- 99.Unlogged table empty after a crashpostgresql, walhard
- 100.UPDATE fails on a published tablepostgresql, logical-replication, upgradeshard
- 101.MySQL ignores an index on phonepostgresql, mysql, indexinghard
- 102.Online column add in MySQL 8postgresql, mysql, schema-changeshard
- 103.Data checksums on new clusterspostgresql, corruption, upgradeshard
- 104.A role that can run COPY FROM PROGRAMpostgresql, securityhard
- 105.Measuring bloat exactlypostgresql, vacuum, monitoringhard
- 106.Query scans every partitionpostgresql, partitioninghard
- 107.Creating a partition takes agespostgresql, partitioninghard
- 108.Attaching a loaded partition quicklypostgresql, partitioninghard
- 109.Slow query over postgres_fdwpostgresql, extensions, query-planninghard
- 110.Reading EXPLAIN BUFFERS outputpostgresql, query-planning, monitoringhard
- 111.Huge pages for a 64 GB buffer poolpostgresql, performance-tuning, linuxhard
- 112.Linux OOM killer and PostgreSQLpostgresql, linux, performance-tuninghard
- 113.Write stalls from a small redo logpostgresql, mysql, performance-tuninghard
- 114.Top queries without a slow logpostgresql, mysql, monitoringhard
- 115.Finding queries that spill to diskpostgresql, monitoring, performance-tuninghard
- 116.Duplicate emails differing in casepostgresql, indexing, data-typeshard
- 117.Any user can connect to any databasepostgresql, securityhard
- 118.Index-only scans slow on an insert-only tablepostgresql, vacuum, indexinghard
- 119.Duplicate key errors after cutoverpostgresql, upgrades, logical-replicationhard
- 120.Standbys after pg_upgrade --linkpostgresql, upgrades, replicationhard
- 121.SELECT causes heavy writespostgresql, mvcc, bulk-loadhard
- 122.Online ALTER fails at the endpostgresql, mysql, schema-changeshard
- 123.Old replication commands fail on 8.4postgresql, mysql, upgradeshard
- 124.Report total off by one transfertransactions, isolation-levels, anomalieshard
- 125.Foreign key checks and row lockstransactions, postgresql, row-lockshard
- 126.Advisory locks behind PgBouncertransactions, advisory-locks, pgbouncerhard
- 127.SELECT and SELECT FOR UPDATE disagreetransactions, mysql, isolation-levelshard
- 128.One UPDATE blocks the whole tabletransactions, mysql, row-lockshard
- 129.Long report under Serializabletransactions, isolation-levels, postgresqlhard
- 130.How PostgreSQL Serializable workstransactions, isolation-levels, postgresqlhard
- 131.Throughput of one hot counter rowtransactions, concurrency, row-lockshard
- 132.Inserting 10,000 rows one commit eachtransactions, durability, performancehard
- 133.Committed data lost after power cuttransactions, durabilityhard
- 134.Why fsync = off is dangeroustransactions, durability, postgresqlhard
- 135.Do SELECT-only transactions use XIDstransactions, postgresql, mvcchard
- 136.Two statements sent in one stringtransactions, postgresql, autocommithard
- 137.INSERT hangs on another sessiontransactions, constraints, row-lockshard
- 138.FOR UPDATE on a join locks too muchtransactions, row-locks, sqlhard
- 139.Poller misses some rowstransactions, concurrency, sequenceshard
- 140.Connection drops during COMMITtransactions, idempotency, durabilityhard
- 141.Many share locks on one rowtransactions, postgresql, row-lockshard
- 142.Turning off InnoDB deadlock detectiontransactions, mysql, deadlockshard
- 143.MySQL Serializable and plain SELECTtransactions, mysql, isolation-levelshard
- 144.Lowering MySQL isolation to cut lock waitstransactions, mysql, isolation-levelshard
- 145.An idle MySQL session blocks ALTERtransactions, mysql, table-lockshard
- 146.SELECT FOR UPDATE creates WALtransactions, postgresql, row-lockshard
- 147.Queue length at a hot rowtransactions, concurrency, performancehard
- 148.Guarding a rule across many rowstransactions, anomalies, row-lockshard
- 149.Phantoms at PostgreSQL Repeatable Readtransactions, isolation-levels, postgresqlhard
- 150.Slowdown from a savepoint per rowtransactions, postgresql, savepointshard
- 151.Two locking options comparedtransactions, row-lockshard
- 152.How readers know a row committedtransactions, postgresql, mvcchard
- 153.Deadlock from two concurrent insertstransactions, mysql, deadlockshard
- 154.Serializable only on one sidetransactions, isolation-levels, postgresqlhard
- 155.REPLACE INTO removed child rowstransactions, mysql, upserthard
- 156.Locked rows come back out of ordertransactions, row-locks, postgresqlhard