AZ-400 Practice Question: Design and implement build and release pipelines
A development team is designing a build pipeline for a microservices application. They want to ensure that each service is built and tested independently, but they also need to run integration tests that span multiple services. What is the recommended approach?
⚠ Common exam trap
Test-takers frequently confuse 'building independently' with 'testing independently' and assume integration tests must be run within the build pipeline, when in fact they should be run in a separate release pipeline after deployment to a shared environment.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Create individual build pipelines for each service, and a separate release pipeline that deploys all services to an integration environment for testing.
It aligns with microservices best practices: each service has its own build pipeline for independent compilation, unit testing, and artifact generation, while a separate release pipeline orchestrates deployment of all services to a shared integration environment for cross-service testing. This decouples build concerns from deployment concerns, enabling parallel development and faster feedback loops.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Use a single release pipeline that triggers manual deployment for each service.
Why it's wrong here
Using a single release pipeline with manual deployment steps for each service forces all microservices to share one release process, coupling their lifecycles and creating a single point of failure and contention. Manual triggers are error-prone and non-reproducible, lack approval/audit trails, and prevent automated gating such as smoke tests or health checks before traffic is switched. This approach also blocks independent, on-demand releases and rollbacks for a single service, undermining the autonomy and continuous delivery that microservices are meant to provide.
- ✗
Create a single build pipeline that builds all services together to ensure consistency.
Why it's wrong here
Creating a single build pipeline that compiles all services together couples their build lifecycle, increases build time for any single change, and prevents independent versioning and rollout, which undermines the microservices principle of independent scalability and deployment.
- ✓
Create individual build pipelines for each service, and a separate release pipeline that deploys all services to an integration environment for testing.
Why this is correct
Individual build pipelines per service enable each team to build, version, and test independently, while a dedicated release pipeline that deploys all services to an integration environment validates cross-service contracts and interactions in a realistic environment, combining independence with necessary integration assurance.
- ✗
Build each service separately, but skip integration tests to avoid complexity.
Why it's wrong here
Skipping integration tests for microservices avoids complexity at the cost of correctness, leaving service-to-service communication, data consistency, and contract compatibility untested, which can lead to production incidents and defeats the purpose of deploying to an integration environment.
Visual reference
Go deeper
Related to this question
Learn chapter
Designing a Build Pipeline
Key term
Environment
An environment is a dedicated set of computing resources, configurations, and services used to develop, test, or host software applications in a controlled and repeatable way.
Key term
Loops
A loop is a programming construct that repeats a block of code multiple times until a certain condition is met or until all items in a collection have been processed.
About these practice questions
One of 823 original AZ-400 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This AZ-400 practice question is part of Courseiva's free Microsoft certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the AZ-400 exam.