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
Gracie
1 day ago
I feel like A) Declarative is the industry standard now.
upvoted 0 times
...
Rolf
6 days ago
A) Declarative is the best choice. It simplifies management.
upvoted 0 times
...
Shaunna
11 days ago
D) Manual? No way! Too error-prone.
upvoted 0 times
...
Loreta
17 days ago
C) Hybrid could work, but I prefer the clarity of A) Declarative.
upvoted 0 times
...
Isadora
22 days ago
Definitely A) Declarative. It’s all about maintaining the desired state.
upvoted 0 times
...
Elbert
27 days ago
I’m leaning towards B) Imperative, but it feels less efficient.
upvoted 0 times
...
Alyce
1 month ago
Agreed! Declarative is the way to go. It automates state management.
upvoted 0 times
...
Louisa
1 month ago
I think the answer is A) Declarative. It keeps everything in sync.
upvoted 0 times
...
Xuan
1 month ago
Totally agree with A) Declarative! It's the best practice.
upvoted 0 times
...
Sina
2 months ago
Wait, are we sure about that? I thought manual setups were still a thing.
upvoted 0 times
...
Jamal
2 months ago
A) Declarative is the way to go for maintaining state!
upvoted 0 times
...
Adelina
2 months ago
I thought it was B) Imperative? Seems more straightforward.
upvoted 0 times
...
Blythe
2 months ago
Definitely A) Declarative! That's how it works.
upvoted 0 times
...
Timothy
2 months 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
2 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.
upvoted 0 times
...
Rodrigo
3 months 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
3 months 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