Kcna Kubernetes And Cloud Native Associate · Free Practice Question Medium

Question 50

Your team has implemented GitOps for managing Kubernetes clusters. The desired state of your application is stored in a Git repository, and a GitOps operator is responsible for deploying any changes from Git into the cluster. A colleague suggests adding another manual approval step in the GitOps pipeline before applying changes to production to increase control. What is the best approach to introducing manual approvals while still adhering to GitOps principles?

  • A

    Disable the GitOps operator in the production cluster and manually synchronize the state from Git.

  • B

    Manually apply changes to the production cluster after reviewing the Git repository.

  • C

    Configure a Git-based pull request approval process that requires reviews and approvals before merging changes into the production branch.

  • D

    Maintain the same continuous synchronization for all clusters without introducing any manual review steps.

Reveal correct answer

Correct answer: C

A.

Disabling the GitOps operator removes the automation that GitOps provides, undermining its core benefits of continuous reconciliation and drift detection.

B.

Manually applying changes to the production cluster defeats the purpose of GitOps, where automation and Git are the sources of truth. Manual intervention should be minimized.

C.

Introducing a pull request approval process in Git is the best way to add manual control while adhering to GitOps principles. This ensures that any changes applied to the production cluster have been reviewed and approved, while maintaining Git as the source of truth. Once changes are merged into the main branch, the GitOps operator automatically applies them to the cluster.

D.

Although continuous synchronization is key to GitOps, adding a review process through pull requests ensures better control over what gets applied, especially in production environments.

Discussion

Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.

You must be logged in to post a comment.

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need