exam questions

Exam AZ-303 All Questions

View all questions & answers for the AZ-303 exam

Exam AZ-303 topic 5 question 109 discussion

Actual exam question from Microsoft's AZ-303
Question #: 109
Topic #: 5
[All AZ-303 Questions]

You have a server named Server1 that runs Windows Server 2019. Server1 is a container host.
You plan to create a container image.
You create the following instructions in a text editor.
FROM mcr.microsoft.com/windows/servercore:lts2019
LABEL maintainer="[email protected]"
RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart
RUN echo "Hello World!" > c:\inetpub\wwwroot\index.html
You need to be able to automate the container image creation by using the instructions.
To which file should you save the instructions?

  • A. dockerconfig.json
  • B. Dockerfile
  • C. daemon.json
  • D. Build.ini
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
The Dockerfile is a text file that contains the instructions needed to create a new container image.
Reference:
https://docs.microsoft.com/en-us/virtualization/windowscontainers/manage-docker/manage-windows-dockerfile

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Stephan99
Highly Voted 4 years, 6 months ago
answer is correct. https://docs.microsoft.com/en-us/dotnet/architecture/microservices/docker-application-development-process/docker-app-development-workflow
upvoted 13 times
...
moon2351
Most Recent 3 years, 5 months ago
Answer is correct
upvoted 1 times
...
nd78
3 years, 6 months ago
on Exam today 21st Jan, 2022
upvoted 1 times
...
kristhiank
3 years, 7 months ago
Selected Answer: B
B - 700%
upvoted 1 times
...
awalao
3 years, 8 months ago
Selected Answer: B
B 100%
upvoted 1 times
...
Dpejic
3 years, 8 months ago
On exam today 22/11/21 Score 839
upvoted 1 times
...
syu31svc
3 years, 11 months ago
This is Dockerfile file for sure; the rest are completely invalid B 101%
upvoted 1 times
...
rdemontis
4 years ago
Correct
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...