Question 809 of 928
Design and implement build and release pipelineshardMultiple SelectObjective-mapped

How to Secure Production Deployments with Approvals and Managed Identity in Azure Pipelines

This AZ-400 practice question tests your understanding of design and implement build and release pipelines. Match the stated requirement to the specific cloud service, access model, or configuration option — many options are valid in isolation but not for this scenario. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

Which TWO actions should you take to implement a secure CI/CD pipeline that uses Azure Pipelines and prevents unauthorized access to production? (Choose two.)

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

Configure deployment approvals and checks on the production stage.

Option B is correct because deployment approvals and checks in Azure Pipelines require manual sign-off or automated policy validation before a release proceeds to production, preventing unauthorized or unverified changes. Option D is correct because using a service connection with a managed identity eliminates the need to store static credentials, reducing the risk of credential exposure and unauthorized access to Azure resources during deployment.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

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

  • Store production secrets as pipeline variables marked as 'Secret'.

    Why it's wrong here

    Secrets in pipeline variables can be exposed in logs; better to use Key Vault.

  • Configure deployment approvals and checks on the production stage.

    Why this is correct

    Approvals ensure that only authorized personnel can approve deployments to production.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Enable PR triggers for the production stage to validate changes.

    Why it's wrong here

    PR triggers can allow unauthorized changes if not properly protected.

  • Use a service connection with a managed identity for Azure resources.

    Why this is correct

    Managed identities eliminate the need for stored credentials and provide secure access.

    Related concept

    Read the scenario before looking for a memorised answer.

  • Use self-hosted agents running on-premises for all pipelines.

    Why it's wrong here

    Agent location does not prevent unauthorized access.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates often confuse secret management (Option A) with access control, or think that PR triggers (Option C) or self-hosted agents (Option E) directly prevent unauthorized production access, when in fact they address different security concerns (secret protection, code validation, and agent isolation) rather than deployment authorization.

Detailed technical explanation

How to think about this question

Azure Pipelines deployment approvals use Azure DevOps environments, where you can define required approvers and checks (e.g., branch control, required template) that must pass before a release proceeds to a stage. Under the hood, the pipeline agent evaluates these checks by calling Azure DevOps REST APIs, and if any check fails or approval is denied, the deployment is blocked, providing a robust access control mechanism for production environments.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A company's IT admin needs to give a contractor read-only access to production logs without sharing account credentials. Using role-based access control (RBAC) and temporary scoped permissions — not a permanent shared password — is the correct pattern. Questions like this test whether you can apply least-privilege access across cloud identity services.

Visual reference

Client DHCP Server 1 Discover (broadcast) 2 Offer (IP: 192.168.1.10) 3 Request (I accept) 4 Acknowledge (lease confirmed) DORA — the four-step DHCP lease process

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related AZ-400 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free AZ-400 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this AZ-400 question test?

Design and implement build and release pipelines — This question tests Design and implement build and release pipelines — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Configure deployment approvals and checks on the production stage. — Option B is correct because deployment approvals and checks in Azure Pipelines require manual sign-off or automated policy validation before a release proceeds to production, preventing unauthorized or unverified changes. Option D is correct because using a service connection with a managed identity eliminates the need to store static credentials, reducing the risk of credential exposure and unauthorized access to Azure resources during deployment.

What should I do if I get this AZ-400 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Same concept, more angles

1 more ways 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. Your team is adopting Azure Pipelines for a new project. You need to ensure that only authorized users can approve releases to production. Which two methods can you use to implement approval checks?

medium
  • A.Configure pre-deployment approvals on the Production environment.
  • B.Use Deployment Gates with a manual approval gate.
  • C.Set the 'Required approvers' field on the environment to a specific user or group.
  • D.Add a Manual Intervention task in the release pipeline.
  • E.Add an Approval Check to the agent pool.

Why A: Pre-deployment approvals on the Production environment (Option A) allow you to require one or more users or groups to approve a release before it is deployed to that environment. This is a native Azure Pipelines feature that enforces authorization at the environment level, ensuring only designated approvers can promote a release to production.

Keep practising

More AZ-400 practice questions

Last reviewed: Jul 4, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

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.