Courseiva
Develop a security and compliance planeasyMultiple SelectObjective-mapped

AZ-400 Develop a security and compliance plan Practice Question

You are designing a plan to protect Azure DevOps pipelines from supply chain attacks. Which TWO measures should you implement?

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

Require approval for pipeline runs that use external resources

Options A and B are correct. Option A requires approval for pipeline runs that use external resources, which helps prevent unauthorized or malicious external dependencies from being used in builds, directly reducing supply chain attack risk. Option B uses Dependabot to automatically update vulnerable dependencies, ensuring known vulnerabilities are patched promptly. Option C is incorrect because code coverage thresholds are a code quality measure, not a supply chain security control. Option D is incorrect because secret scanning detects secrets in repositories but does not prevent supply chain attacks. Option E is incorrect because release gates validate deployment health, not supply chain integrity.

Answer analysis

Option-by-option breakdown

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

  • Require approval for pipeline runs that use external resources

    Why this is correct

    Approvals on pipeline runs that consume external resources (e.g., packages from public feeds, or services outside the organization) prevent unauthorized or malicious use of those resources. By adding an approval gate, you ensure that every run touching external dependencies is explicitly authorized, reducing the risk of supply chain attacks like typosquatting or compromised upstream packages.

  • Use Dependabot to automatically update vulnerable dependencies

    Why this is correct

    Dependabot continuously monitors dependency manifests (e.g., package.json, requirements.txt, NuGet.config) and automatically opens pull requests to update vulnerable or outdated dependencies to patched versions. This reduces the window of exposure to known CVEs and ensures that the pipeline builds against secure dependency versions, a key supply chain hardening practice.

  • Implement code coverage thresholds in pull requests

    Why it's wrong here

    Code coverage thresholds enforce a minimum percentage of lines or branches exercised by tests during pull request validation. While valuable for maintaining test quality, it does not address the security of third-party dependencies, artifact integrity, or unauthorized pipeline resource usage, so it is not a supply chain security control.

  • Enable secret scanning for all repositories

    Why it's wrong here

    Secret scanning detects hard-coded credentials, API keys, and tokens in repositories and alerts admins or blocks commits to prevent leakage. Although secret hygiene is an important security safeguard, it does not mitigate risks from compromised dependencies, unsafe external resources, or untrusted pipeline steps, so it falls outside the scope of supply chain security.

  • Use release gates to validate deployment health

    Why it's wrong here

    Release gates (e.g., monitoring health metrics, incident alerts, or manual sign-offs) validate that a deployment is safe to promote to the next environment. They are operational quality checks for deployment health, not mechanisms to secure the supply chain against malicious or vulnerable artifacts entering the build or release process.

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

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.