AZ-400 · Question #142
AZ-400 Question #142: Real Exam Question with Answer & Explanation
Sign in or unlock AZ-400 to reveal the answer and full explanation for question #142. The question stem and answer options stay visible for context.
Question
A team has the following DockerFile that will create an image FROM windowsservercore RUN powershell.exe -Command Invoke-WebRequest RUN powershell.exe -Command Start-Process c:\python-3.5.1.exe -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -Wait RUN powershell.exe -Command Remove-Item c:\python-3.5.1.exe -Force You need to ensure that you optimize the DockerFile. Which of the following can you do to create an optimized DockerFile?
Options
- AChange the base image
- BPlace an ENTRYPOINT
- CEnsure to have only one RUN command
- DCreate a working directory
Unlock AZ-400 to see the answer
You've previewed enough free AZ-400 questions. Unlock AZ-400 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.