>DevOps Interview KB

Intermediate DevOps Interview Questions

322 questions

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

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

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

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

When would you actually prefer blue-green deployment over canary, even for a system where reliability is critical?

IntermediateCI/CD6 min

When does autoscaling actually save money compared to a well-chosen fixed capacity, and when can it end up costing more?

IntermediateAWSKubernetes6 min

How would you decide what mix of Reserved Instances, Spot Instances, and On-Demand capacity to use across a workload with both steady baseline traffic and unpredictable spikes?

IntermediateAWS7 min