Skip to content
RED SAG Skills

Medium Database Administrator questions

200 questions · 10 points each for a correct first answer.

  1. 1.Composite index column ordermedium
  2. 2.Reading an EXPLAIN ANALYZE planmedium
  3. 3.Non-repeatable readmedium
  4. 4.Why PostgreSQL needs VACUUMmedium
  5. 5.What PITR needsmedium
  6. 6.Risk of asynchronous replicationmedium
  7. 7.Why use a connection poolermedium
  8. 8.Covering indexmedium
  9. 9.Slow deep paginationmedium
  10. 10.Which query to tune firstmedium
  11. 11.NOT IN returns nothingmedium
  12. 12.UNIQUE column with NULLsmedium
  13. 13.Adding an index on a live tablemedium
  14. 14.Sort Method: external mergemedium
  15. 15.Bad plan right after a bulk loadmedium
  16. 16.Sizing shared_buffersmedium
  17. 17.Session state behind pgBouncermedium
  18. 18.Workers fighting over jobsmedium
  19. 19.MySQL default isolation levelmedium
  20. 20.Measuring replica lagmedium
  21. 21.Reports cancelled on the replicamedium
  22. 22.Is pg_dump consistent?medium
  23. 23.Restoring a Percona XtraBackupmedium
  24. 24.Deleting a customer takes secondsmedium
  25. 25.Disk not freed after a big deletemedium
  26. 26.Bloat from an idle sessionmedium
  27. 27.A migration froze the whole appmedium
  28. 28.Indexing only pending rowsmedium
  29. 29.Searching inside textmedium
  30. 30.Fast JSONB filtersmedium
  31. 31.Row vs statement binlog formatmedium
  32. 32.Multi-AZ vs read replica on RDSmedium
  33. 33.Terraform plan wants to replace the DBmedium
  34. 34.Counting a huge table quicklymedium
  35. 35.Availability of components in seriesmedium
  36. 36.Two redundant copies of a servicemedium
  37. 37.Availability from MTBF and MTTRmedium
  38. 38.Four or five members for etcdmedium
  39. 39.Placing the tie-breakermedium
  40. 40.What fencing protects againstmedium
  41. 41.Sync replication that survives one replica lossmedium
  42. 42.Reading your own write on a replicamedium
  43. 43.Too many replicas on one primarymedium
  44. 44.Lossless semi-sync in MySQLmedium
  45. 45.Why GTIDs ease MySQL failovermedium
  46. 46.Stopping writes to a MySQL replicamedium
  47. 47.MySQL replica lags under heavy writesmedium
  48. 48.Replica lag spike after a batch jobmedium
  49. 49.Users see old data after savingmedium
  50. 50.Connection string that finds the primarymedium
  51. 51.Routing to the Patroni leadermedium
  52. 52.How Aurora storage survives an AZ lossmedium
  53. 53.Lowest-effort cross-region DR for RDSmedium
  54. 54.Backups that ransomware cannot deletemedium
  55. 55.Restoring to just before a bad deploymedium
  56. 56.New timeline after promotionmedium
  57. 57.Checking WAL archiving healthmedium
  58. 58.InnoDB Cluster losing two of threemedium
  59. 59.Fast new MySQL replicamedium
  60. 60.MySQL point-in-time restoremedium
  61. 61.Kafka settings that do not lose acked writesmedium
  62. 62.Writes lost after Redis failovermedium
  63. 63.Choosing during a network partitionmedium
  64. 64.Primary on the minority side of a partitionmedium
  65. 65.Last-writer-wins drops a newer updatemedium
  66. 66.Commit latency with a distant sync replicamedium
  67. 67.DR when data must stay in the UAEmedium
  68. 68.DR for Indian payment datamedium
  69. 69.Static stability during a zone failuremedium
  70. 70.Limiting the blast radiusmedium
  71. 71.Database overwhelmed right after failovermedium
  72. 72.Sending reads to a lagging replicamedium
  73. 73.Unique IDs on many shardsmedium
  74. 74.Moving one big tenant to its own shardmedium
  75. 75.Sync standby placed in the same zonemedium
  76. 76.Shorter app impact during RDS failovermedium
  77. 77.Which MySQL replica to promotemedium
  78. 78.Surprise bill from replica readsmedium
  79. 79.Equality and range in one indexmedium
  80. 80.Reading loops in a planmedium
  81. 81.shared hit versus readmedium
  82. 82.Why a Bitmap Heap Scanmedium
  83. 83.Feed page per usermedium
  84. 84.Gap in a composite indexmedium
  85. 85.Phone number compared to a numbermedium
  86. 86.LIKE prefix ignores the indexmedium
  87. 87.Index for a huge append-only logmedium
  88. 88."Using filesort" in MySQL EXPLAINmedium
  89. 89.Finding indexes nobody usesmedium
  90. 90.OR across two columnsmedium
  91. 91.ORDER BY with mixed directionsmedium
  92. 92.random_page_cost on SSDmedium
  93. 93.Same query, different plansmedium
  94. 94.Checking if any row existsmedium
  95. 95.The N+1 query patternmedium
  96. 96.Many rows removed by filtermedium
  97. 97.Testing an index drop safelymedium
  98. 98.ON CONFLICT needs a unique indexmedium
  99. 99.Estimating rows for an equality filtermedium
  100. 100.Hash join with many batchesmedium
  101. 101.Capturing plans of slow production queriesmedium
  102. 102.Rows repeat across pagesmedium
  103. 103.Stopping overlapping room bookingsmedium
  104. 104.Hard-coding FORCE INDEXmedium
  105. 105.Spotting a missing index from statsmedium
  106. 106.MongoDB covered querymedium
  107. 107.Rebuilding a bloated index onlinemedium
  108. 108.Parallel workers in a planmedium
  109. 109.When autovacuum starts on a tablemedium
  110. 110.Vacuuming one hot table more oftenmedium
  111. 111.Shrinking a bloated table safelymedium
  112. 112.Autovacuum running though it is offmedium
  113. 113.Watching XID age per databasemedium
  114. 114.Cost of 3,000 idle connectionsmedium
  115. 115.Server connections from PgBouncermedium
  116. 116.Raising max_connectionsmedium
  117. 117.Where ALTER SYSTEM writesmedium
  118. 118.Password hashing method to usemedium
  119. 119.The pg_hba line that never appliesmedium
  120. 120.Users cannot create tables in publicmedium
  121. 121.Roles missing after a restoremedium
  122. 122.Making pg_restore use 8 coresmedium
  123. 123.Deleting a customer is slowmedium
  124. 124.I/O spikes at every checkpointmedium
  125. 125.Index for a huge log tablemedium
  126. 126.Modern auto-increment columnmedium
  127. 127.Planner ignores a good indexmedium
  128. 128.Computing the buffer cache hit ratiomedium
  129. 129.Major upgrade with minutes of downtimemedium
  130. 130.Testing pg_upgrade before the windowmedium
  131. 131.Extensions after a major upgrademedium
  132. 132.mysql_upgrade on MySQL 8.4medium
  133. 133.Logging who read card datamedium
  134. 134.Seeing the plan of a slow query in prodmedium
  135. 135.pg_stat_statements view errorsmedium
  136. 136.Checkpoints occurring too frequentlymedium
  137. 137.What effective_cache_size doesmedium
  138. 138.Planner prefers seq scans on NVMemedium
  139. 139.Speeding up CREATE INDEXmedium
  140. 140.Member of a role but no accessmedium
  141. 141.Jumping from MySQL 5.7 to 8.4medium
  142. 142.Foreign keys and indexes in InnoDBmedium
  143. 143.UUID keys that index wellmedium
  144. 144.Changing int to bigintmedium
  145. 145.Adding a foreign key to a big tablemedium
  146. 146.Data silently cut in MySQLmedium
  147. 147.Reading type=ALL in MySQL EXPLAINmedium
  148. 148.Deep pages load slowlymedium
  149. 149.Big aggregate uses one CPUmedium
  150. 150.CTE acts as an optimisation fencemedium
  151. 151.Stopping one query filling the diskmedium
  152. 152.Who is doing the I/Omedium
  153. 153.Avoiding double caching in MySQLmedium
  154. 154.What CLUSTER doesmedium
  155. 155.Encrypting Aadhaar numbers in a columnmedium
  156. 156.Bad estimates on a skewed columnmedium
  157. 157.Which levels allow which anomalymedium
  158. 158.Read Uncommitted in PostgreSQLmedium
  159. 159.Handling SQLSTATE 40001medium
  160. 160.Two SELECTs, two answersmedium
  161. 161.When the Repeatable Read snapshot startsmedium
  162. 162.Could not serialize due to concurrent updatemedium
  163. 163.UPDATE re-checks the WHERE clausemedium
  164. 164.FOR SHARE vs FOR UPDATEmedium
  165. 165.Flash sale stock without oversellingmedium
  166. 166.Version check updates no rowsmedium
  167. 167.Choosing optimistic or pessimistic lockingmedium
  168. 168.Current transaction is abortedmedium
  169. 169.MySQL keeps going after an errormedium
  170. 170.Only one copy of a cron jobmedium
  171. 171.App gets deadlock detectedmedium
  172. 172.What deadlock_timeout controlsmedium
  173. 173.MySQL lock wait timeout behaviourmedium
  174. 174.Finding who blocks a sessionmedium
  175. 175.Capping total transaction timemedium
  176. 176.Check-then-insert creates duplicatesmedium
  177. 177.Preventing overlapping room bookingsmedium
  178. 178.Swapping two unique positionsmedium
  179. 179.Counting page views in MySQLmedium
  180. 180.Processing each message oncemedium
  181. 181.Cache shows a rolled-back pricemedium
  182. 182.Retry storms after deadlocksmedium
  183. 183.Retried transaction sends two emailsmedium
  184. 184.BEGIN and UPDATE on different connectionsmedium
  185. 185.FOR UPDATE with GROUP BY failsmedium
  186. 186.Table lock from UPDATEmedium
  187. 187.Plain CREATE INDEX during trafficmedium
  188. 188.Reading pg_locks for waitersmedium
  189. 189.Logging long lock waitsmedium
  190. 190.Several queries, one consistent picturemedium
  191. 191.Taking a MySQL snapshot at startmedium
  192. 192.LOCK TABLES in a transactionmedium
  193. 193.Saga orchestration vs choreographymedium
  194. 194.Why 2PC is avoided across servicesmedium
  195. 195.Does PostgreSQL escalate row locksmedium
  196. 196.Many commits, few disk flushesmedium
  197. 197.Timestamp used as a version checkmedium
  198. 198.RETURNING gives no row on conflictmedium
  199. 199.Connections stuck idle in transactionmedium
  200. 200.More serialization errors on long transactionsmedium