Vault Associate 002 Exam QuestionsBrowse all questions from this exam

Vault Associate 002 Exam - Question 39


Examine the command below. Output has been trimmed.

Which of the following statements describe the command and its output?

Show Answer
Correct Answer: D

The command shown is an example of using the Vault AppRole authentication method to authenticate and obtain a token with a specified role_id and secret_id. The output displays details of the token generated, such as its token policies and duration. Therefore, it describes the process of logging in using the AppRole auth method with the user-specified role ID and secret ID.

Discussion

4 comments
Sign in to comment
gvyecvlcOption: A
Mar 30, 2024

A is more correct

daz_rekkaOption: D
Jan 22, 2024

Correct statement as per https://developer.hashicorp.com/vault/docs/auth/approle#authentication and https://developer.hashicorp.com/vault/docs/auth/approle#credentials-constraints

3fac4efOption: A
Mar 4, 2024

auth/my-path/login API endpoint is used for authentication, but not configuring custom/static role_id/secret_id, so the right answer here should be A, since default policy is missing from the output. Answer A

nginx_awsOption: D
Apr 10, 2024

This statement is partially correct. The command is indeed using the AppRole authentication method to log in with a specified role ID and secret ID. However, it’s not configuring the AppRole auth method; it’s using it to authenticate and obtain a token. Configuration of AppRole involves setting up roles and associated policies, which is not what this command is doing. So, based on the information provided, the accurate description of the command and its output is not fully captured by any of the listed statements. The closest accurate statement is D, but it should be noted that the command is for authentication, not configuration.