exam questions

Exam AZ-400 All Questions

View all questions & answers for the AZ-400 exam

Exam AZ-400 topic 9 question 41 discussion

Actual exam question from Microsoft's AZ-400
Question #: 41
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
MrAZ105
7 months, 2 weeks ago
C is correct
upvoted 1 times
...
AzDawid
8 months, 2 weeks ago
Selected Answer: C
C, line 4
upvoted 1 times
...
8fc2e85
8 months, 2 weeks ago
Selected Answer: C
Because you need to ensure the image is as small as possible and therefore need to get rid of the SDK. Use the runtime image in ln 4: FROM mcr.microsoft.com/dotnet/aspnet:7.0
upvoted 4 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 ...