Your development team is migrating a stateless Node.js API to Google Kubernetes Engine. They want to define a resource that will: (1) maintain a desired replica count, (2) support rolling updates with automated rollback on failure, and (3) allow declarative version history management. Which Kubernetes object best meets these requirements?
A Deployment controller manages ReplicaSets to keep the desired number of identical Pods running. It offers built-in support for rolling updates, can automatically roll back if the new Pods fail readiness checks, and records revision history to enable easy rollbacks. A single Pod lacks orchestration capabilities, a Service only provides stable networking, and a StatefulSet focuses on ordered, unique Pods with stable identities-none of which directly handles stateless rolling updates and replica management.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the difference between a Pod and a Deployment in Kubernetes?
Open an interactive chat with Bash
How does a rolling update work in Kubernetes?
Open an interactive chat with Bash
What is the purpose of revision history in Kubernetes Deployments?
Open an interactive chat with Bash
Why is a Kubernetes Deployment used for rolling updates?
Open an interactive chat with Bash
What is the difference between a Deployment and a StatefulSet?
Open an interactive chat with Bash
What happens if a rolling update fails in Kubernetes?
Open an interactive chat with Bash
GCP Associate Cloud Engineer
Ensuring successful operation of a cloud solution
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99 $11.99
$11.99/mo
Billed monthly, Cancel any time.
$19.99 after promotion ends
3 Month Pass
$44.99 $26.99
$8.99/mo
One time purchase of $26.99, Does not auto-renew.
$44.99 after promotion ends
Save $18!
MOST POPULAR
Annual Pass
$119.99 $71.99
$5.99/mo
One time purchase of $71.99, Does not auto-renew.
$119.99 after promotion ends
Save $48!
BEST DEAL
Lifetime Pass
$189.99 $113.99
One time purchase, Good for life.
Save $76!
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .