AZ-400 • Practice Test 26
Free AZ-400 practice test — 15 questions with explanations. Set 26. No signup required.
Refer to the exhibit. This multi-stage YAML pipeline has a variable 'publishEnabled' set to false. The team wants the Publish stage to run only when 'publishEnabled' is true. However, the Publish stage never runs, even when the variable is changed to true at queue time. What is the most likely cause?
Refer to the exhibit.
```json
{
"variables": {
"buildConfiguration": "Release",
"publishEnabled": false
},
"stages": [
{
"stage": "Build",
"jobs": [
{
"job": "BuildJob",
"steps": [
{
"script": "echo Building..."
}
]
}
]
},
{
"stage": "Publish",
"dependsOn": "Build",
"condition": "eq(variables['publishEnabled'], true)",
"jobs": [
{
"job": "PublishJob",
"steps": [
{
"script": "echo Publishing..."
}
]
}
]
}
]
}
```