HCVA0-003 practice question 6 of 35

What is the default method of authentication after first initializing Vault?

Full set: 285 questions
Answer options
A: TLS certificates
B: GitHub
C: Admin account
D: Tokens Correct answer
E: AppRole
F: Userpass
Correct Answer:
D. Tokens
Explanation

Upon initialization using the vault operator init command, Vault generates an initial root token. This token is the only authentication method available by default and is intended for the initial setup and configuration of Vault. The token authentication method is a core, built-in component of Vault. All other authentication methods, such as Userpass, AppRole, or GitHub, must be explicitly enabled and configured using this initial root token or another token with sufficient permissions. Therefore, tokens are the default and fundamental method of authentication in a newly initialized Vault instance.

Why Incorrect

A. TLS certificates: The TLS certificate authentication method is a valid method but is not enabled by default and requires explicit configuration.
B. GitHub: The GitHub authentication method is a valid method but is not enabled by default and requires explicit configuration.
C. Admin account: Vault does not use a traditional "admin account" with a username/password for initial access; it uses a root token.
E. AppRole: The AppRole authentication method is designed for machine-to-machine access but is not enabled by default and requires explicit configuration.
F. Userpass: The Userpass authentication method allows for username/password-based login but is not enabled by default and requires explicit configuration.

References

1. HashiCorp Vault Official Documentation, "Auth Methods - Concepts": "Vault has a built-in 'token' auth method. This method is enabled by default and cannot be disabled. When you first initialize Vault, a root token is created. This token is used for the initial setup of Vault. All other auth methods must be enabled."

Source: HashiCorp Vault Documentation, Docs > Vault > Concepts > Auth Methods.

2. HashiCorp Vault Official Documentation, "Command: operator init": "The vault operator init command initializes a Vault server... The output of this command is the unseal keys and the initial root token. This is the only time the unseal keys and initial root token are ever returned."

Source: HashiCorp Vault Documentation, Docs > Vault > Commands > operator init.

3. HashiCorp Vault Official Documentation, "Token Auth Method (API)": "The token auth method is the primary method for authentication in Vault and is automatically enabled at /auth/token. It allows users to authenticate using a token."

Source: HashiCorp Vault Documentation, Docs > Vault > API Docs > Auth Methods > Token.

Scroll to Top