Interview practice

DevOps Engineer

2–5 years · Mid — Linux · CI/CD · Docker · Kubernetes · Terraform · Monitoring

0–2 years 2–5 years 5–8 years 8+ years
scenario Configuration Management 1 of 6
You discover a configuration drift in your production environment. What steps do you take to address it?
What a strong answer covers

Identifies the source of the drift through audits; compares current configurations against the version-controlled state; decides on remediation strategy (rollback or fix); communicates changes to relevant teams; enhances monitoring for future drifts.

The follow-up you would get

What practices would you implement to minimise configuration drift in the future?

Could you have answered that?
technical Monitoring 2 of 6
An application is showing increased latency, but metrics in your monitoring tool do not indicate an issue. What do you investigate next?
What a strong answer covers

Cross-checks application logs for any anomalies; inspects upstream dependencies and their latency; verifies if there are any network issues outside the application; considers load testing to replicate the issue; reviews service health checks and their configurations.

The follow-up you would get

The logs show intermittent timeouts. How can you improve the reliability of the service?

Could you have answered that?
technical Linux 3 of 6
A server running a critical service is experiencing high CPU usage. What steps do you take to diagnose the cause?
What a strong answer covers

Uses top or htop to identify the processes consuming the most CPU; checks the service's logs for errors or unexpected behaviour; reviews recent changes or deployments that may have affected performance; examines system metrics for memory or I/O bottlenecks; considers using strace to trace system calls.

The follow-up you would get

The service is revealed to have inefficient queries. How can you address this issue?

Could you have answered that?
technical Terraform 4 of 6
You run a Terraform apply and it fails with an error about resource conflicts. How do you resolve this?
What a strong answer covers

Reviews the error message for specific resource details; checks the current state of the infrastructure against the desired state; considers running terraform refresh to update the state; examines any manual changes made to the infrastructure; plans the changes with terraform plan to ensure no further conflicts.

The follow-up you would get

What strategies can you implement to prevent state file conflicts in the future?

Could you have answered that?
scenario Infrastructure 5 of 6
A scheduled maintenance task on a Kubernetes cluster is taking longer than expected, impacting user experience. What do you do?
What a strong answer covers

Communicates with stakeholders about the delay; assesses the impact on users and critical services; checks logs for the maintenance process; considers scaling down non-critical services; plans for a rollback if necessary.

The follow-up you would get

How would you improve the maintenance process to avoid such overruns in the future?

Could you have answered that?
technical Docker 6 of 6
A Docker container fails to start with an exit code 1. What do you do to troubleshoot the container?
What a strong answer covers

Checks the container logs for error messages; inspects the Dockerfile for potential build issues; verifies the container's entry point and command; ensures all required environment variables and volumes are correctly set; tests the container locally to reproduce the issue.

The follow-up you would get

The logs indicate a permissions error on a mounted volume. How do you resolve this?

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.