Google Cloud Professional Cloud Developer — Question 210

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?

Answer options

Correct answer: A

Explanation

The correct answer is A, as deploying the logging solution as a DaemonSet ensures that an instance of the logging solution runs on each node in the cluster, which is ideal for collecting logs. Option B is incorrect because modifying the container image would not guarantee that the logging solution runs on every node. Option C is not suitable since manually installing software on nodes goes against Kubernetes best practices and could lead to inconsistencies. Option D, while functional, does not ensure that the logging solution is deployed on every node as required.