Courseiva

AZ-400 Practice Question: Design and implement build and release pipelines

Network Topology
az pipelines build queuedefinition-id 42branch mainvariables '{"BuildConfiguration":"Release"}'output json"buildNumber": "20241120.1","status": "inProgress","queueTime": "2024-11-20T10:00:00Z","definition": {"name": "MyPipeline","id": 42},"variables": {"BuildConfiguration": {"value": "Release","isSecret": false

Refer to the exhibit. A developer queues a build with a variable 'BuildConfiguration' set to 'Release'. The pipeline definition has a default variable 'BuildConfiguration' set to 'Debug' and does not allow overrides at queue time. What will be the value of 'BuildConfiguration' during the build?

⚠ Common exam trap

AZ-400 often tests variable precedence and the 'Settable at queue time' setting, tricking candidates into assuming queue-time values always override pipeline defaults.

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

✓

Debug

In Azure Pipelines, when a variable is defined in the pipeline YAML and the 'Settable at queue time' option is not enabled, the queue-time value is ignored and the pipeline definition's default value is used. Since the default is 'Debug' and overrides are not allowed, the build runs with BuildConfiguration=Debug (A). The developer's attempt to set 'Release' at queue time has no effect.

Answer analysis

Option-by-option breakdown

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

  • ✓

    Debug

    Why this is correct

    Because the variable has a default value defined in the pipeline and overrides at queue time are not enabled, the build uses the configured default "Debug". The system substitutes this value before any tasks run, so the build executes as if Debug were explicitly set.

  • ✗

    Release

    Why it's wrong here

    The override to "Release" is ignored because the pipeline variable is not configured to allow overrides at queue time. This setting must be enabled per variable (or via the appropriate YAML/runtime expression) for the queue-time value to take effect; otherwise, the default "Debug" remains in force.

  • ✗

    null

    Why it's wrong here

    A variable with a default value is never null in Azure DevOps when it is resolved. If no valid override is provided, the system substitutes the defined default rather than treating the variable as null, even if the queued input is left empty.

  • ✗

    The build fails with an error

    Why it's wrong here

    The build does not fail when an override is disallowed; Azure DevOps silently ignores the queue-time attempt and proceeds with the default value. Since the variable has a valid default and no compliance rule is violated, the pipeline runs normally without an error.

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

This AZ-400 question is part of Courseiva's 696-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Microsoft exam blueprint

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.