QuestionQ100

VerifiedIntroduction to DevSecOps

Gabriel Jarret works as a senior DevSecOps engineer at an IT company based in Houston, Texas. He uses Vault to manage secrets and protect sensitive data. On February 1, 2022, Gabriel wrote a secret using the vault kv put secret/wejskt command. On February 10, 2022, his team detected a brute-force attack using the Splunk monitoring tool. Gabriel now wants to delete the secret that he wrote on February 1, 2022.

Which of the following commands should Gabriel use to delete a secret in the Vault secret management tool?

Explanation

The HashiCorp Vault CLI uses the vault kv delete <path> command to delete the data at a given path in the KV secrets engine. This mirrors the vault kv put command used to write the secret, so vault kv delete secret/wejskt is the correct command to remove the secret written to secret/wejskt. The other listed options use invalid subcommand names or malformed flag syntax that Vault's CLI does not recognize.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!