AZ-400 Configure processes and communications Practice Question
Your team uses Azure Pipelines to build and deploy a web app. You want to send a notification to a Microsoft Teams channel when a build fails. What should you configure?
⚠ Common exam trap
The trap here is that candidates may overengineer the solution by choosing a custom Logic App or third-party task, overlooking the fact that Azure Pipelines has a first-class, built-in integration with Microsoft Teams that requires no additional code or services.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use the built-in Azure Pipelines Teams integration to send a notification on build failure.
Azure Pipelines has a built-in integration with Microsoft Teams that allows you to subscribe to notifications for pipeline events, such as build failures, directly from the Azure DevOps interface. This integration uses a service hook to send adaptive cards to a Teams channel without requiring custom logic or additional tasks.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Add a task in the pipeline to send an email on failure.
Why it's wrong here
The pipeline does not have a native 'send email' task; sending an email would require custom scripting or a third-party extension, and even then it would deliver to an inbox, not to a Microsoft Teams channel. The requirement explicitly asks to notify a Teams channel, so an email task does not meet that requirement.
- ✗
Create a service hook to trigger an Azure Logic App that sends a Teams message.
Why it's wrong here
A service hook can trigger an Azure Logic App, but Logic Apps require an HTTP endpoint and authentication setup to send a Teams message, adding unnecessary complexity and latency. The scenario specifically needs a direct, immediate notification from Azure Pipelines to Teams when a build fails. This option is tempting because service hooks are designed to connect Azure DevOps events to external systems, and a Logic App can indeed post to Teams; however, the correct solution uses the built-in Teams notification task in Azure Pipelines, which avoids the extra hop and configuration overhead of a separate Logic App workflow.
- ✗
Add a dashboard widget that shows build status.
Why it's wrong here
A dashboard widget is a passive visualization that only shows build status when a user visits the Azure DevOps dashboard; it does not proactively push an alert to Microsoft Teams. Widgets are not event-driven notifications, so they cannot fulfill the requirement to send a message to a Teams channel when a build fails.
- ✓
Use the built-in Azure Pipelines Teams integration to send a notification on build failure.
Why this is correct
The built-in Azure Pipelines Teams integration lets you subscribe to build pipeline events, such as a failed build, and delivers an adaptive card notification directly to a configured Teams channel. This native subscription uses Azure DevOps service hooks to Teams internally, requiring no custom code, Logic Apps, or extra configuration, and is the canonical solution for notifying Teams of build failures.
Go deeper
Related to this question
Learn chapter
Introduction to DevOps and Azure DevOps
Key term
Pipeline
A pipeline is an automated series of steps that takes code from development to production, ensuring quality and speed.
Key term
Azure Pipelines
Azure Pipelines is a cloud-based CI/CD service from Microsoft that automatically builds, tests, and deploys code to any platform or cloud.
About these practice questions
This AZ-400 question is part of Courseiva's 823-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.