Courseiva
CGOA
Gitops PatternsmediumMultiple ChoiceObjective-mapped

CGOA Gitops Patterns Practice Question

When promoting an application from staging to production using the 'GitOps directory' pattern, what is the most robust way to ensure environment-specific configurations are applied correctly?

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

Using Kustomize overlays for each environment

Using Kustomize overlays allows for a base configuration with environment-specific patches, ensuring no drift between environments.

Answer analysis

Option-by-option breakdown

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

  • Using Kustomize overlays for each environment

    Why this is correct

    Overlays are the standard GitOps pattern for maintaining environment-specific differences from a common base.

  • Hardcoding environment names inside the main deployment file

    Why it's wrong here

    Hardcoding makes the application non-portable and difficult to manage.

  • Dynamic shell scripting in the CI pipeline

    Why it's wrong here

    GitOps prefers declarative state over imperative scripts which can fail silently.

  • multiple_choice

    Why it's wrong here

    Invalid question type provided.

  • Copy-pasting YAML files across folders

    Why it's wrong here

    Copy-pasting leads to configuration drift and maintenance nightmares.

About these practice questions

This CGOA question is part of Courseiva's 325-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.