Free GitOps Certified Associate (CGOA) Practice Questions
100 free questions · Answer explanations · No signup required
View examination details, outline and sourcesLoading selected examination banks…
Sample Practice Questions
Try these 10 sample questions from the GitOps Certified Associate (CGOA) practice bank. Each includes the answer and explanation. Continue with the interactive practice above to review the full question set.
1What guarantee does the word continuous imply for GitOps reconciliation?
- A. Every change is applied with zero delay.
- B. Reconciliation keeps taking place over time.
- C. A deployment starts on every source-code commit.
- D. The connection to the state store stays open.
2A directory contains Kubernetes declarations for new and existing objects. Which command uses those files to create missing objects and update existing ones?
- A. kubectl replace -f ./desired
- B. kubectl apply -f ./desired
- C. kubectl get -f ./desired
- D. kubectl delete -f ./desired
Answer: B
Explanation: Kubernetes says: "Use kubectl apply to create all objects, except those that already exist," and "You can also use kubectl apply to update all objects defined in a directory, even". Apply supports the combined declarative operation. Replace targets existing objects; get reads; delete removes.
Reference: Declarative Management of Kubernetes Objects Using Configuration Files — How to create objects
3What does Jenkins Configuration as Code primarily express in its YAML file?
- A. The application's compiled binary and dependency archive
- B. The sequence of shell commands for one Pipeline build
- C. The desired contents of every application database
- D. Jenkins controller configuration parameters and values
Answer: D
Explanation: The guide says: "The Jenkins Configuration as Code (JCasC) feature defines Jenkins configuration parameters in a human-readable YAML file that can be stored as source code." This concerns controller settings rather than a Pipeline's sequence of build steps, compiled artifacts, or application data.
Reference: Jenkins Configuration as Code — Configuration as Code, introduction
4Which Kubernetes Deployment strategy gradually scales down the old ReplicaSet while scaling up the new one?
- A. Recreate
- B. Blue-Green
- C. RollingUpdate
- D. Canary with analysis
Answer: C
Explanation: Kubernetes describes RollingUpdate as "gradually scale down the old ReplicaSets and scale up the new one". Recreate removes old Pods before replacement; Blue-Green and analyzed canaries are different rollout patterns rather than this native Deployment strategy.
Reference: Kubernetes Deployments — Strategy > Rolling Update Deployment
5In a Helm chart, what is the role of files in the templates directory?
- A. They supply the chart's default parameter values.
- B. They record the chart's name and package version.
- C. They generate Kubernetes manifests when combined with values.
- D. They validate the structure of the supplied chart values.
Answer: C
Explanation: Helm describes "templates/ # A directory of templates that, when combined with values," followed by "# will generate valid Kubernetes manifest files." The alternatives confuse templates with values.yaml defaults, Chart.yaml metadata, and values.schema.json validation.
6What distinguishes a declarative description from an imperative procedure?
- A. It records the order in which commands must execute.
- B. It records the commands that previously succeeded.
- C. It specifies the target condition without prescribing steps.
- D. It specifies the API calls needed for each transition.
Answer: C
Explanation: The glossary defines a declarative description as "A configuration that describes the desired operating state of a system without specifying procedures for how that state will be achieved." The distinction is target state versus the procedure used to reach it.
7Before applying a changed Kubernetes manifest, which command previews the changes that apply would make?
- A. kubectl get -f desired.yaml
- B. kubectl describe -f desired.yaml
- C. kubectl create -f desired.yaml
- D. kubectl diff -f desired.yaml
Answer: D
Explanation: The documentation says: "kubectl diff also gives you a preview of what changes apply will make." Diff compares the proposed declarations against the live system. Get and describe report existing objects; create attempts creation.
Reference: Declarative Management of Kubernetes Objects Using Configuration Files — Introduction
8An administrator changes a Jenkins setting in the UI while JCasC still declares the old value. What does the JCasC guide say will happen on the next controller restart?
- A. The UI change is overwritten by the JCasC configuration.
- B. The UI change is automatically committed to source control.
- C. The YAML value is removed to preserve the UI modification.
- D. The controller rejects the entire YAML file as a conflict.
Answer: A
Explanation: The guide states: "The system allows administrators to modify configuration options on the UI even when they were configured by CasC, but these modifications are overwritten the next time the controller restarts." The persisted declaration remains authoritative at restart; the UI does not automatically update it.
Reference: Jenkins Configuration as Code — CasC configuration and UI modifications
9During a Kubernetes Deployment upgrade, old-version Pods must be removed before new-version Pods are created. Downtime is acceptable. Which strategy meets that upgrade requirement?
- A. Recreate
- B. RollingUpdate
- C. Blue-Green
- D. Canary
Answer: A
Explanation: Kubernetes states: "All existing Pods are killed before new ones are created when .spec.strategy.type==Recreate." The question concerns an upgrade, matching the documented guarantee; it does not claim an at-most guarantee for manual Pod deletion or all runtime conditions.
Reference: Kubernetes Deployments — Strategy > Recreate Deployment
10A Helm chart's values.yaml sets replicaCount to 2. A supplied custom values file sets replicaCount to 4, with no other overrides. Which value is used when rendering the chart?
- A. 4, from the supplied custom values file
- B. 2, because packaged defaults cannot be overridden
- C. 6, by adding the two configuration values
- D. An error, because both files define the same key
Topics in this practice bank
These topics describe the available practice for GitOps Certified Associate (CGOA). Review the examination outline and its sources for scope and allocation details.
GitOps Terminology
- Continuous
- Declarative Description
- Desired State
- State Drift
- State Reconciliation
- GitOps Managed Software System
- State Store
- Feedback Loop
- Rollback
GitOps Principles
- Declarative
- Versioned and Immutable
- Pulled Automatically
- Continuously Reconciled
Related Practices
- Configuration as Code (CaC)
- Infrastructure as Code (IaC)
- DevOps and DevSecOps
- CI and CD
GitOps Patterns
- Deployment and Release Patterns
- Progressive Delivery Patterns
- Pull vs. Event-driven
- Architecture Patterns (in-cluster and external reconciler, state store management, etc.)
Tooling
- Manifest Format and Packaging
- State Store Systems (Git and alternatives)
- Reconciliation Engines (ArgoCD, Flux, and alternatives)
- Interoperability with Notifications, Observability, and Continuous Integration Tools
How to use these free practice questions
Choose an answer, check the explanation, and review your progress by chapter. Practice questions and explanations are free to access without signing up.
These are independent study questions, not actual examination items. For examination requirements and official information, view GitOps Certified Associate (CGOA) details.