AZ-400 exam dumps

AZ-400 practice question 9 of 306

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

AZ-400 Question 9

Select 2

You manage a CI/CD pipeline for a web application stored in a GitHub repository. The build process runs automated functional tests in a staging environment. The product owner requests immediate notifications whenever a test fails, and wants a new GitHub issue automatically created with relevant logs to streamline troubleshooting. Which two approaches should you recommend to implement an automated feedback cycle that meets these requirements? (Choose two options.)

  1. A
    1. Create a GitHub Actions workflow triggered on every push to the main branch. If tests fail, automatically generate a GitHub issue with detailed logs and assign it to the appropriate team. Provide an email notification to the product owner by configuring GitHub notifications.
  2. B
    1. Require manual issue creation by the QA team after reviewing test logs in the pipeline console. Configure pipeline notifications to alert only the engineering manager.
  3. C
    1. Use a GitHub Actions workflow triggered by the 'workflow_run' event that checks the status of the test job. If the job fails, parse the test results, generate a GitHub issue, and rely on GitHub� watch/notification settings to alert the product owner.
  4. D
    1. Set up a weekly scheduled workflow that amalgamates any test failures over the past week into a single GitHub issue, and forward the issue link to the product owner for review.
Show answer and explanation

Correct answers: A, C

Explanation

Implementing automated, immediate feedback involves leveraging GitHub Actions triggers that parse test results and create GitHub issues on failure, alongside configured notifications to key stakeholders. Options 1 and 3 use GitHub Actions appropriately for real-time alerts and issue creation. Refer to the official GitHub Actions documentation (https://docs.github.com/en/actions) for details on triggers, event types, and recommended best practices for integrating workflow_run events with issue creation.

  • A. Correct.

    Option 1 is correct. A GitHub Actions workflow triggered on push can detect test failures, create a new issue for each failure, and provide immediate notifications if the product owner is watching the repository or email notifications are configured. This aligns with the requirement for automated and immediate feedback.

  • B. Incorrect.

    Option 2 is incorrect. Relying on manual issue creation introduces delays. While pipeline notifications help, they do not automatically open GitHub issues or ensure immediate feedback to the product owner.

  • C. Correct.

    Option 3 is correct. Using a 'workflow_run' event to check the status of a completed workflow is a practical way to parse final test results and automate GitHub issue creation. Configuring the product owner� GitHub account to watch the repository helps ensure they receive alerts.

  • D. Incorrect.

    Option 4 is incorrect. Aggregating failures weekly does not meet the need for immediate notifications. Immediate feedback cycles require on-demand issue creation and real-time alerts when tests fail.

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