CNPA practice question 7 of 15

In a cloud native environment, which approach is effective for managing resources to ensure a balance between defined states and dynamic adjustments?

Full set: 85 questions
Answer options
A: Imperative Resource Management
B: Manual Resource Tracking
C: Declarative Resource Management Correct answer
D: Static Resource Allocation
Correct Answer:
C. Declarative Resource Management
Explanation

Declarative resource management is a core principle of cloud-native systems. It involves defining the desired state of the system in configuration files (e.g., YAML manifests). A control plane, such as the Kubernetes controller manager, then continuously monitors the system's actual state and automatically takes action to reconcile any differences, ensuring it matches the declared state. This model effectively balances a predefined configuration with the need for dynamic, autonomous adjustments, such as self-healing by replacing failed pods or auto-scaling based on load. It provides a robust, predictable, and automated approach to managing complex, distributed environments.

Why Incorrect

A. Imperative Resource Management: This approach specifies the exact sequence of commands to execute, which lacks the automatic reconciliation and self-healing capabilities inherent in the declarative model.
B. Manual Resource Tracking: This is not a management approach but a reactive process that is unscalable, error-prone, and unsuitable for the dynamic nature of cloud-native applications.
D. Static Resource Allocation: This method is rigid and inefficient. It pre-allocates fixed resources, failing to leverage the elasticity and on-demand capabilities that are hallmarks of cloud-native computing.

References

1. Kubernetes Documentation

"Managing Kubernetes Objects Using Declarative Configuration": "When using the declarative approach

a user operates on Kubernetes object configuration files stored locally. [...] The kubectl apply command takes the user's intent and determines the changes required to make the live object configuration match the configuration file." This document explicitly contrasts this with the imperative approach and highlights its benefits for managing state.

2. The Cloud Native Trail Map

Cloud Native Computing Foundation (CNCF): The CNCF

which hosts Kubernetes

defines cloud-native principles. The trail map emphasizes "Declarative APIs" as a foundational step (Step 2: CI/CD

Step 4: Observability & Analysis). The concept underpins the automation and resilience of cloud-native architectures.

3. Burns

B.

Beda

J.

& Hightower

K. (2016). Borg

Omega

and Kubernetes: Lessons learned from three container-management systems over a decade. ACM Queue

14(1)

70-93. In Section "Kubernetes

" the authors state

"All state in a Kubernetes cluster is expressed in declarative configuration objects... The declarative

API-driven nature of Kubernetes enables a great deal of automation..." This peer-reviewed article from the creators of Kubernetes establishes the declarative model as a fundamental design principle. DOI: https://doi.org/10.1145/2898442.2898444

Scroll to Top