Microsoft Certified: DevOps Engineer ExpertImplement an instrumentation strategyHard

A development team is using Azure DevOps to manage their CI/CD pipelines. They want to ensure that any failures within their Azure Pipelines, such as failed build tasks or deployment errors, are immediately escalated to the responsible team. The escalation process should involve sending an email, posting a message to a Microsoft Teams channel, and creating a work item in Azure Boards. Which Azure DevOps feature should they configure to automate this multi-channel notification and action process?

  1. AService Hooks
  2. BRelease Gates
  3. CEnvironment Approvals
  4. DBuild Completion Triggers
Show answer & explanation

Correct answer: A. Service Hooks

Service Hooks in Azure DevOps allow you to run tasks on other services when an event happens in Azure DevOps. You can configure a service hook to trigger an action (like sending email, posting to Teams, or creating a work item) when a pipeline build or release fails, making it ideal for multi-channel notifications and integrations.

Why the other options are wrong

  • B. Release Gates enforce conditions before/after deployment stages, not for general pipeline failure notifications.
  • C. Environment Approvals require manual or automated approval for deployments, not for failure notifications.
  • D. Build Completion Triggers initiate subsequent pipelines, not multi-channel notifications to external services.

Azure DevOps Service Hooks

A feature in Azure DevOps that allows you to integrate with external services by reacting to events happening within your Azure DevOps projects. When a specified event occurs (e.g., build completion, code pushed, work item updated), a notification is sent to the configured external service, triggering a predefined action.

  • Automates actions in external services based on Azure DevOps events.
  • Supports integrations with email, Teams, Slack, Jenkins, Azure Functions, etc.
  • Crucial for extending CI/CD capabilities and enhancing team communication.

Memory trick: Service Hooks 'HOOK' into events and 'SEND' notifications.

More Implement an instrumentation strategy questions