Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CNPA Exam - Topic 2 Question 18 Discussion

Posted by Kris on Jun 30, 2026 at 08:19 AM

Which IaC approach ensures Kubernetes infrastructure maintains its desired state automatically?

Suggested Answer: A

The declarative approach to Infrastructure as Code (IaC) is the foundation of Kubernetes and GitOps practices. Option A is correct because declarative IaC defines the desired state of the infrastructure (e.g., Kubernetes YAML manifests) and relies on controllers or reconciliation loops to ensure the actual state matches the declared one. This allows for automation, consistency, and drift correction without manual intervention.

Option B (imperative) requires explicit step-by-step instructions, which are not automatically enforced after execution. Option C (hybrid) can combine both methods but does not guarantee reconciliation. Option D (manual) is error-prone and eliminates the benefits of IaC entirely.

Declarative IaC reduces cognitive load, improves reproducibility, and ensures compliance through automated drift detection and reconciliation, which are essential in platform engineering for multi-cluster and multi-team environments.


--- CNCF GitOps Principles

--- Kubernetes Declarative Model

--- Cloud Native Platform Engineering Study Guide

Get Premium CNPA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
25 comments · newest first
PA
Paris 5 days ago
Yeah, A) Declarative is definitely the best choice here.
MO
Monroe 10 days ago
I love how Declarative handles changes automatically.
NA
Nakisha 15 days ago
C) Hybrid could work, but not as effective as A.
CA
Carline 20 days ago
D) Manual? No way! That’s too error-prone.
AL
Alyce 26 days ago
B) Imperative seems too hands-on. Not ideal for automation.
RO
Roselle 1 month ago
I feel confident about A too. It simplifies management.
SH
Shaunna 1 month ago
Agreed! Declarative is the way to go. It’s efficient.
DE
Desirae 1 month ago
I think the answer is A) Declarative. It keeps the state automatically.
GR
Gracie 2 months ago
I feel like A) Declarative is the industry standard now.
RO
Rolf 2 months ago
A) Declarative is the best choice. It simplifies management.
SH
Shaunna 2 months ago
D) Manual? No way! Too error-prone.
LO
Loreta 2 months ago
C) Hybrid could work, but I prefer the clarity of A) Declarative.
IS
Isadora 2 months ago
Definitely A) Declarative. It’s all about maintaining the desired state.
EL
Elbert 2 months ago
I’m leaning towards B) Imperative, but it feels less efficient.
AL
Alyce 3 months ago
Agreed! Declarative is the way to go. It automates state management.
LO
Louisa 3 months ago
I think the answer is A) Declarative. It keeps everything in sync.
XU
Xuan 3 months ago
Totally agree with A) Declarative! It's the best practice.
SI
Sina 3 months ago
Wait, are we sure about that? I thought manual setups were still a thing.
JA
Jamal 3 months ago
A) Declarative is the way to go for maintaining state!
AD
Adelina 3 months ago
I thought it was B) Imperative? Seems more straightforward.
BL
Blythe 4 months ago
Definitely A) Declarative! That's how it works.
TI
Timothy 4 months ago
I vaguely recall that the hybrid approach combines elements of both, but I’m leaning towards declarative for this question.
DA
Daryl 4 months ago
I'm a bit confused between declarative and imperative. I feel like both have their uses, but only one keeps the state automatically.
RO
Rodrigo 4 months ago
I remember practicing a question about Kubernetes and IaC, and I think it was about how declarative configurations are applied.
FE
Felicitas 4 months ago
I think the declarative approach is the one that maintains the desired state automatically, but I'm not entirely sure.
0/2000 characters

Save Cancel