nerdexam
Microsoft

AZ-800 · Question #283

You have a server named Server1 that runs Windows Server 2019 and hosts a container named Container1. Container1 uses a Windows Server 2019 base image that was built by using a Docker file. You…

The correct answer is A. Start Container1 in Hyper-V isolation mode. In process isolation mode, the container shares the host OS kernel directly, which requires the container image OS version to match or be compatible with the host OS version. Since Container1 uses a Windows Server 2019 base image but the host is now Windows Server 2022, process…

Manage virtual machines and containers

Question

You have a server named Server1 that runs Windows Server 2019 and hosts a container named Container1. Container1 uses a Windows Server 2019 base image that was built by using a Docker file. You upgrade Server1 to Windows Server 2022. You need to ensure that Container1 will run on Server1. The solution must minimize administrative effort. What should you do?

Options

  • AStart Container1 in Hyper-V isolation mode.
  • BModify the Docker file.
  • CStart Container1 in process isolation mode.
  • DRebuild the base image for Container1.

How the community answered

(20 responses)
  • A
    80% (16)
  • B
    5% (1)
  • C
    5% (1)
  • D
    10% (2)

Explanation

In process isolation mode, the container shares the host OS kernel directly, which requires the container image OS version to match or be compatible with the host OS version. Since Container1 uses a Windows Server 2019 base image but the host is now Windows Server 2022, process isolation mode will fail due to version mismatch. Hyper-V isolation mode runs the container inside a lightweight Hyper-V virtual machine with its own kernel instance, making the container independent of the host OS version. This allows the Windows Server 2019 container image to run on a Windows Server 2022 host without rebuilding the image or modifying the Dockerfile - minimizing administrative effort. Modifying the Dockerfile or rebuilding the image would require more effort and is unnecessary.

Topics

#Windows Containers#Container Isolation Modes#OS Version Compatibility#Server Upgrades

Community Discussion

No community discussion yet for this question.

Full AZ-800 Practice