Courseiva

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

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

Page 3

Page 4 of 5

Page 5
226
MCQeasy

What is the primary function of an 'Operator' in the context of GitOps?

A.Automating the reconciliation process within the cluster
B.Hosting the Git repository
C.Writing application code
D.Executing SQL queries
AnswerA

Operators continuously reconcile the live state with the desired state.

Why this answer

An operator is a Kubernetes controller that manages the lifecycle of applications by reconciling state.

227
MCQhard

What is the difference between a 'Sync' and a 'Refresh' in Argo CD?

A.Refresh updates the application status; Sync applies changes to the cluster
B.Sync is for reading; Refresh is for writing
C.Refresh is for Git; Sync is for the cloud provider API
D.They are the same thing
AnswerA

Refresh pulls metadata; sync performs the state transition.

Why this answer

A refresh updates the application status from the Git repo, while a sync actually applies changes to the cluster.

228
MCQmedium

An application is failing because a developer accidentally edited a ConfigMap in the cluster directly. Which GitOps feature prevents this from recurring?

A.Role-Based Access Control (RBAC).
B.Continuous reconciliation.
C.External DNS.
D.CI/CD pipeline triggers.
AnswerB

The controller continually reconciles the cluster with Git, reverting manual changes.

Why this answer

Automated self-healing/reconciliation ensures that any direct modifications are overwritten by the Git state.

229
MCQmedium

What is the impact of enabling 'selfHeal' in an Argo CD Application sync policy?

A.It automatically creates backups of the cluster state.
B.It automatically patches the application with the latest security updates.
C.It disables the UI for that application.
D.It automatically reverts manual changes to the cluster.
AnswerD

This is the definition of self-healing in Argo CD.

Why this answer

If 'selfHeal' is true, Argo CD will automatically overwrite any manual changes made to the cluster, reverting it to the Git-defined state.

230
MCQhard

How does an operator manage 'Secrets' in a GitOps repository?

A.By disabling secrets entirely
B.By using specialized tools or controllers to decrypt secrets at runtime
C.By storing them as plain text in the repo
D.By hardcoding them in the application code
AnswerB

Tools like SealedSecrets allow encrypted secrets to be stored in Git safely.

Why this answer

Since secrets shouldn't be in plaintext, GitOps tools use tools like SealedSecrets or external providers to inject them at runtime.

231
Multi-Selecthard

When using SOPS with Age, which THREE of the following are true regarding key management?

Select 3 answers
A.Multiple public keys can be added to one SOPS file
B.Private keys must be stored securely in the cluster
C.Age keys require an external KMS
D.Only one person can decrypt the files
E.Public keys are used for encryption
AnswersA, B, E

Allows team-based access control.

Why this answer

Age keys are file-based, can be stored as Kubernetes secrets, and allow for multiple public keys for team access.

232
MCQmedium

Why would you choose to use 'Kustomize' over 'Helm' in a GitOps workflow?

A.Because it avoids complex templating logic.
B.Because Kustomize is the only tool Argo CD supports.
C.Because it supports more advanced logic than Helm.
D.Because Kustomize requires a server-side component.
AnswerA

Kustomize's simplicity is its primary advantage.

Why this answer

Kustomize is template-free, meaning it uses raw YAML, which is often easier to debug and avoids the 'helm hell' of deeply nested template complexity.

233
MCQhard

In a blue-green progressive delivery deployment using Flagger, you notice that the 'primary' service is not receiving traffic even after the analysis successfully completes. What is the most likely cause?

A.The analysis template lacks the 'weight' parameter
B.The Flagger controller is in 'paused' mode
C.The VirtualService or HTTPRoute is not pointing to the primary service
D.The canary resource is missing a 'host' definition
AnswerC

If the traffic router is not updated to point to the primary service, traffic remains on the canary or old version.

Why this answer

Flagger requires the primary service to be defined correctly for traffic shifting to occur.

234
MCQhard

You are architecting a multi-cluster deployment. What is the benefit of using an 'Operator' based architecture over a standard CI/CD Push approach in this context?

A.It allows the CI pipeline to run faster by offloading deployment tasks.
B.It removes the need to store sensitive cluster administrative credentials in an external CI/CD tool.
C.It ensures that the Git repository is automatically updated with the latest cluster metrics.
D.It forces developers to use the CLI for all infrastructure changes.
AnswerB

By pulling from within, the cluster does not need to expose an API endpoint to an external CI tool's service account.

Why this answer

Operator-based GitOps keeps the cluster-specific credentials inside the cluster itself, rather than needing to store them in an external CI system.

235
MCQhard

You need to ensure that no one can modify cluster resources manually. How can you implement this in a GitOps-mature organization?

A.Remove cluster-admin access from all users except the GitOps controller.
B.Install a plugin that logs all kubectl commands.
C.Add a firewall rule to block kubectl.
D.Disable the Kubernetes API server.
AnswerA

This enforces the GitOps principle that all changes must flow through Git.

Why this answer

Removing manual 'write' access is the final stage of GitOps maturity, relying on the automated controller to apply changes.

236
Multi-Selectmedium

Which TWO of the following are NOT recommended in a GitOps workflow?

Select 2 answers
A.Automated reconciliation of state
B.Manual changes via kubectl
C.Storing plain-text secrets in the repository
D.Using Git as a source of truth
E.Using pull requests for code changes
AnswersB, C

Manual changes cause drift and bypass audit trails.

Why this answer

Manual changes and plain-text secrets are anti-patterns.

237
Multi-Selecthard

Which THREE of the following are valid ways to trigger a sync in a GitOps environment?

Select 3 answers
A.Pushing a commit to the Git repository
B.Manually clicking 'Sync' in the dashboard
C.Logging into the node via SSH
D.Restarting the Kubernetes API server
E.Sending a webhook notification from the Git provider
AnswersA, B, E

The operator detects the new commit and triggers the sync.

Why this answer

Syncing can be manual, automated via commit, or triggered by a webhook.

238
MCQhard

You are implementing GitOps for a legacy application. Why might this be challenging?

A.GitOps doesn't support Java applications.
B.The cluster API is too slow for legacy apps.
C.Legacy applications often lack declarative configuration files.
D.Git servers cannot store old code.
AnswerC

The effort to convert imperative installs into declarative manifests is often the biggest hurdle.

Why this answer

Legacy applications often lack declarative definitions and might require manual setup steps that are difficult to automate.

239
Multi-Selecthard

Which THREE of the following are core responsibilities of a GitOps operator?

Select 3 answers
A.Detecting drift between the cluster state and the Git source
B.Writing CI/CD build scripts
C.Executing manual kubectl commands for developers
D.Applying necessary changes to reconcile the live state with the desired state
E.Continuously monitor the declared state in the repository
AnswersA, D, E

Drift detection is the primary function of the reconciliation loop.

Why this answer

Operators are designed to observe, analyze, and act to reconcile differences.

240
MCQmedium

You are using ArgoCD to deploy an application. You notice that the Application status remains 'OutOfSync' even after manual refreshes. Which feature should you examine to determine if the controller is failing to reach the cluster API?

A.Project settings
B.ArgoCD App Details event log
C.ApplicationSet controller logs
D.Git repository webhooks
AnswerB

The events log captures controller-side errors related to sync status.

Why this answer

The 'App Details' view under the 'Sync' tab or the 'Events' log in the ArgoCD UI provides specific error messages regarding API connectivity and reconciliation failures.

241
MCQhard

In a GitOps environment, what is the role of a 'CI Pipeline'?

A.To replace the GitOps operator
B.To validate changes and commit them to the GitOps repo
C.To execute the reconciliation loop
D.To handle user authentication for the cluster
AnswerB

CI acts as the gatekeeper for the source of truth.

Why this answer

The CI pipeline prepares the deployment manifests, which are then picked up by the CD GitOps operator.

242
Multi-Selectmedium

Which TWO practices are recommended when managing Git repositories for GitOps?

Select 2 answers
A.Using directory structures to separate environmental configurations.
B.Structuring manifests logically for readability and maintenance.
C.Hardcoding all credentials in the manifest.
D.Committing direct changes to the 'main' branch.
E.Storing all environments (dev/prod) in a single file.
AnswersA, B

Organizes state for different environments.

Why this answer

Best practices include using small, focused repositories and clear directory structures for environment separation.

243
MCQmedium

When using OPA Gatekeeper for policy enforcement, what resource is used to define the actual logic of the policy?

A.AdmissionRule
B.GatekeeperConfig
C.PolicyDefinition
D.ConstraintTemplate
AnswerD

This defines the Rego code for the policy.

Why this answer

A 'ConstraintTemplate' defines the Rego logic, while a 'Constraint' applies that logic to specific Kubernetes objects.

244
Multi-Selectmedium

Which TWO of the following are common reasons for a deployment to be marked as 'Degraded' by Argo CD? (Select two)

Select 2 answers
A.The user manually changed a label.
B.The health checks defined for the application are failing.
C.The Argo CD controller is overloaded.
D.The Git repository is temporarily offline.
E.The application pods are in a 'CrashLoopBackOff' state.
AnswersB, E

If the resource fails health checks, it is 'Degraded'.

Why this answer

'Degraded' status often occurs when pods fail to start (e.g., CrashLoopBackOff) or when health checks defined in the manifest are not met.

245
Multi-Selectmedium

Which THREE of the following are standard ways to organize a Git repository for a multi-tenant environment? (Select three)

Select 3 answers
A.Storing all secrets in plain text in the root folder.
B.Using labels to filter resources for different tenants.
C.Separate Git repository per business unit/tenant.
D.Folder-per-environment structure within one repository.
E.Hardcoding all cluster IPs in a single global config.
AnswersB, C, D

This is a common way to manage multitenancy.

Why this answer

Organization patterns include project-based repos, environment-based folders, or using ApplicationSets to dynamically separate tenants.

246
MCQmedium

Your organization wants to implement DevSecOps by integrating security scanning into a GitOps pipeline. Where should the vulnerability scan happen to prevent insecure configurations from ever reaching the cluster?

A.Only when an auditor requests a security report.
B.By running an automated script to delete pods that fail a security check.
C.During the CI phase, scanning the Kubernetes manifests for security misconfigurations before merging.
D.As a post-deployment check using a Kubernetes admission controller.
AnswerC

Scanning manifests in the CI pipeline allows for blocking insecure PRs before they are merged to main.

Why this answer

Shifting left means scanning code before it is applied to the cluster, ensuring the Git repository acts as a gatekeeper.

247
MCQhard

You are managing a global cluster setup with GitOps. How do you handle configuration that must be identical across all clusters while allowing for regional variations?

A.Only having one cluster.
B.Using a base-overlay structure where the base contains common settings and overlays contain regional variations.
C.Duplicating the configuration for every cluster.
D.Using global variables in a shell script to modify manifests.
AnswerB

This is the standard, scalable way to handle shared and unique configurations.

Why this answer

Base/overlay patterns (like Kustomize) allow you to define a common base and apply regional overlays to handle unique settings.

248
MCQeasy

In a GitOps environment, what is the main purpose of maintaining Infrastructure as Code?

A.To avoid using cloud provider dashboards.
B.To generate cost reports for the finance department.
C.To ensure that infrastructure can be defined, tracked, and automatically reconciled from Git.
D.To allow developers to log into servers and make changes.
AnswerC

IaC provides the declarative foundation necessary for GitOps.

Why this answer

IaC allows the entire infrastructure stack to be versioned, audited, and recreated reliably, mirroring the application deployment process.

249
Multi-Selecthard

Which THREE of the following represent key concepts in 'GitOps'?

Select 3 answers
A.Infrastructure as Code (IaC)
B.Manual intervention for every change
C.Direct terminal access to production
D.Automated Reconciliation
E.Git as the Source of Truth
AnswersA, D, E

IaC is the core foundation for GitOps manifests.

Why this answer

GitOps is defined by declarative infrastructure, version control, and automated reconciliation.

250
MCQeasy

Which GitOps tool provides a dedicated CLI called 'argocd'?

A.Kyverno
B.Flux
C.Helm
D.ArgoCD
AnswerD

The 'argocd' CLI is the standard interaction tool.

Why this answer

ArgoCD provides a powerful CLI tool for interacting with the ArgoCD API, managing applications, and checking sync states.

251
MCQeasy

What does the status 'OutOfSync' indicate in Argo CD?

A.The live resources are not identical to the Git manifests
B.The Git repository is empty
C.The application is running out of memory
D.The Argo CD server is offline
AnswerA

This status signifies a discrepancy between desired and actual state.

Why this answer

It means the live state of the resources in the cluster does not match the desired state in the Git repository.

252
Multi-Selecthard

Which THREE of the following are common challenges when scaling GitOps to hundreds of clusters? (Select three)

Select 3 answers
A.The need for a dedicated team just to write Dockerfiles.
B.Automatic rollbacks when the Git repo is empty.
C.Performance degradation of the central GitOps controller.
D.Increased dependency on internet speed.
E.The complexity of secret management across multiple environments.
AnswersB, C, E

If not configured properly, empty repos can trigger unintended removals.

Why this answer

Scaling challenges include managing the overhead of the controller, handling secret distribution, and ensuring that temporary outages do not lead to massive drift across the fleet.

253
MCQeasy

If you want to view the history of changes made to your cluster configuration, where should you look in a GitOps model?

A.The cluster event logs
B.The developer's local workstation
C.The cloud provider billing dashboard
D.The Git repository commit history
AnswerD

The commit history is the canonical log of every change made to the system.

Why this answer

Because Git is the source of truth, the git log provides a complete history of all configuration changes.

254
Multi-Selectmedium

When evaluating ArgoCD vs Flux, which TWO of the following are distinct advantages of using Flux?

Select 2 answers
A.Built-in web-based graphical dashboard
B.RBAC managed via UI
C.Visual sync waves
D.Modular, controller-based architecture
E.Native support for multi-repo reconciliation
AnswersD, E

Flux is composed of specialized controllers.

Why this answer

Flux is known for its modular controller-based architecture and its ability to handle multi-repo environments effectively without a centralized UI overhead.

255
Multi-Selecthard

Which THREE of the following are benefits of using a GitOps operator for CD?

Select 3 answers
A.Automatic creation of development environments
B.Continuous synchronization of desired state
C.Increased visibility into drift
D.Reduced reliance on external CI system credentials
E.Requirement for manual approvals on every sync
AnswersB, C, D

The operator ensures the cluster is always in the target state.

Why this answer

Operators provide continuous, secure, and automated deployment.

256
Multi-Selectmedium

An organization is implementing GitOps across its infrastructure using Kubernetes and Flux. Which TWO statements accurately describe core characteristics of the 'Automated Pull-Based Reconciliation' principle?

Select 2 answers
A.Reconciliation automatically corrects drift when actual live cluster state deviates from desired Git state.
B.The Git repository initiates an inbound SSH connection to cluster worker nodes to push manifest updates.
C.An agent deployed inside the managed cluster periodically polls the Git repository for state changes.
D.Cluster administrative credentials must be stored inside external CI system secret stores.
E.Reconciliation requires direct human approval at the terminal for every individual resource sync.
AnswersA, C

Continuous drift detection and self-healing correction are fundamental aspects of the pull-based reconciliation loop.

Why this answer

In automated pull-based reconciliation, an in-cluster agent monitors the target state in Git and compares it to live state, pulling updates without exposing external cluster inbound management ports.

257
Multi-Selectmedium

Which TWO tools are commonly associated with the 'GitOps' ecosystem?

Select 2 answers
A.Docker Desktop.
B.Nginx.
C.Prometheus.
D.Argo CD.
E.Flux.
AnswersD, E

Leading GitOps controller.

Why this answer

Argo CD and Flux are the two most prominent Kubernetes-native GitOps controllers.

258
MCQmedium

In a large enterprise, why is GitOps preferred for multi-cluster environments?

A.It enables developers to bypass security controls in dev clusters.
B.It automatically scales the nodes in all clusters.
C.It eliminates the need for any monitoring tools.
D.It allows a single source of truth to manage configuration consistency across all clusters.
AnswerD

This minimizes configuration drift and ensures standardized environments.

Why this answer

GitOps allows a single repository to define the state for multiple clusters, ensuring consistency across environments.

259
MCQmedium

In a GitOps environment, what is the best strategy for managing external dependencies (like Helm charts)?

A.Pinning the version of the Helm chart in your Git repository.
B.Always pulling the latest version from the remote Helm repository.
C.Ignoring the chart version and hoping it stays compatible.
D.Manually downloading the chart to every node.
AnswerA

Pinning dependencies ensures consistency across environments.

Why this answer

Storing the specific version of the Helm chart in the GitOps configuration ensures that the deployment remains reproducible.

260
MCQeasy

A developer updates a Helm release values file in Git to change a ConfigMap key. How does the GitOps pull-based agent determine that reconciliation is necessary?

A.The container registry notifies the GitOps agent whenever a ConfigMap is altered in the source code.
B.The Kubernetes API server continuously queries the Git repository directly without using any controller.
C.The agent continuously compares the target Git repository commit SHA and state against the cluster's actual state.
D.The agent receives an SSH trigger sent manually by the developer from their workstation.
AnswerC

Continuous comparison of the desired state in Git (tracked via commit SHAs) against the observed live state drives the reconciliation loop.

Why this answer

The pull-based GitOps agent periodically polls or receives webhooks from the Git repository, comparing the target Git revision (SHA or tag) and contents against the current state stored/deployed in the cluster.

261
Multi-Selecthard

When configuring Kyverno policies to secure a cluster, which TWO of the following actions can a policy perform?

Select 2 answers
A.Enforce policies by blocking requests
B.Provision new clusters
C.Manage Git repository webhooks
D.Automatically upgrade cluster nodes
E.Audit policies to report non-compliance
AnswersA, E

Policies can perform validation/mutation.

Why this answer

Kyverno policies can block unauthorized changes (enforce) or simply log them for reporting purposes (audit).

262
MCQmedium

When mapping traditional CI/CD to GitOps, which component from the traditional world is often 'decommissioned' or replaced?

A.The container registry.
B.The build tool (e.g., Maven/npm).
C.The Git version control system.
D.The imperative CD deployment scripts (e.g., shell scripts that run 'kubectl apply').
AnswerD

The GitOps operator replaces the need for imperative deployment scripts.

Why this answer

The 'deployment' logic in the traditional CI/CD server (like Jenkins/GitLab CI) is often replaced by the GitOps operator, which handles the deployment logic autonomously.

263
Multi-Selectmedium

Which TWO of the following are primary benefits of adopting a GitOps 'Pull' model compared to a 'Push' model? (Choose two)

Select 2 answers
A.It simplifies the initial setup of CI/CD pipelines.
B.It improves security by removing the need for long-lived cluster credentials in external CI systems.
C.It reduces the total number of containers running in the cluster.
D.It eliminates the need for exposing the Kubernetes API server to external CI/CD tools.
E.It ensures that manual cluster changes are automatically committed to the Git repository.
AnswersB, D

Credentials stay internal, reducing the attack surface.

Why this answer

Pull models enhance security by removing the need for external access to the cluster and improve reliability through continuous, self-healing reconciliation.

264
Multi-Selecthard

Which THREE of the following are essential tasks when implementing SOPS with GitOps?

Select 3 answers
A.Enabling Git LFS for encrypted files
B.Running a custom CI/CD build to decrypt
C.Configuring the KMS or local key (e.g., Age)
D.Storing the private key in the cluster as a secret
E.Creating a .sops.yaml config file
AnswersC, D, E

Required for encryption/decryption.

Why this answer

You must create the encryption key, integrate with the GitOps tool (Flux/Argo), and ensure the key is available to the controller as a Secret.

265
Multi-Selectmedium

Which TWO of the following are true about ArgoCD ApplicationSets?

Select 2 answers
A.They support multi-cluster generators
B.They are only for local clusters
C.They handle container image builds
D.They automate application creation
E.They replace the need for Git
AnswersA, D

Can deploy to multiple clusters based on rules.

Why this answer

ApplicationSets automate the generation of applications and support multi-cluster deployment via generators.

266
Multi-Selecteasy

Which THREE of the following are common GitOps tools used in the CNCF ecosystem?

Select 3 answers
A.Crossplane.
B.Flux.
C.Apache HTTP Server.
D.Argo CD.
E.MySQL.
AnswersA, B, D

Enables GitOps for infrastructure management.

Why this answer

Argo CD, Flux, and Crossplane are recognized GitOps-focused tools.

267
Multi-Selecthard

Which TWO of the following configurations are necessary to ensure that GitOps-managed clusters in a multi-cluster setup remain isolated from one another? (Select TWO)

Select 2 answers
A.Disabling the GitOps controller on the management cluster.
B.Implementing unique namespaces for each application.
C.Restricting cluster destinations in the AppProject object.
D.Using the same Git repository for all clusters.
E.Enabling 'automated.prune' on all applications.
AnswersB, C

Namespace isolation is critical for preventing cross-application interference.

Why this answer

Using dedicated AppProjects per cluster and strict namespace-level RBAC ensures that GitOps controllers cannot accidentally deploy or interfere with resources in unauthorized clusters.

268
MCQmedium

What is the recommended way to handle secrets in GitOps?

A.Commit them directly to the repo in a private branch.
B.Use an encrypted secret operator like SealedSecrets.
C.Create them manually using kubectl.
D.Store them in base64 in Git.
AnswerB

SealedSecrets keeps the secret encrypted in Git, decryptable only in the cluster.

Why this answer

Secrets should never be stored in plaintext. Tools like SealedSecrets or HashiCorp Vault integration are standard.

269
Multi-Selecthard

Which THREE strategies are effective for managing configuration at scale in a GitOps environment?

Select 3 answers
A.Copying the entire deployment configuration for every single environment.
B.Organizing manifests into a hierarchical directory structure.
C.Using Kustomize to layer common configuration with environment-specific overrides.
D.Using Helm charts to parameterize deployments.
E.Storing all configurations in a single root-level file.
AnswersB, C, D

This allows for logical grouping and easier configuration management.

Why this answer

Scalable GitOps uses base/overlay patterns, environment-specific directories, and parameterization to keep manifests maintainable.

270
MCQmedium

When a GitOps tool reports a 'Sync Error', what is the most likely cause?

A.The Git repository is deleted
B.The cluster has too many nodes
C.The manifest contains invalid Kubernetes syntax
D.The network latency is high
AnswerC

Malformed YAML prevents the API server from accepting the resource.

Why this answer

Sync errors often result from resource conflicts or permission issues when applying manifests.

271
MCQmedium

When setting up a multi-cluster GitOps pattern, what is the benefit of using 'Cluster Labels' in ApplicationSets?

A.It increases the speed of the Git clone.
B.It allows dynamic targeting of clusters based on attributes.
C.It reduces the number of namespaces required.
D.It encrypts the communication between clusters.
AnswerB

This enables flexible and automated cluster management.

Why this answer

Cluster labels allow you to dynamically select which clusters to deploy to based on attributes (e.g., env=prod), providing a scalable way to target subsets of your infrastructure.

272
MCQmedium

In an ArgoCD environment, you notice that a specific set of resources is being ignored during sync. What field in the 'argocd-cm' ConfigMap or the Application manifest is likely responsible?

A.syncPolicy.automated.prune
B.resource.exclusions
C.ignoreDifferences
D.selfHeal
AnswerC

This field explicitly tells ArgoCD to ignore specified fields.

Why this answer

The 'ignoreDifferences' field allows users to exclude specific fields or resource paths from the sync reconciliation process.

273
MCQhard

In a GitOps workflow, how does an operator handle a situation where a user manually deletes a resource that is defined in Git?

A.It creates an alert and waits for manual intervention
B.It updates the Git repository to reflect the deletion
C.It automatically recreates the resource
D.It blocks all future deployments until a reset occurs
AnswerC

The operator identifies that the live state is missing the resource and applies the Git manifest.

Why this answer

The reconciliation loop detects the absence of the resource and redeploys it to match the source of truth.

274
MCQhard

How does the GitOps pattern simplify the audit process for a regulatory environment?

A.It provides a clear audit trail in Git by linking every state change to a commit and a user.
B.It moves all audit logs to the cluster memory.
C.It requires manual documentation of every change.
D.It removes the need for logs.
AnswerA

The Git log satisfies audit requirements by showing the history of all changes.

Why this answer

Git history provides an immutable log of who changed what and when, serving as a complete audit trail for compliance teams.

275
MCQmedium

When mapping a traditional CI/CD pipeline to GitOps, what is the primary role of the CD tool?

A.Reconciling the running state of the cluster with the declarative state defined in Git.
B.Pushing binary artifacts to a server via SSH.
C.Pushing images to a container registry after a build.
D.Generating test reports for the QA team.
AnswerA

The GitOps operator continuously monitors Git and applies changes to match the desired state.

Why this answer

In GitOps, the CD tool acts as a continuous reconciler that pulls changes from Git to match the cluster state.

276
MCQhard

In GitOps, what does 'Self-Healing' mean?

A.The cluster reboots itself if it runs out of memory.
B.The controller replaces manual changes with the state from Git.
C.The application restarts if a pod crashes.
D.The developer re-pushes the code to fix the bug.
AnswerB

This is the definition of GitOps self-healing.

Why this answer

Self-healing refers to the ability of the GitOps controller to automatically detect drift and revert the cluster to the state defined in Git.

277
Multi-Selecthard

Which THREE mechanisms can be used to notify a GitOps controller of a change in Git?

Select 3 answers
A.SSH-based push from the local machine.
B.Git repository webhooks.
C.Manual refresh request via CLI/UI.
D.Periodic polling of the Git repository.
E.Waiting for a container crash.
AnswersB, C, D

Efficient, event-driven notification.

Why this answer

Controllers can detect changes via polling (continuous), webhooks (event-driven), or manual sync requests.

278
Multi-Selectmedium

Which THREE items should be included in your Git repository for a standard GitOps setup?

Select 3 answers
A.Policy-as-Code files (e.g., OPA policies).
B.Templating definitions (Helm charts/Kustomize bases).
C.Application source code files.
D.Kubernetes manifest files (YAML).
E.The private keys for the production cluster.
AnswersA, B, D

These define the security constraints for the cluster.

Why this answer

A GitOps repository should contain the declarative manifests, template files (like Helm/Kustomize), and security policies.

279
MCQhard

You are debugging a GitOps deployment. The controller shows 'OutOfSync' but the cluster seems to be running correctly. What is the most likely cause?

A.The network latency to the Git server is too high.
B.Manual changes were made to the live resource that weren't captured in Git.
C.The Git repository is empty.
D.The controller is broken.
AnswerB

This is the classic definition of configuration drift in GitOps.

Why this answer

An 'OutOfSync' status indicates that the actual cluster configuration deviates from the declarative state defined in Git.

280
MCQeasy

Which of the following is considered 'best practice' for GitOps repository structure?

A.Storing source code and manifest files in the same directory
B.Keeping all configuration in a single root file
C.Using a separate repository for environment configurations
D.Committing binary files to the repo
AnswerC

Separating environment config allows for cleaner promotion flows.

Why this answer

Separating application code from infrastructure/environment configuration is a GitOps best practice.

281
MCQmedium

When managing multiple environments (dev/stage/prod) in one repository, which folder structure is generally considered best practice?

A.Storing configurations in the application code folder.
B.Putting everything in a single root folder.
C.Using different Git repos for every single manifest.
D.Using environment-specific folders.
AnswerD

This is the industry-standard structure for GitOps repositories.

Why this answer

Keeping environment configurations in separate folders (e.g., /overlays/dev, /overlays/prod) allows for clear separation and prevents accidental configuration bleeding.

282
Multi-Selecthard

Which THREE are standard ways to implement GitOps with Helm?

Select 3 answers
A.Running 'helm upgrade' manually.
B.Only storing the chart source code.
C.Using a GitOps operator to trigger 'helm install'.
D.Storing the final rendered YAML in Git.
E.Storing Helm values files in Git.
AnswersC, D, E

Modern GitOps tools integrate this natively.

Why this answer

Helm can be used by packaging charts in Git, using a GitOps operator to render templates, or by storing values files in Git.

283
MCQmedium

An administrator notices that an engineer manually modified a Service loadBalancerIP in the Kubernetes live cluster using 'kubectl edit'. The cluster is managed by an automated GitOps engine configured in a pull-based model. What will happen during the next reconciliation cycle?

A.The GitOps engine will automatically commit the updated loadBalancerIP back to the Git repository to keep Git in sync.
B.The live cluster modification will block future Git commits from being fetched by the GitOps agent.
C.The GitOps engine will detect the drift and overwrite the live cluster state to match the declared state in Git.
D.The GitOps engine will halt reconciliation permanently until an administrator manually clears the cluster error log.
AnswerC

Continuous drift correction enforces the state in Git over any out-of-band manual changes made to the cluster.

Why this answer

In a pull-based GitOps pattern, an agent running inside the cluster continuously monitors both the declared state in Git and the actual state in the cluster. When drift is detected, the controller overwrites the live state with the desired state defined in Git.

284
MCQmedium

You are comparing GitOps deployment models. Which scenario best describes a 'Pull' deployment model?

A.A webhook triggers a Jenkins job to build and deploy an application.
B.A developer runs a helm upgrade command from their local machine to the cluster.
C.A Jenkins CI pipeline executes kubectl apply commands against the production cluster.
D.A Flux controller monitors the Git repository and updates the cluster state internally.
AnswerD

Flux pulls the configuration from Git and applies it locally, adhering to the Pull model.

Why this answer

In a Pull model, an agent inside the cluster (like Flux or Argo CD) periodically fetches the desired state from a repository, eliminating the need for external access to the cluster's API.

285
MCQeasy

Which of the following is NOT a benefit of the GitOps model?

A.Increased system performance.
B.Improved auditability.
C.Faster recovery from disasters.
D.Standardized deployment processes.
AnswerA

GitOps improves consistency and manageability, not raw compute performance.

Why this answer

GitOps does not necessarily increase the performance of the underlying application; it focuses on deployment and configuration consistency.

286
MCQhard

What is a 'GitOps Operator'?

A.A software agent that monitors Git and the cluster to maintain state alignment.
B.A tool that converts YAML to JSON.
C.A database that stores configuration history.
D.A human user who manually pushes Git commits.
AnswerA

The operator is the heart of the GitOps pull-based loop.

Why this answer

An operator is a Kubernetes controller that implements a control loop to continuously reconcile the cluster with the desired state in Git.

287
MCQhard

In a multi-cluster GitOps setup using Argo CD, you need to ensure that specific secrets are only synced to a production cluster. Which approach is the most secure?

A.Use Argo CD 'Project' resource to limit which namespaces secrets can be synced to.
B.Store secrets in Git as plain text and use a private repository.
C.Use Helm post-render hooks to inject secrets at runtime.
D.Enable 'AllowClusterResources' in the global configuration.
AnswerA

Argo CD Projects allow for strict destination constraints, ensuring secrets only reach authorized cluster destinations.

Why this answer

Using External Secrets Operator with cluster-specific namespaces or Argo CD Project-level restrictions allows you to segregate secret access effectively.

288
MCQmedium

You are debugging an ArgoCD sync failure. You find the 'Sync Status' is 'Failed'. Where is the most detailed error information located?

A.Sync Result in Application UI
B.ApplicationSet status
C.Git log
D.ArgoCD repo server logs
AnswerA

This shows the specific error returned by the API server during the sync operation.

Why this answer

The 'Sync' tab in the ArgoCD UI provides the 'Sync Result' and 'Resource Details', which show specific error outputs from the Kubernetes API server.

289
Multi-Selecteasy

Which TWO of the following best describe the benefits of adopting GitOps?

Select 2 answers
A.Better auditability through a full history of changes in Git.
B.Improved consistency by ensuring the cluster matches the Git state.
C.Higher speed because testing is bypassed.
D.Increased dependence on manual operator intervention.
E.The ability to run without any container registry.
AnswersA, B

Git logs provide a clear trail for compliance.

Why this answer

GitOps improves consistency and auditability by ensuring the cluster state is always managed through version control.

290
MCQeasy

What is the relationship between the 'desired state' and the 'actual state' in GitOps?

A.The controller continuously reconciles the actual state to the desired state.
B.The desired state is defined by the actual state.
C.The desired state is enforced by the controller to match the actual state.
D.The actual state is manually pushed to the desired state.
AnswerA

Reconciliation bridges the gap between the two states.

Why this answer

The goal of GitOps is to make the actual state equal to the desired state.

291
Multi-Selectmedium

Which TWO of the following are primary benefits of storing immutable state in Git?

Select 2 answers
A.Reduction in manual cluster configuration errors
B.Faster deployment of hotfixes directly to production
C.Automated conversion of Docker images to YAML
D.Ability to audit all environment changes through commit history
E.Increased server-side storage capacity
AnswersA, D

Declarative files in Git replace manual, error-prone configurations.

Why this answer

Immutability and versioning provide a clear audit trail and reliable rollback mechanisms.

292
MCQhard

You are managing secrets using SOPS with Age. You notice that Flux cannot decrypt the files. What is the most likely cause?

A.Missing private key secret in the flux-system namespace
B.SOPS version mismatch
C.Network latency
D.Incorrect git branch
AnswerA

Flux must be able to read the private key from a Secret to decrypt files.

Why this answer

Flux needs access to the private key (stored as a Kubernetes Secret) to decrypt SOPS-encrypted files during reconciliation.

293
MCQhard

When migrating from ArgoCD to Flux, you want to replicate the 'Sync Waves' behavior. Which Flux feature provides equivalent control over the order of resource reconciliation?

A.Post-sync hooks
B.dependsOn
C.Sync waves
D.Reconciliation intervals
AnswerB

The dependsOn field allows defining the order of reconciliation for Kustomizations.

Why this answer

Flux uses the 'dependsOn' field in the Kustomization resource to define ordered dependencies between objects.

294
Multi-Selectmedium

Which TWO are examples of 'Drift' in a GitOps environment?

Select 2 answers
A.A temporary spike in CPU usage.
B.A manual update to a Deployment image via kubectl.
C.A container crashing due to a code bug.
D.A new Git commit.
E.Changing a Service type directly in the cluster.
AnswersB, E

This is classic configuration drift.

Why this answer

Drift is any change to the cluster state that is not reflected in the Git repository.

295
MCQeasy

In GitOps, what should happen if a configuration file is deleted from the Git repository?

A.The operator alerts the admin and stops
B.The cluster keeps the resource forever
C.The operator ignores the change
D.The operator deletes the resource from the cluster
AnswerD

The operator ensures the cluster perfectly mirrors the repo.

Why this answer

The operator will reconcile the state by deleting the corresponding resource from the cluster.

296
MCQhard

If you have a multi-cluster setup and you want to ensure that 'production' clusters only pull images from a hardened internal registry, how can you enforce this in GitOps?

A.By changing the Argo CD global settings.
B.By hardcoding the registry URL in every pod manifest.
C.By updating the Git repository access permissions.
D.Using Admission Controllers to enforce policy.
AnswerD

This provides automated and consistent enforcement.

Why this answer

Using Admission Controllers (e.g., OPA Gatekeeper or Kyverno) triggered by the GitOps deployment ensures that only images from approved registries are admitted into the cluster.

297
Multi-Selecthard

A senior cloud architect is designing a multi-tenant platform using GitOps. They want to ensure that continuous drift detection and correction operate reliably without causing system instability. Which TWO practices help mitigate risks associated with automated continuous drift correction?

Select 2 answers
A.Granting full cluster-admin permissions to all application developers so they can manually disable drift correction during deployments.
B.Disabling Git versioning so that drift detection compares live state against an unversioned NFS network share.
C.Configuring the GitOps controller to ignore specific dynamic fields updated by in-cluster controllers, such as 'spec.replicas' managed by a HorizontalPodAutoscaler (HPA).
D.Setting the reconciliation loop interval to run once every 30 seconds while forcing a full cluster node reboot on every iteration.
E.Utilizing dry-run or diff-matching alerts to notify teams of unexpected drift before automated self-healing applies destructive changes to critical resources.
AnswersC, E

Ignoring fields modified by cluster operators prevents continuous reconciliation loops between the GitOps engine and live cluster controllers.

Why this answer

Automated drift correction can cause feedback loops or resource exhaustion if external mutations (like auto-scalers modifying replica counts or controllers adding status annotations) conflict with Git. Ignoring dynamic runtime fields or using structured sync windows mitigates these risks.

298
MCQhard

You are implementing a GitOps pipeline for a complex microservices architecture. To satisfy the principle of 'versioned and immutable state', how should you handle environment-specific configurations while maintaining a single source of truth?

A.Use Kustomize overlays to manage environment-specific patches stored in the same repository
B.Use a CI pipeline to inject environment variables into the cluster via API calls
C.Execute helm install --set commands during the deployment phase
D.Maintain separate Git repositories for every environment
AnswerA

Kustomize allows for a declarative, versioned approach to managing variants while keeping a single source of truth.

Why this answer

Using Kustomize bases and overlays allows for a single declarative base while versioning environment-specific patches separately in Git, maintaining immutability.

299
MCQeasy

In GitOps, what is the 'Source of Truth'?

A.The running Kubernetes cluster.
B.The CI pipeline logs.
C.The container registry.
D.The Git repository.
AnswerD

Git is the declarative definition of the state.

Why this answer

The Git repository is the single source of truth for the desired state of the infrastructure and applications.

300
Multi-Selecteasy

Which TWO of the following are true about the 'Pull' model in GitOps? (Select two)

Select 2 answers
A.It improves security by removing the need for cluster credentials in CI.
B.It allows the cluster to self-reconcile state changes.
C.It is only supported for Helm charts.
D.It requires opening an inbound port on the cluster firewall.
E.It requires the CI pipeline to be active 24/7.
AnswersA, B

This is a key security advantage.

Why this answer

The pull model uses an internal controller to fetch desired state from Git, which is more secure and reliable than pushing from an external CI system.

Page 3

Page 4 of 5

Page 5

All pages