
Answer-first summary for fast verification
Answer: Use Stackdriver Kubernetes Engine Monitoring.
To identify containers that are using the most CPU and memory in a GKE cluster, the most effective approach is to use Stackdriver Kubernetes Engine Monitoring (option A). This tool is specifically designed for monitoring GKE clusters and provides detailed insights into the performance metrics of containers, including CPU and memory usage. Option B suggests using Prometheus and Grafana, which, while powerful for monitoring, requires additional setup and is not as seamlessly integrated with GKE as Stackdriver. Option C involves creating custom metrics via the Stackdriver Monitoring API, which is more complex and less direct for this specific need. Option D suggests using Stackdriver Logging and BigQuery, which is more suited for log analysis rather than real-time performance monitoring of CPU and memory usage.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
To monitor and identify containers consuming the highest CPU and memory resources in your GKE cluster (deployed both on-premises and on Google Cloud Platform), which hosts an e-commerce application with containerized microservices, what steps should you take?
A
Use Stackdriver Kubernetes Engine Monitoring.
B
Use Prometheus to collect and aggregate logs per container, and then analyze the results in Grafana.
C
Use the Stackdriver Monitoring API to create custom metrics, and then organize your containers using groups.
D
Use Stackdriver Logging to export application logs to BigQuery, aggregate logs per container, and then analyze CPU and memory consumption.
No comments yet.