Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp HCVA0-003 Exam - Topic 2 Question 20 Discussion

After decrypting data using the Transit secrets engine, the plaintext output does not match the plaintext credit card number that you encrypted. Which of the following answers provides a solution?$ vault write transit/decrypt/creditcard ciphertext="vault:v1:cZNHVx+sxdMEr......."Key: plaintext Value: Y3JlZGl0LWNhcmQtbnVtYmVyCg==
C) The resulting plaintext data is base64-encoded. To reveal the original plaintext, use the base64 --decode command
A) Vault is sealed, therefore the data cannot be decrypted. Unseal Vault to properly decrypt the data
B) The user doesn't have permission to decrypt the data, therefore Vault returns false data
D) The data is corrupted. Execute the encryption command again using a different data key

HashiCorp HCVA0-003 Exam - Topic 2 Question 20 Discussion

Actual exam question for HashiCorp's HCVA0-003 exam
Question #: 20
Topic #: 2
[All HCVA0-003 Questions]

After decrypting data using the Transit secrets engine, the plaintext output does not match the plaintext credit card number that you encrypted. Which of the following answers provides a solution?

$ vault write transit/decrypt/creditcard ciphertext="vault:v1:cZNHVx+sxdMEr......."

Key: plaintext Value: Y3JlZGl0LWNhcmQtbnVtYmVyCg==

Show Suggested Answer Hide Answer
Suggested Answer: C

Comprehensive and Detailed in Depth

A: Sealing would prevent decryption, not return encoded data. Incorrect.

B: Permission issues don't return encoded data. Incorrect.

C: Transit returns base64-encoded plaintext; decoding Y3JlZGl0LWNhcmQtbnVtYmVyCg== yields ''credit-card-number''. Correct.

D: No evidence of corruption; it's a format issue. Incorrect.

Overall Explanation from Vault Docs:

''All plaintext data must be base64-encoded... Decode it to reveal the original value.''


Contribute your Thoughts:

0/2000 characters
Benedict
4 days ago
I disagree, A makes more sense if the Vault is sealed.
upvoted 0 times
...
Billye
9 days ago
C is the right answer, it's base64-encoded!
upvoted 0 times
...
Tula
14 days ago
I’m not convinced about option B. Permissions usually don’t cause this.
upvoted 0 times
...
Christene
19 days ago
Option A doesn’t make sense here; the Vault isn’t sealed.
upvoted 0 times
...
Floyd
24 days ago
Wait, are we sure the data isn’t corrupted? Sounds suspicious.
upvoted 0 times
...
Novella
29 days ago
Definitely agree with C. That’s a common issue.
upvoted 0 times
...
Madalyn
1 month ago
I think option C is the way to go. Base64 encoding can be tricky!
upvoted 0 times
...
Sherell
1 month ago
I vaguely recall a question about data corruption. If the data is corrupted, we might need to re-encrypt it, right?
upvoted 0 times
...
Marvel
1 month ago
I feel like we discussed permissions affecting decryption. If the user doesn't have the right permissions, could that cause issues?
upvoted 0 times
...
Willodean
2 months ago
I'm not entirely sure, but I think if the Vault is sealed, it wouldn't let us decrypt anything at all.
upvoted 0 times
...
Kristine
3 months ago
I remember something about base64 encoding from our practice sessions. Could it be that the output is just encoded?
upvoted 0 times
...

Save Cancel