0
0
Kubernetesdevops~20 mins

Cluster upgrade strategies in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Cluster Upgrade Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding Rolling Upgrade Strategy
Which statement best describes the rolling upgrade strategy in Kubernetes cluster upgrades?
AUpgrade nodes one at a time, maintaining cluster availability throughout.
BUpgrade all nodes simultaneously, causing a brief downtime.
CUpgrade only the master nodes and leave worker nodes unchanged.
DUpgrade nodes randomly without any order or plan.
Attempts:
2 left
💡 Hint
Think about how to keep the cluster available during upgrades.
💻 Command Output
intermediate
2:00remaining
Output of draining a node before upgrade
What is the expected output when running kubectl drain node-1 --ignore-daemonsets --delete-local-data?
Kubernetes
kubectl drain node-1 --ignore-daemonsets --delete-local-data
AWarning: ignoring DaemonSet-managed pods: kube-proxy, fluentd
BError from server (NotFound): nodes "node-1" not found
Cnode/node-1 cordoned and drained
Dnode/node-1 drained
Attempts:
2 left
💡 Hint
Draining a node marks it unschedulable and evicts pods.
🔀 Workflow
advanced
3:00remaining
Correct sequence for a blue-green cluster upgrade
What is the correct order of steps in a blue-green upgrade strategy for Kubernetes clusters?
A1,3,2,4
B1,2,3,4
C2,1,3,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about deploying, testing, switching traffic, then removing old cluster.
Troubleshoot
advanced
2:30remaining
Troubleshooting node upgrade failure due to pod eviction
During a node upgrade, kubectl drain fails with the error: error when evicting pod: pods "my-pod" is not managed by a controller. What is the most likely cause?
AThe pod has completed successfully and is terminating.
BThe node is already drained and cordoned.
CThe pod is managed by a ReplicaSet controller.
DThe pod is a static pod and cannot be evicted automatically.
Attempts:
2 left
💡 Hint
Pods not managed by controllers are harder to evict.
Best Practice
expert
3:00remaining
Best practice for minimizing downtime during cluster upgrade
Which practice best minimizes downtime during a Kubernetes cluster upgrade?
AUpgrade all nodes at once during a maintenance window.
BUse a rolling upgrade with pod disruption budgets configured.
CDelete all pods before upgrading nodes to avoid conflicts.
DUpgrade only worker nodes and skip control plane nodes.
Attempts:
2 left
💡 Hint
Consider how to keep pods available during node upgrades.