0
0
Azurecloud~10 mins

Why DevOps integration matters in Azure - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a pipeline trigger on the main branch.

Azure
trigger:
  branches:
    include:
      - [1]
Drag options to blanks, or click blank then click option'
Adevelop
Brelease
Cfeature
Dmain
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a feature branch instead of the main branch for triggers.
Leaving the trigger section empty, so pipeline never runs automatically.
2fill in blank
medium

Complete the code to add a build job named 'BuildApp'.

Azure
jobs:
- job: [1]
  steps:
    - script: echo Building the app
Drag options to blanks, or click blank then click option'
ABuildApp
BTestApp
CDeployApp
DCleanApp
Attempts:
3 left
💡 Hint
Common Mistakes
Using a job name that does not match the build step.
Using generic names that confuse the pipeline purpose.
3fill in blank
hard

Fix the error in the pipeline step to use the correct task for Azure CLI.

Azure
- task: [1]
  inputs:
    azureSubscription: 'MyAzureSub'
    scriptType: 'ps'
    scriptLocation: 'inlineScript'
    inlineScript: 'az group list'
Drag options to blanks, or click blank then click option'
AAzurePowerShell@5
BAzureCLI@2
CBash@3
DPowerShell@2
Attempts:
3 left
💡 Hint
Common Mistakes
Using PowerShell task for Azure CLI commands causes errors.
Choosing Bash task when scriptType is PowerShell.
4fill in blank
hard

Fill both blanks to define a deployment job that depends on the build job and runs on Ubuntu.

Azure
jobs:
- job: DeployApp
  dependsOn: [1]
  pool:
    vmImage: [2]
  steps:
    - script: echo Deploying the app
Drag options to blanks, or click blank then click option'
ABuildApp
BTestApp
Cwindows-latest
Dubuntu-latest
Attempts:
3 left
💡 Hint
Common Mistakes
Setting dependsOn to a wrong job name.
Using Windows VM image when Linux is required.
5fill in blank
hard

Fill all three blanks to create a variable group reference with a secure variable and a script step using it.

Azure
variables:
- group: [1]
- name: secretToken
  value: $[2]
steps:
- script: echo Token is [3]
Drag options to blanks, or click blank then click option'
AMyVariableGroup
BsecretToken
C$(secretToken)
DtokenValue
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect syntax to access variables in scripts.
Not referencing the variable group properly.