CGOA Related Practices Practice Question
Your organization is transitioning from imperative scripts to Infrastructure as Code (IaC) using Terraform. You need to ensure that the infrastructure state remains synchronized with the Git repository after every commit. Which approach best aligns with GitOps principles?
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
✓
Deploy a GitOps controller like Flux or Argo CD to monitor the Terraform state files in Git and apply changes automatically.
GitOps requires a declarative source of truth where the current state of infrastructure is automatically reconciled against the desired state defined in Git.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Configure a CI pipeline to run terraform apply only when a manual approval is provided by the operations team.
Why it's wrong here
Manual approvals introduce human bottlenecks and imperative execution, which contradicts the GitOps principle of automated reconciliation.
- ✓
Deploy a GitOps controller like Flux or Argo CD to monitor the Terraform state files in Git and apply changes automatically.
Why this is correct
GitOps controllers provide the continuous reconciliation loop required to keep infrastructure state in sync with Git.
- ✗
Execute a scheduled cron job that runs terraform apply.
Why it's wrong here
Cron jobs are imperative and do not provide continuous reconciliation or drift detection.
- ✗
Use a webhook to trigger a shell script that pulls the latest changes from the main branch.
Why it's wrong here
Push-based webhooks are not inherently declarative and do not handle drift detection or reconciliation effectively.
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 →
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.