What is a potential risk when using secrets in Kubernetes?

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 is a potential risk when using secrets in Kubernetes?

Explanation:
The risk comes from how Kubernetes stores secret data. Secrets are kept in etcd, and by default they are only base64-encoded, not encrypted. If someone gains access to etcd directly, or can retrieve the secret’s YAML representation from the API, they can decode or read the secret value. Enabling encryption at rest for etcd and strictly controlling who can read secrets (RBAC, API access) are essential to reduce this risk. The other statements aren’t accurate: encryption at rest isn’t guaranteed by default, etcd compromise can expose secrets, and Kubernetes doesn’t automatically rotate secret values.

The risk comes from how Kubernetes stores secret data. Secrets are kept in etcd, and by default they are only base64-encoded, not encrypted. If someone gains access to etcd directly, or can retrieve the secret’s YAML representation from the API, they can decode or read the secret value. Enabling encryption at rest for etcd and strictly controlling who can read secrets (RBAC, API access) are essential to reduce this risk. The other statements aren’t accurate: encryption at rest isn’t guaranteed by default, etcd compromise can expose secrets, and Kubernetes doesn’t automatically rotate secret values.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy