Courseiva
Design and implement build and release pipelineshardMultiple ChoiceObjective-mapped

Why an Audit-Effect Policy Doesn't Block a Non-Compliant Pipeline

Exhibit

Refer to the exhibit.

```json
{
  "properties": {
    "description": "Policy to require multiple reviewers for critical repos",
    "policyType": "Build",
    "mode": "Validation",
    "initiative": "RequireMinimumReviewers",
    "policyRule": {
      "if": {
        "field": "type",
        "equals": "Microsoft.TeamFoundation/teamProjects"
      },
      "then": {
        "effect": "audit",
        "details": {
          "minimumApproverCount": 2
        }
      }
    }
  }
}
```

You are reviewing an Azure Policy definition applied to an Azure DevOps project. The project has a build pipeline that deploys to production. What is the effect of this policy on the build pipeline?

Quick Answer

An Azure Policy applied to a DevOps project defaults to an 'audit' effect for anything it can't enforce with deny — so unless the policy specifically mandates a reviewer requirement with real enforcement, it only logs the pipeline's compliance state without blocking the run. The build proceeds regardless; the policy is recording, not gating.

⚠ Common exam trap

Watch out — candidates often assume Azure Policy can enforce pipeline-level controls like mandatory reviewers, but in Azure DevOps, Azure Policy only audits or denies resource-level configurations, not pipeline execution logic.

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

The policy audits the pipeline but does not enforce any mandatory reviewers.

Azure Policy definitions applied to Azure DevOps projects use the 'audit' effect by default for policy types that do not support 'deny' or 'enforce' on build pipelines. Since the policy in question does not specify a mandatory reviewer requirement with enforcement, it only audits the pipeline's compliance without blocking execution. Therefore, the pipeline runs regardless, and the policy logs a compliance state.

Answer analysis

Option-by-option breakdown

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

  • The policy blocks the pipeline from running if fewer than two reviewers approve.

    Why it's wrong here

    The effect is audit, not deny.

  • The policy requires two reviewers and blocks the pipeline if not met.

    Why it's wrong here

    No blocking effect.

  • The policy audits the pipeline but does not enforce any mandatory reviewers.

    Why this is correct

    The audit effect logs compliance without blocking.

  • The policy does not apply to build pipelines because the field type is teamProjects.

    Why it's wrong here

    The policy applies but with audit effect.

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

Same concept, more angles

1 more way this is tested on AZ-400

These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.

Variation 1. You are reviewing an Azure Policy definition applied to an Azure DevOps organization. What is the effect of this policy?

easy
  • A.It denies creation of any Azure resource
  • B.It allows creation of all pipelines
  • C.It denies creation of new pipelines
  • D.It audits pipeline creation without blocking

Why C: Azure Policy applies to Azure resources, not Azure DevOps pipelines. There is no Azure Policy definition that can directly deny pipeline creation. Therefore none of the listed effects are correct; the policy would have no effect on pipeline creation.

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.