Practice Test 1 | Google Cloud Certified Associate Cloud Engineer | Dumps | Mock Test
Your engineering team has developed an application which will be deployed using GKE. The application needs a monitoring agent running on each node without fail and any change in the number of nodes should also update the count of the monitoring agent. Which API resource would you use to achieve the desired result?
A. Pod
B. StatefulSet
C. DaemonSet
D. ReplicaSet
Explanation:
Correct Answer – C
Option C is correct: DaemonSet is responsible for making sure that one pod is always running on each node and scales automatically depending on the count of nodes.
Option A is incorrect: Pod is a group of containers and does not guarantee running on each pod.
Option B is incorrect: StatefulSet is responsible that if a container dies, the replacement one will have the same hostname and IP address.
Option D is incorrect: ReplicaSet is responsible for making sure that a specified number of pods are running. It does not make sure that scaling out of nodes will add pod to the new pod.
References:
https://cloud.google.com/kubernetes-engine/docs/concepts/daemonset
https://cloud.google.com/kubernetes-engine/docs/concepts/pod
https://cloud.google.com/kubernetes-engine/docs/concepts/statefulset
https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
Comments are closed, but trackbacks and pingbacks are open.