Task 5.3: Describe the uses of transit secrets engine
Encryption as a service without storing the data, signing and HMAC, data keys, convergent encryption, and key policies such as exportable and deletion_allowed.
Study it
Transit: encryption as a service, signing, HMAC and data keys
Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.
Question 1 · choose 1
A service must sign release manifests so that other services can verify the signatures, and the signing private key must never leave Vault. Which setup fits?
AA transit key of type aes256-gcm96, used with transit/sign and verify
BThe PKI secrets engine, with a role that issues the service a code-signing certificate
CA transit key of type ed25519, used with transit/sign and transit/verify
DA transit key of type ed25519 with exportable=true, shared with the verifying services
Show the answer and why
AA transit key of type aes256-gcm96, used with transit/sign and verify
Incorrect
aes256-gcm96 is a symmetric key for encryption and decryption; it does not support signing.
BThe PKI secrets engine, with a role that issues the service a code-signing certificate
Incorrect
The issue endpoint returns the certificate together with its private key to the requester, so the key leaves Vault.
CA transit key of type ed25519, used with transit/sign and transit/verify
Correct
Transit supports signing and verification with asymmetric key types, and keys stay in Vault unless marked exportable.
DA transit key of type ed25519 with exportable=true, shared with the verifying services
Incorrect
exportable allows every key in the key ring to be exported, which takes the private key out of Vault; verification never needs it.
Transit performs cryptographic operations inside Vault: with an ed25519, ECDSA or RSA key it signs and verifies without releasing the key.
An application must encrypt 5 GB backup files. Sending them through transit is impractical, but the key that protects each file must be controlled by Vault. Which transit feature fits?
AConvergent encryption, which shrinks repeated data blocks
BAn exportable transit key copied into the application
CData key generation with transit/datakey
DTransit HMAC of each file
Show the answer and why
AConvergent encryption, which shrinks repeated data blocks
Incorrect
Convergent encryption makes equal inputs give equal ciphertext; it does not avoid sending the data.
BAn exportable transit key copied into the application
Incorrect
Exporting removes the key from Vault's sole control.
CData key generation with transit/datakey
Correct
Transit returns a new high-entropy key, in plaintext and encrypted with the named key, so the application can encrypt each file locally.
DTransit HMAC of each file
Incorrect
An HMAC proves integrity; it does not encrypt.
Data keys give envelope encryption: Vault protects the key, the application handles the bulk data.
A team is moving to a new Vault cluster. Ciphertext made over several years with the transit key orders, across many key versions, must stay decryptable on the new cluster. How can the key, with all of its versions, be moved there?
ABack the key up with transit/backup and load it with transit/restore
BRead transit/keys/orders on the old cluster and write the result on the new one
CMove the transit mount to the new cluster with vault secrets move
DRewrap all ciphertext on the old cluster with a key from the new cluster
Show the answer and why
ABack the key up with transit/backup and load it with transit/restore
Correct
transit/backup returns a plaintext backup of every version and the HMAC key, for keys whose settings allow plaintext backups, and transit/restore loads it as a named key.
BRead transit/keys/orders on the old cluster and write the result on the new one
Incorrect
That path never returns key material, so nothing usable could be written on the new cluster.
CMove the transit mount to the new cluster with vault secrets move
Incorrect
secrets move relocates a mount within one cluster; it does not copy between clusters.
DRewrap all ciphertext on the old cluster with a key from the new cluster
Incorrect
Rewrap re-encrypts with the latest version of the same key on the same mount; it cannot target another cluster.
Plaintext backups are possible only for keys with allow_plaintext_backup set, and the backup must be protected like the key itself; restoring to a new name first is a good way to test it.