az-400 Practice Question 1977

Exam: az-400
Domain: Design and implement build and release pipelines
Topic: Design and implement continuous integration
Difficulty: medium
In a scenario where you need to design an Azure Pipeline for a multi-stage CI/CD process, which of the following is the best approach to ensure that the self-hosted build agents are utilized effectively and the test automation is integrated seamlessly?

Answer Options

A
Use Azure Pipelines for all stages and integrate tests at the end.
B
Use self-hosted build agents for pre-production stages and Azure Pipelines for the rest.
C
Use only Azure Pipelines for all stages and integrate tests at each stage.
D
Use self-hosted build agents for all stages and integrate tests at the end.

Correct Answer

B: Use self-hosted build agents for pre-production stages and Azure Pipelines for the rest.

Explanation

The correct answer is B because it ensures that the self-hosted build agents are used for specific stages, such as pre-production, while leveraging Azure Pipelines for the rest of the pipeline. This approach maximizes the use of on-premises resources for sensitive or performance-critical tasks. Option A is incorrect because it does not specify the use of self-hosted agents for specific stages. Option C is incorrect because it suggests using only Azure Pipelines, which may not leverage the benefits of self-hosted agents. Option D is incorrect because it does not provide a clear strategy for integrating test automation.

Related Practice Questions