Challenge - 5 Problems
Build Pipeline Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Azure DevOps YAML Pipeline: Output of a simple build step
What will be the output of this Azure DevOps pipeline step when it runs successfully?
Azure
steps:
- script: echo Hello, Azure DevOps!
displayName: 'Print greeting'Attempts:
2 left
💡 Hint
The script step runs a shell command and prints its output.
✗ Incorrect
The script step runs the echo command, which outputs the text 'Hello, Azure DevOps!' to the console.
🧠 Conceptual
intermediate1:30remaining
Purpose of triggers in Azure DevOps pipelines
What is the main purpose of the 'trigger' keyword in an Azure DevOps YAML pipeline?
Attempts:
2 left
💡 Hint
Think about what causes the pipeline to run automatically.
✗ Incorrect
The 'trigger' keyword defines which branches or paths cause the pipeline to start automatically when code is pushed.
🔀 Workflow
advanced2:00remaining
Correct order of steps in a build pipeline
Arrange these steps in the correct order for a typical Azure DevOps build pipeline.
Attempts:
2 left
💡 Hint
Think about what must happen before building and testing.
✗ Incorrect
First, source code must be checked out, then built, then tested, and finally artifacts are published.
❓ Troubleshoot
advanced2:00remaining
Diagnosing a failed pipeline due to missing agent pool
An Azure DevOps pipeline fails immediately with the error: 'No agent found in pool Default'. What is the most likely cause?
Attempts:
2 left
💡 Hint
Consider what the error message says about the agent pool.
✗ Incorrect
The error means the pipeline cannot find any active agents in the specified pool to run the job.
✅ Best Practice
expert2:30remaining
Recommended practice for storing secrets in Azure DevOps pipelines
Which is the best practice for securely using passwords or API keys in Azure DevOps pipelines?
Attempts:
2 left
💡 Hint
Think about how to keep secrets safe and hidden.
✗ Incorrect
Marking variables as secret hides their values in logs and protects them during pipeline runs.