ExamGecko
Question list
Search
Search

Question 4 - Vault Associate 002 discussion

Report
Export

To make an authenticated request via the Vault HTTP API, which header would you use?

A.
The X-Vault-Token HTTP Header
Answers
A.
The X-Vault-Token HTTP Header
B.
The x-Vault-Request HTTP Header
Answers
B.
The x-Vault-Request HTTP Header
C.
The Content-Type HTTP Header
Answers
C.
The Content-Type HTTP Header
D.
The X-Vault-Namespace HTTP Header
Answers
D.
The X-Vault-Namespace HTTP Header
Suggested answer: A

Explanation:

To make an authenticated request via the Vault HTTP API, you need to use the X-Vault-Token HTTP Header or the Authorization HTTP Header using the Bearer <token> scheme. The token is a string that represents your identity and permissions in Vault. You can obtain a token by using an authentication method, such as userpass, approle, aws, etc. The token can also be a root token, which has unlimited access to Vault, or a wrapped token, which is a response-wrapping token that can be used to unwrap the actual token. The token must be sent with every request to Vault that requires authentication, except for the unauthenticated endpoints, such as sys/init, sys/seal-status, sys/unseal, etc.The token is used by Vault to verify your identity and enforce the policies that grant or deny access to various paths and operations.Reference: https://developer.hashicorp.com/vault/api-docs3, https://developer.hashicorp.com/vault/docs/concepts/tokens4, https://developer.hashicorp.com/vault/docs/concepts/auth5

asked 18/09/2024
Nandor Gombos
47 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first