nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #183

One of your deployed applications in Google Kubernetes Engine (GKE) is having intermittent performance issues. Your team uses a third-party logging solution. You want to install this solution on each

The correct answer is A. Deploy the third-party solution as a DaemonSet. A DaemonSet is the Kubernetes primitive designed exactly for this use case: it guarantees that one instance of a specified pod runs on every node in the cluster (or a subset via node selectors). When nodes are added to the cluster, the DaemonSet automatically schedules the pod on

Implementing Observability

Question

One of your deployed applications in Google Kubernetes Engine (GKE) is having intermittent performance issues. Your team uses a third-party logging solution. You want to install this solution on each node in your GKE cluster so you can view the logs. What should you do?

Options

  • ADeploy the third-party solution as a DaemonSet
  • BModify your container image to include the monitoring software
  • CUse SSH to connect to the GKE node, and install the software manually
  • DDeploy the third-party solution using Terraform and deploy the logging Pod as a Kubernetes

How the community answered

(41 responses)
  • A
    71% (29)
  • B
    15% (6)
  • C
    5% (2)
  • D
    10% (4)

Explanation

A DaemonSet is the Kubernetes primitive designed exactly for this use case: it guarantees that one instance of a specified pod runs on every node in the cluster (or a subset via node selectors). When nodes are added to the cluster, the DaemonSet automatically schedules the pod on the new node; when nodes are removed, the pod is garbage collected. This makes it the standard pattern for deploying node-level agents like logging daemons, monitoring agents, and security scanners. Modifying container images (B) couples application code to infrastructure concerns. Manual SSH installs (C) are not repeatable or scalable. Deploying a single logging Pod via Terraform (D) would only run on one node, not all nodes.

Topics

#Kubernetes DaemonSet#Logging Solutions#GKE Deployment#Observability

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice