Learn Labs
Security & Ops

Self-test

Check your understanding

Self-test8 questions

—/8
  1. Why is the superuser restricted to the local socket, and what does that change for an attacker who steals its password?

  2. What can an attacker with SQL injection do as the app role, and what can't they do?

  3. Why can't app create tables in schema public on Postgres 15+, and what do you check on a database upgraded from 14?

  4. How did the security lab show the backup files are encrypted, and why does the pgbackrest S3 key matter separately?

  5. In the rolling upgrade, why are the replicas upgraded first, and when do clients notice anything?

  6. Why don't changes to bootstrap.dcs in patroni.yml apply to a running cluster?

  7. Why must replicas have max_connections at least as high as the primary's?

  8. Design question

    Write the runbook for rotating the app role's password with no downtime, including PgBouncer and every running application.