Deploying a Containerized Application: Best Base Image for .NET Core | Exam AZ-800

Best Base Image for Containerized .NET Core Applications

Question

You plan to deploy a containerized application that requires .NET Core.

You need to create a container image for the application. The image must be as small as possible.

Which base image should you use?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

B

https://techcommunity.microsoft.com/t5/containers/nano-server-x-server-core-x-server-which-base-image-is-the-right/ba-p/2835785

To create a container image for a .NET Core application, it is recommended to use a base image that includes the .NET Core runtime to minimize the size of the final image. From the given options, the most appropriate base image for this scenario is Nano Server (Option B).

Nano Server is a lightweight version of Windows Server that is optimized for running cloud-native applications and is commonly used as a base image for containerizing .NET Core applications. Nano Server provides a minimal environment with only the necessary components required for running containerized workloads, resulting in smaller container image sizes compared to other Windows Server images.

Using a smaller base image like Nano Server also helps reduce the attack surface of the containerized application and improves its security. Additionally, smaller images can be deployed faster and require less storage space, resulting in faster application startup times and lower infrastructure costs.

Therefore, for this scenario, the recommended base image to use for creating a container image for the .NET Core application is Nano Server (Option B).