HCVA0-003 practice question 6 of 35
What is the default method of authentication after first initializing Vault?
Full set: 285 questionsUpon 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.
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.
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.
Keep practicing
Take the free HCVA0-003 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other HCVA0-003 practice questions
- Question 1Which two characters can be used when writing a policy to reflect a wildcard or path segm…
- Question 2You have multiple Vault clusters in your environment, one for test and one for production…
- Question 3Short-lived, dynamically generated secrets provide organizations with many benefits. Sele…
- Question 4When Vault is sealed, which are the only two operations available to a Vault administrato…
- Question 7Which two interfaces automatically assume the token for subsequent requests after success…
- Question 8You need to connect to and manage a new HCP Vault cluster using the Vault CLI on your lap…
