Chapter 6 of 9 · HashiCorp Vault Associate 003
Encryption as a Service
The transit secrets engine, encrypting and decrypting data, and rotating encryption keys.
- 2topics
- 8 minfast track
- 1diagrams and exhibits
Topics in this chapter
Take them in order, or jump to the one you need.
- 1Encrypting and Decrypting Data with TransitVault Associate (003): use the transit engine to encrypt and decrypt data. Enable it, create a key, base64 the plaintext, read…4 min
- 2Rotating Transit Keys and RewrappingVault Associate (003): rotate a transit key, see why old ciphertext still decrypts, rewrap data to the newest version and use…Diagram4 min
About this chapter
What this chapter covers
Encryption as a service means applications send data to Vault to be encrypted and decrypted, so they never handle the encryption keys. In Vault this is done by the transit secrets engine.
This chapter covers how to encrypt and decrypt data with a named transit key, and how to rotate that key and re-encrypt old data without exposing it.
Questions are true or false, single-answer and multiple-answer ("Pick the 2 correct responses below") multiple choice, with a few short scenarios such as protecting plaintext data in a database.
How the topics fit together
The key stays inside Vault the whole time. The application keeps only the ciphertext, and rotation changes which key version protects new data.
- Purpose questions ask which secrets engine protects data that is stored elsewhere.
- Encrypt and decrypt questions ask about base64, the ciphertext format and who stores the result.
- Rotation questions ask what happens to old ciphertext, and what rewrap and the minimum decryption version do.
When a scenario says an application must encrypt data but should not hold or manage keys, the answer is the transit secrets engine, not key/value or the database engine.
How to use these pages
Each topic page has the same shape, so you can skim for what you need.
- What it is: the idea in plain words.
- How it works: the mechanism, with tables and examples.
- What to remember for the exam: the facts to memorize and how questions are phrased.
- Common mistakes: the classic traps.
- Check yourself: three questions to test your understanding.
Ready for more practice?
The full HashiCorp Vault Associate 003 question bank has 600 questions, with timed practice exams and an explanation for every answer.
This study guide is independent and is not affiliated with, endorsed by, or sponsored by HashiCorp. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.