Courseiva
CGOA
Gitops PatternseasyMultiple ChoiceObjective-mapped

CGOA Gitops Patterns Practice Question

What does the 'prune' policy in GitOps do?

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

It deletes resources from the cluster that are no longer in Git.

Pruning removes resources from the cluster that are no longer defined in the source Git repository, ensuring the cluster only contains what is declared.

Answer analysis

Option-by-option breakdown

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

  • It deletes resources from the cluster that are no longer in Git.

    Why this is correct

    This is the core function of pruning in GitOps.

  • It cleans up old container logs.

    Why it's wrong here

    Logs are managed by the logging subsystem.

  • It synchronizes the Git repo with the latest upstream changes.

    Why it's wrong here

    This is a 'pull' or 'fetch' operation.

  • It restarts pods that have been running for too long.

    Why it's wrong here

    This is not a function of the sync policy.

About these practice questions

This CGOA question is part of Courseiva's 325-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.