Azure DevOps Interview Questions and Answers
What is Azure DevOps?
Azure DevOps is a set of cloud-based tools from Microsoft that enables developers to plan work, collaborate
on code development, and build and deploy applications. It includes Azure Boards, Repos, Pipelines,
Artifacts, and Test Plans.
What are the core services provided by Azure DevOps?
- Azure Boards
- Azure Repos
- Azure Pipelines
- Azure Artifacts
- Azure Test Plans
What is the difference between Git and TFVC in Azure Repos?
- Git: Distributed version control.
- TFVC: Centralized version control.
How can you create a new branch in Azure Repos?
Via command line:
git checkout -b feature/my-feature
git push origin feature/my-feature
What is the difference between CI and CD in Azure Pipelines?
- CI: Automatically build and test code after each commit.
- CD: Automatically deploy code after CI.
What is a YAML pipeline in Azure DevOps?
YAML pipelines define CI/CD as code. Example:
Azure DevOps Interview Questions and Answers
trigger:
- main
pool:
vmImage: 'ubuntu-latest'
steps:
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: '**/*.csproj'
What are pipeline artifacts and how do you use them?
Pipeline artifacts are files produced in a build. Example:
- task: PublishPipelineArtifact@1
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'drop'
How do you manage work items in Azure Boards?
Azure Boards allows tracking of Epics, Features, Stories, Tasks, and Bugs. Supports Scrum and Kanban.
How do you link a work item to a commit or pull request?
Include the work item ID in commit message or PR:
Fixes #1234 - corrected validation bug
How do you manage security and permissions in Azure DevOps?
Use security groups and access levels at Organization, Project, Repository, and Pipeline levels.
Azure DevOps Interview Questions and Answers
How do you implement approvals in release pipelines?
Use pre-deployment approvals in environments or manual intervention tasks.
How do you secure secrets in Azure Pipelines?
Store secrets in Azure Key Vault or Variable Groups. Example:
variables:
- group: 'ProdSecrets'
What are self-hosted agents? Why use them?
Machines configured to run pipelines. Used for custom tools, better performance, or lower cost.
What tools can Azure DevOps integrate with?
GitHub, Bitbucket, Jenkins, SonarQube, Azure Services, Slack, Teams, Jira, etc.
How do you implement Blue-Green or Canary deployment?
Use deployment strategies with slots, stages, traffic-splitting, and feature flags.
What are best practices for managing CI/CD pipelines?
Use YAML, templates, secure secrets, branch policies, automate testing, and approval gates.