What setting allows a ConfigMap to be prevented from being modified after creation?

Prepare for the KCNA Certification Test. Study with flashcards, multiple-choice questions, and detailed explanations to enhance your understanding of Kubernetes Cloud Native concepts. Ace your exam!

Multiple Choice

What setting allows a ConfigMap to be prevented from being modified after creation?

Explanation:
Setting the ConfigMap to be immutable prevents any updates after it’s created. When the immutability flag is true, the API server rejects changes to that ConfigMap, so its data cannot be modified in place. If you need to change the configuration, you must create a new ConfigMap (often with a new name or version) and update the dependent resources to reference the new one. The other options don’t provide this post-creation protection: there isn’t built-in versioning for ConfigMaps, quotas control resource limits, and pod security policies govern security constraints, not immutability of config data.

Setting the ConfigMap to be immutable prevents any updates after it’s created. When the immutability flag is true, the API server rejects changes to that ConfigMap, so its data cannot be modified in place. If you need to change the configuration, you must create a new ConfigMap (often with a new name or version) and update the dependent resources to reference the new one. The other options don’t provide this post-creation protection: there isn’t built-in versioning for ConfigMaps, quotas control resource limits, and pod security policies govern security constraints, not immutability of config data.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy