mediumMultiple ChoiceObjective-mapped
Google ACE Practice Question: A platform team needs a Kubernetes workload that…
A platform team needs a Kubernetes workload that runs exactly one Pod on every node in a GKE cluster — including nodes added in the future. The workload collects host-level metrics. Which Kubernetes resource type should they use?
⚠ Common exam trap
Google Cloud often tests the misconception that a Deployment with a fixed replica count can achieve per-node coverage, but candidates fail to realize that DaemonSets are the only resource that automatically scales with the node pool and guarantees one Pod per node without manual replica management.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
DaemonSet
A DaemonSet ensures that exactly one Pod runs on every node in the cluster, including nodes added after creation. This is the correct resource for host-level metrics collection because it automatically scales with the node pool and guarantees one Pod per node without manual intervention.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Deployment with replicas set equal to the node count
Why it's wrong here
A Deployment with replicas set to the node count creates a ReplicaSet that the scheduler distributes using its default bin-packing and scoring algorithms; this does not force one Pod per node. Multiple replicas can land on the same node, leaving other nodes without a Pod. If the cluster autoscaler adds a new node, the Deployment won't create a new Pod until the replica count is manually increased, and even then the scheduler may not place it on the new node. DaemonSet, by contrast, automatically adds Pods to every new and existing node matching the selector.
- ✗
StatefulSet with one replica per node
Why it's wrong here
A StatefulSet is designed for applications that need stable network identities and persistent storage; it does not include any scheduling semantics that enforce one Pod per node. Even with replicas equal to node count, StatefulSet Pods are scheduled by the default scheduler and can be co-located on the same node. It also maintains a fixed replica count, so nodes added by the autoscaler won't receive a StatefulSet Pod unless the replica count is manually increased—making it unsuitable for node-level metric collection.
- ✓
DaemonSet
Why this is correct
A DaemonSet is the correct controller because it declaratively ensures that one Pod runs on every node that matches its node selector, including nodes added later by the cluster autoscaler. The DaemonSet controller watches the cluster's node list and places a Pod on each qualifying node, removing Pods from nodes that no longer match. This makes it purpose-built for node-level workloads like metric collectors, kube-proxy, or network agents.
- ✗
CronJob running every minute to check and restore missing Pods
Why it's wrong here
A CronJob would run a scheduled Job every minute, executing a script to detect and replace missing Pods. This is a reactive, polling-based approach that leaves a window of unavailability between runs and adds unnecessary complexity. It also cannot guarantee per-node placement because the replacement Pods are scheduled according to general resource availability, not node-level constraints. DaemonSet's controller continuously reconciles desired state, eliminating the need for a cron-driven repair loop.
Go deeper
Related to this question
Learn chapter
Google Cloud Platform Overview
Key term
Node pool
A node pool is a group of virtual machines (nodes) within a container orchestration cluster that share the same configuration, such as machine size, operating system, and scaling settings, allowing you to manage them as a single unit.
Key term
GKE
GKE is Google's managed Kubernetes service that automates deploying, scaling, and managing containerized applications in the cloud.
About these practice questions
One of 769 original ACE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.