Skip to content
mentoor

Reviewing AI changes to migrations, infra and CI

For engineers

Agent-written database migrations, infrastructure-as-code, Dockerfiles and CI workflows, where one bad line deletes data or leaks secrets

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

Which statement is destructive for running code even though it looks harmless?

Choose one answer

Check yourself · 2 of 5

In Terraform plan output, what does a line marked destroy and replace mean for a database?

Choose one answer

Check yourself · 3 of 5

Why is pull_request_target risky when combined with checking out the pull request's code?

Choose one answer

Check yourself · 4 of 5

A Dockerfile has no USER instruction. What does that mean at runtime?

Choose one answer

Check yourself · 5 of 5

A diff changes a setting's default from false to true. Why does this need care?

Choose one answer

Topics

  1. Destructive and locking database migrations5 min read · Dropped columns, table rewrites that lock production, missing backfills and migrations with no way back
  2. Reading Terraform plans from agent changes5 min read · Destroy and replace actions, open security groups, public buckets and drift hidden in plan output
  3. CI workflow changes and pipeline security5 min read · Over-broad tokens, risky triggers such as `pull_request_target`, unpinned actions and secrets exposed to untrusted code
  4. Dockerfiles and container configuration5 min read · Root users, floating tags, secrets baked into layers, bloated images and missing health checks
  5. Environment config and feature flags5 min read · Changed defaults, production URLs in development code, flags left on and settings that differ between environments

Start here

Helps to know first

110 questions · last verified 2026-12