Refer to the exhibit. A user has a token that has the 'default' policy attached. What actions can the user perform on 'secret/data/team'?
Exhibit
$ vault policy list admin-policy default readonly $ vault token capabilities secret/data/team read, list $ vault token capabilities -policy=readonly secret/data/team read, list $ vault token capabilities -policy=admin-policy secret/data/team create, read, update, delete, list
Trap 1: Read only
Read only is incorrect because the default policy does not grant read permission on this path.
Trap 2: Create, read, update, delete, list
Create, read, update, delete, list is incorrect as the default policy grants no such permissions.
Trap 3: Read and list only
Read and list only is incorrect because the default policy does not grant read or list permissions on this path.
- A
No actions
The default policy provides no access to 'secret/data/team'; therefore, 'No actions' is correct.
- B
Read only
Why wrong: Read only is incorrect because the default policy does not grant read permission on this path.
- C
Create, read, update, delete, list
Why wrong: Create, read, update, delete, list is incorrect as the default policy grants no such permissions.
- D
Read and list only
Why wrong: Read and list only is incorrect because the default policy does not grant read or list permissions on this path.