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 Continuous Integration flashcards as text
A team needs to enforce that every pull request passes a build pipeline before merging. Which Azure DevOps feature should they configure?
Answer: Build validation branch policies
Build validation policies in Azure Repos require a specified pipeline to pass successfully before a pull request can be completed.
What is the role of a 'self-hosted agent' in Azure Pipelines compared to a Microsoft-hosted agent?
Answer: It runs on infrastructure you manage, allowing custom software and network access
Self-hosted agents run on your own VMs or containers, giving you control over installed tools, network connectivity, and persistent caches between runs.
Which Azure Pipelines variable predefined at runtime holds the unique identifier of the current pipeline run?
Answer: $(Build.BuildId)
$(Build.BuildId) is a predefined variable containing the unique numeric ID assigned to each pipeline run.
What does the 'pool' keyword specify in an Azure Pipelines YAML job?
Answer: The agent pool or specific agent where the job's steps execute
The pool keyword designates which agent pool (or a specific agent) should be used to run the job's steps.
A CI pipeline runs on every commit and takes 45 minutes. The team wants to reduce feedback time. What Azure Pipelines feature allows running independent test suites simultaneously?
Answer: Parallel jobs within a single stage using multiple job entries
Defining multiple jobs within the same stage runs them in parallel (subject to available agents), reducing total wall-clock time for independent work.
Which task should you use in Azure Pipelines to cache NuGet packages and reduce restore times on repeated builds?
Answer: Cache
The Cache task stores and restores directories (such as the NuGet package cache) between pipeline runs using a cache key, reducing download time.
In Azure DevOps, what is a 'service connection' used for in the context of CI pipelines?
Answer: Storing authenticated credentials to access external services like Azure, Docker Hub, or GitHub
Service connections securely store authentication details (tokens, service principals, etc.) so pipelines can interact with external services without embedding credentials in YAML.