Courseiva

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

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

Page 1 of 5

Page 2
1
Multi-Selectmedium

When setting up Argo CD, which TWO components are essential to define a GitOps workflow?

Select 2 answers
A.Kubernetes Node
B.AppProject
C.Application CRD
D.Docker Registry
E.Jenkins Pipeline
AnswersB, C

AppProject is used to logically group applications and enforce security boundaries.

Why this answer

An Application object defines the source and destination, and a Project organizes them.

2
MCQeasy

What is the purpose of the 'destination' field in an Argo CD Application manifest?

A.It defines the sync frequency.
B.It defines the user who triggered the sync.
C.It defines the Git repository URL.
D.It defines the target Kubernetes cluster and namespace.
AnswerD

This is the required definition for the target environment.

Why this answer

The 'destination' field specifies the Kubernetes cluster (server) and namespace where the application resources should be applied.

3
Multi-Selecthard

Which THREE of the following are core requirements for adopting a GitOps-based workflow?

Select 3 answers
A.Declarative infrastructure definitions in Git.
B.Proprietary hardware load balancers.
C.A cluster-side agent for reconciliation.
D.A full-time manual administrator.
E.A versioned history of state changes.
AnswersA, C, E

Essential for defining the desired state.

Why this answer

GitOps requires a declarative state in Git, an automated agent, and an immutable history.

4
Multi-Selectmedium

You are deploying applications across multiple clusters using Argo CD. You want to implement a hub-and-spoke model where the central management cluster controls all edge clusters. Which THREE of the following are necessary to correctly configure this pattern?

Select 3 answers
A.Install Argo CD control plane components on every edge cluster
B.Configure the 'server.enable.proxy' flag in the hub cluster
C.Ensure the service account for Argo CD has cluster-admin permissions on target clusters
D.Define Application projects to restrict cluster access
E.Create Argo CD cluster secrets in the management cluster namespace
AnswersC, D, E

The hub cluster must have sufficient RBAC permissions to manipulate resources on the spokes.

Why this answer

The hub-and-spoke pattern relies on cluster secrets, target cluster definitions, and proper project isolation.

5
Multi-Selectmedium

Which TWO of the following are core principles of GitOps?

Select 2 answers
A.Declarative desired state.
B.Using a GUI for all configuration tasks.
C.Use of imperative CLI commands.
D.Continuous drift detection and correction.
E.Manual approval for every single sync.
AnswersA, D

This is a core pillar of GitOps.

Why this answer

Declarative state and automated, continuous reconciliation are the foundational pillars of the GitOps methodology.

6
Multi-Selecthard

Which THREE of the following are potential risks of ignoring drift in a GitOps environment?

Select 3 answers
A.Reduced storage usage
B.The Git repo becomes outdated relative to the cluster
C.Application instability due to unexpected configuration
D.Security vulnerabilities due to unmanaged manual changes
E.Increased deployment speed
AnswersB, C, D

If drift is not fixed, the Git repo stops representing reality.

Why this answer

Ignoring drift leads to configuration loss, security gaps, and deployment failures.

7
MCQeasy

In the context of GitOps, what is 'Configuration Drift'?

A.A security vulnerability in the container image.
B.The movement of traffic between blue and green environments.
C.The difference between the cluster state and the Git repository state.
D.The time taken for a Git commit to reach the production cluster.
AnswerC

This is the standard definition of drift.

Why this answer

Drift occurs when the actual state of the infrastructure or application in the cluster deviates from the intended state defined in Git.

8
MCQhard

When implementing DevSecOps within a GitOps workflow, where should the automated policy enforcement (like OPA/Gatekeeper) occur?

A.During the Git commit process using local pre-commit hooks.
B.In the CI pipeline during the image scanning phase.
C.At the Kubernetes API server using an Admission Controller like OPA Gatekeeper.
D.By manually reviewing the Git diffs before merging the pull request.
AnswerC

Admission controllers evaluate resources at the point of creation, providing a final security gate regardless of how the manifest was deployed.

Why this answer

Policy enforcement should happen during the admission control phase of the Kubernetes API to ensure all resources, including those managed by GitOps, comply.

9
MCQmedium

What does the term 'Self-Healing' mean in a GitOps context?

A.The application automatically updates its own code
B.The cluster automatically reboots upon failure
C.The system automatically restores the desired state if someone manually modifies the cluster
D.The database automatically backs itself up
AnswerC

This is the core functionality of a GitOps operator.

Why this answer

Self-healing refers to the operator's ability to revert manual changes back to the state defined in Git.

10
MCQeasy

What is the primary benefit of a 'pull' deployment model compared to a 'push' model in GitOps?

A.Support for non-Kubernetes platforms
B.Elimination of Kubernetes manifests
C.Reduced need for inbound firewall access to the cluster
D.Faster application builds
AnswerC

The operator initiates outbound connections, making the cluster more secure.

Why this answer

Pull-based models eliminate the need to open inbound firewall ports or expose credentials to external services.

11
MCQmedium

What is the role of a 'Webhook' in a GitOps setup?

A.To store encrypted credentials
B.To inform the operator of a change in the Git repository
C.To scan container images for vulnerabilities
D.To automatically approve pull requests
AnswerB

Webhooks reduce latency by pushing notification of commits.

Why this answer

Webhooks allow the Git provider to notify the GitOps operator immediately when a change occurs, rather than waiting for the next polling interval.

12
MCQeasy

Which of the following is considered an 'Anti-pattern' in a GitOps workflow?

A.Storing infrastructure definitions as code
B.Automated testing of configuration before merging to main
C.Using pull requests to review configuration changes
D.Applying 'hotfixes' directly to the cluster via kubectl
AnswerD

This creates 'configuration drift' and bypasses version control.

Why this answer

GitOps requires that the Git repository is the sole source of truth; any manual 'hotfixing' via kubectl overrides the versioned state and creates drift.

13
MCQmedium

When configuring a GitOps tool, what is the purpose of a 'webhook' in relation to the Git repository?

A.To encrypt the traffic between the cluster and Git.
B.To trigger an immediate reconciliation attempt when a push occurs.
C.To replace the need for an SSH key.
D.To store the application images.
AnswerB

This optimizes the poll interval and reduces latency.

Why this answer

Webhooks allow the Git server to notify the GitOps controller that a change has occurred, triggering an immediate sync check.

14
MCQmedium

You notice your GitOps operator is performing too many API calls to the Kubernetes API server. What is the most likely configuration issue?

A.The sync policy 'syncPeriod' is set too low.
B.The Git repo is too large.
C.The operator has too many permissions.
D.The cluster is running too many pods.
AnswerA

Frequent polling creates heavy traffic on the K8s API server.

Why this answer

An aggressive sync interval or a very large number of managed resources without caching can cause excessive API load.

15
MCQeasy

Which of the following best describes the 'Declarative' principle in GitOps?

A.Using an interactive terminal to manage resources.
B.Providing a script to update resources.
C.Defining the target state in configuration files.
D.Requiring manual approval for every reconciliation.
AnswerC

Declarative systems define the 'what' rather than the 'how'.

Why this answer

Declarative means defining the end state of the system, rather than the sequence of commands to reach that state.

16
MCQhard

When troubleshooting a Kyverno policy, which command should you use to check if a specific resource complies with the policy?

A.kubectl get policies
B.kyverno test
C.kubectl describe policy
D.kyverno apply
AnswerD

This CLI tool tests policies against resources.

Why this answer

The 'kyverno apply' command allows testing a policy against a local manifest to verify compliance before deployment.

17
Multi-Selectmedium

Which TWO are common strategies for GitOps repo structure?

Select 2 answers
A.Creating one repository per single microservice.
B.Directory-per-environment.
C.Never using branches.
D.Storing all files in a single flat directory.
E.App-of-Apps pattern.
AnswersB, E

Standard for managing multi-environment configs.

Why this answer

Common strategies include 'App-of-Apps' for managing nested dependencies and 'Directory-per-Environment' for separating configurations.

18
MCQmedium

When implementing a GitOps workflow with Argo CD, what is the role of the 'AppProject' custom resource?

A.It automatically triggers infrastructure rollbacks upon failure
B.It defines the build pipeline for container images
C.It stores the Git credentials for the entire cluster
D.It enforces security boundaries and scope for a set of applications
AnswerD

AppProject controls which repositories and namespaces are accessible by specific applications.

Why this answer

The AppProject resource acts as a logical grouping for Applications, allowing administrators to restrict where they can be deployed and which resources are permitted, providing multi-tenant security.

19
MCQhard

What is the purpose of a 'Kustomization' resource in a GitOps workflow?

A.To dynamically customize and patch manifests for different environments
B.To perform load testing on the API server
C.To provide a secure shell into pods
D.To manage database migrations
AnswerA

Kustomization is a tool for managing variations of Kubernetes configurations.

Why this answer

Kustomization allows for templating and patching Kubernetes manifests for different environments without changing the base code.

20
MCQmedium

Why must the desired state be 'versioned' in Git in a GitOps architecture?

A.To allow the cluster to write data back to the Git repository.
B.To enable reliable rollbacks and environment reproducibility.
C.To automatically optimize cluster resource utilization.
D.To ensure developers can commit code directly to production.
AnswerB

Versioning provides a history of states that can be redeployed at any time.

Why this answer

Version control allows for easy rollbacks, audit trails, and consistent releases across environments.

21
MCQmedium

In ArgoCD, what does the 'Revision' field in an Application manifest represent?

A.The number of times the app has synced
B.The ArgoCD version
C.The specific git hash or branch being tracked
D.The version of the Helm chart
AnswerC

Revision points to the exact state in Git.

Why this answer

The 'Revision' field specifies the Git commit hash, tag, or branch that the application is currently synced to.

22
MCQhard

What is the purpose of a 'Sync Window' in Argo CD?

A.To increase the size of the Git repo
B.To limit when automated syncs occur
C.To prevent users from logging in
D.To optimize network speed
AnswerB

This allows teams to prevent deployments during peak hours or maintenance windows.

Why this answer

Sync windows restrict when automated syncs are allowed, preventing deployments during sensitive times.

23
Multi-Selecthard

Which THREE of the following are necessary to prevent 'Secret Sprawl' in a multi-cluster environment? (Select three)

Select 3 answers
A.Using External Secrets Operator to sync secrets to specific namespaces.
B.Using a dedicated Secret Management system (e.g., HashiCorp Vault).
C.Applying RBAC policies to ensure only specific apps can access secrets.
D.Granting 'cluster-admin' to the GitOps operator service account.
E.Storing encrypted secrets in the Git repository.
AnswersA, B, C

This limits the blast radius of secrets.

Why this answer

To prevent secrets from being exposed everywhere, you should use tools like External Secrets, namespace-scoped secrets, and avoid putting sensitive data directly into the Git repository.

24
MCQhard

When using Argo CD, how do you handle applications that require resources to be created in a specific order (e.g., CRDs before Operators)?

A.Use multiple Git repositories.
B.Disable automated sync and run it twice.
C.Use syncWaves annotations.
D.Use a single massive YAML file.
AnswerC

SyncWaves explicitly control the order of execution.

Why this answer

Argo CD 'syncWaves' allow you to assign a numerical value to resources, ensuring they are applied in the correct sequence.

25
MCQmedium

What is an 'Image Updater' in the GitOps ecosystem?

A.A tool to compress images
B.A tool to clean up old images in the registry
C.A tool to scan images for vulnerabilities
D.A controller that updates image tags in Git
AnswerD

This automates the image promotion process.

Why this answer

An Image Updater is a controller that automatically updates image tags in the Git repository when a new version is available in a registry.

26
MCQmedium

When using Argo CD, what does the 'Sync Status' 'OutOfSync' indicate?

A.The cluster is disconnected from the network.
B.A new version of the application is available in the registry.
C.The live state differs from the desired state in Git.
D.The Git repository has been deleted.
AnswerC

The controller identifies drift between the cluster and the repository.

Why this answer

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

27
MCQmedium

You are troubleshooting a multi-cluster Argo CD deployment where the 'staging' cluster is healthy but 'production' cluster is 'OutOfSync' despite having the same manifest source. Why might this happen?

A.The production cluster has a newer version of the Kubernetes API.
B.A manual 'kubectl apply' was performed on the production cluster.
C.The 'staging' cluster is using a different Argo CD instance.
D.The Git repo is only cloned to the staging cluster.
AnswerB

Manual changes cause drift, which Argo CD detects as 'OutOfSync' when it compares Git state to the actual cluster state.

Why this answer

Argo CD evaluates the state of the cluster against the Git definition. If a manual change or a different controller (like a Helm release) has altered the cluster state, the sync status will reflect a mismatch.

28
MCQeasy

A team is transitioning to GitOps. Which action best aligns with the principle of Declarative Desired State?

A.Running a pipeline to execute terraform apply on demand
B.Writing a bash script to update image tags on all clusters
C.Using kubectl edit to modify running pod replicas
D.Storing YAML manifests in Git representing the target environment state
AnswerD

This represents the desired state declaratively in version control.

Why this answer

Declarative configuration defines the end state, allowing tools to converge the system rather than executing imperative scripts.

29
MCQhard

Your organization uses a 'Git-branch-per-environment' strategy. You notice that hotfixes applied to the 'production' branch are being overwritten by automatic merges from the 'staging' branch. Which GitOps promotion pattern should you adopt to prevent this drift?

A.Enable Argo CD 'automated.allowEmpty' sync options.
B.Switch to a repository structure using Kustomize overlays with a single branch.
C.Implement an automated CI job to force push the staging branch to production.
D.Use Argo CD ApplicationSets with a 'git' generator to deploy only from the main branch.
AnswerB

Using Kustomize overlays allows you to keep one branch as the source of truth, avoiding merge conflicts between environment branches.

Why this answer

The 'Pull Request based promotion' pattern ensures that changes are explicitly reviewed and merged from staging to production, rather than relying on automated long-running branch merges that cause conflicts.

30
MCQeasy

Which statement best defines 'immutable state' in the context of GitOps?

A.The cluster hardware cannot be modified.
B.The container images cannot be changed.
C.The configuration committed to Git represents a fixed, unchangeable historical point.
D.The application state cannot be deleted.
AnswerC

Immutability in Git implies that the state associated with a commit should be permanent.

Why this answer

Once a configuration is committed to Git, that specific version of the state should remain unchanged in the repository.

31
MCQmedium

An ArgoCD application is configured with 'SelfHeal' set to true. If a developer manually modifies a Deployment's replica count via kubectl, what happens?

A.ArgoCD reverts the change to match the Git state
B.The change is permanently accepted
C.ArgoCD flags the app as 'OutOfSync' but waits for manual intervention
D.The manual change is merged into Git
AnswerA

Self-heal ensures live state matches Git state.

Why this answer

With self-heal enabled, ArgoCD detects the discrepancy between the live state and Git state and automatically overwrites the live state with the Git version.

32
MCQmedium

During a blue-green deployment, what is the primary role of the traffic manager (e.g., Istio or Nginx Ingress)?

A.To build the container image.
B.To monitor the Git repository for changes.
C.To split traffic between versions to reduce risk.
D.To store application logs.
AnswerC

Traffic management enables controlled cutovers.

Why this answer

In blue-green deployments, the traffic manager performs the switch to route users from the old (blue) version to the new (green) version once validation is complete.

33
MCQeasy

Why is 'Git' considered the 'source of truth' in GitOps?

A.Because it acts as the single point of record for the desired system state.
B.Because Git stores all application logs.
C.Because it is the only tool that supports branching.
D.Because Git automatically runs the applications.
AnswerA

Git holds the manifests that define what the system should look like.

Why this answer

Git provides a clear, immutable, and auditable history of every change made to the system, which is essential for reproducibility.

34
MCQhard

You are using Flux with Kustomize. You want to apply different configurations for production and staging, but both use the same base manifests. Which Kustomize feature allows this?

A.Post-build variables
B.Overlays
C.Flux Kustomization resource
D.Helm charts
AnswerB

Overlays are the standard Kustomize method for environment-specific configs.

Why this answer

Kustomize overlays allow patching the base manifests with environment-specific configurations.

35
MCQhard

In a multi-cluster environment, how does the GitOps principle of 'Declarative Desired State' simplify cluster management?

A.By allowing each cluster to define its own unique state manually.
B.By requiring a human operator to verify each cluster's state daily.
C.By eliminating the need for Git altogether.
D.By enabling template-based configuration across identical environments.
AnswerD

Centralized declarations applied to multiple clusters ensure identical desired states.

Why this answer

It allows for a single source of truth that defines the state for multiple clusters, ensuring consistency across environments.

36
MCQhard

In a GitOps architecture, why is it critical that the entire state of the system is declarative?

A.To allow for faster manual scaling of pods
B.To enable the reconciliation loop to calculate the necessary deltas for convergence
C.To ensure that Docker images are automatically rebuilt
D.To replace the need for RBAC in the Kubernetes cluster
AnswerB

Convergence requires comparing the desired declaration against the live state.

Why this answer

Declarative state allows the reconciliation loop to compare the current live state against the desired state defined in code, which is essential for automated drift correction.

37
Multi-Selectmedium

Which THREE of the following items are commonly found in a Flux 'GitRepository' manifest?

Select 3 answers
A.Git reference (branch/tag)
B.Reconciliation interval
C.Kubernetes node labels
D.Repository URL
E.Database password
AnswersA, B, D

Defines the version to track.

Why this answer

A GitRepository object defines the URL, the interval for polling, and the specific reference (branch or tag).

38
MCQeasy

What is the primary function of an 'Admission Controller' in a GitOps-based DevSecOps workflow?

A.To build container images.
B.To validate and enforce policies on cluster resources before they are persisted.
C.To monitor application logs for errors.
D.To trigger the CI/CD pipeline.
AnswerB

This prevents non-compliant resources from ever being created.

Why this answer

Admission controllers act as a final gate, validating or mutating requests to the Kubernetes API to ensure they comply with organizational policies.

39
MCQmedium

A cluster is flagged as 'OutOfSync' in Argo CD. What does this status specifically indicate?

A.The live state in the Kubernetes cluster deviates from the version-controlled manifest.
B.The Git repository contains a syntax error in the YAML files.
C.The Kubernetes API server is unreachable.
D.The cluster has run out of memory or CPU resources.
AnswerA

Argo CD compares the live cluster objects with the Git-defined objects; any difference triggers the OutOfSync status.

Why this answer

The OutOfSync status indicates that the live cluster state does not match the desired state defined in the Git repository.

40
Multi-Selectmedium

Which THREE of the following are primary benefits of adopting GitOps for CI/CD integration?

Select 3 answers
A.Faster code compilation times compared to traditional CI systems.
B.Increased consistency between environments through standardized Git workflows.
C.Reduced need for automated security scanning.
D.Simplified disaster recovery by re-applying the Git state to a new cluster.
E.Improved auditability of changes through Git commit history.
AnswersB, D, E

Using the same deployment process across all environments reduces configuration drift.

Why this answer

GitOps improves auditability, disaster recovery, and operational consistency by centralizing the source of truth in Git.

41
Multi-Selectmedium

Which THREE of the following are valid components or patterns used in Progressive Delivery with GitOps? (Select THREE)

Select 3 answers
A.Git-Branch-Per-Environment
B.AnalysisTemplates
C.Argo Rollouts
D.Argo Workflows
E.Blue-Green Deployment
AnswersB, C, E

AnalysisTemplates define the metrics to evaluate for a successful rollout.

Why this answer

Argo Rollouts, AnalysisTemplates, and blue-green deployments are all core components and patterns used to achieve progressive delivery within a GitOps ecosystem.

42
MCQeasy

Which GitOps tool relies primarily on a pull-based model utilizing the 'Source Controller' and 'Kustomization' custom resources?

A.Flux
B.ArgoCD
C.Terraform
D.Helm
AnswerA

Flux is defined by these core controllers.

Why this answer

Flux v2 is architected around specialized controllers, including the Source Controller and Kustomization Controller.

43
MCQeasy

A DevOps team is storing its Kubernetes manifests in a Git repository. To adhere strictly to the principle of versioned and immutable desired state in Git, how should the team manage changes to an existing deployment's container image tag?

A.Commit a change updating the image tag in the manifest file within the Git repository and merge it via a pull request.
B.Exec into the running pod using 'kubectl exec' and update the container image binary directly.
C.Run 'kubectl set image deployment/my-app my-app=image:v2' against the live cluster without updating Git.
D.Delete the deployment using 'kubectl delete' and manually re-apply a temporary local manifest file.
AnswerA

Updating the manifest in Git creates a versioned, immutable record of the state change, allowing automated reconciliation.

Why this answer

GitOps principles require that the desired state stored in Git is versioned and immutable. Modifying the manifest in Git via a new commit or pull request creates a traceable, versioned audit trail. Directly mutating live cluster resources using kubectl violates the single source of truth principle.

44
Multi-Selectmedium

When considering the GitOps principle of 'Declarative Desired State', which TWO of the following statements accurately reflect why manifests should be stored in Git?

Select 2 answers
A.To reduce the latency of image pull times
B.To serve as the single source of truth for the entire cluster configuration
C.To automatically encrypt all data in the database
D.To enable peer review and collaboration via Pull Requests
E.To allow the Git server to perform the cluster reconciliation
AnswersB, D

The Git repo must be the authoritative reference for the system state.

Why this answer

Git serves as the single source of truth for the system's state, and using a repository allows for the application of standard software development practices like Pull Requests.

45
MCQhard

What is the impact of having multiple GitOps operators in the same cluster?

A.It is the recommended setup for high availability
B.It leads to potential race conditions and configuration conflicts
C.It automatically distributes the load across nodes
D.It increases the throughput of deployments
AnswerB

Two controllers trying to manage the same resource is a conflict.

Why this answer

Multiple operators can lead to resource contention and conflicting state management, which is generally discouraged.

46
Multi-Selecthard

Which TWO of the following are common challenges when implementing GitOps in an organization?

Select 2 answers
A.Addressing configuration drift caused by manual changes to the cluster.
B.Managing secrets in a secure way within the version control system.
C.The requirement to use only open-source software.
D.The speed at which Git servers process pull requests.
E.The lack of support for containerization in the organization.
AnswersA, B

Legacy environments often have undocumented manual changes that must be reconciled.

Why this answer

Managing secrets and dealing with existing drift in legacy environments are significant hurdles in adopting GitOps.

47
Multi-Selectmedium

Which TWO of the following are true about 'Pull' vs 'Push' deployment models?

Select 2 answers
A.Pull models eliminate the need for an external CI/CD tool to access the cluster
B.Pull models only support small clusters
C.Push models are the standard for GitOps
D.Pull requires the operator to have cluster access
E.Push models are inherently more secure
AnswersA, D

This is the main architectural benefit of pull-based GitOps.

Why this answer

Pull is initiated by the cluster; Push is initiated by the external CI system.

48
MCQmedium

In an Argo CD deployment, a developer notices that manual changes made via kubectl are being reverted automatically. What feature is responsible for this behavior?

A.Git commit hook triggers
B.Auto-Sync with Self-Heal enabled
C.Kubernetes admission controllers
D.Manual refresh button
AnswerB

Self-heal continuously monitors drift and applies Git state.

Why this answer

Self-healing or automated reconciliation is the GitOps mechanism that restores the cluster to the state defined in Git.

49
MCQhard

You are implementing progressive delivery using Flagger. After a Canary resource is defined, which metric is most critical for Flagger to automatically rollback a deployment during a blue/green shift?

A.Pod CPU usage
B.Number of running replicas
C.Request success rate and latency metrics
D.Git commit hash parity
AnswerC

Flagger specifically monitors service mesh or ingress metrics to decide if a traffic shift is safe.

Why this answer

Flagger uses analysis templates to evaluate Prometheus metrics; if the error rate or latency thresholds are exceeded, it triggers a rollback.

50
MCQeasy

In GitOps, what is a 'Merge Request' (or Pull Request) used for?

A.To review, approve, and audit proposed changes to the desired state.
B.To bypass security checks.
C.To perform unit tests on the code.
D.To delete the cluster.
AnswerA

This creates a collaborative and secure workflow.

Why this answer

The PR/MR process acts as a gatekeeping mechanism for reviewing and approving changes before they are merged into the main branch and applied to the cluster.

51
MCQhard

In an Argo CD 'Application' manifest, what does the 'destination' field specify?

A.The Kubernetes cluster and namespace for deployment
B.The source Git repository URL
C.The build server address
D.The email address for alerts
AnswerA

Destination provides the target context for the sync operation.

Why this answer

The destination defines the cluster URL and namespace where the resources should be deployed.

52
MCQhard

When using a GitOps operator that performs 'image polling', what is the risk of using a 'latest' tag?

A.It causes high latency in the cluster.
B.The GitOps operator cannot detect changes.
C.It consumes too much disk space.
D.It makes rollbacks impossible because the 'latest' image may be different than what was deployed.
AnswerD

Without unique tags, you cannot guarantee which version is actually running.

Why this answer

The 'latest' tag is mutable, meaning it can point to different code at different times, violating the GitOps principle of deterministic, reproducible deployments.

53
MCQmedium

Which Argo CD feature allows you to manage multiple applications with shared configuration?

A.ApplicationSets.
B.Sync Waves.
C.Application Projects.
D.Resource Hooks.
AnswerA

This is the intended use case for ApplicationSets.

Why this answer

Argo CD 'ApplicationSets' support templating, allowing you to define a base configuration and apply it across multiple applications dynamically.

54
MCQeasy

Which of these is NOT a principle of GitOps?

A.Versioned and immutable state.
B.Imperative manual updates.
C.Declarative desired state.
D.Automated reconciliation.
AnswerB

Manual, imperative updates are the opposite of GitOps principles.

Why this answer

GitOps is inherently declarative; imperative commands violate the core principle of a defined desired state.

55
Multi-Selectmedium

You are auditing your GitOps deployment strategy. Which TWO of the following statements correctly describe the 'Source of Truth' in a GitOps architecture?

Select 2 answers
A.The live cluster state is the ultimate source of truth for all configurations
B.The declared state in the Git repo must match the observed cluster state
C.The Git repository acts as the single source of truth for both infrastructure and applications
D.Database backups constitute the primary source of truth
E.Continuous Integration artifacts are the source of truth
AnswersB, C

This synchronization is the core goal of the GitOps model.

Why this answer

The Git repository is the canonical state, and the cluster is a reflection of that state.

56
Multi-Selectmedium

Which TWO of the following are valid ways to configure an Argo CD 'Application'?

Select 2 answers
A.By modifying the Argo CD binary code
B.By writing a shell script that bypasses the API server
C.By applying a YAML manifest via kubectl
D.By using the Argo CD CLI
E.By deleting the Git repository
AnswersC, D

Argo CD Applications are Kubernetes objects.

Why this answer

Applications can be configured using Kubernetes manifests (YAML) or the CLI.

57
MCQmedium

You have a large ArgoCD installation and want to limit the blast radius. Which feature allows you to restrict which namespaces an application can deploy to?

A.ClusterRoleBinding
B.Sync policies
C.AppProject
D.ApplicationSet
AnswerC

AppProjects define destination clusters and namespaces.

Why this answer

AppProject resources are used to group applications and define strict cluster and namespace-level destination restrictions.

58
MCQmedium

In a multi-cluster GitOps architecture using Argo CD, how do you manage credentials for a remote cluster that is not the cluster where Argo CD resides?

A.Modify the global ConfigMap in the Argo CD namespace
B.Add the cluster URL to the Git repository manifest
C.Use the argocd cluster add command to store credentials as a secret in the Argo CD namespace
D.Manually create a Kubernetes secret in the remote cluster
AnswerC

This is the standard, secure way to register a remote cluster for GitOps management.

Why this answer

You must add the remote cluster's API server and authentication credentials to Argo CD using the 'argocd cluster add' command, which stores the secret in the Argo CD namespace.

59
MCQeasy

What is the main advantage of using a 'Declarative' approach to system management?

A.It requires less storage in Git.
B.It allows you to skip CI/CD testing.
C.You can use imperative commands like 'kubectl run'.
D.It makes system state predictable and reproducible.
AnswerD

This is the main benefit of declarative GitOps.

Why this answer

Declarative systems allow you to define 'what' the state should be, and the system automatically figures out the steps to get there, making it predictable and repeatable.

60
MCQhard

A company transitions from a push-based CI/CD pipeline (using Jenkins) to a pull-based GitOps model (using Flux). What is the primary security architectural change regarding cluster access?

A.Git is no longer the source of truth
B.The cluster no longer requires an API server
C.The operator is now a push-based agent
D.The CI server no longer requires cluster credentials
AnswerD

Pull-based models allow the agent within the cluster to reconcile state, eliminating the need to expose cluster API credentials to external build systems.

Why this answer

In push models, the CI server requires cluster credentials. In pull models, the operator inside the cluster initiates the fetch, removing the need for external cluster-admin access.

61
MCQhard

When a manual change is made directly to a Kubernetes Service via 'kubectl edit', what behavior is expected from a properly configured GitOps operator set to 'Automatic Sync'?

A.The operator identifies the drift and automatically overwrites the live state with the Git version.
B.The operator ignores the change to prevent production downtime.
C.The operator updates the Git repository to match the new manual change.
D.The operator prompts the administrator for manual approval before reverting.
AnswerA

This is the core definition of GitOps Self-Heal in tools like Argo CD and Flux.

Why this answer

If 'Self-Heal' is enabled in the GitOps operator, it will detect the drift caused by the manual 'kubectl edit' and overwrite the live change with the version defined in Git.

62
MCQhard

Why is 'pull-based' reconciliation considered more secure than 'push-based' CI/CD?

A.Because the cluster initiates the connection.
B.Because it eliminates the need for Git.
C.Because Git requires passwords for every pull.
D.Because it removes the need for container images.
AnswerA

The cluster pulls from the repo, meaning no inbound ports need to be opened for the CI system.

Why this answer

Push-based systems require the CI/CD server to have cluster-admin credentials, whereas pull-based controllers use service accounts within the cluster.

63
Multi-Selectmedium

Which TWO of the following are valid ways to trigger a sync in ArgoCD?

Select 2 answers
A.Sending a kill signal to the controller
B.Clicking 'Sync' in the ArgoCD UI
C.Webhook from Git repository
D.Deleting the Git repository
E.Restarting the API server
AnswersB, C

Manual triggered sync.

Why this answer

ArgoCD can be triggered via a manual UI action or through an automated webhook notification from a git provider.

64
MCQhard

You are using a 'Pull' based GitOps model (e.g., Flux or Argo CD). Why is it considered more secure than a 'Push' based CI/CD model?

A.It allows faster deployment times.
B.It does not require a container registry.
C.It is easier to configure with SSH keys.
D.It eliminates the need for cluster credentials on the CI server.
AnswerD

The cluster manages its own authentication, increasing security.

Why this answer

In a Pull model, the cluster agent pulls changes from Git. The cluster does not need inbound firewall access from the CI/CD server, and no secrets are stored on the CI server.

65
Multi-Selectmedium

Which THREE of the following are common methods for managing secrets in a GitOps workflow?

Select 3 answers
A.External Secrets Operator
B.Sealed Secrets
C.Mozilla SOPS
D.Committing raw Kubernetes Secret YAMLs
E.Hardcoding credentials in Dockerfiles
AnswersA, B, C

Syncs secrets from external stores like Vault.

Why this answer

Sealed Secrets, SOPS, and External Secrets Operator (or Vault) are the industry standards for secrets in GitOps.

66
MCQmedium

You want to promote a microservice from staging to production using the 'Git Branch' strategy. Which configuration allows you to ensure the exact same container image SHA is used across both environments?

A.Manually update the container image using kubectl edit.
B.Use a common Helm chart with environment-specific values files.
C.Use a different container registry for production.
D.Change the image tag to 'production' in the deployment manifest.
AnswerB

Keeping the chart constant and varying the values (including the image SHA) is the standard GitOps practice for promotion.

Why this answer

Using image tags like 'latest' is non-deterministic. Referencing the specific SHA in the Git manifest for the production branch ensures consistency.

67
Multi-Selectmedium

Which THREE components are typically involved in a GitOps reconciliation loop?

Select 3 answers
A.A controller running inside the cluster.
B.The Kubernetes API server.
C.A manual human approval gate for every change.
D.An external CI server that manually applies changes.
E.The Git repository containing manifests.
AnswersA, B, E

The agent performing reconciliation.

Why this answer

The loop involves the Git source, the controller, and the cluster resources.

68
MCQmedium

You are implementing progressive delivery with Flagger. You notice that the canary analysis is failing despite the new version being stable. What is the most common reason for this?

A.The deployment strategy is set to 'Immediate' instead of 'Canary'.
B.The Prometheus query for success rate is returning no data.
C.The Git repository is in read-only mode.
D.The service mesh sidecar is missing the 'canary' annotation.
AnswerB

If Flagger cannot retrieve the metrics defined in the analysis template, it defaults to a failed state.

Why this answer

Flagger requires specific metrics (like HTTP request success rate) to be present to validate a canary. If the metrics provider (e.g., Prometheus) is not configured, the analysis cannot proceed.

69
MCQhard

You are using Flux and want to pause reconciliation for a specific application without deleting the resource. Which field should you modify?

A.interval: 0
B.reconcile: false
C.suspend: true
D.pause: true
AnswerC

This field stops the controller from reconciling the resource.

Why this answer

The 'suspend: true' field in the Kustomization or HelmRelease resource pauses reconciliation for that specific object.

70
MCQmedium

You are using ArgoCD and need to ensure that secret values stored in Git via Sealed Secrets are decrypted only within the target cluster. What component performs the actual decryption of a SealedSecret resource?

A.GitOps CLI (kubeseal)
B.Kubernetes API Server
C.ArgoCD Application controller
D.Sealed Secrets controller
AnswerD

The controller uses the private key stored in the cluster to decrypt secrets.

Why this answer

The Sealed Secrets controller running in the target cluster holds the private key required to decrypt the SealedSecret into a standard Kubernetes Secret.

71
MCQhard

You are debugging a drift in a GitOps environment. The cluster state differs from the Git repository. What is the most likely cause if you are using Flux?

A.The container registry is unreachable during a new image rollout.
B.The Git repository contains syntax errors in the YAML files.
C.A user performed a manual 'kubectl' command to modify a deployment.
D.The CI pipeline failed to run tests.
AnswerC

Manual changes bypass Git, causing the cluster state to deviate from the desired state defined in Git.

Why this answer

Flux reconcilers periodically verify the cluster state; drift usually occurs when an external actor modifies the cluster directly or a manual change occurred.

72
MCQmedium

How do you handle 'Environment-specific' configurations in a GitOps repository?

A.By creating separate branches for each environment
B.By having multiple Git repositories per cluster
C.By using overlays or templating tools
D.By hardcoding the environment in the application
AnswerC

Overlays allow for shared code with specific environment overrides.

Why this answer

Using tools like Kustomization or Helm allows for managing common base configurations with environment-specific overlays.

73
MCQmedium

When syncing a Git repository to a cluster, what is the 'Sync Policy' in Argo CD?

A.It sets the password for the Git repository.
B.It configures the frequency of the container health checks.
C.It defines whether the application should be synced automatically or manually.
D.It determines which Git branch is used for the deployment.
AnswerC

This is the primary function of the sync policy.

Why this answer

The sync policy determines whether the cluster is updated automatically when drift is detected or if manual intervention is required.

74
MCQmedium

You are configuring an Argo CD application. After a developer manually modifies a Kubernetes Service via kubectl, the application status changes to 'OutOfSync'. Which GitOps principle is this monitoring process specifically identifying?

A.Drift detection
B.Rollback recovery
C.Image promotion
D.Webhook integration
AnswerA

The process of identifying discrepancies between the desired state in Git and the actual cluster state is known as drift detection.

Why this answer

The reconciliation loop continuously compares the live state with the desired state defined in Git, flagging manual changes as drift.

75
MCQmedium

Your organization is transitioning from imperative scripts to Infrastructure as Code (IaC) using Terraform. You need to ensure that the infrastructure state remains synchronized with the Git repository after every commit. Which approach best aligns with GitOps principles?

A.Configure a CI pipeline to run terraform apply only when a manual approval is provided by the operations team.
B.Deploy a GitOps controller like Flux or Argo CD to monitor the Terraform state files in Git and apply changes automatically.
C.Execute a scheduled cron job that runs terraform apply.
D.Use a webhook to trigger a shell script that pulls the latest changes from the main branch.
AnswerB

GitOps controllers provide the continuous reconciliation loop required to keep infrastructure state in sync with Git.

Why this answer

GitOps requires a declarative source of truth where the current state of infrastructure is automatically reconciled against the desired state defined in Git.

Page 1 of 5

Page 2

All pages