Courseiva
CGOA
Related PracticeseasyMultiple ChoiceObjective-mapped

CGOA Related Practices Practice Question

A team is transitioning from traditional imperative scripts to declarative Configuration as Code. Which approach best satisfies the GitOps principle of using a desired state definition?

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

Storing Kubernetes YAML manifests in a Git repository and using an operator to synchronize them.

GitOps requires that the desired state be declared in a version-controlled repository to ensure traceability and auditability.

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 bash scripts triggered by a Jenkins build job to update environment variables.

    Why it's wrong here

    This is an imperative approach rather than declarative.

  • Directly editing deployments via the 'kubectl edit' command.

    Why it's wrong here

    This bypasses version control and does not use Infrastructure as Code.

  • Storing Kubernetes YAML manifests in a Git repository and using an operator to synchronize them.

    Why this is correct

    This is the core definition of GitOps, using declarative files as the source of truth.

  • Using an Ansible playbook to perform one-off configuration changes on existing servers.

    Why it's wrong here

    Ansible is often imperative unless strictly managed with idempotent roles in a GitOps workflow.

About these practice questions

Courseiva writes every CGOA question from scratch — 325 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or 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.