InterviewStack.io LogoInterviewStack.io

Database Administration and Operations Questions

Day-to-day operation of database systems: configuration and tuning, patching and upgrades, automation and scripting, standards and best practices, and capacity/growth management. Covers the responsibilities of keeping databases reliable, secure, and maintainable in production. The operational-ownership surface for DBA and platform roles.

HardSystem Design
73 practiced

Plan a migration from MySQL to PostgreSQL for a business-critical service. Cover schema translation (types, auto-increment vs sequences, constraints), data migration at scale (initial copy + CDC), keeping systems in sync during cutover, validation checks, and a rollback procedure to minimize downtime and risk.

MediumTechnical
65 practiced

Describe how you would automate a PostgreSQL backup and restore verification in CI. Include which backups to take (logical dumps vs base backup + WAL), how to restore into an isolated environment, what post-restore validations to run (row counts, checksums, smoke tests), and approaches to avoid exposing production-sensitive data during tests.

EasyTechnical
58 practiced

Explain the difference between row-level triggers and statement-level triggers in SQL databases. Give two practical use cases for triggers and discuss potential pitfalls (performance impact, hidden side effects, order of execution, and recursion).

HardTechnical
61 practiced

You must alter a 1TB orders table to change a column type and add an index without significant downtime. Describe an online schema migration approach using a shadow table, triggers or logical replication, backfill strategy, cutover steps, validation to ensure consistency, and an explicit rollback plan.

HardTechnical
61 practiced

Design a comprehensive database security plan for storing PII. Cover network-level controls, authentication and authorization, role-based access control, row-level security policies, encryption at rest and in transit, key management, audit logging, and key rotation policies. Explain how to validate and test these controls.

Unlock Full Question Bank

Get access to all 6 Database Administration and Operations interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.