Limited-Time Offer: Enjoy 50% Savings! Coupon code: 50OFF Use it at checkout
Skip to content

Free Linux Foundation Certified GitOps Associate Exam CGOA Exam Questions

Last updated: · 11 practice questions with answers and explanations

Page: 1 / 6 Total 60 questions

Want more questions? Get Premium Access.

Question 1

New Single answer

Topic: GitOps Terminology

Skill tested: Distinguishes desired state, observed state, and drift in a reconciled workflow.

A platform team stores Kubernetes resource definitions in Git and configures a controller to apply them to a cluster. An operator manually changes the replica count in the cluster from the value declared in Git. The controller later detects the difference and restores the declared count. The team wants to describe this incident accurately in an operations review, separating the intended configuration from the discrepancy and the controller's corrective action. Which description is most accurate?

Correct Answer: D. The Git declaration is the desired state; the mismatch is state drift; detecting and correcting it is state reconciliation.
Explanation:

The desired state is the configuration declared in the authoritative Git source. A manual change that makes live cluster state differ from that declaration creates state drift. The controller's observation and corrective application constitute state reconciliation. A rollback specifically returns to an earlier desired revision; it is not simply any corrective change. The cluster is the managed environment, not the state store in this scenario, and the feedback loop refers more broadly to observing and acting on differences.

Question 2

New Single answer

Topic: GitOps Terminology

Skill tested: Applies rollback and state-store concepts to a failed GitOps release.

A service release introduces errors shortly after a Git commit updates its deployment configuration. The team uses Git as its state store, and its reconciler applies the latest committed desired state. There are no uncommitted changes, and the previous configuration is known to have worked. The incident lead wants to restore service using the existing GitOps workflow rather than changing live resources manually. Which action best represents a rollback in this workflow?

Correct Answer: C. Commit a change that restores the known-good desired configuration, then let reconciliation apply it.
Explanation:

A GitOps rollback changes the versioned desired state back to a known-good configuration, typically by reverting or otherwise committing the appropriate change, after which reconciliation brings the live environment in line. A manual live edit leaves Git and the cluster inconsistent and may be overwritten by the reconciler. Suspending reconciliation does not restore service through the managed workflow. Capturing the currently failing cluster state would not recreate the prior known-good release.

Question 3

New Single answer

Topic: GitOps Principles

Skill tested: Selects declarative configuration to support repeatable environment convergence.

A company deploys the same application to several environments. Its current release script contains imperative steps such as creating a service, patching fields, and conditionally increasing replicas based on the previous run. Failures leave the next run uncertain because the script must infer which steps already succeeded. The company wants the system to converge predictably on a reviewed target configuration, while retaining the ability to recreate environments. Which change best applies the declarative GitOps principle?

Correct Answer: B. Store the target resource configurations in version control and have a reconciler compare them with live resources.
Explanation:

Declarative configuration describes the intended end state rather than relying on a sequence of state-dependent commands. Versioned declarations give the reconciler a consistent target to compare against live resources and enable repeatable convergence across environments. Logging or repeating imperative operations can improve diagnosis but does not remove their dependence on execution history. A runbook documents intent without making it an automatically enforced state.

Question 4

New Multiple answers

Topic: GitOps Principles

Skill tested: Combines immutable version references and automatic pull reconciliation for deployment control.

A regulated organization requires production deployments to use reviewed, traceable configuration and does not permit its central CI system to hold credentials that can write directly to production clusters. The team already has a Git repository for deployment declarations and a reconciler running in each cluster. It also needs to prevent a mutable image tag from silently changing what a reviewed configuration deploys. Which TWO changes best meet these requirements? Select TWO.

Correct Answer: A. Have the in-cluster reconciler pull the approved desired state from the repository using narrowly scoped read access.; B. Record the image by immutable digest in the reviewed deployment configuration.
Explanation:

An in-cluster reconciler that pulls approved configuration avoids granting the central CI system direct production write credentials and implements the pull-based principle. Pinning an image by digest makes the referenced artifact immutable, so a later tag movement cannot silently change the deployed content. Direct CI pushes and workstation changes undermine the stated access-control and traceability goals. A mutable tag does not provide stable artifact identity.

Question 5

New Single answer

Topic: GitOps Principles

Skill tested: Explains continuous reconciliation behavior when live state changes outside Git.

A team manages a production service using a reconciler that continuously compares live resources with a version-controlled desired state. During an emergency, an authorized operator changes a live setting directly, but the corresponding repository change is not made. The operator expects the emergency change to persist until the next planned release. The team has not configured a reconciliation pause or exception. What should the team expect under the continuously reconciled principle?

Correct Answer: A. The reconciler will detect the difference and may restore the repository-declared value.
Explanation:

Continuous reconciliation means the controller repeatedly compares observed resources with the declared target. A direct change that is not represented in the state store creates drift, and the reconciler may correct it according to its configuration. Authorization to make a manual edit does not automatically make that edit the desired state. GitOps systems do not universally write observed changes back to Git, and continuous reconciliation need not wait for a CI build.

Question 6

New Multiple answers

Topic: Related Practices

Skill tested: Separates CI build and test responsibilities from GitOps deployment reconciliation.

A software group wants its delivery process to build and test application artifacts while keeping production cluster credentials out of CI. A separate controller should deploy only changes that have passed review, and production configuration must remain auditable. The organization also wants security checks to contribute to the delivery decision rather than relying on a post-deployment manual review. Which THREE responsibilities fit this design? Select THREE.

Correct Answer: A. Security checks run as part of the delivery pipeline and provide results used in promotion or review.; C. An approved change updates version-controlled deployment declarations that the reconciler pulls.; E. CI builds and tests an artifact, then publishes it to an artifact repository.
Explanation:

CI can build, test, and publish an artifact without having production deployment credentials. Reviewed deployment declarations then provide the auditable desired state that a pull-based reconciler applies. Integrating security checks into the pipeline supports DevSecOps by making security results part of delivery decisions. Direct imperative CI deployment conflicts with the credential constraint, while documenting operator changes after the fact does not ensure Git is the source of truth before deployment.

Question 7

New Single answer

Topic: Related Practices

Skill tested: Distinguishes infrastructure as code from GitOps reconciliation and operational control.

An infrastructure team stores network and compute configuration in version control and runs a provisioning tool from a CI job when a change is merged. The team describes this as GitOps, but the job exits after applying the change; no controller subsequently observes or corrects differences between the declared configuration and the running environment. Auditors require ongoing detection and correction of unauthorized drift. What is the most important addition to meet that requirement?

Correct Answer: D. Configure a reconciler to compare the declared state with observed infrastructure and act on differences.
Explanation:

Version-controlled infrastructure definitions and automated provisioning are forms of infrastructure as code, but they do not by themselves provide ongoing GitOps reconciliation. A reconciler that observes live state and compares it with the declared state is necessary to detect and correct later drift. Approval controls, job status, and saved output improve governance or auditability, but none continuously enforces the desired state after the job exits.

Question 8

New Multiple answers

Topic: GitOps Patterns

Skill tested: Chooses pull-based reconciliation and appropriate state-store placement for restricted clusters.

A financial services company operates clusters in isolated network segments. Its security policy prohibits inbound connections from a central delivery service to cluster APIs, and centrally hosted automation must not hold cluster administrator credentials. Each cluster can make outbound connections to an approved Git service. The company needs auditable configuration changes and automated convergence after an approved commit. Which TWO architectural choices best satisfy the constraints? Select TWO.

Correct Answer: B. Use the Git repository as the state store for reviewed desired configuration.; E. Run a reconciler in each cluster that pulls desired state from the approved Git repository.
Explanation:

An in-cluster reconciler can initiate outbound access to the approved Git service and apply changes locally, avoiding the prohibited inbound path and central cluster credentials. Git provides a versioned, reviewable state store that supports auditability. An external push reconciler violates the network constraint, local CI-worker storage is not a durable shared state store, and manual application does not provide automated convergence.

Question 9

New Single answer

Topic: GitOps Patterns

Skill tested: Distinguishes event-triggered reconciliation from continuous pull reconciliation.

A team wants repository events to reduce deployment latency, but its clusters must remain the authority for applying configuration and must continue correcting drift if an event is delayed or lost. The current in-cluster reconciler periodically pulls from Git and compares desired and live state. Which design best preserves the required behavior while using events appropriately?

Correct Answer: D. Use repository events to prompt an in-cluster reconciliation, while retaining periodic reconciliation.
Explanation:

An event can serve as a prompt for an in-cluster reconciler to check the source sooner, while periodic reconciliation remains the safety mechanism for missed or delayed events and for ongoing drift correction. A webhook that directly mutates cluster resources bypasses the desired controller workflow. CI push deployment also violates the stated authority model, and relying exclusively on event delivery removes resilience to missed notifications.

Question 10

New Single answer

Topic: Tooling

Skill tested: Selects a manifest packaging approach suited to reusable environment-specific configuration.

A product team maintains several related services with Kubernetes manifests. Different teams need to reuse common resource definitions while supplying environment-specific values, and reviewers need to see the fully rendered configuration that will be applied. The team is evaluating plain YAML, templating, and packaging approaches; it does not require a particular controller-specific package format. Which approach best addresses these needs while keeping the rendered desired state reviewable?

Correct Answer: B. Use a reusable packaging or templating mechanism, and make the rendered manifests available for review.
Explanation:

A packaging or templating mechanism can reuse common definitions and accept environment-specific values, while rendering the resulting manifests for review preserves visibility into the actual desired resources. Duplicated plain manifests can work but increase drift and maintenance effort across environments. Procedural commands move configuration into opaque imperative steps, and an uninspectable binary archive undermines reviewability. The stem does not require a particular packaging product.

Question 11

New Multiple answers

Topic: Tooling

Skill tested: Integrates reconciliation status, notifications, and CI results for operational visibility.

A service owner receives alerts that a release failed but cannot tell whether the artifact failed CI testing, whether the reconciler applied the declared resources, or whether the application became unhealthy afterward. The organization uses a GitOps controller and wants actionable operational visibility without granting its notification system deployment permissions. Which TWO integrations best address the problem? Select TWO.

Correct Answer: A. Export reconciler health and synchronization status to monitoring or notification systems.; C. Publish CI build and test outcomes with links to the artifact and corresponding source revision.
Explanation:

CI results identify whether the artifact passed its build and test stages, while reconciler health and synchronization status show whether declared configuration was applied successfully. Linking these signals to the relevant revision helps operators locate the failing stage. Notifications need not have deployment permissions; granting write access is unnecessary and increases risk. A Git commit alone does not prove successful reconciliation or application health, and suppressing alerts delays diagnosis.