nerdexam
MicrosoftMicrosoft

AZ-400 · Question #205

AZ-400 Question #205: Real Exam Question with Answer & Explanation

Sign in or unlock AZ-400 to reveal the answer and full explanation for question #205. The question stem and answer options stay visible for context.

Submitted by fatema_kw· Mar 6, 2026Implement containerization and manage container images using Docker and Azure Container Registry, including optimizing Dockerfile configurations for production deployments

Question

Drag and Drop Question You are creating a container for an ASP.NET Core app. You need to create a Dockerfile file to build the image. The solution must ensure that the size of the image is minimized. How should you configure the file? To answer, drag the appropriate values to the correct targets. Each value must be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:

Options

  • 1dotnet publish -c Release -o out
  • 2dotnet restore
  • 3mcr.microsoft.com/dotnet/aspnet:5.0
  • 4mcr.microsoft.com/dotnet/sdk:5.0

Unlock AZ-400 to see the answer

You've previewed enough free AZ-400 questions. Unlock AZ-400 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Topics

#Docker#Multi-stage Builds#ASP.NET Core#Containerization
Full AZ-400 PracticeBrowse All AZ-400 Questions