Which TWO statements are true when troubleshooting a failed Vault CLI command?
Trap 1: Run 'vault write' to test if the token can write to a path.
Writing is not a troubleshooting step; reading or looking up is more diagnostic.
Trap 2: Run 'vault status' to check if the server is reachable.
While server connectivity is important, the command failure may be due to token issues rather than connectivity.
Trap 3: Run 'vault read' to test if any secret is accessible.
While reading may reveal permission issues, it is not a direct troubleshooting step for CLI failures.
- A
Run 'vault token lookup' to verify the token is valid and has the expected policies.
This helps diagnose token-related issues.
- B
Run 'vault write' to test if the token can write to a path.
Why wrong: Writing is not a troubleshooting step; reading or looking up is more diagnostic.
- C
Run 'vault login' to re-authenticate and obtain a new token if needed.
If the token is expired or invalid, logging in again is necessary.
- D
Run 'vault status' to check if the server is reachable.
Why wrong: While server connectivity is important, the command failure may be due to token issues rather than connectivity.
- E
Run 'vault read' to test if any secret is accessible.
Why wrong: While reading may reveal permission issues, it is not a direct troubleshooting step for CLI failures.