CK.IV · CKAD practice question

In a Kubernetes Secret YAML manifest, if you put plaintext in stringData and base64-encoded text in data, what does the API server do?

Choose one answer
Check answer and explanation

Correct answer: Decodes stringData and merges it into base64-encoded data upon creation/update

Explanation

stringData is a write-only convenience field that accepts plaintext and is automatically base64-encoded into data by the API server (and omitted when reading back the Secret).

Common trap

stringData is a write-only convenience field that accepts plaintext and is automatically base64-encoded into data by the API server (and omitted when reading back the Secret).

Source: Original unofficial practice; not an official CKAD exam item
Checked against the cited text on 2026-11-30.

Report an error in this question