A user issues the following cURL command to encrypt data using the transit engine and the Vault AP:

Which payload.json file has the correct contents?
A.

B.

C.

D.

Suggested Answer: C
Get Premium Vault-Associate Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
The payload.json file that has the correct contents is C. This file contains a JSON object with a single key, ''plaintext'', and a value that is the base64-encoded string of the data to be encrypted.This is the format that the Vault API expects for the transit encrypt endpoint1. The other files are not correct because they either have the wrong key name, the wrong value format, or the wrong JSON syntax.
Encrypt Data - Transit Secrets Engine | Vault | HashiCorp Developer
17 comments · newest first
TY
Tyisha
27 days ago
I’m leaning towards B too. It matches the command.
EL
Eliseo
1 month ago
D has some interesting elements, but not for this.
VI
Viva
1 month ago
C is a bit off. B is definitely the best choice.
RO
Rodolfo
1 month ago
I feel like C is overlooked. It has valid parameters.
DI
Dion
2 months ago
A has some good points, but B is more complete.
RA
Rasheeda
2 months ago
Not so sure about B. What about Option A?
EV
Evette
2 months ago
I agree, B seems to have the right structure.
TU
Tu
2 months ago
I think Option B looks correct.
LA
Lawrence
2 months ago
I agree with Eric, B is the way to go!
AR
Art
2 months ago
Wait, are we sure about Option D? It seems off to me.
MA
Mammie
3 months ago
Nah, Option A is definitely the best choice here.
KR
Kris
3 months ago
I think Option C is the correct one, looks more complete.
ER
Eric
3 months ago
Option B has the right structure for the payload.
JU
Julio
3 months ago
I feel like option C is the one we discussed in class, but I need to double-check the specifics of the JSON structure.
AN
Annelle
3 months ago
I recall that the payload should include the plaintext data and the key name, but I can't remember the exact format.
MA
Major
3 months ago
I think it might be option B because it looks like it has the right fields for encryption, but I could be mixing it up with another example.
DI
Dion
4 months ago
I remember we practiced a similar question about the payload structure for the transit engine, but I'm not sure which option is correct here.