Microsoft DevOps Engineer Expert (AZ-400) · Section 3 · 53% of the exam
Develop and implement pipeline trigger rules
One of the objectives of the Exam AZ-400: Designing and Implementing Microsoft DevOps Solutions exam, in the section “Design and implement build and release pipelines”. Here is what it covers, the points to remember and a question to try.
What it covers
How to choose between GitHub Actions and Azure Pipelines, how to size and secure Microsoft-hosted, self-hosted and scale-set agents or runners, how GitHub repositories connect to Azure Pipelines, and how trigger rules decide when a pipeline runs.
Points to remember
- Choose Azure Pipelines for Azure Boards, Artifacts, resource checks and multi-repo; choose GitHub Actions for GitHub-centric teams and Marketplace actions.
- Parallel jobs, not agents or users, are what Azure Pipelines charges for; free tier: 1 hosted (1,800 min/month, 60 min per job) and 1 self-hosted.
- A paid first hosted parallel job removes time limits; you need two purchased to run two at once when moving from the free tier.
- Microsoft-hosted agents cannot join a VNet; use self-hosted, scale set agents or Managed DevOps Pools for private access.
- Agents connect outbound over HTTPS only; keep them ephemeral and image-built.
Try a question
A security team asks which inbound firewall ports must be opened on the corporate network so a self-hosted Azure Pipelines agent can receive jobs. What is the correct answer?
- ANone; the agent connects outbound over HTTPS
- BTCP 22 inbound from the Azure DevOps service addresses
- CTCP 5985 inbound for WinRM from the build service
- DTCP 3389 inbound from the Azure DevOps service addresses
Show the answer
A. Agents poll the Azure DevOps service outbound over HTTPS (port 443). Proxies are supported, but inbound ports are not required.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Choosing the automation platform, agents, runners and triggers teaches this objective (about 50 minutes), and 30 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.
More in this section
- Recommend package management tools including GitHub Packages and Azure Artifacts
- Design and implement package feeds and views for local and upstream packages
- Design and implement a dependency versioning strategy for code assets and packages, including semantic versioning (SemVer) and date-based (CalVer)
- Design and implement a versioning strategy for pipeline artifacts
- Design and implement quality and release gates, including security and governance
- Design a comprehensive testing strategy, including local tests, unit tests, integration tests, and load tests
- Implement tests in a pipeline, including configuring test tasks, configuring test agents, and integration of test results
- Implement code coverage analysis
- Select a deployment automation solution, including GitHub Actions and Azure Pipelines
- Design and implement a GitHub runner or Azure DevOps agent infrastructure, including cost, tool selection, licenses, connectivity, and maintainability
- Design and implement integration between GitHub repositories and Azure Pipelines
- Develop pipelines by using YAML