Courseiva
Configure processes and communicationshardMultiple ChoiceObjective-mapped

AZ-400 Configure processes and communications Practice Question

Your team manages a large-scale microservices application deployed on Azure Kubernetes Service (AKS). The code is hosted in Azure Repos, and you use Azure Pipelines for CI/CD. You have recently adopted GitHub Copilot for code suggestions. Your compliance team requires that all pipeline runs include a security scan using Microsoft Defender for Cloud. Additionally, all pull requests must have at least two reviewers from separate teams before merging. The current pipeline completes in 45 minutes, and you want to minimize overhead. You need to design a process that enforces these requirements without degrading developer productivity. Which approach should you recommend?

⚠ Common exam trap

Many candidates think a separate security scan pipeline (Option C) is necessary for compliance, but Azure Pipelines allows integrating the scan into the existing CI pipeline, which is more efficient and still meets the requirement of running on every pull request.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Integrate the security scan as a step early in the CI pipeline, and configure branch policies on the main branch to require two reviewers from different teams and a successful CI build including the scan. Document the process and use Copilot to generate commit messages that reference work items.

It integrates the security scan early in the CI pipeline, ensuring it runs on every build without adding a separate pipeline overhead. Branch policies enforce both the required two reviewers from different teams and the successful CI build (including the scan) before merging, which minimizes additional pipeline complexity and maintains developer productivity.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Configure a branch policy on the main branch that requires a successful build and security scan before merging, and use a single pipeline that includes the scan.

    Why it's wrong here

    This approach enforces a build and security scan via branch policy, but it fails to address the mandatory two-reviewer requirement from different teams, so the policy is incomplete. Embedding the scan inside the build validation also couples security checks with every compilation, making each pull request wait for a full scan and causing potential queue delays. Additionally, a single pipeline that runs both compile and scan is less flexible than running the scan early in the CI pipeline because the scan cannot be executed independently or on a cadence. Therefore, this option provides partial coverage but misses a critical governance requirement.

  • Integrate the security scan as a step early in the CI pipeline, and configure branch policies on the main branch to require two reviewers from different teams and a successful CI build including the scan. Document the process and use Copilot to generate commit messages that reference work items.

    Why this is correct

    This is the optimal solution because it embeds the security scan as an early CI step, ensuring vulnerabilities are detected immediately after code is pushed, and branch policies explicitly require two reviewers from different teams plus a successful pipeline run. Configuring the scan as part of the CI build avoids extra pipeline overhead and eliminates parallel wait times, while branch policies for reviewers are applied automatically on every pull request. Using Copilot to generate commit messages that reference work items enhances traceability without additional manual effort, ensuring that every change can be linked to a work item. This approach efficiently enforces both the scan and the review policy with minimal complexity.

  • Create a separate security scan pipeline triggered on pull request creation, and require its successful completion via branch policy. Then set up a separate PR policy requiring two reviewers.

    Why it's wrong here

    Creating a separate security scan pipeline triggered on pull request creation introduces unnecessary pipeline overhead and maintenance burden, as you now have two distinct pipelines to manage and monitor for each PR. While you can add multiple branch validation policies in Azure DevOps, this splits the governance across separate policies, increasing configuration drift and making it harder to audit compliance. The reviewers requirement is also enforced through a distinct PR policy, which could be combined into a single branch policy for clarity. Furthermore, the separate scan pipeline still needs to complete before merge, adding to the setup without any benefit over simply including the scan in the existing CI pipeline, which would run in the same PR context.

  • Add a manual approval gate in the release pipeline that requires the security officer to approve after the scan completes.

    Why it's wrong here

    This option places the security scan and approval gate in the release pipeline, which runs after code is merged to main, meaning vulnerabilities are not caught before the branch is updated. A manual approval gate adds a bottleneck, as the security officer must be available to approve, causing release delays and reducing automation, and it does not automatically enforce the two-reviewer policy. Since the gate is post-merge, it fails to protect the main branch from insecure code being integrated in the first place. Branch policies, not release gates, are the correct mechanism to enforce pre-merge checks and reviewer requirements in Azure Pipelines.

About these practice questions

Courseiva writes every AZ-400 question from scratch — 823 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.