Courseiva
CGOA
Related PracticeshardMultiple ChoiceObjective-mapped

CGOA Related Practices Practice Question

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

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

At the Kubernetes API server using an Admission Controller like OPA Gatekeeper.

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

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • During the Git commit process using local pre-commit hooks.

    Why it's wrong here

    Local hooks can be bypassed by users and do not enforce policy on the actual cluster state.

  • In the CI pipeline during the image scanning phase.

    Why it's wrong here

    CI scanning only checks the image; it does not validate the Kubernetes manifest configuration or operational policies.

  • At the Kubernetes API server using an Admission Controller like OPA Gatekeeper.

    Why this is correct

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

  • By manually reviewing the Git diffs before merging the pull request.

    Why it's wrong here

    Manual review is not automated and is prone to human error, failing the DevSecOps goal of continuous automation.

About these practice questions

One of 325 original CGOA practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed August 2026 · checked against the official CNCF / Linux Foundation exam blueprint

This CGOA practice question is part of Courseiva's free CNCF / Linux Foundation certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CGOA exam.