Skip to content
RED SAG Skills

Hard Database Administrator questions

156 questions · 20 points each for a correct first answer.

  1. 1.Fixing a recurring deadlockhard
  2. 2.Transaction ID wraparoundhard
  3. 3.Partition pruninghard
  4. 4.Choosing a shard keyhard
  5. 5.Index ignored because of a functionhard
  6. 6.InnoDB gap lockshard
  7. 7.Avoiding split-brainhard
  8. 8.Disk filling with WALhard
  9. 9.Two doctors go off callhard
  10. 10.Commits hang with sync replicationhard
  11. 11.Prepared statement slows down laterhard
  12. 12.Estimates wrong for city and zip codehard
  13. 13.Index-only scan still reads the tablehard
  14. 14.Logical replication stopped after a migrationhard
  15. 15.pg_upgrade --link and rollbackhard
  16. 16.pg_wal growing without limithard
  17. 17.Errant GTIDs block failoverhard
  18. 18.Online schema change tools for MySQLhard
  19. 19.Unique email on a partitioned tablehard
  20. 20.Deleting old data every monthhard
  21. 21.Primary demoted when etcd is unreachablehard
  22. 22.WAL volume spikes after checkpointshard
  23. 23.What encryption at rest protectshard
  24. 24.Row-level security not appliedhard
  25. 25.Risky SECURITY DEFINER functionhard
  26. 26.Indexes bloat on a counter tablehard
  27. 27.Random UUID keys slow down insertshard
  28. 28.Rejoining the old primaryhard
  29. 29.OOM killer after raising work_memhard
  30. 30.Restore takes longer than the RTOhard
  31. 31.Locks held by nobodyhard
  32. 32.Faster commits with a durability costhard
  33. 33.DR restore blocked by an encryption keyhard
  34. 34.A WAL archive with silent gapshard
  35. 35.Low traffic makes WAL archiving laghard
  36. 36.Files needed for a restorehard
  37. 37.Native incremental backups in PostgreSQL 17hard
  38. 38.Speeding up point-in-time recoveryhard
  39. 39.Snapshots of data and WAL volumeshard
  40. 40.Keys moved when adding a shardhard
  41. 41.All writes hit one shardhard
  42. 42.How long Patroni waits before failoverhard
  43. 43.Replica skipped during failoverhard
  44. 44.CDC breaks after every failoverhard
  45. 45.Kubernetes keeps killing the databasehard
  46. 46.All replicas in one zonehard
  47. 47.Capacity to survive losing a zonehard
  48. 48.A transfer between two shardshard
  49. 49.Joining a small table on every shardhard
  50. 50.One celebrity account overloads a shardhard
  51. 51.A DB blip removes every app serverhard
  52. 52.Running PostgreSQL on Kuberneteshard
  53. 53.Why Patroni uses a watchdoghard
  54. 54.Aurora Global Database in a regional outagehard
  55. 55.Multi-AZ instance vs Multi-AZ clusterhard
  56. 56.One replica always lagshard
  57. 57.The drill took 3 hours, not 30 minuteshard
  58. 58.Choosing logical or physical replicationhard
  59. 59.Routing users to the nearest healthy regionhard
  60. 60.How long a 3 TB restore takeshard
  61. 61.Starting a chaos experiment safelyhard
  62. 62.Keeping WAL for replicas without slotshard
  63. 63.Standby failures under ANY 2 of 4hard
  64. 64.A base backup that will not starthard
  65. 65.etcd split across two regionshard
  66. 66.LIMIT 1 takes minuteshard
  67. 67.Optional filters in one queryhard
  68. 68.Index on a frequently updated columnhard
  69. 69.Failed concurrent index buildhard
  70. 70.B-tree levels for 2 crore rowshard
  71. 71.CTE stops using an indexhard
  72. 72.Index row size exceeds maximumhard
  73. 73.Partitioned table with bad estimateshard
  74. 74.NULLS LAST and the indexhard
  75. 75.IN list plus ORDER BYhard
  76. 76.Join ignores the indexhard
  77. 77.Hot right edge of an indexhard
  78. 78.Physical order and index costhard
  79. 79.Estimates wrong for a skewed columnhard
  80. 80.Refreshing a dashboard view without blockinghard
  81. 81.Fast DISTINCT on a low-cardinality columnhard
  82. 82.JIT makes a query slowerhard
  83. 83.Planning time with 5,000 partitionshard
  84. 84.MySQL prefix index trade-offhard
  85. 85.Choosing a clustered keyhard
  86. 86.Testing an index before building ithard
  87. 87.High cache hit ratio, slow queryhard
  88. 88.Wrong results after an OS upgradehard
  89. 89.Checking an index for corruptionhard
  90. 90.When an int key runs outhard
  91. 91.Adding NOT NULL to a big tablehard
  92. 92.ADD COLUMN that rewrote the tablehard
  93. 93.Inserts slow down with UUID keyshard
  94. 94.InnoDB history list keeps growinghard
  95. 95.Where old row versions are kepthard
  96. 96.More autovacuum workers, no speed-uphard
  97. 97.Out of shared memory with partitionshard
  98. 98.Disk full with a large pg_walhard
  99. 99.Unlogged table empty after a crashhard
  100. 100.UPDATE fails on a published tablehard
  101. 101.MySQL ignores an index on phonehard
  102. 102.Online column add in MySQL 8hard
  103. 103.Data checksums on new clustershard
  104. 104.A role that can run COPY FROM PROGRAMhard
  105. 105.Measuring bloat exactlyhard
  106. 106.Query scans every partitionhard
  107. 107.Creating a partition takes ageshard
  108. 108.Attaching a loaded partition quicklyhard
  109. 109.Slow query over postgres_fdwhard
  110. 110.Reading EXPLAIN BUFFERS outputhard
  111. 111.Huge pages for a 64 GB buffer poolhard
  112. 112.Linux OOM killer and PostgreSQLhard
  113. 113.Write stalls from a small redo loghard
  114. 114.Top queries without a slow loghard
  115. 115.Finding queries that spill to diskhard
  116. 116.Duplicate emails differing in casehard
  117. 117.Any user can connect to any databasehard
  118. 118.Index-only scans slow on an insert-only tablehard
  119. 119.Duplicate key errors after cutoverhard
  120. 120.Standbys after pg_upgrade --linkhard
  121. 121.SELECT causes heavy writeshard
  122. 122.Online ALTER fails at the endhard
  123. 123.Old replication commands fail on 8.4hard
  124. 124.Report total off by one transferhard
  125. 125.Foreign key checks and row lockshard
  126. 126.Advisory locks behind PgBouncerhard
  127. 127.SELECT and SELECT FOR UPDATE disagreehard
  128. 128.One UPDATE blocks the whole tablehard
  129. 129.Long report under Serializablehard
  130. 130.How PostgreSQL Serializable workshard
  131. 131.Throughput of one hot counter rowhard
  132. 132.Inserting 10,000 rows one commit eachhard
  133. 133.Committed data lost after power cuthard
  134. 134.Why fsync = off is dangeroushard
  135. 135.Do SELECT-only transactions use XIDshard
  136. 136.Two statements sent in one stringhard
  137. 137.INSERT hangs on another sessionhard
  138. 138.FOR UPDATE on a join locks too muchhard
  139. 139.Poller misses some rowshard
  140. 140.Connection drops during COMMIThard
  141. 141.Many share locks on one rowhard
  142. 142.Turning off InnoDB deadlock detectionhard
  143. 143.MySQL Serializable and plain SELECThard
  144. 144.Lowering MySQL isolation to cut lock waitshard
  145. 145.An idle MySQL session blocks ALTERhard
  146. 146.SELECT FOR UPDATE creates WALhard
  147. 147.Queue length at a hot rowhard
  148. 148.Guarding a rule across many rowshard
  149. 149.Phantoms at PostgreSQL Repeatable Readhard
  150. 150.Slowdown from a savepoint per rowhard
  151. 151.Two locking options comparedhard
  152. 152.How readers know a row committedhard
  153. 153.Deadlock from two concurrent insertshard
  154. 154.Serializable only on one sidehard
  155. 155.REPLACE INTO removed child rowshard
  156. 156.Locked rows come back out of orderhard