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 questionsDeclarative 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.
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.
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
Keep practicing
Take the free CNPA practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CNPA practice questions
- Question 1In the context of observability for cloud native platforms, which of the following best d…
- Question 2Which of the following is a primary benefit of using Kubernetes Custom Resource Definitio…
- Question 3Which key observability signal helps detect real-time performance bottlenecks in a Kubern…
- Question 4In a Continuous Integration (CI) pipeline, what is a key benefit of using automated build…
- Question 5A developer is struggling to access the necessary services on a cloud native platform due…
- Question 6During a CI/CD pipeline setup, at which stage should the Software Bill of Materials (SBOM…
