Google Associate Cloud Engineer Question 116
Single answerGoogle Cloud PlatformYou are tasked with deploying a Google Kubernetes Engine (GKE) cluster for a development team that needs to run both Linux and Windows containers. Which configuration should you choose to meet this requirement?
- A
A single-node pool with Linux nodes.
- B
A single-node pool with Windows nodes.
- C
Separate node pools for Linux and Windows nodes.
- D
Use only Linux nodes and run Windows containers in emulation mode.
Show answer and explanation
Correct answer: C
Explanation
Google Kubernetes Engine supports running both Linux and Windows containers by using separate node pools for each operating system. This allows for optimal configuration and management of resources specific to the needs of each container type.
- A. Incorrect.
A single-node pool with Linux nodes will not support Windows containers, as GKE requires separate node pools for different operating systems.
- B. Incorrect.
A single-node pool with Windows nodes will not support Linux containers, as GKE requires separate node pools for different operating systems.
- C. Correct.
Separate node pools for Linux and Windows nodes is the correct configuration, as GKE supports mixed operating system workloads by using distinct node pools for each operating system.
- D. Incorrect.
Running Windows containers in emulation mode on Linux nodes is not supported in GKE and would not provide optimal performance or compatibility.