Google Cloud Professional Cloud DevOps Engineer — Question 173
Your organization is running multiple Google Kubernetes Engine (GKE) clusters in a project. You need to design a highly-available solution to collect and query both domain-specific workload metrics and GKE default metrics across all clusters, while minimizing operational overhead. What should you do?
Answer options
- A. Use Prometheus operator to install Prometheus in every cluster and scrape the metrics. Configure remote-write to one central Prometheus. Query the central Prometheus instance.
- B. Enable managed collection on every GKE cluster. Query the metrics in BigQuery.
- C. Use Prometheus operator to install Prometheus in every cluster and scrape the metrics. Ensure that a Thanos sidecar is enabled on every Prometheus instance. Configure Thanos in the central cluster. Query the central Thanos instance.
- D. Enable managed collection on every GKE cluster. Query the metrics in Cloud Monitoring.
Correct answer: D
Explanation
The correct answer is D because enabling managed collection on GKE clusters allows for seamless integration and minimal operational overhead while utilizing Cloud Monitoring for querying. Options A and C require more complex setups with Prometheus and additional components, increasing operational management. Option B, while valid, does not utilize Cloud Monitoring which is specifically designed for this purpose.