Knowledge check

Completed

The R&D team at your toy company has asked you to help them with their pipeline definition. Here's the YAML file:

trigger:
  branches:
    include:
    - main
    - releases/*
  paths:
    include:
    - templates
    exclude:
    - templates/README.md
 
pool:
  vmImage: ubuntu-latest

steps:
- task: AzureCLI@2
  inputs:
    azureSubscription: ResearchSubscription
    scriptType: 'bash'
    scriptLocation: 'inlineScript'
    inlineScript: |
      az deployment group create \
        --resource-group ResearchDevelopment \
        --template-file deploy/main.bicep \
        --parameters environmentType=Production
1.

You want to modify the pipeline YAML file so that it follows best practices. What should you do?

2.

Which of these situations will trigger the R&D team's pipeline to run?

3.

Which of the following statements is true?

4.

You have a Bicep file that deploys a new App Service plan and an app to a resource group in Azure. Which of the following tasks can you use to deploy the Bicep file?