Recall & Review
beginner
What is the main goal of resource monitoring in Kubernetes?
To track the usage of CPU, memory, and other resources by pods and nodes to ensure efficient operation and avoid resource exhaustion.
Click to reveal answer
beginner
Why should you set resource requests and limits for containers in Kubernetes?
Setting requests ensures the scheduler knows how much resource to reserve, and limits prevent containers from using more than allowed, protecting cluster stability.
Click to reveal answer
beginner
What tool is commonly used for monitoring Kubernetes clusters and visualizing metrics?
Prometheus is widely used to collect metrics, and Grafana is used to create dashboards for visualization.
Click to reveal answer
intermediate
How does setting resource limits help prevent the 'noisy neighbor' problem?
Limits prevent one container from consuming excessive resources, which could degrade performance for other containers sharing the same node.
Click to reveal answer
intermediate
What is the benefit of using Horizontal Pod Autoscaler (HPA) in resource monitoring?
HPA automatically adjusts the number of pod replicas based on observed CPU or custom metrics, helping maintain performance under varying loads.
Click to reveal answer
Which Kubernetes resource setting defines the guaranteed minimum CPU or memory for a container?
✗ Incorrect
Resource requests specify the minimum resources a container needs, which the scheduler uses to place pods.
What happens if a container exceeds its resource limit in Kubernetes?
✗ Incorrect
Containers exceeding limits can be throttled (CPU) or killed (memory) to protect node stability.
Which tool is best suited for collecting and storing Kubernetes metrics?
✗ Incorrect
Prometheus is designed for monitoring and storing time-series metrics in Kubernetes.
What is the purpose of setting resource limits in Kubernetes pods?
✗ Incorrect
Resource limits prevent containers from using more resources than allowed, protecting cluster health.
How does Horizontal Pod Autoscaler decide to scale pods?
✗ Incorrect
HPA monitors metrics like CPU usage to automatically adjust pod replicas.
Explain why setting resource requests and limits is important in Kubernetes resource monitoring.
Think about how Kubernetes manages resources to keep the cluster stable.
You got /4 concepts.
Describe how Prometheus and Grafana work together in Kubernetes monitoring.
One tool gathers data, the other shows it clearly.
You got /4 concepts.