HashiCorp
VAULT-ASSOCIATE-002 · Question #96
You manage two Vault dusters: "vaultduster1.acme.corp" and "vaultduster2.acme.corp". You want to write a secret to the first Vaultcluster vaultcluster1.acme.corp and run vault kv put secret/foo value=
Sign in or unlock VAULT-ASSOCIATE-002 to reveal the answer and full explanation for question #96. The question stem and answer options stay visible for context.
Submitted by chen.hong· Apr 18, 2026Operate Vault
Question
You manage two Vault dusters: "vaultduster1.acme.corp" and "vaultduster2.acme.corp". You want to write a secret to the first Vaultcluster vaultcluster1.acme.corp and run vault kv put secret/foo value='bar'. The command times out and the error references the Vault cluster, "vaultcluster2.acme.corp". You run the command again with the following address flag: vault kv put -address='https://vaultcluster1.acme.corp' secret/foo value='bar' The command completes successfully. You find that the terminal session defines the environment variable VAULT_ADDR='https://vaultcluster2.acxe.corp:8200' Why was the second attempt successful?
Options
- AEnvironment variables take precedence over flags
- BVAULT_CLUSTER_ADDR needs to be provided
- CFlags take precedence over environment variables
- DVault listener is misconfigured
Unlock VAULT-ASSOCIATE-002 to see the answer
You've previewed enough free VAULT-ASSOCIATE-002 questions. Unlock VAULT-ASSOCIATE-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Vault CLI#Configuration precedence#VAULT_ADDR#Command-line flags