Skip to content
CompanyBenchCompanyBench

Azure DevOps interview questions and answers

Azure DevOps interview questions with short answers on CI/CD pipelines, Azure Repos, build agents, YAML, release management, triggers and Azure Boards.

These questions cover the parts of Azure DevOps an intermediate or senior engineer uses every day: CI/CD pipelines, repositories, build agents, release management, YAML and Azure Boards. Set aside 45-60 minutes.

Pipelines

What is a CI/CD pipeline for in Azure DevOps?

It automates building, testing and deploying code, so releases happen faster and more reliably.

How is YAML used in Azure Pipelines?

YAML defines build and release pipelines as code. That means they can be versioned and reused like any other code.

How do build and release pipelines differ?

A build pipeline compiles and tests code and produces artifacts. A release pipeline deploys those artifacts to environments. A multi-stage YAML pipeline can do both.

What is a trigger in Azure Pipelines?

A trigger decides when a pipeline runs. The common ones are CI (on commit), PR (on a pull request) and scheduled triggers, all supported directly in YAML.

How do you run a canary deployment in Azure DevOps?

Use deployment slots in Azure App Service, a traffic manager, or pipeline stages with manual approval and gradual routing of a percentage of traffic.

What is the difference between Microsoft-hosted and self-hosted agents?

Microsoft provides and maintains hosted agents with tools pre-installed. You maintain self-hosted agents yourself, which gives you more control over their setup.

Repos and planning

How does Azure Repos differ from GitHub?

Azure Repos is a set of version control tools built into Azure DevOps. GitHub is a wider platform with a large open-source community.

Which branching strategies are used in Azure Repos?

Git Flow (develop, feature, release and hotfix branches), GitHub Flow (short-lived feature branches) and trunk-based development (small, frequent commits to main).

What is a pull request and how does it work with Azure Pipelines?

A pull request asks to merge changes from one branch into another. Azure Pipelines can run a validation build on the PR to check code quality before the merge.

What are Azure Boards used for?

Planning, tracking and discussing work across the development cycle, using work items, backlogs, Kanban boards and dashboards.

Related: Kubernetes interview questions, hire DevOps engineers and DevOps engineer salaries.