nerdexam
Microsoft

AZ-400 · Question #582

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 th

The correct answer is App1 is an ASP.NET Core app. = Yes; The build uses a debug configuration. = No; The Dockerfile uses the Docker multi-stage build feature. = Yes. 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:

Exhibits

AZ-400 question #582 exhibit 1
AZ-400 question #582 exhibit 2

Answer Area

  • App1 is an ASP.NET Core app.Yes
  • The build uses a debug configuration.No
  • The Dockerfile uses the Docker multi-stage build feature.Yes

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 Practice