Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Vault Associate 002 All Questions

View all questions & answers for the Vault Associate 002 exam

Exam Vault Associate 002 topic 1 question 58 discussion

Actual exam question from HashiCorp's Vault Associate 002
Question #: 58
Topic #: 1
[All Vault Associate 002 Questions]

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?

  • A. Environment variables take precedence over flags
  • B. VAULT_CLUSTER_ADDR needs to be provided
  • C. Flags take precedence over environment variables
  • D. Vault listener is misconfigured
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
daz_rekka
10 months, 1 week ago
Selected Answer: C
Flags always take precedence over Environment Variables https://developer.hashicorp.com/vault/docs/commands#environment-variables
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...