nerdexam
HashiCorp

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.

Submitted by cyberguy42· Apr 18, 2026Operate Vault

Question

What environment variable overrides the CLI's default Vault server address?

Options

  • AVAULT_ADDR
  • BVAULT_HTTP_ADDRESS
  • CVAULT_ADDRESS
  • DVAULT_HTTPS_ADDRESS

How the community answered

(24 responses)
  • A
    92% (22)
  • B
    4% (1)
  • D
    4% (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.

AVAULT_ADDRCorrect

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

BVAULT_HTTP_ADDRESS

`VAULT_HTTP_ADDRESS` is not the standard environment variable used by Vault clients to specify the server address; `VAULT_ADDR` is the correct one.

CVAULT_ADDRESS

`VAULT_ADDRESS` is a generic name and not the specific environment variable recognized by the Vault CLI for specifying the server address.

DVAULT_HTTPS_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

#Vault CLI#Environment variables#Vault server address configuration

Community Discussion

No community discussion yet for this question.

Full VAULT-ASSOCIATE-002 Practice