Courseiva
CGOA
Gitops PatternsmediumMultiple ChoiceObjective-mapped

CGOA Gitops Patterns Practice Question

You are using Kustomize 'overlays' for environment promotion. If you need to add a specific label to all resources in production but not in staging, where should you define it?

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

In the 'overlays/production' kustomization.yaml file.

Kustomize overlays are designed to layer changes on top of a base. The production overlay allows for patching or adding specific labels that don't exist in the base.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • In the 'overlays/production' kustomization.yaml file.

    Why this is correct

    The overlay is the correct location for environment-specific customizations.

  • In the global GitOps config map.

    Why it's wrong here

    Global maps don't support environment-specific labels.

  • By modifying the manifest manually after deployment.

    Why it's wrong here

    Manual changes cause drift.

  • In the 'base' directory kustomization.yaml file.

    Why it's wrong here

    Changes in 'base' affect all environments.

About these practice questions

One of 325 original CGOA 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 →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official CNCF / Linux Foundation exam blueprint

This CGOA practice question is part of Courseiva's free CNCF / Linux Foundation 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 CGOA exam.