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.

MediumTechnical
58 practiced

You need to bulk load 100M rows into PostgreSQL with minimal downtime and minimal WAL bloat. Provide a step-by-step plan including: data validation, COPY vs INSERT, disabling/rebuilding indexes, use of partitioning/UNLOGGED tables, adjusting maintenance_work_mem, parallelism, and safe WAL settings. Mention risks and how to validate the load succeeded.

HardTechnical
67 practiced

You need to perform an atomic cross-database update spanning two different SQL Server instances in separate AD domains. Explain how distributed transactions work in SQL Server (MSDTC/two-phase commit), configuration requirements, performance and troubleshooting concerns, and alternative patterns if distributed transactions are not feasible.

EasyTechnical
68 practiced

Write a T-SQL query (SQL Server 2012+) that returns the 3rd highest salary from an 'employees' table with columns (employee_id, salary). Explain how your solution behaves when salaries are duplicated and how to modify it to return distinct salaries only.

MediumTechnical
75 practiced

You need to implement a sliding window purge for a very large partitioned table: new data is arriving daily and older data (> 90 days) must be removed with minimal blocking. Describe the steps in SQL Server to partition the table by date, load new data, and remove old partitions using partition switching. Include index and constraint considerations.

EasyTechnical
72 practiced

Explain the difference between a clustered index and a nonclustered index in SQL Server. Describe how each affects physical storage, lookup performance, insert/update/delete operations, and when you would choose one over the other for an OLTP table with frequent writes.

Unlock Full Question Bank

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

Sign in to Continue

Join thousands of developers preparing for their dream job.