mediumMultiple ChoiceObjective-mapped
Google ACE Practice Question: Use Kustomize to manage environment-specific…
You want to use Kustomize to manage environment-specific Kubernetes configurations (dev, staging, prod) from a single base set of manifests. How does Kustomize achieve environment customization without duplicating YAML files?
⚠ Common exam trap
Google Cloud often tests the distinction between Kustomize's overlay/patch model and Helm's templating approach, so the trap is assuming any configuration management tool uses find-and-replace or requires separate branches.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Kustomize uses overlays that patch a shared base: environment-specific differences are expressed as patches without duplicating base manifests.
Kustomize uses a base set of Kubernetes manifests and applies environment-specific overlays that contain patches. These patches modify only the differences (e.g., replicas, image tags, namespaces) without copying or altering the original base YAML files. This approach avoids duplication and keeps the base clean, with each overlay representing a distinct environment.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Kustomize duplicates all YAML files per environment, then applies find-and-replace on values.
Why it's wrong here
Kustomize's core design principle is to avoid copying entire manifest sets. Instead of duplicating YAML per environment, it references a single base directory and applies small overlay patches (strategic merge patches or JSON patches) that only carry environment-specific fields. There is no find-and-replace step; each overlay declares precisely which field values change, and the final manifest is produced by merging resources.
- ✓
Kustomize uses overlays that patch a shared base: environment-specific differences are expressed as patches without duplicating base manifests.
Why this is correct
Kustomize organizes Kubernetes manifests as a shared base and environment-specific overlays. The base contains common full resource definitions (Deployment, Service, ConfigMap), while each overlay—for example, dev, staging, or production—contains only the differences to apply, such as the image tag, replica count, or a ConfigMap value. These differences are expressed as patches in the overlay's kustomization.yaml, and running `kubectl apply -k` reads the overlay, fetches the base, and merges them to produce the final, environment-specific manifests.
- ✗
Kustomize uses Helm charts with values files per environment for templating.
Why it's wrong here
Kustomize is not a templating engine and does not rely on Helm charts or values files. The wrong answer conflates two distinct configuration management tools: Helm uses Go templates plus a values.yaml to inject variables, while Kustomize works directly with raw YAML and composes it using kustomization files. Kustomize expects a base and overlays; it never renders template functions or substitutes values from a chart—it merges actual Kubernetes manifests.
- ✗
Kustomize requires a separate Git branch per environment where manifests are committed.
Why it's wrong here
Kustomize itself has no requirement for separate Git branches per environment; that is a version-control workflow choice rendered unnecessary by the overlay model. All overlays can coexist in the same branch, sharing one common base, with each environment's differences isolated in its own directory. A team might still choose a branch-per-environment strategy for governance, but this is unrelated to how Kustomize merges configurations, and Kustomize does not inspect or depend on Git history.
Go deeper
Related to this question
Learn chapter
Google Kubernetes Engine (GKE)
Key term
Anthos
Anthos is a Google Cloud platform that lets you run applications consistently across different computing environments, like on-premises data centers and multiple public clouds.
Key term
Image
An image is a complete snapshot of a system's operating system, applications, and settings, used to deploy or restore computing environments quickly.
About these practice questions
One of 769 original ACE practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This ACE practice question is part of Courseiva's free Google Cloud certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the ACE exam.