AZ-400 exam dumps

AZ-400 practice question 59 of 306

Designing and Implementing Microsoft DevOps Solutions. Professional level, Microsoft. Free question with the correct answer and a full explanation.

AZ-400 Question 59

Select 2

Your team uses GitHub for version control and Microsoft Teams for collaboration. You need to set up notifications so that whenever a pull request is created, updated, or merged in your GitHub repository, a message is automatically posted to your team's dedicated channel in Microsoft Teams. Which of the following actions are needed to properly configure this integration?

  1. A

    Create and configure a custom GitHub Action in the repository� workflow files that directly sends logs to a Teams channel

  2. B

    Install and configure the GitHub app in Microsoft Teams, then connect your desired repository to receive pull request notifications

  3. C

    Enable a code coverage policy in GitHub repository settings to push coverage data automatically to the Microsoft Teams channel

  4. D

    Set up an Incoming Webhook in Microsoft Teams and add a corresponding Webhook in the GitHub repository to post pull request events to the Teams channel

Show answer and explanation

Correct answers: B, D

Explanation

To configure GitHub and Microsoft Teams integration properly for pull request notifications, you can either install the GitHub app in Teams (which simplifies setup) or create an incoming webhook in Teams and update your GitHub repository settings with that webhook URL. For detailed steps, consult official Microsoft documentation on integrating GitHub or Azure DevOps with Microsoft Teams.

  • A. Incorrect.

    Option 1 is incorrect because creating a custom GitHub Action specifically to push messages to Teams can be overly complex and is not the recommended or most straightforward method of sending pull request notifications. While GitHub Actions can automate many CI/CD tasks, using the official GitHub integration or a webhook is simpler for basic notifications.

  • B. Correct.

    Option 2 is correct. Adding the official GitHub app through the Teams App Store and connecting it to your repository is a straightforward method to receive automatic notifications for pull requests, issues, and other GitHub events in a specified Teams channel.

  • C. Incorrect.

    Option 3 is incorrect because enabling a code coverage policy does not inherently send pull request notifications to Teams. Code coverage policies typically track test coverage data rather than sending event notifications about PR creation or updates.

  • D. Correct.

    Option 4 is correct. Setting up an Incoming Webhook in Teams and adding a GitHub webhook that references the Teams webhook URL allows GitHub event payloads (such as pull request events) to be posted into Teams channels. This is a common approach for integrating GitHub events when you prefer a more manual or flexible configuration.

Timed practice exam

Take a AZ-400 practice test under exam conditions

70 questions in 90 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam