You need to recommend a Docker container build strategy that meets the following requirements
* Minimizes image sues
* Minimizes the security surface area of the final image
What should you include m the recommendation?
Suggested Answer: A
Get Premium AZ-400 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.
References:
https://docs.docker.com/develop/develop-images/multistage-build/
11 comments · newest first
SH
Sheldon
12 months ago
Wait, are multi-stage builds really that much better?
LI
Lindsey
1 year ago
Multi-stage builds really cut down on image size!
RO
Rose
1 year ago
PowerShell DSC? Not really relevant here.
NA
Nathalie
1 year ago
I disagree, single-stage builds can be simpler.
ME
Melinda
1 year ago
Multi-stage builds are definitely the way to go!
JA
Jacqueline
1 year ago
I vaguely recall that multi-stage builds were highlighted in practice questions as a way to minimize both image size and security risks.
AN
Anabel
1 year ago
I feel like we discussed Docker Swarm in class, but it seems more related to orchestration rather than optimizing image size or security.
LI
Lisha
1 year ago
I remember studying multi-stage builds and how they can help reduce image size by allowing us to copy only the necessary artifacts to the final image.
JE
Jennie
1 year ago
I'm not entirely sure, but I think single-stage builds might not be the best choice since they usually include everything, which could increase the security surface area.
BE
Benton
1 year ago
This is a great question that tests our understanding of project management fundamentals. I believe the correct answer is C, complexity modeling. This technique helps analyze the project's scale, interdependencies, and risk profile to inform the appropriate governance approach.
NI
Nichelle
1 year ago
Hmm, this seems straightforward. I think I'll try option D - "pkg search gzip" to see if the gzip utility is available for installation.