Microsoft DevOps Engineer Expert AZ-400 Practice Question
You administer an Azure DevOps project that uses an internal Azure Repos Git repository. The development team wants a message posted automatically to a Microsoft Teams channel whenever any pull request is opened that targets the "main" branch. You must satisfy the requirement without writing or maintaining custom scripts or apps. Which action should you take to meet the requirement?
Enable a continuous deployment trigger on the pipeline and use the Microsoft Teams app to send notifications for completed releases.
Configure an outgoing webhook in Microsoft Teams that periodically calls the Azure DevOps REST API to query for new pull requests.
Create a Service Hook subscription in the Azure DevOps project that uses the Microsoft Teams connector, choose the Pull request created event, and apply a branch filter for "main".
Set up GitHub Advanced Security alerts integration with Microsoft Teams and link it to the Azure Repos repository.
Azure DevOps includes native Service Hooks that integrate directly with Microsoft Teams. By adding a Service Hook subscription for the Pull request created event and setting a branch filter that matches "refs/heads/main", Azure DevOps will post a card to the chosen Teams channel whenever a qualifying pull request is opened. This approach uses built-in functionality, requires no polling or custom code, and is maintained entirely through the Azure DevOps UI. The other options either rely on custom development (outgoing webhook), target release rather than pull-request events, or are unrelated to Azure Repos (GitHub Advanced Security).
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What are Azure DevOps Service Hooks?
Open an interactive chat with Bash
How do you filter by branch, like 'main', in a Service Hook subscription?
Open an interactive chat with Bash
Why is using Service Hooks better than writing custom scripts for notifications?
Open an interactive chat with Bash
Microsoft DevOps Engineer Expert AZ-400
Design and implement processes and communications
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .