0
0
Azurecloud~20 mins

Build pipeline basics in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Build Pipeline Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1: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'
AHello, Azure DevOps!
BPrint greeting
C
steps:
- script: echo Hello, Azure DevOps!
DNo output, only logs
Attempts:
2 left
💡 Hint
The script step runs a shell command and prints its output.
🧠 Conceptual
intermediate
1:30remaining
Purpose of triggers in Azure DevOps pipelines
What is the main purpose of the 'trigger' keyword in an Azure DevOps YAML pipeline?
ATo specify when the pipeline should automatically start based on branch changes
BTo define the build agent pool to use
CTo set environment variables for the pipeline
DTo list the tasks to run in the pipeline
Attempts:
2 left
💡 Hint
Think about what causes the pipeline to run automatically.
🔀 Workflow
advanced
2:00remaining
Correct order of steps in a build pipeline
Arrange these steps in the correct order for a typical Azure DevOps build pipeline.
A4,2,1,3
B2,1,4,3
C2,4,1,3
D1,2,4,3
Attempts:
2 left
💡 Hint
Think about what must happen before building and testing.
Troubleshoot
advanced
2: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?
AThe repository URL is invalid
BThe pipeline YAML syntax is incorrect
CThe build script has a runtime error
DThe specified agent pool 'Default' has no available agents to run the job
Attempts:
2 left
💡 Hint
Consider what the error message says about the agent pool.
Best Practice
expert
2: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?
ASave secrets in a public repository file and read them during the build
BStore secrets in pipeline variables marked as secret and reference them in the YAML
CSend secrets as plain text in pipeline logs for debugging
DHardcode secrets directly in the YAML file for easy access
Attempts:
2 left
💡 Hint
Think about how to keep secrets safe and hidden.