Interview practice

DevOps Engineer

5–8 years · Senior — Linux · CI/CD · Docker · Kubernetes · Terraform · Monitoring

0–2 years 2–5 years 5–8 years 8+ years
technical Infrastructure as Code 1 of 6
You need to update a Terraform configuration, but the state file is out of sync with the actual infrastructure. What do you do to resolve this?
What a strong answer covers

Runs 'terraform plan' to identify discrepancies; examines the state file for manual changes; uses 'terraform import' for resources that need to be synced; considers backup and restoring state; plans changes carefully to avoid data loss.

The follow-up you would get

What are the implications of using 'terraform apply' without addressing the state issue?

Could you have answered that?
ownership An incident you handled 2 of 6
Describe an incident where you were responsible for the response and resolution. What did you learn from it?
What a strong answer covers

Identifies a specific incident with clear context; discusses the immediate steps taken for resolution and the role played; highlights lessons learned that changed future practices; mentions any changes to monitoring or alerting; avoids attributing blame to others.

The follow-up you would get

What would you do differently if faced with a similar situation again?

Could you have answered that?
scenario Incident response 3 of 6
You receive an alert that a critical service is down, but the logs are contradictory and don’t provide clear information. What do you do in the first fifteen minutes?
What a strong answer covers

Identifies the affected service and checks the monitoring dashboard for metrics; cross-references recent changes or deployments; isolates the issue by checking dependencies; engages the on-call team if needed; considers rolling back recent changes as a quick option.

The follow-up you would get

You discover that the service is actually functioning but returning stale data. How would you handle communication with stakeholders and rectify the data issue?

Could you have answered that?
scenario Configuration management 4 of 6
You discover a configuration drift between your production and staging environments that is causing deployment failures. What initial steps do you take to address this?
What a strong answer covers

Identifies the differences using a configuration management tool; assesses the impact of the drift on current and future deployments; plans to synchronise the environments; communicates with the team to understand the history of changes; ensures version control is being correctly applied.

The follow-up you would get

After rectifying the drift, how do you ensure this issue does not reoccur in the future?

Could you have answered that?
ownership A migration you led 5 of 6
Tell me about a migration you led. What challenges did you face, and how did you overcome them?
What a strong answer covers

Describes a specific migration with context on technology and scale; outlines the challenges encountered, such as downtime or data consistency; explains the strategies implemented to mitigate risks; notes the impact on users and any feedback received; includes reflections on what worked well and what didn’t.

The follow-up you would get

What would you change in your approach if you were to do it again?

Could you have answered that?
technical Incident Management 6 of 6
During a production outage, your service has a 500 error rate of 95%. What steps do you take to resolve the issue and mitigate future incidents?
What a strong answer covers

Enables detailed logging and tracing for immediate diagnostics; rolls back to the last known stable version; corroborates with the monitoring dashboard for root cause analysis; engages the incident response team for communication; reviews post-mortem practices for lessons learned.

The follow-up you would get

What factors determine whether to roll back versus fixing the issue in place?

Could you have answered that?
That is this set.

Load six more — you will get questions you have not seen first.

Give me six more →

Say your answer out loud before revealing. Reading the answer first feels like learning and is not.