VAULT-ASSOCIATE-002 · Question #2
What environment variable overrides the CLI's default Vault server address?
The correct answer is A. VAULT_ADDR. The VAULT_ADDR environment variable is specifically used to configure the address of the Vault server that the CLI or client applications should connect to, overriding any default or configuration file settings.
Question
Options
- AVAULT_ADDR
- BVAULT_HTTP_ADDRESS
- CVAULT_ADDRESS
- DVAULT_HTTPS_ADDRESS
How the community answered
(24 responses)- A92% (22)
- B4% (1)
- D4% (1)
Why each option
The `VAULT_ADDR` environment variable is specifically used to configure the address of the Vault server that the CLI or client applications should connect to, overriding any default or configuration file settings.
The `VAULT_ADDR` environment variable is the standard and well-documented way to specify the address of the Vault server for the CLI and client libraries. Setting this variable allows users to connect to a specific Vault instance without explicitly providing the address in every command, such as `vault login` or `vault kv get`.
`VAULT_HTTP_ADDRESS` is not the standard environment variable used by Vault clients to specify the server address; `VAULT_ADDR` is the correct one.
`VAULT_ADDRESS` is a generic name and not the specific environment variable recognized by the Vault CLI for specifying the server address.
`VAULT_HTTPS_ADDRESS` is not the standard environment variable used by Vault clients; `VAULT_ADDR` handles both HTTP and HTTPS based on the URI scheme.
Concept tested: Vault CLI environment variables
Source: https://www.vaultproject.io/docs/concepts/environment-variables
Topics
Community Discussion
No community discussion yet for this question.