AZ-400 exam dumps

AZ-400 practice question 290 of 306

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

AZ-400 Question 290

Select 2

Your company uses GitHub Actions to run unit tests and Azure Pipelines to build and deploy a .NET application. You want your QA team to automatically receive notifications whenever the GitHub Actions tests fail or the Azure Pipeline build fails. Which two steps should you take to properly configure these alerts?

  1. A

    In Azure DevOps, create a new subscription under Project Settings → Notifications for 'Build Failed' events, specifying the QA group as the recipient.

  2. B

    In GitHub, add a repository webhook listening to the 'workflow_run' event to send a notification (e.g., Slack or email) when runs fail.

  3. C

    In Azure DevOps, define a pipeline variable named QA_EMAIL with the QA team's email addresses, which automatically triggers email alerts on build failure.

  4. D

    In GitHub, store QA team email addresses in an organization secret named QA_EMAIL_LIST so GitHub automatically sends an email upon test failure.

Show answer and explanation

Correct answers: A, B

Explanation

To configure alerts in Azure DevOps, you must create or update notification subscriptions in the project's notification settings so that specific users or groups are notified on build failures or other events. In GitHub, webhooks or integrated notification features (e.g., Slack, Microsoft Teams) are commonly used to notify stakeholders when a GitHub Actions workflow fails. Refer to the official Azure DevOps Notifications documentation (https://learn.microsoft.com/azure/devops/notifications/) and GitHub's Webhooks documentation (https://docs.github.com/en/developers/webhooks-and-events/webhooks) for detailed setup steps.

  • A. Correct.

    Option 1 is correct. Under Project Settings → Notifications in Azure DevOps, you can create or edit subscriptions that trigger alerts for pipeline events, including build failures. Specifying the QA group's email or distribution list ensures all QA members receive these alerts.

  • B. Correct.

    Option 2 is correct. GitHub supports creating webhooks that listen to various events, including 'workflow_run' for Actions. When a run fails, the webhook can send data to a notification service (e.g., Slack, Teams, or a custom endpoint) so the QA team stays informed.

  • C. Incorrect.

    Option 3 is incorrect. Simply adding a pipeline variable in Azure DevOps does not automatically create notifications. Variables can store values used during pipeline runs, but do not by themselves trigger email or other notifications.

  • D. Incorrect.

    Option 4 is incorrect. Storing email addresses in a GitHub secret does not automatically generate emails. GitHub Actions secrets are used for authentication or confidential data; you still need to configure an actual notification mechanism (e.g., a webhook).

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