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