0
0
Microservicessystem_design~20 mins

Pods and deployments for services in Microservices - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Pods and Deployments Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary role of a Pod in Kubernetes?
Imagine you have a small team working together in a room to complete a task. In Kubernetes, a Pod is like that team. What is the main purpose of a Pod?
AIt stores persistent data for containers to use.
BIt manages the deployment and scaling of containers automatically.
CIt acts as a load balancer to distribute traffic among services.
DIt groups one or more containers that share storage and network resources.
Attempts:
2 left
💡 Hint
Think about what runs inside a Pod and what resources they share.
Architecture
intermediate
2:00remaining
How does a Deployment help manage Pods in Kubernetes?
Think of a Deployment as a manager who ensures the right number of workers (Pods) are always available. What is the main function of a Deployment?
AIt ensures a specified number of Pods are running and updates them smoothly.
BIt provides persistent storage to Pods for data retention.
CIt schedules Pods to specific nodes based on resource availability.
DIt routes external traffic directly to individual Pods.
Attempts:
2 left
💡 Hint
Consider how you keep a team size constant and update their tasks without disruption.
scaling
advanced
2:00remaining
What happens when you scale a Deployment from 3 to 6 replicas?
You have a Deployment running 3 Pods. You decide to scale it to 6. What is the expected behavior in Kubernetes?
AKubernetes merges the 3 Pods into 6 containers within the same Pods.
BKubernetes replaces the existing 3 Pods with 6 new Pods on the same nodes.
CKubernetes creates 3 additional Pods to reach 6 total, distributing them across nodes.
DKubernetes pauses all Pods and restarts 6 Pods sequentially.
Attempts:
2 left
💡 Hint
Think about how Kubernetes adds capacity without stopping existing Pods.
tradeoff
advanced
2:00remaining
What is a tradeoff when using a single Pod with multiple containers versus multiple Pods with single containers?
Consider running multiple containers inside one Pod versus running each container in its own Pod. What is a key tradeoff?
ASingle Pod containers cannot communicate internally; multiple Pods communicate via shared memory.
BSingle Pod containers share resources closely but reduce isolation; multiple Pods increase isolation but add network overhead.
CSingle Pod containers require separate IPs; multiple Pods share the same IP address.
DSingle Pod containers have better network isolation; multiple Pods share storage more efficiently.
Attempts:
2 left
💡 Hint
Think about resource sharing and security boundaries.
estimation
expert
3:00remaining
Estimate the number of Pods needed for a service expecting 10,000 requests per second with each Pod handling 500 requests per second.
You have a microservice deployed with Pods that can each handle 500 requests per second. To handle 10,000 requests per second reliably, how many Pods should you deploy?
A20 Pods
B15 Pods
C25 Pods
D10 Pods
Attempts:
2 left
💡 Hint
Divide total requests by capacity per Pod and consider no overloading.