exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 1 discussion

Actual exam question from Microsoft's AZ-400
Question #: 1
Topic #: 9
[All AZ-400 Questions]

You plan to create an image that will contain a .NET Core application.

You have a Dockerfile file that contains the following code. (Line numbers are included for reference only.)



You need to ensure that the image is as small as possible when the image is built.

Which line should you modify in the file?

  • A. 1
  • B. 3
  • C. 4
  • D. 7
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
Saluk_DE
Highly Voted 1 year, 5 months ago
Selected Answer: C
Don't use sdk, runtime is smaller.
upvoted 6 times
...
4bd3116
Most Recent 6 months, 1 week ago
Selected Answer: C
Create the runtime image FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS final
upvoted 1 times
...
vsvaid
11 months ago
Selected Answer: C
Modify 4 to use runtime image instead of sdk image
upvoted 2 times
...
xRiot007
1 year, 3 months ago
C - you modify line 4 to use a runtime image that is smaller than a SDK one.
upvoted 3 times
...
zellck
1 year, 5 months ago
Selected Answer: C
C is the answer. https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/docker/building-net-docker-images
upvoted 2 times
...
[Removed]
1 year, 5 months ago
Selected Answer: C
Other questions before all point to "C".
upvoted 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago