Microsoft
AZ-400 · Question #218
You need to execute inline testing of an Azure DevOps pipeline that uses a Docker deployment model. The solution must prevent the results from being published to the pipeline. What should you use for
The correct answer is C. a multi-stage Dockerfile. Build and test with a multi-stage Dockerfile: build and tests execute inside the container using a multi-stage Docker file, as such test results are not published back to the pipeline. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test- results?view=a
Submitted by packet_pusher· Mar 6, 2026Design and implement build and release pipelines
Question
You need to execute inline testing of an Azure DevOps pipeline that uses a Docker deployment model. The solution must prevent the results from being published to the pipeline. What should you use for the inline testing?
Options
- Aa single stage Dockerfile
- Ban Azure Kubernetes Service (AKS) pod
- Ca multi-stage Dockerfile
- Da Docker Compose file
How the community answered
(35 responses)- A14% (5)
- B3% (1)
- C74% (26)
- D9% (3)
Explanation
Build and test with a multi-stage Dockerfile: build and tests execute inside the container using a multi-stage Docker file, as such test results are not published back to the pipeline. https://docs.microsoft.com/en-us/azure/devops/pipelines/tasks/test/publish-test- results?view=azure-devops&tabs=trx%2Cyaml
Community Discussion
No community discussion yet for this question.