Interview practice

DevOps Engineer

0–2 years · Junior — Linux · CI/CD · Docker · Kubernetes · Terraform · Monitoring

0–2 years 2–5 years 5–8 years 8+ years
technical Kubernetes 1 of 6
A pod fails to start due to an image pull error. How do you diagnose this?
What a strong answer covers

Checks the pod's events using `kubectl describe pod`; verifies the image name and tag in the deployment; inspects the image registry credentials and permissions; checks the network connectivity to the registry; reviews resource quotas or limits that may affect pulling.

The follow-up you would get

What command would you use to view the events associated with that pod?

Could you have answered that?
ownership A migration experience 2 of 6
Tell me about a migration you worked on that presented challenges. How did you address them?
What a strong answer covers

Specifies the systems or services migrated and the rationale; highlights specific challenges encountered during the migration; explains the troubleshooting steps taken and their outcomes; mentions any compromises made; discusses the impact of the migration on the overall operations.

The follow-up you would get

What signs indicated that the migration was not going as planned?

Could you have answered that?
scenario Monitoring 3 of 6
You receive an alert that a critical service is down, but you can't access the service to confirm. What do you do in the first fifteen minutes?
What a strong answer covers

Check monitoring dashboards for service health; review recent logs for errors or anomalies; use remote access tools to ping or trace network routes; confirm service dependencies and their status; evaluate recent deployments for potential issues.

The follow-up you would get

You find out that a dependent service is also down. How do you prioritise your next steps?

Could you have answered that?
technical CI/CD 4 of 6
A CI/CD pipeline fails at the build stage with an error code 127. What do you investigate first?
What a strong answer covers

Checks the build logs for the specific command that failed; verifies that all necessary dependencies are installed in the build environment; ensures the build script has the correct execution permissions; reviews environment variables for misconfigurations; confirms the correct path in the Dockerfile or build configuration.

The follow-up you would get

If a command is missing, how do you add it to the pipeline?

Could you have answered that?
technical Terraform 5 of 6
You run `terraform apply`, and it fails with a 'resource already exists' error. What steps do you take to resolve this?
What a strong answer covers

Checks the state file to see the current resources tracked; compares the state with the actual infrastructure using `terraform plan`; looks for discrepancies in naming or identifiers; investigates if the resource was created outside of Terraform; considers using `terraform import` to sync the state.

The follow-up you would get

What command would you run to inspect the current state of resources?

Could you have answered that?
technical Docker 6 of 6
You have a Docker container that can’t connect to a database service running on the host. What do you check?
What a strong answer covers

Verifies the Docker network settings; checks if the database is listening on the correct IP address; inspects the container's environment variables for correct connection strings; tests connectivity with `ping` or `telnet`; considers using `docker exec` to troubleshoot inside the container.

The follow-up you would get

What command would you use to check the container's network configuration?

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.