This article is a curated set of sample questions for the HashiCorp Vault certifications (Associate / Operations), organized around the domains that come up most often, viewed through a practical operations lens.
We avoid version-specific edge cases and stick to the stable behavior described in the official documentation. Enterprise-only features (namespaces, replication, and so on) are called out explicitly.
Associate covers the core concepts broadly: init/unseal, tokens and policies, auth methods, the main Secrets Engines, TTL/lease/wrapping, and audit. Operations adds HA and storage, backup and recovery, day-2 operations, and the basics of (Enterprise) replication.
Most questions come down to whether you can correctly pair each component with its responsibility. You should be able to picture the flow end to end: client authentication, policy enforcement, secret issuance and revocation by the Secrets Engine, and audit logging.
| Area | Typical Tasks | Exam Focus |
|---|---|---|
| Tokens / Policies | Capability design, least privilege, choosing the right token type | default/deny precedence, TTL vs max_ttl, batch vs service tokens |
| Auth Methods | Choosing and configuring AppRole / Kubernetes / OIDC | Workload fit, short-lived credentials, ease of rotation |
| Secrets Engines | Picking the right tool: KV v2, DB, Transit, PKI | Dynamic secrets and revocation, KV v1 vs v2, Transit is encryption-only |
| Ops / HA | Init and unseal, Raft (integrated storage) cluster operations | Active/Standby, snapshots, what Auto Unseal really means |
Flow from client request to secret issuance (high level)
Client --> [Auth Method] --(login)--> [Token]
| |
|---- request w/ token ------------> | (policy check)
v
[Secrets Engine]
|
v
[Lease/TTL]
|
v
[Audit]
Minimal command example for grasping the concept (KV v2 read)
vault login <TOKEN>
# ポリシーで許可されたパスのみ成功
vault kv get -mount=secret app/config
Authorization in Vault is policy-centric. You grant capabilities (read, create, update, delete, list, deny, sudo, and so on) on path blocks at the least-privilege level you can. deny always wins — an explicit deny cancels any allow. The default policy only grants minimal self-introspection, and root tokens must not be used for everyday work.
Tokens come in two broad flavors: service and batch. Service tokens are persisted, renewable, and can create child tokens. Batch tokens are non-persistent, non-renewable, and cannot create child tokens — they shine in high-throughput scenarios. Orphan tokens are not chain-revoked when their parent is revoked. Periodic tokens must be renewed within the period and are deliberately not bound by max_ttl.
Example: writing a policy and creating tokens
# ポリシー(HCL)
path "secret/data/app/*" {
capabilities = ["read", "list"]
}
# ポリシー適用
vault policy write app-read app-read.hcl
# service トークン(1h、更新可)
vault token create -policy=app-read -ttl=1h
# batch トークン(非永続・非更新)
vault token create -type=batch -policy=app-read -ttl=15m
# orphan トークン
yes | vault token create -policy=app-read -orphan
Choose an auth method based on where the workload lives and where its identity comes from. For example: Kubernetes Auth for pods, AppRole for server apps, OIDC/JWT for SaaS or human users, and the cloud-native auth methods for cloud runtimes. For ad-hoc human operations, GitHub/LDAP/userpass are fine — just keep the policies minimal.
Pick a Secrets Engine by purpose. KV v2 holds versioned static secrets, Database issues and revokes dynamic credentials, Transit performs encryption and signing without storing data, and PKI issues short-lived certificates. The exam loves "I want encryption without storing data → Transit" style mapping questions.
Representative enable commands
# 認証方式の有効化(例: AppRole)
vault auth enable approle
vault write auth/approle/role/app ttl=1h policies=app-read
vault read -field=role_id auth/approle/role/app/role-id
vault write -f -field=secret_id auth/approle/role/app/secret-id
# Secrets Engine の有効化(例: KV v2)
vault secrets enable -path=secret -version=2 kv
vault kv put secret/app/config username=svc password=s3cr3t
Dynamic secrets (for example, those from the Database Engine) come with a lease. A lease either expires automatically or gets extended when the client renews it. Revoking by prefix (revoke -prefix) reclaims every dynamic credential under that mount. Static secrets (KV) are usually not lease-managed.
Response wrapping sets X-Vault-Wrap-TTL so the response is wrapped in a single-use wrapping token that can be handed off safely. Only the receiver can unwrap it, and the payload sits temporarily in Cubbyhole. On the exam, it is the canonical answer whenever a question asks how to safeguard credentials in transit through intermediaries.
Typical renew and revoke operations
# トークン更新(可能な場合)
vault token renew -increment=30m
# リース ID を指定して更新/失効
vault lease renew database/creds/app/abc123
vault lease revoke database/creds/app/abc123
# プレフィックス配下を一括失効
yes | vault lease revoke -prefix database/creds/app
# レスポンスラップで安全に受け渡し
VAULT_ADDR=https://vault:8200 \
curl -H "X-Vault-Token: $TOKEN" -H "X-Vault-Wrap-TTL: 5m" \
$VAULT_ADDR/v1/secret/data/app/config
# 受領側: vault unwrap
Initialization generates Shamir-split keys (recoverable above a threshold) along with the initial root token. Configuring Auto Unseal with cloud KMS or an HSM removes the manual unseal step at startup. In that mode, recovery keys are typically issued separately for break-glass operations.
An HA deployment runs Active/Standby with writes accepted only by the Active node. Integrated storage (Raft) lets Vault itself reach consensus across nodes for availability. Snapshots provide a consistent backup that is used for planned maintenance or disaster recovery.
Representative init/unseal and Raft procedures
# 初期化(例: 5分割・3閾値)
vault operator init -key-shares=5 -key-threshold=3
# Unseal(閾値分のキーを入力)
vault operator unseal
# Raft クラスタ参加
vault operator raft join http://vault-1:8200
# Auto Unseal の例(設定ファイル抜粋)
seal "awskms" {
region = "ap-northeast-1"
kms_key_id = "arn:aws:kms:..."
}
Audit devices record metadata for every API request and response. Sensitive fields are HMAC-hashed to reduce exposure risk. In production, rotation, retention, and clock synchronization of the audit destination matter just as much as turning it on.
Backups are taken as integrated-storage snapshots: a consistent point-in-time state that can be restored within the same major-version compatibility window. Enterprise adds DR and Performance replication — DR fails over to a standby cluster, while Performance scales reads. The exam expects you to keep the terminology and use cases straight.
Audit, snapshots, and replication (including Enterprise features)
# 監査デバイスの有効化(ファイル出力)
vault audit enable file file_path=/var/log/vault_audit.log
# 統合ストレージのスナップショット
vault operator raft snapshot save backup.snap
# 復元(メンテ状態で実施)
vault operator raft snapshot restore backup.snap
# Enterprise(用語の把握が主題)
# DR/Performance 複製の有効化はライセンス前提。CLI は概念理解に留める。
Associate / Ops
問題 1
Which combination is the most appropriate design for a Kubernetes application to securely obtain dynamic database credentials from Vault?
正解: A
In a Kubernetes environment, the standard pattern is to verify the pod's identity via Kubernetes Auth and grant a least-privilege policy. Use the Database Secrets Engine for dynamic DB credentials, and use response wrapping to make the handoff safe. B is wrong because of static secrets and an infinite TTL, C is a non-starter (sharing a root token), and D is solving the wrong problem (PKI issues certificates, which is unrelated to DB credentials).
How is the difference between KV v1 and KV v2 tested on the exam?
KV v2 supports versioning, has a two-layer API (data/ and metadata/), and distinguishes between delete (recoverable) and destroy (unrecoverable). Questions often focus on v2-specific operations such as undeleting a version, and differences in path syntax.
When should I use a batch token versus a service token?
Batch tokens are non-persistent, non-renewable, and cannot create child tokens — ideal for high-throughput or short-lived use cases. Service tokens are persisted, renewable, and can create child tokens, making them the default for general application use. The exam often probes the renew/revoke behavior and audit-trail differences.
When should I use response wrapping?
Use it when you need to avoid leaking secrets through intermediaries. The issuer specifies X-Vault-Wrap-TTL, and the receiver unwraps a single-use wrapping token. It is a good fit for CI/CD bootstrap flows and any human-to-system handoff that must stay confidential.
Practice with certification-focused question sets
無料で問題を解いてみるNicheeLab Editorial Team
NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.
Vault Core Concepts: Sealed/Unsealed, Auth, Secrets (2026)
Vault fundamentals — sealed/unsealed state, auth methods, se...
Vault Operations Professional (VOP-003): Complete Guide (2026)
Pass the Vault Operations Professional exam — enterprise pat...
Vault Path-Based Routing: API URL Structure (2026)
How Vault's path-based routing works — mount points, sub-pat...
Vault Tokens: Auth Token Mechanics (2026)
Token fundamentals — service vs. batch tokens, accessor, ren...
Vault Token Types: Service, Batch, Periodic (2026)
Service vs. batch tokens compared — performance, ACL behavio...