HashiCorp Certified: Vault Associate (003) Free Sample Questions

Description

Covers Vault authentication methods, policy syntax, service and batch tokens, lease renewal and revocation, dynamic and static secrets engines, and sealing and cluster architecture.

12 free sample questions175 in the full practice test

Try simulator

VA-003 Sample Questions

  1. Question 1

    Intermediate

    Authentication 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.

  2. Question 2

    Advanced

    Authentication Methods · Configure authentication methods using the API, CLI, and UI

    You are integrating an external identity provider using OIDC for your developer team. You have successfully enabled the auth method at auth/oidc. You now need to configure the role that maps the OIDC provider's claims to Vault policies. Which CLI command should you use to register this role configuration?

    Answer and explanation

    Correct answer: B

    The vault write command is used to configure roles for auth methods. The path auth/oidc/role/ is the standard endpoint for OIDC role configuration, where parameters like user_claim, allowed_redirect_uris, and policies are defined.

  3. Question 3

    Intermediate

    Authentication Methods · Define the purpose of identities and groups

    A security architect is designing an access model where users can log in via GitHub or LDAP. Regardless of the authentication method used, the user should be recognized as the same unique identity within Vault to maintain consistent policy application and audit trails. Which Vault component facilitates this requirement?

    Answer and explanation

    Correct answer: A

    Vault Identity Entities represent a single user across multiple auth methods. Aliases map specific auth method logins (like a GitHub username or LDAP DN) to a single Entity, allowing consistent identity management.

  4. Question 4

    Advanced

    Authentication Methods · Configure authentication methods using the API, CLI, and UI

    While troubleshooting a Kubernetes authentication issue, you notice that the application pod is receiving a 403 Permission Denied error when attempting to login. You verify the role exists. Which API endpoint would you check to confirm the Kubernetes auth method configuration, specifically the kubernetes_host and kubernetes_ca_cert?

    Answer and explanation

    Correct answer: D

    The GET /auth/kubernetes/config endpoint allows you to read the configuration of the Kubernetes auth method, including the API server host and CA certificate used to verify service account tokens.

  5. Question 5

    Intermediate

    Authentication Methods · Authenticate to Vault using the API, CLI, and UI

    A developer needs to authenticate to Vault using the Userpass method via the API. The Vault server is located at https://vault.example.com:8200. Which of the following curl commands correctly performs the login operation?

    Answer and explanation

    Correct answer: A

    The Userpass login endpoint format is POST /v1/auth/userpass/login/:username. The password is sent in the JSON body payload. This returns a JSON response containing the client token.

  6. Question 6

    BeginnerMultiple answers

    Authentication Methods · Explain the difference between human vs. system authentication methods

    You are consulting for a company that wants to standardize their Vault authentication. They need to separate human users from automated workloads. Which of the following authentication methods are primarily designed for Machine/System authentication? (Select TWO)

    Answer and explanation

    Correct answers: B, C

    AppRole is a machine-oriented auth method that uses RoleIDs and SecretIDs for automated login.

    The Kubernetes auth method is designed for machine workloads (Pods) to authenticate using their Service Account tokens.

Register free for 6 more questions

Or unlock all 175 VA-003 questions with explanations, timed mode and flashcards.