CNCF GitOps Certified Associate (CGOA) Exam-style mock test
GitOps Certified Associate (CGOA) Practice Exams|Practice test
Full explanations
Exam format
Pass line 75%
33 USD One-time · lifetime access
Enroll →
Sample questions
Example1 · GitOps Terminology and Core Principles
A B2B SaaS platform team is adopting GitOps and debating how application and infrastructure state should be expressed. Which characteristic best reflects the GitOps declarative principle they should adopt?
✓The desired state of the whole system is described declaratively, so Git holds what the system should look like rather than step-by-step commands
Correct. GitOps requires the entire system's desired state to be expressed declaratively, letting Git describe the target rather than procedural steps.
・Operators write imperative shell scripts that are executed in sequence to push changes directly to each production cluster node
Incorrect. Imperative scripts that push commands contradict the declarative principle at the heart of GitOps.
・The desired state is expressed declaratively
Incorrect. While technically true in spirit, this is too terse to capture that the WHOLE system state must be declarative and stored as desired-state data.
・Engineers manually run kubectl apply against clusters whenever a customer-impacting change is required and then record the action in a ticketing system afterward
Incorrect. Manual kubectl apply with after-the-fact ticketing is an imperative, non-declarative workflow and is not GitOps.
Explanation
The first GitOps principle is that the system's desired state is expressed declaratively, so the source of truth describes the target state, not the procedure.
Example2 · GitOps Patterns: Push vs Pull and Reconciliation
A B2B SaaS platform team currently runs a CI pipeline that connects outward from Jenkins and applies manifests directly to the production cluster. They want to adopt the pull-based GitOps pattern instead. Which change best characterizes moving to a pull-based model?
✓An in-cluster agent watches the Git repository and applies changes itself, rather than an external CI job pushing manifests into the cluster
Correct. In the pull model an in-cluster controller (such as Argo CD or Flux) reads the desired state from Git and applies it, eliminating the external push.
・Developers manually run kubectl apply from their laptops against the production cluster after each merge to the main branch is approved
Incorrect. Manual kubectl apply from laptops is an imperative push performed by humans, not an automated pull by an in-cluster agent.
・The CI server keeps cluster credentials and issues apply commands to the API server whenever a pipeline stage completes successfully
Incorrect. A CI server holding credentials and issuing apply commands is the push pattern they are trying to move away from.
・A nightly batch job exports the live cluster state to Git so the repository mirrors whatever is currently running in production
Incorrect. Exporting live state into Git inverts the source of truth and is not how pull-based reconciliation works.
Explanation
Pull-based GitOps uses an agent running inside the cluster that pulls desired state from Git and reconciles it, removing the need for external systems to hold cluster credentials.
Example3 · Managing GitOps: Repositories, Configuration, and Secrets
A B2B SaaS company runs its billing and analytics microservices in Kubernetes. Developers push app code to one Git repository, while the platform team manages the Kubernetes manifests that the GitOps agent reconciles into the cluster. The teams want their release cadences to stay independent. Which repository structure fits this requirement?
・A single mixed repository holding both application source code and deployment manifests, reconciled on every commit
Incorrect. A mixed mono repo couples app builds to deployment commits, so the two teams cannot release independently.
✓Separate application and configuration (deployment) repositories, with the agent watching only the config repo
Correct. Splitting application code from deployment config lets each team commit on its own cadence while the agent reconciles only the config repo.
・One configuration repository per developer, each reconciled by its own dedicated agent instance
Incorrect. Per-developer repositories fragment the desired state and make the cluster's configuration impossible to reason about as one source of truth.
・A fork of the upstream vendor chart repository that developers edit in place to trigger releases
Incorrect. Editing a vendor chart fork directly discards upstream updates and mixes third-party source with the company's own release flow.
Explanation
A separate config repository decouples application development from deployment and gives the agent a single, focused source of truth to reconcile.
Example4 · GitOps Tooling: Argo CD and Flux
A healthcare services firm is evaluating Argo CD and Flux for its patient-portal platform. An architect notes that both tools are CNCF-graduated GitOps controllers. Which statement best describes a shared characteristic of Argo CD and Flux?
✓Both continuously reconcile live cluster state against the desired state declared in Git and can report or correct drift automatically.
Correct. Argo CD and Flux are both pull-based GitOps controllers that continuously compare desired state in Git with live state and reconcile differences.
・Both require developers to run kubectl apply manually against each regional cluster after merging to the main branch.
Incorrect. GitOps controllers automate apply; manual kubectl per cluster after merge defeats the purpose of continuous reconciliation.
・Both ship a mandatory browser-based dashboard that must be exposed publicly for any reconciliation to proceed.
Incorrect. Argo CD has a UI but it is not mandatory for reconciliation, and Flux does not ship a required public dashboard at all.
・Both store the desired configuration exclusively inside an embedded database rather than in Git.
Incorrect. Both tools treat Git as the source of truth, not an embedded internal database..
Explanation
A defining shared trait of Argo CD and Flux is continuous, Git-sourced reconciliation of desired versus live state with drift detection.
Example5 · Deployment Strategies, Observability, and Security
A healthcare services firm runs a patient scheduling API on Kubernetes managed by Argo CD. The platform team wants to shift traffic to a new version gradually, automatically pausing and rolling back if latency metrics degrade, all driven from Git. Which deployment strategy best fits this requirement?
・Recreate deployment, which terminates all old pods before starting new ones
Incorrect. Recreate causes downtime and offers no gradual traffic shifting or metric-based rollback.
✓A canary rollout that progressively shifts traffic and analyzes metrics
Correct. A canary gradually shifts traffic and uses automated metric analysis to pause or roll back, matching the requirement.
・Manual blue-green cutover performed by editing the Service selector by hand
Incorrect. Editing the Service selector by hand is not progressive and conflicts with the Git-driven, automated goal.
・Rolling update with maxSurge set high so all pods are replaced at once
Incorrect. Replacing all pods at once removes the gradual, analysis-driven safety the team wants.
Explanation
Canary deployments progressively shift traffic and evaluate metrics, enabling automated pause and rollback within a GitOps workflow.
Example6 · GitOps Terminology and Core Principles
A healthcare services firm migrating its patient-portal platform to GitOps debates how to express the desired cluster state. Which approach aligns with the GitOps declarative principle?
✓Describe the system's desired end state as configuration, letting tooling converge the cluster toward it
Correct. GitOps requires the desired state to be expressed declaratively so tooling can continuously reconcile actual state toward it.
・Store a sequence of ordered shell commands that the pipeline runs to mutate the cluster
Incorrect. A sequence of ordered commands is imperative and does not describe the desired end state declaratively.
・Have operators manually apply changes through kubectl and record each action in a ticket
Incorrect. Manual kubectl changes bypass Git as the source of truth and are not declarative.
・Keep an imperative deployment script in Git that lists every step to reach the target state
Incorrect. An imperative deployment script lists steps rather than declaring the target state.
Explanation
The declarative principle means the entire system is described as desired state configuration, not as procedural steps.
Example7 · GitOps Terminology and Core Principles
At the retail chain NorthPeak Outfitters, a new platform engineer asks why the team calls their deployment approach 'GitOps' rather than just CI/CD scripting. How should the lead best summarize the core idea of GitOps?
✓It is an operating model where Git holds the declared desired state and automation continuously reconciles the running system to match it.
Correct. GitOps uses Git as the source of declared desired state while automation continuously reconciles the actual system to it.
・It is a practice of manually running kubectl apply from a laptop after every approved pull request merge is completed by reviewers.
Incorrect. Manual kubectl apply is imperative push-based deployment, not the continuous reconciliation model GitOps describes.
・It is a container registry pattern that signs images and stores them beside the Helm charts used by the storefront services team.
Incorrect. Image signing and registry storage are supply-chain concerns, not the definition of GitOps.
・It is a monitoring convention for routing cluster alerts to chat channels so operators can patch drift by hand when needed.
Incorrect. Alert routing with manual patching is reactive ops and contradicts automated reconciliation.
Explanation
GitOps is an operating model built on a declared desired state in Git plus continuous automated reconciliation.
Example8 · GitOps Terminology and Core Principles
NorthPeak Outfitters stores the configuration for its checkout service as a set of YAML manifests describing the end state the cluster should hold, not the commands to get there. Which GitOps principle does this directly satisfy?
✓The desired state of the system must be expressed declaratively rather than as procedural steps.
Correct. Describing the end state rather than steps is exactly the declarative principle of GitOps.
・The reconciliation agent must be hosted outside the cluster boundary on a dedicated controller node for security.
Incorrect. Where the agent runs is an architectural choice, not the declarative principle.
・The configuration must be stored only in encrypted object storage buckets that engineers cannot read directly.
Incorrect. Encrypted buckets address secrecy, not declarative versus procedural configuration.
・The pipeline must rerun its scripts in a fixed order every time a developer opens a new change request.
Incorrect. Re-running ordered scripts is procedural, the opposite of a declarative description.
Explanation
Declarative means the system's desired state is described, not the imperative steps to achieve it.
Example9 · GitOps Terminology and Core Principles
During an audit, NorthPeak Outfitters must show exactly who changed the inventory service configuration and when, and be able to return to any prior known-good version. Which GitOps principle makes this possible?
✓The desired state is stored in a way that is versioned and immutable, preserving a complete and auditable history.
Correct. A versioned, immutable store gives a complete auditable history and the ability to roll back to any prior version.
・The desired state is cached in the reconciler memory so recent edits load faster during peak storefront traffic hours.
Incorrect. Caching in reconciler memory is an implementation detail and provides no durable audit trail.
・The desired state is overwritten on each deploy to keep the repository small and avoid confusing older operators.
Incorrect. Overwriting state destroys the history that this principle is meant to preserve.
・The desired state is kept only on the production cluster so live values are always the authoritative reference point.
Incorrect. Treating the live cluster as the source of truth defeats the versioned Git-based source-of-truth principle.
Explanation
Versioned and immutable storage of desired state provides auditability and reliable rollback.
Example10 · GitOps Terminology and Core Principles
A financial services firm is drafting its internal definition of GitOps for a new regulatory audit document. The platform lead wants a statement that captures the essence of GitOps as an operating model. Which description best defines GitOps?
✓A methodology that uses a Git repository as the single source of truth for declaratively describing the desired state of a system, which is then automatically reconciled
Correct. GitOps uses Git as the single source of truth holding the declarative desired state, which agents continuously reconcile against the running system.
・A branching strategy where developers commit code and trigger imperative shell scripts to push changes to production servers
Incorrect. Imperative push-based shell scripts are the opposite of the declarative, pull-based reconciliation that defines GitOps.
・A Kubernetes scheduling feature that prioritizes pods based on Git commit history
Incorrect. GitOps is not a scheduling feature and does not order pods by commit history.
・A monitoring dashboard that visualizes repository activity
Incorrect. A monitoring dashboard observes activity but does not define or reconcile desired state.
Explanation
GitOps centers on a declarative desired state stored in Git and continuously reconciled, not on imperative scripts, scheduling, or dashboards.
Example11 · GitOps Terminology and Core Principles
A payments platform team at a bank is reviewing whether their configuration follows the GitOps declarative principle. Which characteristic indicates their system is managed declaratively?
・The repository contains an ordered list of kubectl and script commands that must run sequentially to build the cluster
Incorrect. An ordered list of commands is imperative, specifying how rather than what the desired state is.
✓The desired end state of the system is described as data, and the platform determines how to achieve it
Correct. Declarative management describes the desired end state as data and lets the system figure out how to reach it.
・Operators log into nodes to apply changes and then record what they did afterward in a changelog file
Incorrect. Manually applying changes on nodes and documenting them later is imperative and not reconciled from Git.
・Each deployment runs a bespoke pipeline that imperatively mutates resources step by step before verifying them
Incorrect. Bespoke pipelines that imperatively mutate resources step by step describe a procedural, not declarative, approach.
Explanation
The declarative principle means stating the desired result as data; the imperative alternatives describe step-by-step how-to procedures.
Example12 · GitOps Terminology and Core Principles
A manufacturing distributor runs its warehouse inventory service on Kubernetes and wants to adopt GitOps. During a planning workshop, a platform engineer asks what it means for the system state to be 'declarative' in a GitOps sense. Which statement best captures the declarative principle?
✓The desired state of the system is expressed as a set of configuration facts, not as a sequence of imperative commands that the operator runs by hand
Correct. Declarative means the target state is described as facts (the what), and the system figures out how to achieve it, rather than running ordered imperative steps.
・The desired state is defined by writing ordered shell scripts that each engineer executes manually against the cluster whenever a change is needed
Incorrect. Ordered shell scripts executed by hand are imperative, which is the opposite of the declarative GitOps principle.
・The desired state is whatever the cluster happens to report at any moment, captured by exporting live objects after every deployment
Incorrect. Using whatever the live cluster reports as the source makes the cluster, not Git, the desired state, violating the declarative source-of-truth idea.
・The desired state is maintained only inside the CI pipeline logs and reconstructed by replaying those logs step by step
Incorrect. CI logs are an audit artifact, not a declarative description of desired state, and replaying them is imperative.
Explanation
A core GitOps principle is that the system's desired state is declarative, expressed as configuration facts rather than imperative command sequences.
Example13 · GitOps Terminology and Core Principles
At the manufacturing distributor, two engineers make conflicting manual edits directly to the production cluster, and nobody can agree on what the 'correct' configuration should be. A GitOps consultant explains how the versioned source of truth principle resolves this. What is the primary benefit of storing the desired state in a Git repository?
✓It provides a single, versioned, auditable source of truth that unambiguously defines the intended cluster state
Correct. Git as the source of truth gives one versioned, auditable definition of desired state, ending ambiguity about what is correct.
・It guarantees that application container images will always build faster because the manifests are cached inside the repository history
Incorrect. Git stores manifests but does not make image builds faster; that is unrelated to the source-of-truth principle.
・It removes the need for any Kubernetes RBAC because repository permissions alone fully secure every workload in the cluster
Incorrect. Repository permissions do not replace cluster RBAC; both layers are still needed for security.
・It lets each engineer keep a private copy of the state so that no central agreement about the configuration is ever required
Incorrect. Private divergent copies defeat the purpose of a single source of truth and reintroduce ambiguity.
Explanation
GitOps uses a version-controlled repository as the single, auditable source of truth for the declared desired state.
Example14 · GitOps Terminology and Core Principles
A telecom operator's platform team wants to adopt GitOps to manage its 5G core network functions on Kubernetes. The architect asks what fundamentally defines GitOps as a practice. Which statement best captures it?
✓A set of practices that use Git as the single source of truth for declarative infrastructure and application configuration
Correct. GitOps centers on Git being the authoritative, declarative source of truth that drives the system's desired state.
・A continuous integration pipeline that compiles network function container images and pushes them to a registry on each merge to the main branch
Incorrect. That describes CI image building, which may feed GitOps but is not what defines GitOps itself.
・A monitoring framework that collects metrics from network functions and raises alerts when latency thresholds are exceeded
Incorrect. Observability and alerting are complementary concerns, not the defining characteristic of GitOps.
・A manual runbook process where engineers apply kubectl commands after a change ticket has been approved
Incorrect. Manual, imperative kubectl application is the opposite of the automated, declarative GitOps model.
Explanation
GitOps is defined by using Git as the single source of truth for declarative desired state, which is then reconciled automatically into the running system.
Example15 · GitOps Terminology and Core Principles
During a GitOps review, the telecom operator debates how to express the configuration of a billing microservice. Which approach aligns with the GitOps declarative principle?
・Writing a shell script that lists each ordered command needed to create the deployment, service, and ingress in sequence
Incorrect. An ordered command script is imperative, specifying how rather than the desired what.
✓Storing manifests that describe the desired end state of the billing service and letting the system reconcile toward it
Correct. Declaring the desired end state and letting the system converge to it is the declarative principle.
・Logging into the cluster node and editing the live running objects directly whenever a configuration change is required
Incorrect. Editing live objects by hand is imperative and bypasses the declared source of truth.
・Keeping a wiki page of steps engineers follow by hand to recreate the billing service on a new cluster
Incorrect. A manual step-by-step wiki is imperative procedure, not a declarative description of state.
Explanation
The declarative principle means the system is described by its desired state, not by a sequence of imperative steps to reach it.
▶ Try 10 free questions (graded)