Question 1
IntermediateAuthentication Methods · Choose an authentication method based on use case
A DevOps engineer is configuring a CI/CD pipeline that needs to authenticate to Vault to retrieve database credentials. The pipeline runs in a trusted network zone but creates ephemeral containers for each build. The team wants to avoid managing long-lived static credentials like tokens. Which authentication method is BEST suited for this machine-to-machine scenario to enforce the principle of least privilege and utilize role-based restrictions?
Answer and explanation
Correct answer: C
AppRole is designed specifically for machine-to-machine authentication. It uses a RoleID and SecretID (similar to a username and password for apps) and allows for strict constraints like CIDR blocks and token TTLs, making it ideal for CI/CD pipelines.
