MicrosoftMicrosoft
AZ-400 · Question #555
AZ-400 Question #555: Real Exam Question with Answer & Explanation
The correct answer is C: 4. 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
Submitted by tom_us· Mar 6, 2026Design and implement build and release pipelines
Question
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?
Options
- A1
- B3
- C4
- D7
Explanation
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
Community Discussion
No community discussion yet for this question.