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
Question
Exhibits
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
Community Discussion
No community discussion yet for this question.

