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
In Azure Pipelines, what is the purpose of a 'trigger' block in a YAML pipeline definition?
Answer: To specify which branch changes automatically start the pipeline
The trigger block in a YAML pipeline specifies branch patterns that automatically initiate a pipeline run when code is pushed.
Which Azure Pipelines feature allows you to reuse pipeline logic across multiple pipelines without duplication?
Answer: Template references
Template references let you define reusable YAML blocks (steps, jobs, or stages) in separate files and include them across multiple pipelines.
What does setting 'continueOnError: true' on a pipeline step accomplish?
Answer: Allows subsequent steps to run even if this step fails
Setting continueOnError: true means the pipeline proceeds to the next step even if the current step exits with a non-zero code, though the job result may still be marked as failed.
A developer wants to run unit tests only when files in the 'src/' folder change. Which Azure Pipelines feature enables this?
Answer: Path filters in trigger configuration
Path filters in the trigger block (include/exclude paths) restrict pipeline execution to runs triggered by changes in specified directory paths.
What is the function of the 'publishTestResults' task in Azure Pipelines CI?
Answer: Uploads test result files so they appear in the pipeline run summary
The PublishTestResults task ingests JUnit, NUnit, or TRX result files and surfaces them in the Tests tab of the pipeline run UI.
Which retention policy setting in Azure Pipelines controls how long pipeline run artifacts and logs are kept?
Answer: Artifact retention leases
Artifact retention leases allow pipelines or external tools to extend how long a specific run's artifacts and logs are preserved beyond the default retention period.
In a multi-stage Azure Pipeline, what keyword defines a dependency between two stages so that Stage B only runs after Stage A succeeds?
Answer: dependsOn
The dependsOn keyword in a stage definition specifies which preceding stages must complete successfully before the current stage begins.