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

Which IaC approach ensures Kubernetes infrastructure maintains its desired state automatically?
A) Declarative
B) Imperative
C) Hybrid
D) Manual

Linux Foundation CNPA Exam - Topic 2 Question 18 Discussion

Actual exam question for Linux Foundation's CNPA exam
Question #: 18
Topic #: 2
[All CNPA Questions]

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

Show Suggested Answer Hide Answer
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

Contribute your Thoughts:

0/2000 characters
Sina
2 days ago
Wait, are we sure about that? I thought manual setups were still a thing.
upvoted 0 times
...
Jamal
8 days ago
A) Declarative is the way to go for maintaining state!
upvoted 0 times
...
Adelina
13 days ago
I thought it was B) Imperative? Seems more straightforward.
upvoted 0 times
...
Blythe
18 days ago
Definitely A) Declarative! That's how it works.
upvoted 0 times
...
Timothy
23 days ago
I vaguely recall that the hybrid approach combines elements of both, but I’m leaning towards declarative for this question.
upvoted 0 times
...
Daryl
28 days ago
I'm a bit confused between declarative and imperative. I feel like both have their uses, but only one keeps the state automatically.
upvoted 0 times
...
Rodrigo
1 month ago
I remember practicing a question about Kubernetes and IaC, and I think it was about how declarative configurations are applied.
upvoted 0 times
...
Felicitas
1 month ago
I think the declarative approach is the one that maintains the desired state automatically, but I'm not entirely sure.
upvoted 0 times
...

Save Cancel