Courseiva

Certified GitOps Associate (CGOA, CNCF/Linux Foundation) (CGOA) (CGOA) — Questions 301325

325 questions total · 5pages · All types, answers revealed

Page 4

Page 5 of 5

301
MCQmedium

In a GitOps workflow, what is the best way to handle a configuration that must be different for production versus development clusters?

A.Copy-pasting the manifest files
B.Using environment variables
C.Kustomize overlays
D.Running multiple ArgoCD instances
AnswerC

Overlays are the standard solution for environment-specific differences.

Why this answer

Using Kustomize overlays allows you to maintain a common base and modify specific values for each environment.

302
Multi-Selecthard

Which THREE of these practices are essential to successfully transition from traditional CI/CD to GitOps?

Select 3 answers
A.Maintaining a manual 'deployment' document in a wiki.
B.Replacing imperative 'kubectl' commands with declarative manifest files.
C.Establishing Git as the sole source of truth for the environment.
D.Implementing an automated reconciliation process that pulls from Git.
E.Increasing the number of manual approvals in the CI pipeline.
AnswersB, C, D

Declarative files are required for GitOps reconciliation.

Why this answer

Successful transition requires moving away from imperative commands, adopting declarative configuration, and centralizing the source of truth.

303
MCQhard

What is the purpose of 'App-of-Apps' pattern in Argo CD?

A.To perform parallel builds
B.To increase the memory capacity of the cluster
C.To manage a collection of applications via a single root application
D.To allow multiple users to edit the same file
AnswerC

This allows for hierarchical management of multiple services.

Why this answer

The App-of-Apps pattern allows managing multiple applications using a single parent application, simplifying deployment for complex architectures.

304
MCQmedium

In a GitOps environment, an engineer manually deletes a Deployment via 'kubectl'. What should happen next to maintain the desired state?

A.The controller detects the drift and automatically restores the Deployment.
B.The controller ignores the change until the next git commit.
C.The system issues an alert but does not modify the cluster.
D.The manual deletion is permanently synced to the Git repository.
AnswerA

Drift detection and automated correction is a core GitOps principle.

Why this answer

The GitOps controller, such as Argo CD or Flux, performs continuous reconciliation to ensure the cluster state matches the Git repository.

305
MCQmedium

Why is 'Git' used as the source of truth rather than a standard database?

A.Git is the only format Kubernetes supports
B.Git is easier to host on-premise
C.Git provides native versioning, history, and collaboration
D.Git is faster at read operations
AnswerC

The Git workflow is specifically optimized for tracking changes over time.

Why this answer

Git provides built-in version control, audit trails, and collaborative workflows that databases lack.

306
MCQhard

You are troubleshooting a Flux controller that is not reconciling changes. The Git repository is updated, but the cluster remains unchanged. Which component should you inspect first to verify the 'automated pull-based reconciliation'?

A.The Kubernetes API server logs.
B.The 'flux-system' namespace's 'kustomization.yaml' file.
C.The Git provider's webhook logs.
D.The 'GitRepository' or 'Kustomization' custom resources.
AnswerD

These resources define the source and the reconciliation loop for the specific application.

Why this answer

The Kustomization or HelmRelease custom resource defines the link between the repository and the reconciliation loop.

307
Multi-Selecthard

Which THREE of the following are critical security considerations for a GitOps implementation?

Select 3 answers
A.Requiring GPG signing for commits
B.Using hardcoded passwords in Kubernetes manifests
C.Implementing RBAC for the Git repository
D.Storing secrets in external stores like HashiCorp Vault
E.Granting the GitOps operator cluster-admin access by default
AnswersA, C, D

Ensures the integrity and authenticity of configuration changes.

Why this answer

Access control, secure credential storage, and commit signing are essential for security.

308
Multi-Selecteasy

Which TWO of the following are common GitOps challenges?

Select 2 answers
A.Drift between Git and live state
B.Lack of Git repository
C.Too many developers
D.Securely managing secrets
E.Too much documentation
AnswersA, D

Manual changes often cause drift.

Why this answer

Managing secrets securely and handling drift are the most frequent challenges in GitOps environments.

309
MCQeasy

Which of the following actions best aligns with the GitOps principle of 'Automated Pull-Based Reconciliation'?

A.A developer manually running Helm upgrade in the production environment
B.Using a Git hook to trigger an SSH deployment script on a remote server
C.Jenkins triggers a 'kubectl apply' command to push changes from the CI server
D.A cluster-resident controller actively pulling manifests from a Git repository
AnswerD

This describes the pull-based model central to GitOps.

Why this answer

Pull-based reconciliation involves an agent running inside the cluster that actively fetches the desired state from Git, rather than a CI system pushing changes.

310
MCQmedium

What is the primary advantage of storing Kubernetes manifests in a version-controlled repository?

A.It makes the container images run faster.
B.It automatically patches security vulnerabilities.
C.It provides a backup in case the cluster is deleted.
D.It allows developers to bypass the CI/CD system.
AnswerC

The repository serves as a disaster recovery point for the cluster configuration.

Why this answer

Version control allows for tracking changes, reverting to previous states, and providing a historical audit log.

311
MCQmedium

A company is choosing between a push-based CI/CD pipeline (e.g., executing 'kubectl apply' from GitHub Actions) and a pull-based GitOps controller (e.g., Argo CD or Flux). Which security advantage is uniquely provided by adopting the pull-based architecture?

A.Git repositories are automatically encrypted at rest using cluster-managed hardware security modules.
B.It eliminates the need to perform code reviews or pull request approvals before deploying to production.
C.Cluster API credentials do not need to be exposed or stored inside the external CI/CD platform.
D.Container images are automatically scanned for vulnerabilities before being pushed to the container registry.
AnswerC

Because the operator runs inside the target cluster, it pulls manifests internally without requiring external CI runners to hold cluster kubeconfig credentials.

Why this answer

Pull-based reconciliation uses an agent running inside the cluster that reaches out to Git. This eliminates the need to expose cluster API endpoints to external network callers or store cluster admin credentials in external CI systems.

312
MCQhard

You are implementing a multi-environment strategy. Which Git branching strategy best supports GitOps?

A.Deleting the Git repository after each deployment to prevent tampering.
B.Using a single 'main' branch that is pushed to all environments simultaneously.
C.Using dedicated directories for each environment within a single repository.
D.Creating a new repository for every single deployment.
AnswerC

This allows for environment-specific configuration while maintaining a single source of truth.

Why this answer

Environment-specific branches or directory-based separation (using Kustomize or Helm) allow for tracking changes across dev, staging, and prod independently.

313
MCQhard

What happens when you delete an application from the Argo CD dashboard without deleting the Git repository?

A.The Git repository is automatically updated.
B.The cluster is wiped completely.
C.The controller re-syncs and restores the application.
D.Nothing happens.
AnswerC

The controller's job is to enforce the Git state; as long as the Git state exists, the controller will recreate the app.

Why this answer

The application is removed from Argo CD, but if the controller is still configured to watch that repository, it may re-create the application unless the removal is also reflected in Git.

314
Multi-Selecthard

Which TWO of the following are valid reasons to maintain a clear separation between the CI pipeline and the GitOps controller?

Select 2 answers
A.The GitOps controller is required to perform binary compilation of source code.
B.GitOps provides a continuous feedback loop and reconciliation that a one-time CI execution cannot offer.
C.The CI pipeline should not have direct write access to the Kubernetes API, limiting the blast radius of a compromised pipeline.
D.Separation allows developers to bypass the Git repository when hotfixing production.
E.The CI pipeline is physically incapable of deploying resources to a cluster.
AnswersB, C

Reconciliation is an ongoing process, whereas CI is a discrete, event-based process.

Why this answer

Separation of concerns ensures that the build pipeline focuses on artifacts and the GitOps controller focuses on state reconciliation, which also improves security by limiting cluster access.

315
MCQhard

You are designing a multi-cluster deployment with Argo CD. You want to avoid defining 50 individual Application manifests. Which feature should you use?

A.Argo CD ApplicationSets.
B.Helm subcharts.
C.Git submodules.
D.Kubernetes Custom Resource Definitions (CRDs).
AnswerA

ApplicationSets automate the generation of Applications for multiple clusters.

Why this answer

ApplicationSets use generators (like the Cluster generator) to dynamically create Applications based on cluster list, significantly reducing configuration overhead.

316
MCQeasy

Which of the following is a key advantage of using a 'pull' based GitOps model (like Flux or ArgoCD) over a 'push' based CI/CD pipeline?

A.Elimination of external cluster credentials in CI
B.Faster build times
C.Automatic unit testing
D.No need for Git
AnswerA

The cluster pulls from Git, so the CI doesn't need write access.

Why this answer

Pull models don't require the GitOps tool to have cluster admin credentials stored in the CI system, enhancing security.

317
MCQmedium

When utilizing Git as the 'Source of Truth' for a cluster, what happens if the cluster state diverges from Git?

A.The controller alerts the administrator but takes no action.
B.The Git repository is updated to reflect the new cluster state.
C.The controller detects the drift and reports it as out-of-sync.
D.The cluster ignores the Git repository until a new commit is pushed.
AnswerC

Identifying 'Out-of-Sync' status is the first step in reconciliation.

Why this answer

Drift detection allows the GitOps controller to identify when the cluster state has deviated from the declared Git state.

318
Multi-Selecthard

Which THREE components are essential for a robust pull-based GitOps deployment?

Select 3 answers
A.A Git repository hosting declarative manifests.
B.A Kubernetes cluster to host the applications.
C.A GitOps controller (e.g., Argo CD or Flux).
D.A continuous integration server with cluster-admin access.
E.A dedicated database for storing cluster state.
AnswersA, B, C

The repository is the source of truth.

Why this answer

A robust system requires the controller (the brain), a Git source (the truth), and a cluster (the execution environment).

319
MCQmedium

When defining a declarative desired state in Kubernetes, which attribute is essential to satisfy the 'declarative' principle?

A.A shell script that executes 'kubectl apply'.
B.A webhook that triggers an update process.
C.A YAML manifest describing the final resource configuration.
D.A manual 'kubectl edit' command.
AnswerC

Declarative systems focus on the target state, represented by static configuration.

Why this answer

The manifest should define the final state, not the steps taken to achieve it.

320
MCQhard

When using an 'Image Updater' with a GitOps operator, what is the automated workflow?

A.It detects new images and updates the manifest in Git
B.It manually restarts the cluster
C.It creates a backup of the cluster
D.It bypasses the git repository entirely
AnswerA

This is the standard flow: watch registry -> update Git -> operator pulls change.

Why this answer

The updater monitors registries for new images and updates the Git repository automatically.

321
Multi-Selecthard

Which THREE of the following are best practices for managing GitOps secrets?

Select 3 answers
A.Share secrets in cleartext via team chat
B.Encrypt secrets using tools like SealedSecrets
C.Use an external secret manager like HashiCorp Vault
D.Rotate secrets regularly based on security policies
E.Store base64 encoded secrets in Git
AnswersB, C, D

SealedSecrets allows keeping secrets in Git while preventing unauthorized access.

Why this answer

Secrets should be encrypted, managed outside Git, and rotated frequently.

322
Multi-Selectmedium

Which TWO benefits does GitOps provide for team collaboration?

Select 2 answers
A.Removing the need for communication.
B.Forcing everyone to use the same IDE.
C.Providing a transparent, versioned history of infrastructure changes.
D.Allowing developers to deploy without oversight.
E.Enabling peer review of all changes via Merge Requests.
AnswersC, E

This makes communication much easier.

Why this answer

GitOps fosters collaboration by leveraging pull requests for peer reviews and providing a single, transparent record of all changes.

323
Multi-Selecthard

Which THREE principles are foundational to the GitOps model as defined by the CNCF GitOps Working Group?

Select 3 answers
A.Manual approval is required for all production deployments
B.Software must be delivered using push-based CI/CD pipelines
C.Changes must be automatically pulled and applied
D.The state must be versioned and immutable
E.The system must be defined declaratively
AnswersC, D, E

Automated reconciliation is required to maintain the desired state.

Why this answer

The principles include Declarative state, Versioned/Immutable storage, and Automated reconciliation.

324
Multi-Selectmedium

Which TWO characteristics help ensure a GitOps repository is auditable?

Select 2 answers
A.Only allowing the admin user to push code.
B.Use of private email addresses in commit logs.
C.Cryptographically signed commits to verify authorship.
D.Detailed commit logs showing the author and time of change.
E.Storing all files as binary blobs.
AnswersC, D

This guarantees the integrity of the commit history.

Why this answer

Auditable GitOps relies on commit history (who made the change) and cryptographic signing of commits (verifying the origin of the change).

325
MCQeasy

An administrator notices that the 'sync' status of an Argo CD application is 'Synced' but the health status is 'Degraded'. What does this indicate?

A.The Argo CD controller has crashed
B.The Git repository is unreachable
C.Git and the cluster state are mismatched
D.The application is correctly defined in Git but is failing at runtime
AnswerD

Sync status refers to configuration parity, while health status refers to runtime execution success.

Why this answer

The desired state in Git has been successfully applied to the cluster, but the workloads (e.g., Pods) are failing to run correctly.

Page 4

Page 5 of 5

All pages