312-97 practice question 22 of 35
(Gabriel Jarret has been working as a senior DevSecOps engineer in an IT company located in Houston, Texas. He is using Vault to manage secrets and…
Full set: 100 questionsThe correct command to delete a secret using the HashiCorp Vault Command Line Interface (CLI) for the Key-Value (KV) secrets engine is vault kv delete. The command structure requires the subcommand delete followed by the path to the secret. In this scenario, the path to the secret is secret/wejskt. Therefore, the full and accurate command Gabriel should use is vault kv delete secret/wejskt. The other options use incorrect syntax for the delete operation.
A. -delete is incorrect syntax. Command-line arguments are typically preceded by hyphens, but delete is a subcommand, not an argument or flag.
B. del is not the standard subcommand for deletion in the Vault CLI. The correct and fully documented subcommand is delete.
C. -del is incorrect syntax. It improperly combines a hyphen with a non-standard abbreviation for the delete subcommand.
1. HashiCorp Vault Official Documentation, "KV - Secrets Engines". The documentation for the delete command explicitly shows the syntax: vault kv delete [options] PATH. (Source: https://developer.hashicorp.com/vault/docs/commands/kv/delete, Command Syntax section).
2. HashiCorp Vault Official Documentation, "KV Version 2 - Secrets Engines". The examples provided for deleting secret versions also use the delete subcommand, such as vault kv delete secret/foo. (Source: https://developer.hashicorp.com/vault/docs/secrets/kv/kv-v2, "Deleting Versions" section).
Keep practicing
Take the free 312-97 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other 312-97 practice questions
- Question 1(Sandra Oliver joined SinClare Soft Pvt. Ltd. as a DevSecOps engineer in January of 2010.…
- Question 2(Robert Wheeler has been working as a DevSecOps engineer in an IT company for the past 5 …
- Question 3(Debra Aniston is a DevSecOps engineer in an IT company that develops software products a…
- Question 4(Craig Kelly has been working as a software development team leader in an IT company over…
- Question 5(Walter O’Brien recently joined as a junior DevSecOps engineer in an IT company located i…
- Question 6(SinCaire is a software development company that develops web applications for various cl…
