Courseiva

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

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

Page 2

Page 3 of 5

Page 4
151
MCQeasy

Which of these is a typical 'Desired State' artifact in GitOps?

A.An audit log from the cluster.
B.A shell script that installs software.
C.A live running container.
D.A Kubernetes YAML manifest.
AnswerD

YAML manifests define the expected state of the cluster.

Why this answer

Kubernetes manifest files, Helm charts, or Kustomize templates are the standard ways to define declarative state.

152
MCQhard

What is the primary risk of a 'Push-based' deployment model compared to 'Pull-based'?

A.The Git repository is too big.
B.It requires the CI system to have broad permissions on the cluster.
C.It's too slow.
D.It makes it impossible to use Git.
AnswerB

This creates a 'God-mode' credential issue.

Why this answer

Push-based models require the CI system to have cluster-admin credentials, creating a significant security vulnerability if the CI system is compromised.

153
MCQeasy

Your team is integrating a CI pipeline with a GitOps delivery model. Which of the following tasks should remain in the CI pipeline, and which should be moved to the CD/GitOps reconciliation process?

A.Everything, including image building and deployment, must be handled by the GitOps controller.
B.The CI pipeline should perform the final deployment to ensure the pipeline status is correctly reported.
C.Container image building and unit testing remain in CI, while manifest deployment to the cluster moves to GitOps.
D.Container image building moves to GitOps, while manifest deployment remains in the CI pipeline.
AnswerC

CI focuses on artifact creation and verification, while GitOps focuses on state reconciliation in the target cluster.

Why this answer

CI handles build and test; CD (GitOps) handles reconciliation and deployment.

154
MCQmedium

What happens if the Git repository is temporarily unavailable during a sync cycle?

A.The operator wipes the current state
B.The cluster reverts to a hardcoded default
C.The cluster automatically deletes all applications
D.The operator waits and retries the fetch
AnswerD

Operators are designed to be resilient and will retry after failures.

Why this answer

The operator will fail to fetch, and the application will remain in its last known state, usually showing a sync error.

155
MCQmedium

In a GitOps promotion pipeline, why is it recommended to tag container images with a unique Git commit SHA instead of 'latest'?

A.Because the container registry requires unique SHAs.
B.To reduce the size of the container image.
C.Because 'latest' is deprecated by Docker.
D.To ensure immutability and auditability.
AnswerD

SHA-based tagging is essential for reliable GitOps.

Why this answer

Using the Git commit SHA provides traceability and immutability. 'Latest' is a mutable tag that can point to different versions over time, making rollbacks impossible.

156
MCQmedium

Your organization uses a 'GitOps Operator' to manage deployments. What happens if a developer manually changes a configuration on the Kubernetes cluster using 'kubectl edit'?

A.The GitOps operator will enter a 'halt' state and require manual intervention to synchronize.
B.The GitOps operator will detect the drift and revert the manual change to match the configuration in Git.
C.The GitOps operator will trigger an alert, but the manual change will remain in place until the next deployment.
D.The GitOps operator will automatically update the Git repository to reflect the manual change.
AnswerB

Automated self-healing (reconciliation) is a key feature of GitOps tools.

Why this answer

The GitOps operator continuously monitors the cluster state against the Git repository; it will detect the 'out-of-sync' status and overwrite the manual change to restore the desired state.

157
MCQeasy

What is the primary function of the 'reconciliation loop' in GitOps?

A.To continuously compare actual state with Git and correct discrepancies.
B.To manage user access control for the cluster.
C.To compile source code into container images.
D.To update the documentation in the Git repository.
AnswerA

This is the core definition of the GitOps reconciliation loop.

Why this answer

The reconciliation loop ensures that the current cluster state matches the desired state defined in Git.

158
MCQhard

If a GitOps controller detects that an image tag has been changed in the cluster but not in Git, what does the controller do?

A.Leaves the cluster in the new state.
B.Updates the Git repository with the new image tag.
C.Reverts the cluster state to match the Git repository.
D.Prompts the user for approval.
AnswerC

Continuous drift correction ensures the live state returns to the desired state.

Why this answer

The controller identifies this as drift and uses the Git source of truth to revert the image tag back to the version declared in Git.

159
MCQeasy

Which term best describes the process of ensuring the live cluster matches the desired state stored in Git?

A.Validation
B.Syncing
C.Provisioning
D.Compilation
AnswerB

Syncing is the act of aligning the actual state with the target state.

Why this answer

Syncing or Reconciliation is the process of applying the Git-defined state to the cluster.

160
MCQmedium

How does GitOps help with disaster recovery?

A.It prevents the disaster from happening in the first place.
B.It automatically buys new hardware.
C.It keeps a copy of your data in the Git repo.
D.You can restore the entire cluster state by pointing a new cluster to the Git repository.
AnswerD

This is the essence of 'reproducible infrastructure'.

Why this answer

Because the entire cluster state is defined in Git, you can simply point a new cluster to the repository to recreate the environment.

161
Multi-Selecthard

Which THREE of the following are common tasks performed by a GitOps Operator? (Choose three)

Select 3 answers
A.Applying configurations to the cluster to resolve detected drift.
B.Generating unit tests for Kubernetes manifests.
C.Comparing the current cluster state with the state defined in Git.
D.Building and pushing new Docker images to a registry.
E.Continuous monitoring of the Git repository for new commits.
AnswersA, C, E

The operator executes the necessary changes to match Git.

Why this answer

The operator watches Git for changes, reconciles the live state, and provides visibility into drift/sync status.

162
MCQeasy

When deploying across multiple clusters using Argo CD, you need to ensure that specific secrets are only available to clusters located in the 'us-east' region. Which resource should you use to enforce this segregation?

A.AppProject
B.ConfigMap
C.ApplicationSet
D.ClusterRoleBinding
AnswerA

AppProject allows you to define destination restrictions, including cluster and namespace whitelisting.

Why this answer

Argo CD AppProject objects are designed specifically to restrict cluster access and namespace access, making them the correct tool for multi-cluster security and segregation.

163
MCQmedium

You are troubleshooting a Flux installation. The operator is failing to pull updates from a private GitHub repository. What component is most likely misconfigured?

A.The Helm chart version
B.The cluster service account permissions
C.The Kustomization path
D.The GitRepository secret
AnswerD

The GitRepository object refers to a secret containing authentication credentials; if missing or incorrect, the operator cannot fetch the repo.

Why this answer

Flux uses Kubernetes Secrets to store the SSH keys or tokens required for authentication with Git providers.

164
Multi-Selectmedium

Which TWO of the following are features of progressive delivery in GitOps? (Select two)

Select 2 answers
A.Gradual traffic shifting between application versions.
B.Manually logging into pods to check health.
C.Automated rollback based on custom metrics.
D.Immediate deployment of all changes to the entire cluster.
E.Removing all health checks from the application.
AnswersA, C

This minimizes risk by exposing only a subset of users.

Why this answer

Progressive delivery allows for safer deployments by limiting the blast radius through canary or blue-green releases and automated metric-based rollbacks.

165
MCQmedium

What does the 'prune' setting in a GitOps controller do?

A.Removes unused Git branches
B.Automatically deletes resources from the cluster that are no longer in Git
C.Trims logs to save disk space
D.Limits the number of replicas
AnswerB

Pruning keeps the live state clean by removing orphaned objects.

Why this answer

Pruning ensures that resources not present in Git are removed from the cluster.

166
Multi-Selectmedium

Which THREE of the following actions occur during an ArgoCD sync operation?

Select 3 answers
A.Comparing live state vs desired state
B.Deleting all existing pods
C.Rebuilding the application image
D.Applying updates to the cluster
E.Fetching latest manifests from Git
AnswersA, D, E

Diff generation phase.

Why this answer

The controller fetches the latest from Git, compares the live state to Git (diff), and applies updates to the cluster.

167
Multi-Selecthard

Which THREE of the following are essential components of an effective GitOps 'Continuous Drift Detection and Correction' strategy?

Select 3 answers
A.Continuous comparison loop between cluster live state and Git desired state
B.Alerting or automated synchronization when drift is detected
C.Strict access control to prevent manual changes to the cluster
D.Regular manual audits of the cluster state
E.Using a CI-based push pipeline to update the cluster
AnswersA, B, C

Reconciliation is the engine of drift detection.

Why this answer

Drift detection requires a continuous comparison (reconciliation) between Git and the live cluster, alerting on differences, and optionally auto-remediating them.

168
MCQmedium

What is the best way to handle temporary, non-production overrides in a GitOps environment?

A.Hardcoding all variants into the base file using if/else statements.
B.Leaving the cluster in a drifted state.
C.Editing the base manifest and pushing it.
D.Using Kustomize overlays to apply overrides on top of the base configuration.
AnswerD

This is the standard and correct way to manage environment-specific configurations.

Why this answer

Using environment-specific overlays (e.g., Kustomize) allows you to maintain clean base manifests while having specific tweaks for test environments.

169
Multi-Selectmedium

Which TWO of the following are valid strategies for promoting an application from staging to production in GitOps? (Select two)

Select 2 answers
A.Deleting the application and recreating it.
B.Running a 'kubectl rollout undo' command manually.
C.Merging a pull request from a staging branch to a production branch.
D.Bypassing the CI/CD pipeline by pushing directly to the cluster.
E.Updating the environment-specific values file in the production directory.
AnswersC, E

This is a standard promotion practice.

Why this answer

Promotion strategies include changing the Git reference (branch/tag) or updating the values file within a single repository path.

170
Multi-Selectmedium

Which TWO of the following are common GitOps terminology used to describe the state of an application?

Select 2 answers
A.Temporary State
B.Desired State
C.Live State
D.Future State
E.Legacy State
AnswersB, C

The state described in Git.

Why this answer

'Desired' vs 'Live' (or 'Current') are standard terms in GitOps.

171
MCQeasy

Which of these is a valid 'GitOps' approach for multi-environment management?

A.Using separate directories or branches for different environments (e.g., /overlays/prod).
B.Ignoring environments and deploying everything to one namespace.
C.Using a single folder for all environments and using a script to toggle them.
D.Deploying directly to production using kubectl.
AnswerA

This is the standard, clean pattern for multi-environment GitOps.

Why this answer

Using different folders or branches for environment-specific configurations allows for clear separation and controlled deployments.

172
MCQeasy

What is the primary benefit of version controlling your cluster manifests?

A.It allows you to host files on your local desktop
B.It replaces the need for a database
C.It allows you to track, audit, and revert cluster changes
D.It speeds up node startup time
AnswerC

Version control is the foundation for reliable change management.

Why this answer

Version control provides an audit trail, rollback capability, and consistency.

173
MCQmedium

You are using Kustomize 'overlays' for environment promotion. If you need to add a specific label to all resources in production but not in staging, where should you define it?

A.In the 'overlays/production' kustomization.yaml file.
B.In the global GitOps config map.
C.By modifying the manifest manually after deployment.
D.In the 'base' directory kustomization.yaml file.
AnswerA

The overlay is the correct location for environment-specific customizations.

Why this answer

Kustomize overlays are designed to layer changes on top of a base. The production overlay allows for patching or adding specific labels that don't exist in the base.

174
MCQeasy

What is the primary benefit of using a 'Git Branch' promotion pattern over a 'Directory-based' promotion pattern?

A.It eliminates the need for CI pipelines.
B.It allows teams to use PRs to review configuration changes for specific environments.
C.It requires less storage space in the Git repository.
D.It automatically synchronizes all branches to the cluster simultaneously.
AnswerB

Branch isolation allows for formal review processes per environment, reducing the risk of configuration drift.

Why this answer

Branch-based promotion allows for better isolation of changes, enabling PR reviews for individual environments and preventing accidental merges to production.

175
MCQeasy

You are managing a large-scale deployment using the App-of-Apps pattern in Argo CD. Which resource type do you primarily use as the parent application to reference child application manifests?

A.Application
B.SyncPolicy
C.ArgoCD Project
D.AppProject
AnswerA

An Application resource acts as the parent container that synchronizes sub-applications.

Why this answer

The App-of-Apps pattern uses a root Application resource that points to a directory or Git repository containing multiple other Application resources.

176
MCQmedium

You are using Flux and need to ensure that specific resources are ignored by the reconciliation process. Which feature should you utilize?

A.Namespace-level network policies
B.Git commit filtering
C.Kustomization ignore annotations
D.ClusterRoleBinding exclusions
AnswerC

These annotations instruct the Flux controller to skip specific resources during sync.

Why this answer

Flux allows using annotations to mark resources as 'ignore' or 'skip' to prevent the operator from modifying them.

177
MCQeasy

What is the purpose of the 'SealedSecrets' custom resource?

A.Backing up Kubernetes secrets
B.Managing cluster-wide RBAC
C.Encrypting traffic between pods
D.Encrypting sensitive data for Git storage
AnswerD

It wraps secrets into an encrypted CRD.

Why this answer

It provides a way to commit encrypted secrets into Git that can only be decrypted by a controller running in the target cluster.

178
MCQeasy

You have a GitOps pipeline where you want to promote a change from Staging to Production. Using Argo CD, what is the recommended way to perform this promotion?

A.Update the ApplicationSet generator to point to a different branch.
B.Run 'argocd app sync' pointing to the staging image.
C.Update the version in the Git manifest for the Production Application and commit.
D.Use the 'kubectl patch' command on the production deployment.
AnswerC

This follows the GitOps principle of declarative state changes in Git.

Why this answer

Updating the image tag or configuration in the Production folder/branch within the Git repository is the standard GitOps way to trigger a promotion, as it maintains Git as the single source of truth.

179
MCQeasy

In the context of 'Configuration as Code', why is it considered a best practice to use a declarative manifest format (like YAML) rather than imperative commands?

A.It is easier to type YAML than complex CLI commands.
B.Declarative manifests represent the desired state, allowing for automated drift detection and reconciliation.
C.YAML files are automatically encrypted by the GitOps provider.
D.Imperative commands are not supported by the Kubernetes API.
AnswerB

This is the core definition and benefit of using declarative configuration in GitOps.

Why this answer

Declarative formats describe the end state, which allows the GitOps controller to calculate the diff and drift accurately.

180
MCQmedium

An organization uses Argo CD to manage Kubernetes clusters. A developer manually modifies a Deployment's replica count via kubectl. Which mechanism in Argo CD ensures this manual change is identified as non-compliant with the GitOps repository?

A.Git repository webhook
B.Kubernetes admission controllers
C.Kubernetes Garbage Collector
D.Argo CD Application Controller's reconciliation loop
AnswerD

The Argo CD controller continuously polls the cluster and Git to detect drift.

Why this answer

Argo CD continuously compares the live state of the cluster with the desired state defined in Git. When a discrepancy is detected, it reports the status as 'OutOfSync', performing drift detection.

181
MCQeasy

What does 'Declarative Configuration' imply in GitOps?

A.The system is defined by files that describe the desired final state
B.Only developers can access the system
C.The database is the source of truth
D.You must manually type every command
AnswerA

GitOps relies on manifests to define the target state.

Why this answer

It means specifying the desired state in files rather than using imperative commands.

182
Multi-Selecthard

Which THREE of the following are essential security practices for GitOps? (Select three)

Select 3 answers
A.Giving every developer direct 'cluster-admin' access.
B.Strict RBAC for both the Git repository and the Kubernetes cluster.
C.Using OPA Gatekeeper to enforce security policies on manifests.
D.Encrypting secrets before storing them in Git (e.g., SOPS).
E.Sharing the Git repository password with all cluster users.
AnswersB, C, D

This is foundational for secure operations.

Why this answer

GitOps security relies on repository access controls, secret management, and policy enforcement (like OPA) to ensure the system remains compliant.

183
MCQeasy

What does the status 'Healthy' mean in an Argo CD application?

A.The network is secure
B.The database is fully backed up
C.The application is running as expected in the cluster
D.The Git repository is updated
AnswerC

Health is the assessment of the live, running workload.

Why this answer

A 'Healthy' status indicates that the application is running as intended in the cluster.

184
MCQmedium

Which tool provides the most native integration for managing Kubernetes manifests using Kustomize within a GitOps workflow?

A.Terraform
B.Ansible
C.Jenkins
D.Argo CD
AnswerD

Argo CD natively supports Kustomize to render manifests before application.

Why this answer

Argo CD has native, first-class support for Kustomize overlays, allowing for environment-specific customization without needing external tools.

185
MCQhard

You are configuring Flux to manage a multi-tenant cluster. You need to ensure that specific namespaces only allow images from an internal registry. Which tool should you use to enforce this at admission time?

A.ArgoCD Notifications
B.Kyverno
C.Sealed Secrets
D.Flux Image Automation Controller
AnswerB

Kyverno policies can validate image registry sources during admission.

Why this answer

Kyverno is a Kubernetes-native policy engine that can restrict image registries via admission controllers.

186
MCQeasy

Which of the following is a core principle of GitOps?

A.Manual intervention is required to scale deployments.
B.Developers should have direct 'cluster-admin' access.
C.The system state is defined in a version-controlled repository.
D.The system state is defined by the latest CI pipeline execution.
AnswerC

This is the foundational definition of GitOps.

Why this answer

GitOps defines the desired state in a version-controlled repository, which acts as the 'single source of truth'.

187
MCQeasy

What is the primary role of the 'Reconciler' in a GitOps operator?

A.To delete old pods to save memory.
B.To send notifications to Slack.
C.To build images.
D.To match the actual state to the desired state.
AnswerD

This is the core loop of GitOps operators.

Why this answer

The reconciler continuously monitors the cluster and the target state (Git), identifying differences and applying actions to make the cluster match the Git definition.

188
MCQmedium

You are using Argo CD. A developer manually scales a Deployment replica count using 'kubectl scale'. What happens next in a standard GitOps implementation?

A.Argo CD sends an alert but does not revert the change.
B.The controller updates Git to reflect the new replica count.
C.The controller detects the drift and overwrites the manual change to match Git.
D.The change persists until the next Git commit.
AnswerC

This is the core behavior of automated drift correction.

Why this answer

The GitOps controller detects a mismatch between the live state and the Git-defined desired state and automatically reverts it.

189
Multi-Selectmedium

Which THREE of the following are benefits of the 'App-of-Apps' pattern? (Select three)

Select 3 answers
A.It enables hierarchical synchronization of applications.
B.It ensures all applications use the exact same image tag.
C.It allows for grouping applications by project or business unit.
D.It simplifies the management of large numbers of applications.
E.It eliminates the need for container registries.
AnswersA, C, D

The parent can coordinate the rollout of children.

Why this answer

App-of-Apps simplifies large scale management, allows for grouping of related services, and enables hierarchical control of GitOps deployments.

190
MCQmedium

A developer pushes a change to Git, but the cluster does not update. Which log source is most effective for debugging the pull-based mechanism?

A.The browser console of the user.
B.The logs of the GitOps controller (e.g., Argo CD repo-server or Flux controller).
C.The application's logs inside the pod.
D.The Git provider's audit logs.
AnswerB

The controller is responsible for pulling the state and applying it.

Why this answer

The controller logs contain information about the reconciliation process, including authentication or parsing errors.

191
MCQeasy

In a GitOps environment using Argo CD, what is the primary purpose of the reconciliation loop?

A.To automatically apply changes from the Git repository to the target Kubernetes cluster.
B.To perform unit testing on manifest files before they are merged.
C.To push new container images to the registry whenever a build completes.
D.To scale deployment replicas based on real-time traffic metrics.
AnswerA

The operator continuously polls Git to ensure the live state matches the desired state.

Why this answer

The reconciliation loop constantly compares the desired state in Git to the actual state in the cluster to identify and address configuration drift.

192
MCQmedium

Which scenario demonstrates the most effective way to manage environment-specific configurations in a large-scale GitOps setup?

A.Creating environment-specific branches and using a templating tool to apply overrides.
B.Storing all configurations in a single large YAML file.
C.Copying and pasting the entire manifest directory for each environment.
D.Ignoring environment differences and using the same values for everything.
AnswerA

This structure keeps configurations organized and maintainable.

Why this answer

Using a templating tool like Helm or Kustomize allows you to define a base application and apply patches for different environments without duplicating the entire manifest.

193
MCQmedium

A security auditor asks how your team handles secret management in a GitOps environment without exposing sensitive credentials in the Git repository. What is the standard GitOps practice for this requirement?

A.Use a tool like Bitnami Sealed Secrets to encrypt secrets that can be decrypted only by the cluster controller.
B.Create a separate private repository for secrets and clone it during the CI/CD pipeline execution.
C.Use Git LFS to encrypt the secret files before pushing them to the remote repository.
D.Store secrets in the repository as Base64 encoded environment variables.
AnswerA

Sealed Secrets allow secrets to be safely stored in Git while ensuring only the target cluster can decrypt them.

Why this answer

GitOps relies on tools like Sealed Secrets or external secret stores to inject credentials at runtime, keeping secrets out of the Git repository.

194
Multi-Selectmedium

Which TWO of the following are key features of the Flux Kustomization controller?

Select 2 answers
A.Reconciling Kubernetes manifests
B.Direct integration with Jenkins
C.Post-build variable substitution
D.Hosting a private Git server
E.Managing container image build pipelines
AnswersA, C

Core function of the controller.

Why this answer

The Kustomization controller reconciles manifests and supports post-build variable substitution.

195
MCQeasy

What is the primary role of an 'Immutable' state in a GitOps repository?

A.To increase the storage capacity of the cluster.
B.To allow the cluster to delete resources at will.
C.To force developers to use a specific IDE.
D.To ensure that historical configurations can be reliably rolled back.
AnswerD

Immutability is key to reproducible environments and quick recovery.

Why this answer

Immutability ensures that once a state is recorded, it cannot be tampered with, and historical states are reproducible.

196
MCQeasy

In the context of a CI/CD pipeline, where does the 'GitOps' bridge typically occur?

A.When the operator triggers the build.
B.When the developer logs into the cluster.
C.When the CI pipeline updates the manifest repository with the new image tag.
D.When the Git repo is deleted.
AnswerC

The commit to the Git repository acts as the trigger for the GitOps reconciliation loop.

Why this answer

The bridge occurs when the CI tool finishes the build and updates the Git repository with the new state, which the GitOps CD operator then picks up.

197
Multi-Selectmedium

Which TWO of the following are standard GitOps workflows for promoting changes?

Select 2 answers
A.Updating a manifest file in a 'production' directory
B.Running a manual script on the live server
C.Reinstalling the Kubernetes cluster
D.Using a UI wizard to bypass Git
E.Updating a Git tag to point to a new release
AnswersA, E

Promoting by file/folder change is a common pattern.

Why this answer

Promotion usually happens by updating manifests in different directories or branches.

198
MCQeasy

What is the primary role of the GitOps operator during the reconciliation phase?

A.Reporting the number of users connected to the cluster.
B.Deleting the Git repository to save space.
C.Continuously checking if the cluster matches the desired state in Git.
D.Compiling the application source code.
AnswerC

The operator ensures the cluster is always in sync with the repository.

Why this answer

The operator compares the actual state of the cluster with the desired state in Git and makes adjustments to match them.

199
MCQmedium

Why does GitOps encourage the use of small, frequent commits?

A.To force developers to spend more time on documentation.
B.To ensure the Git server doesn't crash.
C.To minimize the size of the Git repository.
D.To reduce the blast radius and simplify troubleshooting.
AnswerD

This is a standard DevOps and GitOps practice for risk reduction.

Why this answer

Small commits make it easier to identify the cause of failures, simplify rollbacks, and reduce the risk of large-scale outages.

200
MCQmedium

When configuring a GitOps pipeline, what should be done to manage sensitive data like API keys?

A.Store them in base64 encoded format in plain Git.
B.Leave them out of Git and manually inject them via kubectl.
C.Upload them to the cluster via the cloud provider's console.
D.Use a tool like Sealed Secrets to encrypt them before committing to Git.
AnswerD

Sealed Secrets allow secrets to be safely stored in public or private Git repositories.

Why this answer

Secrets should be stored in an encrypted format (like Sealed Secrets or an external secret store) within Git so they remain secure while still being part of the declarative configuration.

201
MCQmedium

What is the primary function of an 'ApplicationSet' in Argo CD?

A.To perform unit testing on manifests.
B.To automate the creation of Argo CD Applications.
C.To manage cluster security policies.
D.To automatically update the Git repo with new commits.
AnswerB

ApplicationSets simplify management for large-scale environments.

Why this answer

ApplicationSets allow for the automated generation of one or more applications from a single template, based on generators like Cluster, List, or Git.

202
MCQmedium

An organization is migrating to GitOps using Argo CD. During an audit, you notice that manual changes made directly to the Kubernetes cluster via kubectl are being reverted within minutes. Which component of the GitOps pipeline is performing this action?

A.The cluster ingress controller
B.The Argo CD API server
C.The Git webhook listener
D.The Application Controller
AnswerD

The Application Controller is responsible for the continuous reconciliation loop that detects and corrects drift.

Why this answer

The Application Controller in Argo CD continuously monitors the live state and compares it against the declared state in Git, initiating a sync to fix drift.

203
MCQmedium

When should you use Kustomize in a GitOps workflow?

A.To build container images.
B.To manage environment-specific overrides in a declarative way.
C.To delete all namespaces.
D.To perform load testing on the cluster.
AnswerB

Kustomize allows for 'base' and 'overlay' patterns perfectly suited for GitOps.

Why this answer

Kustomize is excellent for managing environment-specific configurations without duplicating base manifests.

204
MCQeasy

What is a 'GitOps Operator'?

A.A human user who manages Git
B.A controller that continuously reconciles Git with cluster state
C.A CI/CD pipeline server
D.A Git server provider
AnswerB

Continuous reconciliation is the core function of a GitOps operator.

Why this answer

An operator is a Kubernetes controller that continuously reconciles the cluster state with a source of truth in a Git repository.

205
MCQeasy

Which of the following is a primary benefit of using a GitOps pull-based model over a push-based CI/CD model?

A.Automatic code compilation within the cluster.
B.Removal of the need for external access to cluster credentials.
C.Support for imperative commands.
D.Faster deployment velocity.
AnswerB

The cluster controller pulls from Git, so credentials stay within the cluster boundary.

Why this answer

Pull-based models increase security by eliminating the need to expose cluster credentials to external CI/CD pipelines.

206
MCQmedium

You are implementing a GitOps workflow where the desired state is stored in a private repository. The Argo CD controller requires access to this repository. What is the most secure GitOps-compliant way to provide this access?

A.Grant the cluster node broad read access to all public repositories.
B.Use an environment variable in the Argo CD container deployment manifest.
C.Create a Kubernetes Secret containing the SSH key and reference it in the repository configuration.
D.Hardcode the credentials in the Application manifest.
AnswerC

This method follows the principle of least privilege and keeps credentials out of source control.

Why this answer

Using a Kubernetes Secret to store repository credentials allows for secure, native integration with the Argo CD controller.

207
MCQmedium

What happens when a resource's 'SyncPolicy' is set to 'Manual'?

A.The operator will delete the resource
B.The operator will stop watching the repository
C.The operator will report 'OutOfSync' until a human triggers the sync
D.The operator will automatically sync as soon as a change is detected
AnswerC

Manual sync requires an explicit user action.

Why this answer

The operator will detect the drift, but it will not automatically apply the changes to the cluster until a user clicks 'Sync'.

208
MCQeasy

What is the primary role of the 'Git' repository in the GitOps cycle?

A.To monitor the health of the nodes.
B.To manage user identities.
C.To store container binary files.
D.To be the single source of truth for the desired system state.
AnswerD

Every change must be in Git to be reflected in the cluster.

Why this answer

It serves as the single source of truth for the entire cluster configuration.

209
MCQhard

You are using Argo Rollouts for progressive delivery. You want to execute a 'AnalysisRun' before switching traffic. Where is the 'AnalysisTemplate' defined?

A.In the Argo CD global configuration file.
B.As a Kubernetes resource in Git.
C.Hardcoded in the application binary.
D.By the Service Mesh control plane directly.
AnswerB

These are managed as standard K8s manifests.

Why this answer

The AnalysisTemplate is a Kubernetes resource that defines the metric queries and thresholds. It is often stored in the same Git repository as the application manifests.

210
MCQhard

In a multi-cluster GitOps environment, you are using the ApplicationSet controller with a 'Cluster Generator'. You need to add a new cluster dynamically without modifying the ApplicationSet manifest. How should you achieve this?

A.Update the ApplicationSet manifest via a manual Git commit.
B.Add a secret with the label 'argocd.argoproj.io/secret-type: cluster' to the management cluster.
C.Execute 'argocd cluster add' via the CLI.
D.Modify the 'clusters.yaml' file in the root Git repository.
AnswerB

Argo CD automatically discovers clusters defined by these secrets.

Why this answer

The Cluster Generator can watch for new Kubernetes Secrets with the label 'argocd.argoproj.io/secret-type: cluster'. Once a new secret is added with this label, the controller automatically detects it and deploys the applications.

211
MCQmedium

Your team wants to implement GitOps. Which of the following is a critical prerequisite for 'Drift Detection' to be effective?

A.The cluster must have an external load balancer exposed to the internet.
B.The operator must have read access to the Git repository and the cluster's current live state.
C.Developers must manually commit to Git every time a pod restarts.
D.The Git repository must contain the running container images themselves.
AnswerB

Comparison requires access to both the source (Git) and the target (Cluster).

Why this answer

For an operator to detect drift, it must be able to periodically compare the live state in the cluster against the specific declarative manifests stored in Git.

212
Multi-Selectmedium

When implementing multi-cluster GitOps, which THREE components are critical for success? (Select three)

Select 3 answers
A.Secure communication channel (e.g., mTLS/VPN) between management and targets.
B.A centralized management cluster (Hub).
C.A shared database for all clusters to store secrets.
D.Environment-specific configuration separation (e.g., Kustomize overlays).
E.Uniform network latency across all clusters.
AnswersA, B, D

This is required for the controller to talk to the API server.

Why this answer

A robust multi-cluster strategy requires a centralized management plane, a way to handle environment-specific differences, and secure connectivity between the hub and spoke clusters.

213
MCQhard

When implementing GitOps, what is the 'GitOps Operator' pattern specifically meant to solve?

A.It automates the building of Docker images.
B.It replaces the need for a Git repository.
C.It provides a user interface for cluster management.
D.It eliminates the need for any manual interaction with the cluster.
AnswerD

By automating the reconciliation, the operator ensures that the desired state is maintained without manual intervention.

Why this answer

The operator pattern solves the problem of drift by constantly reconciling the running state of the cluster with the desired state stored in version control.

214
Multi-Selecthard

Which THREE features of Kubernetes are commonly used to support GitOps?

Select 3 answers
A.The Kubernetes API for resource management.
B.Node labels for scheduling.
C.Namespaces for configuration isolation.
D.RBAC for restricting access.
E.The cluster's internal clock synchronization.
AnswersA, C, D

The mechanism for applying state.

Why this answer

GitOps relies on the Kubernetes API, Namespaces for isolation, and RBAC to secure the controller's access.

215
Multi-Selectmedium

Which THREE of the following are effective ways to handle 'Configuration Drift' in a GitOps environment? (Select three)

Select 3 answers
A.Use Admission Controllers to block manual modifications.
B.Monitor 'OutOfSync' status via dashboards or alerts.
C.Deleting the cluster and recreating it daily.
D.Manual syncing every hour to fix issues.
E.Enable self-healing/automated sync in the GitOps operator.
AnswersA, B, E

This prevents drift before it happens.

Why this answer

Drift can be managed by enabling self-healing, using admission controllers to block non-Git changes, and regular auditing/monitoring of the sync status.

216
MCQeasy

A team is transitioning from traditional imperative scripts to declarative Configuration as Code. Which approach best satisfies the GitOps principle of using a desired state definition?

A.Using bash scripts triggered by a Jenkins build job to update environment variables.
B.Directly editing deployments via the 'kubectl edit' command.
C.Storing Kubernetes YAML manifests in a Git repository and using an operator to synchronize them.
D.Using an Ansible playbook to perform one-off configuration changes on existing servers.
AnswerC

This is the core definition of GitOps, using declarative files as the source of truth.

Why this answer

GitOps requires that the desired state be declared in a version-controlled repository to ensure traceability and auditability.

217
MCQeasy

Which of these is the most suitable tool to use as the 'Git' component of GitOps?

A.A standard Git repository (e.g., GitHub, GitLab).
B.A container registry.
C.A local text file on the cluster nodes.
D.A relational database.
AnswerA

Git's branching, merging, and history are fundamental to GitOps.

Why this answer

Any standard Git-compatible server like GitHub, GitLab, or Bitbucket provides the necessary features for GitOps.

218
MCQmedium

When promoting an application from staging to production using the 'GitOps directory' pattern, what is the most robust way to ensure environment-specific configurations are applied correctly?

A.Using Kustomize overlays for each environment
B.Hardcoding environment names inside the main deployment file
C.Dynamic shell scripting in the CI pipeline
D.multiple_choice
E.Copy-pasting YAML files across folders
AnswerA

Overlays are the standard GitOps pattern for maintaining environment-specific differences from a common base.

Why this answer

Using Kustomize overlays allows for a base configuration with environment-specific patches, ensuring no drift between environments.

219
Multi-Selectmedium

Which TWO of the following are common pitfalls when integrating DevSecOps into a GitOps pipeline?

Select 2 answers
A.Using multiple branches in Git.
B.Skipping vulnerability scans for Kubernetes manifests.
C.Setting up an automated reconciliation operator.
D.Storing unencrypted secrets directly in the Git repository.
E.Automating the deployment of code changes.
AnswersB, D

This allows insecure configurations to be deployed into the cluster.

Why this answer

Failing to scan the manifests in the pipeline and leaving secrets in plain text are common GitOps security failures.

220
Multi-Selecteasy

Which TWO of the following are essential when using Helm in a GitOps workflow? (Select two)

Select 2 answers
A.Ignoring the chart dependencies.
B.Defining environment-specific overrides in values files.
C.Installing Helm manually on every node in the cluster.
D.Always using the 'latest' version of the chart.
E.Storing the Helm chart and values in a Git repository.
AnswersB, E

This is required for environment promotion.

Why this answer

GitOps with Helm requires versioning charts and tracking the specific values files used for each deployment environment.

221
Multi-Selecthard

When using Kyverno, which THREE of the following can be used to validate Kubernetes resources?

Select 3 answers
A.SQL queries
B.Bash scripting
C.Conditional logic (if/then)
D.Pattern matching
E.JMESPath expressions
AnswersC, D, E

Allows complex validation rules.

Why this answer

Kyverno uses patterns, variable expressions, and conditional logic to define validation rules.

222
Multi-Selectmedium

Which TWO of the following are common benefits of using a 'GitOps Operator'? (Select two)

Select 2 answers
A.They manually restart the server every time a change is detected.
B.They require the user to have cluster-admin privileges to see the logs.
C.They provide a single, declarative source of truth.
D.They automate the drift detection and correction loop.
E.They eliminate the need for container images.
AnswersC, D

This is a key benefit.

Why this answer

Operators provide continuous reconciliation of state and enable declarative management, reducing manual operational burden.

223
MCQmedium

Which practice represents the 'DevSecOps' aspect in a GitOps pipeline?

A.Conducting quarterly penetration tests.
B.Enforcing policy constraints via OPA/Gatekeeper that validate manifests against security rules.
C.Requiring a manual sign-off by a security officer for every deployment.
D.Storing secrets in plain text in the Git repository.
AnswerB

This automates security policy enforcement within the delivery flow.

Why this answer

Policy-as-code tools like OPA/Gatekeeper allow for security policies to be versioned in Git and enforced automatically during the deployment process.

224
MCQhard

You are configuring an automated GitOps pipeline. How do you prevent 'drift' from occurring due to out-of-band changes?

A.By manually disabling 'kubectl' access for all users.
B.By enabling automated self-healing in the GitOps controller.
C.By storing the state in a central database instead of Git.
D.By setting up a cron job to restart the cluster daily.
AnswerB

Self-healing forces the cluster to align with the Git-defined desired state.

Why this answer

Enabling automated self-healing (or auto-sync) in the GitOps controller ensures that any unauthorized cluster changes are automatically reverted.

225
MCQmedium

Which mechanism is used in a GitOps workflow to ensure that a 'Canary' deployment successfully rolls back if error rates spike?

A.Kubernetes Liveness Probes.
B.Argo Rollouts 'pause' condition.
C.Git revert commands via CI/CD.
D.Flagger AnalysisTemplates.
AnswerD

These templates define the thresholds and rollback logic for progressive delivery.

Why this answer

Flagger monitors metrics via a provider (e.g., Prometheus) during the canary phase. If thresholds are exceeded, it automatically triggers a rollback to the previous version.

Page 2

Page 3 of 5

Page 4

All pages