You need to recommend a Docker container build strategy that meets the following requirements: - Minimizes image sizes - Minimizes the security surface area of ...
Microsoft AZ-400 Exam
Questions Number: 331 out of 535 Questions
61.87%
Question 331
You need to recommend a Docker container build strategy that meets the following requirements: - Minimizes image sizes - Minimizes the security surface area of the final image What should you include in the recommendation?
Multi-stage builds are a new feature requiring Docker 17.05 or higher on the daemon and client. Multistage builds are useful to anyone who has struggled to optimize Dockerfiles while keeping them easy to read and maintain. Incorrect Answers: C: A swarm consists of multiple Docker hosts which run in swarm mode and act as managers (to manage membership and delegation) and workers (which run swarm services). Reference: https://docs.docker.com/develop/develop-images/multistage-build/