Microsoft
AZ-204 · Question #34
You maintain an Azure Web App that runs in a container. The container is using a DockerFile that is copied to numerous places and consumes a large amount of storage. You need to optimize the Dockerfil
Sign in or unlock AZ-204 to reveal the answer and full explanation for question #34. The question stem and answer options stay visible for context.
Submitted by ahmad_uae· Mar 30, 2026Develop Azure compute solutions
Question
You maintain an Azure Web App that runs in a container. The container is using a DockerFile that is copied to numerous places and consumes a large amount of storage. You need to optimize the Dockerfile. What should you do?
Options
- AMinimize layers by concatenating all RUN instructions on one line.
- BConfigure the CLI with a .dockerignore file.
- CMinimize layers by grouping actions in as few RUN instructions as possible.
- DUse multiple RUN instructions for cached operation.
Unlock AZ-204 to see the answer
You've previewed enough free AZ-204 questions. Unlock AZ-204 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Dockerfile optimization#container layers#Azure Web App#RUN instructions