AZ-400 · Question #218
AZ-400 Question #218: Real Exam Question with Answer & Explanation
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
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
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.