nerdexam
MicrosoftMicrosoft

AZ-400 · Question #582

AZ-400 Question #582: Real Exam Question with Answer & Explanation

The Dockerfile uses 'mcr.microsoft.com/dotnet/aspnet' and 'mcr.microsoft.com/dotnet/sdk' base images, which are Microsoft's official ASP.NET Core container images, confirming App1 is an ASP.NET Core application. The Dockerfile uses multiple FROM statements (one for the build stag

Submitted by rania.sa· Mar 6, 2026Implement containerized solutions - understanding Dockerfile structure, multi-stage builds, and .NET container base images (AZ-204: Develop solutions that use blob storage / containerized solutions)

Question

Hotspot Question You have an app named App1 that is built and deployed by using containers. The Dockerfile for App1 has the following definition. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Answer:

Explanation

The Dockerfile uses 'mcr.microsoft.com/dotnet/aspnet' and 'mcr.microsoft.com/dotnet/sdk' base images, which are Microsoft's official ASP.NET Core container images, confirming App1 is an ASP.NET Core application. The Dockerfile uses multiple FROM statements (one for the build stage using the SDK image and one for the runtime stage using the aspnet image), which is the defining characteristic of Docker multi-stage builds - allowing the build environment to be separated from the final runtime image. The 'dotnet publish' command uses '-c Release' (not Debug), indicating a Release configuration build.

Topics

#Docker#Multi-stage builds#ASP.NET Core#Containerization

Community Discussion

No community discussion yet for this question.

Full AZ-400 PracticeBrowse All AZ-400 Questions