Google Cloud Professional Cloud Architect — Question 158
You are working at an institution that processes medical data. You are migrating several workloads onto Google Cloud. Company policies require all workloads to run on physically separated hardware, and workloads from different clients must also be separated. You created a sole-tenant node group and added a node for each client. You need to deploy the workloads on these dedicated hosts. What should you do?
Answer options
- A. Add the node group name as a network tag when creating Compute Engine instances in order to host each workload on the correct node group.
- B. Add the node name as a network tag when creating Compute Engine instances in order to host each workload on the correct node.
- C. Use node affinity labels based on the node group name when creating Compute Engine instances in order to host each workload on the correct node group.
- D. Use node affinity labels based on the node name when creating Compute Engine instances in order to host each workload on the correct node.
Correct answer: D
Explanation
The correct answer is D because using node affinity labels based on the node name allows you to precisely target the dedicated node assigned for each client's workload. Options A and C incorrectly reference the node group name, which does not provide the same level of specificity required for physically separating workloads. Option B is incorrect as it refers to using a network tag instead of the necessary node affinity labels.