Production Patterns — Probes, Affinity & Pod Disruption — Concept Check
Questions on Production Patterns — Probes, Affinity & Pod Disruption. Production Kubernetes requires readiness/liveness/startup probes, pod affinity and anti-affinity rules for HA placement, Pod Disruption Budgets for safe maintenance, and resource quotas for cluster stability.
Questions in this quiz
7 questions on Production Patterns — Probes, Affinity & Pod Disruption — Concept Check. Work through them here, then start the quiz to answer them and see your score.
1.A Kubernetes deployment is experiencing frequent pod restarts under heavy load. Which probe configuration is most likely causing this issue?
- AAggressive liveness probe settings
- BStartup probe with high failure threshold
- CIncorrect readiness probe path
- DLack of startup probe
2.You have a Kubernetes cluster with a Pod Disruption Budget (PDB) set to minAvailable: 2. During a node drain, how many pods can be evicted without violating the PDB?
- A1 pod
- B0 pods
- C3 pods
- D2 pods
3.A service is not receiving traffic despite being healthy. The readiness probe is configured correctly. What could be the issue?
- ALiveness probe failure
- BPod Disruption Budget violation
- CStartup probe still running
- DPod anti-affinity rule violation
4.A Kubernetes deployment has pods concentrated in a single availability zone. Which configuration change can help distribute them evenly?
- AReducing liveness probe threshold
- BImplementing pod anti-affinity rules
- CIncreasing readiness probe frequency
- DAdjusting Pod Disruption Budget
5.What is the primary purpose of a Pod Disruption Budget in Kubernetes?
- ATo restart pods when they become unhealthy
- BTo distribute pods across different nodes
- CTo ensure a minimum number of pods remain available during maintenance
- DTo allocate resources among pods
6.A Kubernetes application is slow to start, causing readiness probe failures. What is the best solution?
- AIncrease the liveness probe timeout
- BDecrease the readiness probe period
- CIncrease the startup probe failure threshold
- DAdd more replicas
7.Which probe type should be used to remove a pod from service endpoints when a database connection fails?
- AAffinity probe
- BReadiness probe
- CStartup probe
- DLiveness probe