003 · Domain 9: Access management architecture · 5% of the exam
Task 9.2: Describe the Vault Secrets Operator
A Kubernetes operator that syncs Vault secrets into Kubernetes Secrets through custom resources, refreshes and rollout restarts, dynamic secret leases, the encrypted client cache and instant updates.
Study it
Vault Secrets Operator: syncing Vault secrets into Kubernetes Secrets
Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.
Question 1 · choose 1
A Deployment's pods read database credentials from a Kubernetes Secret through environment variables. The credentials come from Vault's database secrets engine, and the pods cannot reload them while running. When the Vault Secrets Operator replaces the credentials, the pods must pick them up. Which configuration fits?
AA VaultDynamicSecret for the database path with rolloutRestartTargets naming the Deployment
BA VaultStaticSecret for the database path with refreshAfter set
CA VaultDynamicSecret for the database path with no further settings
DVault Agent injector annotations on the Deployment's pod template
Show the answer and why
AA VaultDynamicSecret for the database path with rolloutRestartTargets naming the Deployment
Correct
VaultDynamicSecret syncs dynamic credentials, and rollout restart targets restart workloads that cannot reload a rotated secret.
BA VaultStaticSecret for the database path with refreshAfter set
Incorrect
VaultStaticSecret syncs KV v1 and v2 secrets, not dynamic database credentials.
CA VaultDynamicSecret for the database path with no further settings
Incorrect
The Secret would be updated, but running pods keep the environment variables they started with.
DVault Agent injector annotations on the Deployment's pod template
Incorrect
The injector renders files into a shared volume; it does not maintain the Kubernetes Secret the pods read.
VSO writes Vault secrets into Kubernetes Secrets; for consumers that only read secrets at start, add rollout restart targets.