>DevOps Interview KB

Azure Pipelines Interview Questions

10 questions

Azure Pipelines interview questions on YAML pipeline structure, multi-stage releases, and the approval gates teams rely on for safe deployments.

Related technologies:Azure Pipelines

How would you design a pipeline template that fails fast with a clear error when a required tool is missing on the agent, instead of a raw "command not found"?

IntermediateAzure Pipelines6 min

How would you keep a fleet of self-hosted Azure Pipelines agents consistent over time as tool requirements evolve, instead of them slowly drifting apart?

AdvancedAzure Pipelines7 min

An Azure Pipelines YAML job runs fine on Microsoft-hosted agents but fails only on self-hosted agents with 'command not found' for a tool the job needs. Why, and how do you fix it?

IntermediateAzure Pipelines7 min

Beyond tool availability, what are the actual trade-offs of self-hosted versus Microsoft-hosted Azure Pipelines agents — cost, control, security, and startup latency?

IntermediateAzure Pipelines7 min

How would you design a multi-stage Azure Pipelines YAML pipeline so production deployment requires manual approval, while dev and staging deploy automatically?

IntermediateAzure Pipelines6 min

How would you use the Cache task in Azure Pipelines to speed up dependency installation, and what determines whether your cache key is actually effective?

IntermediateAzure Pipelines5 min

Your team still has several Classic (UI-designer-based) release pipelines nobody wants to touch. What's the actual case for migrating them to YAML pipelines, and how would you approach it?

IntermediateAzure Pipelines6 min

A single Azure service connection with subscription-wide Contributor access is used by every pipeline, including ones that only read a storage account. What's wrong here?

AdvancedAzure Pipelines7 min

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