AZ-204 Quiz

← Back to Topics

Docker (1 / 5):

Can you compose a Dockerfile for a .NET Core 3.1 web application, named "WebApplication1", which is capable of serving both secure and non-secure web traffic? The source code for the application resides in "/src/WebApplication1". How would you structure the Dockerfile stages to ensure the final image is lean and the build process adheres to best practices? Lastly, ensure that the application starts by executing a DLL file.

FROM mcr.microsoft.com/dotnet/core # Fill in details


Exam revision: April 11, 2025