Courseiva
CGOA
Related PracticeseasyMultiple ChoiceObjective-mapped

CGOA Related Practices Practice Question

In the context of 'Configuration as Code', why is it considered a best practice to use a declarative manifest format (like YAML) rather than imperative commands?

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

Declarative manifests represent the desired state, allowing for automated drift detection and reconciliation.

Declarative formats describe the end state, which allows the GitOps controller to calculate the diff and drift accurately.

Answer analysis

Option-by-option breakdown

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

  • It is easier to type YAML than complex CLI commands.

    Why it's wrong here

    The primary benefit is not speed of typing, but the ability to represent state.

  • Declarative manifests represent the desired state, allowing for automated drift detection and reconciliation.

    Why this is correct

    This is the core definition and benefit of using declarative configuration in GitOps.

  • YAML files are automatically encrypted by the GitOps provider.

    Why it's wrong here

    YAML is a plain-text format and is not encrypted by default.

  • Imperative commands are not supported by the Kubernetes API.

    Why it's wrong here

    Kubernetes supports both imperative and declarative commands; however, only declarative is suitable for GitOps.

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.