KCNA Exam QuestionsBrowse all questions from this exam

KCNA Exam - Question 54


Which Kubernetes resource uses immutable: true boolean field?

Show Answer
Correct Answer: C

ConfigMap resource in Kubernetes includes an immutable: true field. This field, when set to true, ensures that the data within the ConfigMap cannot be modified after the resource has been created, thus providing immutability.

Discussion

6 comments
Sign in to comment
BolgarwowOption: C
Apr 1, 2024

apiVersion: v1 kind: ConfigMap metadata: name: test-immutable labels: app.kubernetes.io/name: kubernetes-hacks-and-tricks app.kubernetes.io/created-by: ssbostan immutable: true ConfigMap

DebayanOption: C
Apr 5, 2024

Kubernetes ConfigMap and Secret resources have a field called immutable which, if set to true, ensures that the data of ConfigMap/Secret cannot be updated after the resource is created.

alex78Option: C
May 2, 2024

https://kubernetes.io/docs/concepts/configuration/configmap/#configmap-immutable

ankreOption: B
Dec 6, 2023

B is correct

omerco61Option: A
Feb 10, 2024

In Kubernetes, the immutable: true boolean field is associated with the Deployment resource. This field is used to indicate whether the Deployment is immutable, meaning that its spec, such as the template for the Pods it manages, cannot be changed.

hovnivalOption: C
Apr 23, 2024

Copilot says C giving also similiar example like Bolgarwow gave.