ExamQuestions.com

Register
Login
Microsoft Azure DevOps Solutions (AZ-400) Exam Questions

Microsoft

Microsoft Azure DevOps Solutions (AZ-400)

3 / 375

Question 3:

A team has the following DockerFile that will create an image 
FROM windowsservercore 
RUN powershell.exe -Command Invoke-WebRequest "https://www.python.org/ftp/python/3.5.1/python-3.5.1.exe" -OutFile c:\python-3.5.1.exe 
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?

Answer options:

A.Change the base image
B.Place an ENTRYPOINT
C.Ensure to have only one RUN command
D.Create a working directory