Easy Database Administrator questions
159 questions · 5 points each for a correct first answer.
- 1.Purpose of a primary keydata-modelling, sqleasy
- 2.Third normal formnormalization, data-modellingeasy
- 3.When a B-tree index helpsindexingeasy
- 4.Durability in ACIDtransactionseasy
- 5.INNER JOIN vs LEFT JOINsqleasy
- 6.Full vs incremental backupbackup-recoveryeasy
- 7.Least privilege for an app userdatabase-securityeasy
- 8.DELETE vs TRUNCATEsqleasy
- 9.Filtering rows where a value is NULLsqleasy
- 10.COUNT(*) vs COUNT(column)sqleasy
- 11.What a foreign key enforcesdata-modelling, sqleasy
- 12.WHERE vs HAVINGsqleasy
- 13.Data type for moneydata-modellingeasy
- 14.Stopping SQL injectiondatabase-securityeasy
- 15.Logical vs physical backupbackup-recovery, postgresqleasy
- 16.Proving backups workbackup-recoveryeasy
- 17.RPO and RTObackup-recovery, high-availabilityeasy
- 18.Why a write-ahead log existspostgresql, transactionseasy
- 19.Read-only access for analystsdatabase-security, postgresqleasy
- 20.What pg_hba.conf controlsdatabase-security, postgresqleasy
- 21.View vs materialized viewsql, postgresqleasy
- 22.What ROLLBACK undoestransactionseasy
- 23.UNION vs UNION ALLsqleasy
- 24.Row order without ORDER BYsqleasy
- 25.Why add a read replicareplicationeasy
- 26.Seeing what is running nowpostgresql, monitoringeasy
- 27.Cancel or terminate a sessionpostgresqleasy
- 28.Why InnoDB over MyISAMmysqleasy
- 29.Gaps in auto-increment IDsdata-modelling, postgresqleasy
- 30.Storing event timesdata-modelling, postgresqleasy
- 31.Rejecting bad valuesdata-modelling, sqleasy
- 32.FATAL: too many clientsconnection-pooling, postgresqleasy
- 33.Finding slow MySQL queriesmysql, query-tuningeasy
- 34.Encrypting client connectionsdatabase-securityeasy
- 35.Downtime allowed by 99.9%high-availability, availability-matheasy
- 36.Error budget for a 30-day monthhigh-availability, availability-math, sloeasy
- 37.Replicas after a bad DROP TABLEhigh-availability, backup, replicationeasy
- 38.The 3-2-1 backup rulehigh-availability, backupeasy
- 39.Spotting a single point of failurehigh-availability, fundamentalseasy
- 40.Active-passive vs active-activehigh-availability, fundamentalseasy
- 41.Making a PostgreSQL server a standbyhigh-availability, postgresql, replicationeasy
- 42.Copying data for a new replicahigh-availability, postgresql, replicationeasy
- 43.Failures a 3-node quorum surviveshigh-availability, consensuseasy
- 44.Why keep a delayed replicahigh-availability, postgresql, replicationeasy
- 45.Turning a standby into the primaryhigh-availability, postgresql, failovereasy
- 46.RDS backup retention limithigh-availability, cloud, backupeasy
- 47.Where an RDS point-in-time restore goeshigh-availability, cloud, backupeasy
- 48.What a pilot light setup keeps runninghigh-availability, disaster-recoveryeasy
- 49.Planning the way backhigh-availability, disaster-recoveryeasy
- 50.Planned switchover vs failoverhigh-availability, failovereasy
- 51.Worst-case data loss from backupshigh-availability, rpo, backupeasy
- 52.What an RPO of zero requireshigh-availability, rpo, replicationeasy
- 53.Adding replicas to fix slow writeshigh-availability, replication, scalingeasy
- 54.Partitioning vs shardinghigh-availability, shardingeasy
- 55.Why run DR game dayshigh-availability, disaster-recoveryeasy
- 56.Eleven nines of durabilityhigh-availability, fundamentals, cloudeasy
- 57.Removing a server without dropping usershigh-availability, load-balancingeasy
- 58.Keeping a shop usable during DB failoverhigh-availability, resilienceeasy
- 59.Rebuilding the stack in a new regionhigh-availability, disaster-recovery, automationeasy
- 60.Restoring one dropped tablehigh-availability, backup, postgresqleasy
- 61.Kafka topic replication for HAhigh-availability, messaging, replicationeasy
- 62.Stopping calls to a failing dependencyhigh-availability, resilienceeasy
- 63.Standby fell too far behindhigh-availability, postgresql, replicationeasy
- 64.Servers flapping in and out of a poolhigh-availability, load-balancingeasy
- 65.What hot standby meanshigh-availability, postgresql, replicationeasy
- 66.Seeing connected standbyshigh-availability, postgresql, monitoringeasy
- 67.Grandfather-father-son retentionhigh-availability, backupeasy
- 68.Index on a yes/no columnindexing, query-tuningeasy
- 69.How InnoDB stores table rowsindexing, mysqleasy
- 70.What an InnoDB secondary index points toindexing, mysqleasy
- 71.LIKE with a leading %indexing, query-tuningeasy
- 72.What a hash index supportsindexingeasy
- 73.Cost of extra indexes on insertsindexingeasy
- 74.EXPLAIN versus EXPLAIN ANALYZEindexingeasy
- 75.type = ALL in MySQL EXPLAINindexing, mysqleasy
- 76.Index for a date rangeindexing, query-tuningeasy
- 77.Indexes created automaticallyindexingeasy
- 78.Index not used on a tiny tableindexing, query-tuningeasy
- 79.Duplicate-looking indexesindexingeasy
- 80.Index Cond versus Filterindexingeasy
- 81.What ANALYZE doesindexing, query-tuningeasy
- 82.COLLSCAN in a MongoDB planindexing, mongodbeasy
- 83.One composite or two single indexesindexingeasy
- 84.What Seq Scan meansindexingeasy
- 85.Fast MAX on an indexed columnindexingeasy
- 86.Writes for one insertindexingeasy
- 87.Indexing the join columnindexingeasy
- 88.ORDER BY random()indexingeasy
- 89.Order of fields in a MongoDB indexindexing, mongodbeasy
- 90.A unique index used for searchindexingeasy
- 91.What UPDATE does under MVCCpostgresql, mvcceasy
- 92.Applying a minor PostgreSQL releasepostgresql, upgradeseasy
- 93.Which part is the major versionpostgresql, upgradeseasy
- 94.Applying a pg_hba.conf changepostgresql, securityeasy
- 95.CREATE USER vs CREATE ROLEpostgresql, securityeasy
- 96.Where roles livepostgresql, securityeasy
- 97.Where is the MySQL query cachepostgresql, mysqleasy
- 98.Emoji fail to save in MySQLpostgresql, mysqleasy
- 99.Sizing the InnoDB buffer poolpostgresql, mysql, performance-tuningeasy
- 100.Data type for rupee amountspostgresql, data-typeseasy
- 101.Loading 5 crore rows quicklypostgresql, bulk-loadeasy
- 102.Emptying a staging tablepostgresql, maintenanceeasy
- 103.Real size of a tablepostgresql, monitoringeasy
- 104.Spotting indexes no one usespostgresql, indexing, monitoringeasy
- 105.Remote clients cannot connectpostgresql, security, connectionseasy
- 106.VACUUM vs ANALYZEpostgresql, vacuumeasy
- 107.Capping query time for one rolepostgresql, configurationeasy
- 108.Role for a monitoring agentpostgresql, security, monitoringeasy
- 109.Same MySQL user, different hostpostgresql, mysql, securityeasy
- 110.Where to move from MySQL 8.0postgresql, mysql, upgradeseasy
- 111.Old client fails to log in to MySQL 8.4postgresql, mysql, securityeasy
- 112.Extension missing in another databasepostgresql, extensionseasy
- 113.Where new databases come frompostgresql, administrationeasy
- 114.Password file ignored by psqlpostgresql, securityeasy
- 115.Client TLS mode that stops spoofingpostgresql, securityeasy
- 116.NOT IN returns no rowspostgresql, sqleasy
- 117.Counting rows with NULL phonespostgresql, sqleasy
- 118.Where big text values gopostgresql, storageeasy
- 119.Getting disk back from a MySQL tablepostgresql, mysql, maintenanceeasy
- 120.Binary logs filling the diskpostgresql, mysqleasy
- 121.Granting one set of rights to many MySQL userspostgresql, mysql, securityeasy
- 122.Recording who logged inpostgresql, security, auditingeasy
- 123.Big table read by full scanspostgresql, monitoring, indexingeasy
- 124.Which postgresql.conf is in usepostgresql, configurationeasy
- 125.Checking if the server accepts connectionspostgresql, administrationeasy
- 126.Consistent mysqldump without lockspostgresql, mysql, backupeasy
- 127.What C in ACID meanstransactions, acideasy
- 128.What I in ACID meanstransactions, acid, isolation-levelseasy
- 129.Statements without BEGINtransactions, autocommiteasy
- 130.What a phantom read istransactions, isolation-levelseasy
- 131.PostgreSQL default isolationtransactions, isolation-levels, postgresqleasy
- 132.Undoing part of a transactiontransactions, savepointseasy
- 133.Locking a row you will changetransactions, row-lockseasy
- 134.Not waiting for a locked rowtransactions, row-lockseasy
- 135.Rolling back a CREATE TABLEtransactions, postgresql, ddleasy
- 136.DDL in a MySQL transactiontransactions, mysql, ddleasy
- 137.Lock taken by a plain SELECTtransactions, postgresql, table-lockseasy
- 138.Does VACUUM block the apptransactions, postgresql, table-lockseasy
- 139.ACID vs eventual consistencytransactions, consistencyeasy
- 140.Stopping negative wallet balancestransactions, constraintseasy
- 141.When others see your changestransactions, mvcc, isolation-levelseasy
- 142.Setting the level for one transactiontransactions, isolation-levels, postgresqleasy
- 143.BEGIN inside a transactiontransactions, postgresql, savepointseasy
- 144.Guarding a reporting transactiontransactions, postgresqleasy
- 145.Two uncommitted writes to one rowtransactions, isolation-levels, row-lockseasy
- 146.Undoing a TRUNCATEtransactions, postgresql, ddleasy
- 147.Trigger failure and the main writetransactions, triggerseasy
- 148.Why long transactions hurttransactions, postgresql, mvcceasy
- 149.Deleting 5 crore old rowstransactions, maintenance, performanceeasy
- 150.Insert or update in one statementtransactions, concurrency, upserteasy
- 151.now() inside a long transactiontransactions, postgresqleasy
- 152.Client retries a payment requesttransactions, idempotencyeasy
- 153.What a saga does on failuretransactions, sagas, distributed-transactionseasy
- 154.When row locks are releasedtransactions, row-lockseasy
- 155.Holding a lock while the user decidestransactions, row-locks, designeasy
- 156.How committed work survives a crashtransactions, durability, waleasy
- 157.Open transaction during a crashtransactions, acid, durabilityeasy
- 158.Lock wait vs deadlocktransactions, deadlockseasy
- 159.What optimistic locking meanstransactions, optimistic-lockingeasy