0
0
Kubernetesdevops~20 mins

Quality of Service classes (Guaranteed, Burstable, BestEffort) in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Kubernetes QoS Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Understanding Kubernetes QoS Classes

Which Quality of Service (QoS) class in Kubernetes guarantees that a pod will never be evicted due to resource contention?

ABestEffort
BBurstable
CGuaranteed
DNone of the above
Attempts:
2 left
💡 Hint

Think about which class requires both requests and limits to be set equally.

💻 Command Output
intermediate
1:30remaining
Identifying QoS Class from Pod Description

Given the following pod YAML snippet, what is the QoS class assigned to this pod?

apiVersion: v1
kind: Pod
metadata:
  name: example-pod
spec:
  containers:
  - name: app
    image: nginx
    resources:
      requests:
        memory: "100Mi"
        cpu: "100m"
      limits:
        memory: "200Mi"
        cpu: "200m"
ABurstable
BGuaranteed
CBestEffort
DNo QoS class assigned
Attempts:
2 left
💡 Hint

Check if requests and limits are equal for all resources.

Configuration
advanced
1:30remaining
Configuring a Pod for BestEffort QoS Class

Which pod resource configuration will result in the pod being assigned the BestEffort QoS class?

AContainers have no resource requests or limits defined
BContainers have resource requests but no limits
CContainers have resource limits but no requests
DContainers have equal resource requests and limits
Attempts:
2 left
💡 Hint

BestEffort pods do not reserve any resources.

Troubleshoot
advanced
1:30remaining
Pod Eviction Behavior Under Resource Pressure

You notice that a pod with resource requests and limits set differently is evicted during node resource pressure. What is the most likely QoS class of this pod?

ABestEffort
BGuaranteed
CNo QoS class
DBurstable
Attempts:
2 left
💡 Hint

Recall eviction priority order based on QoS classes.

🔀 Workflow
expert
2:00remaining
Determining QoS Class Using kubectl

You want to check the QoS class of a running pod named web-server. Which kubectl command will show this information directly?

Akubectl describe pod web-server | grep QoS
Bkubectl get pod web-server -o jsonpath='{.status.qosClass}'
Ckubectl get pod web-server --show-labels
Dkubectl logs web-server | grep QoS
Attempts:
2 left
💡 Hint

Look for a command that extracts the QoS class from pod status.