Courseiva
Explain encryption as a servicemediumMultiple ChoiceObjective-mapped

VA-003 Explain encryption as a service Practice Question

Exhibit

$ vault write -address=https://vault.example.com -field=ciphertext transit/encrypt/my-key plaintext=$(base64 <<< "secret data")

Refer to the exhibit. What is the purpose of the -field=ciphertext flag in this command?

⚠ Common exam trap

HashiCorp often tests the distinction between output filtering (`-field`) and actual encryption configuration, leading candidates to confuse the flag with setting encryption parameters or enabling field-level encryption.

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

It instructs Vault to only return the ciphertext field from the response.

The `-field=ciphertext` flag in a Vault command instructs the CLI to extract and return only the value of the `ciphertext` key from the JSON response object. This is a standard Vault output filtering mechanism that allows users to isolate a specific field without parsing the full response, which is especially useful in scripting and automation.

Answer analysis

Option-by-option breakdown

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

  • It sets the ciphertext field for encryption.

    Why it's wrong here

    The ciphertext is output, not input.

  • It enables field-level encryption.

    Why it's wrong here

    Field-level encryption is not a concept in Vault CLI.

  • It specifies the encryption key name.

    Why it's wrong here

    The key name is specified in the path.

  • It outputs the command result to a file named ciphertext.

    Why it's wrong here

    It does not redirect to a file; it prints to stdout.

  • It instructs Vault to only return the ciphertext field from the response.

    Why this is correct

    This is the correct behavior of the -field flag.

About these practice questions

One of 498 original VA-003 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. 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.