DevOps Engineer Interview Questions
372 questions across 38 categories
The bulk of a working DevOps engineer's day-to-day: hands-on tooling, common troubleshooting, and the practical judgment calls that come up once you're actually operating systems.
When would you store a pipeline secret in an Azure Pipelines variable group directly versus linking the variable group to Azure Key Vault?
IntermediateAzure Pipelines6 min
You have near-identical build logic copy-pasted across 15 Azure Pipelines YAML files. How would you use templates to share it, and what are the different template types actually for?
IntermediateAzure Pipelines7 min
A new project is choosing between Blob Storage's Hot, Cool, Cold, and Archive tiers for its data. How would you actually decide, and what's the risk of getting it wrong?
BeginnerAzureBlob Storage6 min
How would you choose a Storage account's replication setting (LRS, ZRS, GRS, or GZRS) for a workload that genuinely needs regional resilience?
IntermediateAzureBlob Storage7 min
An app authenticates to Blob Storage using a long-lived SAS token embedded in configuration. Why move it to Managed Identity, and what does a SAS actually give up that Managed Identity doesn't?
IntermediateAzureBlob Storage7 min
A blob was accidentally overwritten with bad data, not deleted. Both soft delete and versioning are enabled on the account. Why doesn't 'undelete' bring back the good version, and what actually will?
IntermediateAzureBlob Storage6 min
A provisioning script failed halfway through, and re-running it from the top caused errors because some resources already existed. How do you make it safely re-runnable?
IntermediateBash6 min
A script processes 10,000 files one at a time in a for loop and takes hours. Someone suggests using xargs -P to parallelize it. What are the actual trade-offs and risks of doing that?
IntermediateBash6 min
A script that processes filenames from a directory listing works fine in testing, but breaks (or silently does the wrong thing) the moment a filename has a space in it. Why, and how do you fix it?
IntermediateBash7 min
What does 'set -euo pipefail' actually do at the start of a Bash script, and why is it considered close to mandatory for production scripts?
IntermediateBash7 min
A deployment script creates a temporary lock file at the start, but if the script fails partway through, the lock file is left behind and blocks every future run. How would you fix this?
IntermediateBash6 min
What's the actual difference between a login shell and a non-login, non-interactive shell, and why does that distinction determine which startup files get sourced?
BeginnerBash6 min
A script needs cloud CLI credentials (like AWS/Azure/gcloud auth) that are normally provided by an interactive session's environment. How do you handle that for a cron-scheduled script?
IntermediateBashAWS7 min
A backup script runs perfectly when you execute it by hand, but fails silently every night when cron runs it. How would you debug it?
BeginnerBashLinux8 min
Can you give an example where you changed your mind because of someone else's pushback, rather than the other way around?
IntermediateDevops5 min
Tell me about a time you strongly disagreed with a technical decision on your team. How did you handle it, and what was the outcome?
IntermediateDevops6 min
How would you handle disagreeing with a technical decision differently if it came from someone more senior than you, versus a peer?
IntermediateDevops6 min
How do you decide when a technical disagreement is significant enough to escalate beyond your immediate team, versus letting it go?
IntermediateDevops6 min
Tell me about a time you had to manage multiple urgent priorities from different stakeholders at once. How did you decide what to work on first?
IntermediateDevops6 min
Tell me about a time you caused a production incident. What happened, and how did you handle it afterward?
IntermediateDevops6 min
Tell me about a time you needed to drive a change across multiple teams, but had no formal authority over any of them. How did you get it done?
IntermediateDevops6 min
Tell me about a time you helped a struggling teammate improve, whether or not you were formally their mentor or manager.
IntermediateDevops6 min
Tell me about a time you had to push back on or say no to a stakeholder's request — for example, a deadline or feature that you believed compromised security or reliability.
IntermediateDevops6 min
Tell me about a time you failed at something important. What happened, and what did you learn?
IntermediateDevops6 min