U.S. Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
Kristine
2 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