003 · Domain 8: Vault deployment architecture · 12% of the exam
Task 8.2: Explain the uses of storage backends
Integrated storage as the recommended backend, Consul and other external storage, development-only backends, high availability, and migrating between backends.
Study it
Storage backends: integrated storage, Consul and the rest
Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.
Question 1 · choose 1
A team needs a storage backend for a production Vault cluster that supports high availability, is supported by HashiCorp, keeps data across restarts, and does not require operating a separate storage cluster. Which backend fits?
AIntegrated storage (Raft)
BConsul storage
CFile system storage
DIn-memory storage
Show the answer and why
AIntegrated storage (Raft)
Correct
It supports high availability, is HashiCorp supported and recommended, and needs no other system to operate.
BConsul storage
Incorrect
Consul supports HA and is supported, but it is another cluster to deploy and operate.
CFile system storage
Incorrect
The filesystem backend does not support high availability.
DIn-memory storage
Incorrect
In-memory storage loses all data when Vault restarts.
HashiCorp recommends integrated storage for most deployments; HCP Vault Dedicated uses it too.
A Vault Community Edition cluster stores its data in Consul. The team wants to move to integrated storage, keeping all existing data, and can accept a maintenance window. How is the data moved?
AStop Vault and run vault operator migrate with consul as storage_source and raft as storage_destination
BChange the storage stanza to raft and restart Vault, which copies the existing Consul data on its first start
CSave a snapshot with vault operator raft snapshot save and restore it on the new cluster
DSet up DR replication to a new integrated storage cluster and promote it
Show the answer and why
AStop Vault and run vault operator migrate with consul as storage_source and raft as storage_destination
Correct
operator migrate copies data between backends at the storage level and is meant to run offline.
BChange the storage stanza to raft and restart Vault, which copies the existing Consul data on its first start
Incorrect
Vault does not copy data when the stanza changes; it would start on an empty backend.
CSave a snapshot with vault operator raft snapshot save and restore it on the new cluster
Incorrect
Raft snapshots exist only for integrated storage, so a Consul-backed cluster cannot produce one.
DSet up DR replication to a new integrated storage cluster and promote it
Incorrect
Replication needs Vault Enterprise, which the cluster does not run.
Storage migration is an offline copy of encrypted entries from one backend to another with operator migrate; nothing is decrypted on the way.
A company already runs Consul for service discovery and wants to use the same Consul cluster as Vault's storage backend. What does HashiCorp recommend?
ASharing it is preferred, because one cluster is easier to run
BSharing it is fine if Vault uses its own KV prefix
CA separate Consul cluster dedicated to Vault storage
DConsul cannot be used for Vault storage any longer
Show the answer and why
ASharing it is preferred, because one cluster is easier to run
Incorrect
The guidance is a dedicated cluster for Vault.
BSharing it is fine if Vault uses its own KV prefix
Incorrect
A separate prefix does not meet the dedicated-cluster guidance.
CA separate Consul cluster dedicated to Vault storage
Correct
Use a dedicated Consul cluster for Vault storage, not for service discovery or service mesh.
DConsul cannot be used for Vault storage any longer
Incorrect
Consul remains an officially supported backend.
External storage means a second system to run and monitor; keep it isolated for Vault.
A team is choosing virtual machine types for a five-node integrated storage cluster. Which hardware guidance does HashiCorp give for integrated storage?
ASpinning disks are preferred, since Raft writes its log sequentially
BDisk type does not matter if each node has plenty of RAM
CBurstable instances suit Vault, since the cluster is idle most of the time
DSSD drives, and no burstable CPU or storage options for the nodes
Show the answer and why
ASpinning disks are preferred, since Raft writes its log sequentially
Incorrect
The guidance calls for SSDs, not spinning disks.
BDisk type does not matter if each node has plenty of RAM
Incorrect
The guidance names SSDs for the drives; memory alone does not satisfy it.
CBurstable instances suit Vault, since the cluster is idle most of the time
Incorrect
HashiCorp advises against burstable CPU and storage for integrated storage.
DSSD drives, and no burstable CPU or storage options for the nodes
Correct
The storage comparison tells integrated storage users to avoid burstable CPU and storage options and to use SSDs.
Integrated storage runs Raft on every Vault node, so each node needs predictable CPU and fast disks; the reference architecture gives the sizing details.