Development Processes & Continuous Integration Flashcards
7 cards from real AZ-400 practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 Development Processes & Continuous Integration flashcards as text
A company stores pipeline variables in Azure Key Vault and references them in pipelines. Which Azure DevOps feature enables this integration natively?
Answer: Variable groups linked to Azure Key Vault
Variable groups in Azure DevOps Library can be linked to Azure Key Vault, automatically syncing secrets as pipeline variables at runtime.
When configuring a CI build for a .NET application in Azure Pipelines, which task restores NuGet package dependencies?
Answer: DotNetCoreCLI with command 'restore'
The DotNetCoreCLI task with command 'restore' runs 'dotnet restore' to download and cache all NuGet package dependencies defined in the project.
A pipeline must build a Docker image and push it to Azure Container Registry (ACR). Which service connection type is required?
Answer: Docker Registry service connection pointing to ACR
A Docker Registry service connection configured for ACR provides the credentials needed to authenticate the Docker push task against your container registry.
You want to cache NuGet packages between pipeline runs to speed up builds. Which Azure Pipelines feature should you use?
Answer: The Cache task with a key based on the packages.lock.json hash
The Cache task saves and restores directories between pipeline runs using a cache key, with the packages.lock.json hash ensuring the cache is invalidated when dependencies change.
Which Azure Pipelines condition syntax runs a step only when the previous step fails?
Answer: condition: failed()
The 'failed()' condition causes a step to execute only if the preceding step or job has failed, useful for cleanup or notification tasks.
A team wants to enforce a coding standard by failing the CI build when SonarQube reports critical issues. What mechanism enables this?
Answer: SonarQube quality gate checked by the 'SonarQubePublish' task after analysis
The SonarQubePublish task polls the SonarQube server for the quality gate result and fails the pipeline if the gate status is 'Failed'.
What is the effect of setting 'trigger: none' in an Azure Pipelines YAML file?
Answer: The pipeline never runs automatically and must be triggered manually or via API
Setting 'trigger: none' disables all automatic CI triggers, requiring the pipeline to be run manually, via the API, or through a pipeline resource trigger.