A DevOps team is writing a Vault policy for a CI/CD pipeline that needs to authenticate using AppRole, read specific secrets, and write dynamic database credentials. Which THREE capabilities should be included in the policy to meet these requirements? (Choose three.)
Correct. 'read' is required to read secrets and to generate dynamic database credentials (both are read operations).
Why this answer
The only capability required for the described tasks is 'read'. Reading specific secrets from KV v2 or generating dynamic database credentials (via database/creds/<role-name>) both use the 'read' operation. AppRole authentication is handled before the policy applies; the policy itself does not need to grant capabilities for the login process.
Exam trap
Candidates often confuse 'write' with 'create' and 'update', not realizing that Vault uses specific capabilities: 'create' for new resources, 'update' for changes to existing ones, and 'read' for reading data (including generating dynamic credentials). The 'write' capability is a more generic permission that was used in older policies but is now replaced by finer-grained capabilities. Also, generating dynamic database credentials requires 'read' on the creds path, not 'create'.