← All Learning Paths

Database Operator

A database operations path covering transactions, indexing, query patterns, replication, storage internals, migrations, and restore drills.

roleintermediate8 nodes13.33h total

Path overview

This path is generated from the curated resource graph.

  1. Reconstruct the reasoning behind "Database Migration Strategies That Won't Break Production" by tracing "Versioning the Migrations and the Code Together" to the failure it prevents in database administrator systems.

    Completion criteria: Attach a decision log for "Database Migration Strategies That Won't Break Production": the "Versioning the Migrations and the Code Together" section, one rejected alternative, and the diff of the file you changed.

    Next step: Add Optimistic Locking with a Version Column

    ⏱ 1h

  2. Run "Detect concurrent edits to the same record without holding a database lock for the duration" from "Add Optimistic Locking with a Version Column" and confirm the documented result "Existing rows have version 1 and new rows start at 1.".

    Prerequisites: Database Migration Strategies That Won't Break Production

    Completion criteria: Run "Add Optimistic Locking with a Version Column" twice — once as written and once with a changed input — and attach both transcripts with the observed difference.

    Next step: Add an Append-Only Audit Log

    ⏱ 0.5h

  3. Apply "Add an Append-Only Audit Log" to a database administrator task, checking that "Create an audit table with actor, action, entity, before/after snapshots, request id, and" appears after the "The table exists with an index for entity history queries." step.

    Prerequisites: Add Optimistic Locking with a Version Column

    Completion criteria: Run the steps through "The table exists with an index for entity history queries.", paste the command output, and mark the line that matches "Create an audit table with actor, action, entity, before/after snapshots, request id, and"; then rerun with one parameter changed.

    Next step: Verify Database Backups by Restoring Them

    ⏱ 0.5h

  4. Execute "Verify Database Backups by Restoring Them" end to end, then repeat the last step with one parameter changed and compare "A readable dump file and a checksum stored with the backup metadata.".

    Prerequisites: Add an Append-Only Audit Log

    Completion criteria: Deliver a transcript of "Verify Database Backups by Restoring Them" with each step's command and observed state, ending at "A readable dump file and a checksum stored with the backup metadata.".

    Next step: Prisma

    ⏱ 1h

  5. Read "Prisma"'s documented surface around "prisma migrate prisma migrate dev --name <migration_name>", then build a minimal endpoint and log the response.

    Completion criteria: Attach one successful call and one invalid call against "Prisma", citing "prisma migrate prisma migrate dev --name <migration_name>" as the documented surface.

    Next step: Backup and Restore Drill

    ⏱ 1h

  6. Use "Backup and Restore Drill" to decide "The chosen backup is within the documented retention and can be retrieved.", then prove the outcome with "Validate that the backup and restore process meets the recovery point and recovery time".

    Prerequisites: Prisma

    Completion criteria: Record the state "Validate that the backup and restore process meets the recovery point and recovery time" at the verification step, then paste the output of "The chosen backup is within the documented retention and can be retrieved." that proves it.

    Next step: Verify a Backup Manifest Before Restore

    ⏱ 1.5h

  7. Turn JSON object: { backup: { checksum, sizeBytes, objectCount }, into {verified:true,mismatches:[]} by completing "Verify a Backup Manifest Before Restore" with a reproducible script and a failing-case note.

    Prerequisites: Backup and Restore Drill

    Completion criteria: Attach the solution file for "Database Operator", two passing sample runs, and one failing run whose error matches the contract.

    Next step: Capstone: Database Operator

    ⏱ 0.33h

  8. Ship "Log appender" from "Build a WAL Replication Manager", then prove it with the project's test suite and an acceptance note.

    Prerequisites: Backup and Restore Drill, Verify a Backup Manifest Before Restore

    Completion criteria: Run the project's test command for "Build a WAL Replication Manager", paste the passing output, and attach the acceptance note for "Log appender" with the test name.

    Next step: Run the capstone's tests, publish the repository, and demo it to a reviewer.

    ⏱ 4h