HashiCorp Certified: Vault Associate (002) — Question 76

Security requirements demand that no secrets appear in the shell history. Which command does not meet this requirement?

Answer options

Correct answer: B

Explanation

The correct answer is B because the command directly includes the secret 'itsasecret' in the command line, which would be stored in shell history. Options A, C, and D do not expose the secret directly in the command line; instead, they use a pipe or an environment variable, which helps prevent the secret from being saved in the shell history.