Exam KCNA All QuestionsBrowse all questions from this exam
Question 54

Which Kubernetes resource uses immutable: true boolean field?

    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
BolgarwowOption: C

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

alex78Option: C

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

DebayanOption: C

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.

hovnivalOption: C

Copilot says C giving also similiar example like Bolgarwow gave.

omerco61Option: A

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.

ankreOption: B

B is correct