Recall & Review
beginner
What is a CPU request in Kubernetes?
A CPU request is the amount of CPU guaranteed to a container. Kubernetes uses this to decide which node can run the container.
Click to reveal answer
beginner
What happens if a container exceeds its CPU limit in Kubernetes?
If a container uses more CPU than its limit, Kubernetes throttles it to prevent it from using more CPU than allowed.
Click to reveal answer
intermediate
Why should you set both CPU requests and limits?
Setting both ensures your container gets enough CPU to run well (requests) and prevents it from using too much CPU (limits), helping cluster stability.
Click to reveal answer
intermediate
How does Kubernetes use CPU requests during scheduling?
Kubernetes sums CPU requests of all containers on a node and only schedules new containers if the node has enough free CPU to meet the request.
Click to reveal answer
beginner
What unit is used to specify CPU requests and limits in Kubernetes?
CPU is specified in cores or millicores (m). For example, 500m means half a CPU core.
Click to reveal answer
What does a CPU limit do in Kubernetes?
✗ Incorrect
CPU limits stop containers from using more CPU than allowed by throttling their CPU usage.
What unit is used to specify CPU requests in Kubernetes?
✗ Incorrect
CPU is specified in cores or millicores (m), where 1000m equals 1 full CPU core.
If a container has a CPU request of 200m and a limit of 500m, what does this mean?
✗ Incorrect
The container is guaranteed 200m CPU but can burst up to 500m CPU if available.
What happens if you set a CPU limit but no CPU request?
✗ Incorrect
Kubernetes automatically assigns a request that matches the limit, guaranteeing the container CPU equal to the limit.
Why is it important to set CPU requests in Kubernetes?
✗ Incorrect
CPU requests tell Kubernetes how much CPU a container needs, helping it schedule containers properly.
Explain the difference between CPU requests and CPU limits in Kubernetes.
Think about what Kubernetes guarantees versus what it restricts.
You got /4 concepts.
Describe why setting CPU requests and limits helps maintain cluster stability.
Consider how resources are shared in a busy kitchen.
You got /4 concepts.