Courseiva
Explain encryption as a serviceeasyMultiple ChoiceObjective-mapped

VA-003 Explain encryption as a service Practice Question

A developer wants to encrypt data using Vault's transit engine but does not want to base64 encode the ciphertext after encryption. What is the recommended way to handle this?

⚠ Common exam trap

HashiCorp often tests the misconception that you can set a `base64=false` parameter to get raw ciphertext, but the Vault API strictly enforces base64 encoding on both input and output for the transit engine.

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

The ciphertext is always base64 encoded, so the client must decode it after receiving

The Vault Transit Secrets Engine always returns ciphertext as a base64-encoded string, regardless of whether the input plaintext was base64-encoded or raw. The API specification requires the client to decode the base64 ciphertext after receiving it if the original plaintext was raw bytes. There is no parameter to disable base64 encoding of the ciphertext output.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • The ciphertext is always base64 encoded, so the client must decode it after receiving

    Why this is correct

    Correct: output is always base64.

  • Use the `/transit/encrypt` endpoint with `base64=false`

    Why it's wrong here

    No such parameter exists.

  • Set the `plaintext` parameter to the raw bytes

    Why it's wrong here

    The API expects base64-encoded input.

  • Use the `ciphertext` parameter

    Why it's wrong here

    That would be for decryption.

  • Use the `plaintext` parameter directly without base64 encoding

    Why it's wrong here

    Input must be base64-encoded.

About these practice questions

Courseiva writes every VA-003 question from scratch — 498 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This VA-003 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the VA-003 exam.