Vault builds a robust security boundary between applications and data, centered on three pillars: short-lived credentials, policy-based least privilege, and auditability. Its value only emerges when Auth Methods, policies, Secrets Engines, and lease management are combined correctly.
This article is designed to help with both certification prep (Associate / Operations) and real-world implementation. It covers high-yield exam topics alongside operational design best practices, focuses on stable features from the official documentation, and flags the practical pitfalls you will hit in the field.
Vault's core value is eliminating static passwords and cutting off lateral movement risk with dynamic secrets that are issued on demand and revoked automatically. Auth Methods establish workload identity, policies constrain the reachable paths and operations, and Secrets Engines deliver least-privilege credentials and encryption-as-a-service (Transit). Every operation is recorded by an Audit Device, and lifetimes are managed via leases (TTL).
From an Associate/Ops perspective, you need to be able to explain and operate the following accurately: choosing the right Auth Method (Kubernetes, AppRole, cloud-based, etc.), policy capabilities (create, read, update, delete, list, sudo) and path syntax, enabling and configuring Secrets Engines (KV v2, Database, Transit, etc.), renewing and revoking leases, and turning on auditing.
| Aspect | Static secret operations | Vault dynamic secrets | Cloud KMS only |
|---|---|---|---|
| Issuance model | Manual issuance, long-term sharing | On-demand issuance with short TTL and automatic revocation | Key management only (app keeps the secret) |
| Privilege boundary | Tends to be broad and reused across systems | Path constraints via policy, granted per role | Privileges depend on the app |
| Revocation & rotation | Manual; may require planned downtime | Lease expiry and instant revoke; no downtime | Key rotation works but credentials are managed separately |
| Auditability | Often missing or coarse-grained | Full audit at the API/CLI level | KMS side is auditable, but app credentials are separate |
| Adoption impact | Low upfront cost but high operational risk | Requires upfront design but yields stable, low-risk operations | Strengthens encryption but does not solve secret delivery |
Example of a least-privilege policy and dynamic DB credentials (PostgreSQL)
# ポリシー(最小権限):DBのreadonlyロールのみ取得可
# file: readonly.hcl
path "database/creds/readonly" {
capabilities = ["read"]
}
# ポリシー登録
vault policy write app-readonly readonly.hcl
# Database Secrets Engine を有効化
vault secrets enable database
# 接続設定(管理者ユーザで接続)
vault write database/config/pg \
plugin_name=postgresql-database-plugin \
allowed_roles="readonly" \
connection_url="postgresql://{{username}}:{{password}}@db:5432/postgres?sslmode=disable" \
username="vaultadmin" \
password="s3cr3t"
# 動的ユーザ発行ルール(有効期限付きの読み取り専用)
vault write database/roles/readonly \
db_name=pg \
creation_statements="CREATE ROLE \"{{name}}\" WITH LOGIN PASSWORD '{{password}}' VALID UNTIL '{{expiration}}'; GRANT SELECT ON ALL TABLES IN SCHEMA public TO \"{{name}}\";" \
default_ttl="1h" \
max_ttl="24h"
# アプリ側:付与されたトークンで資格情報を取得
VAULT_TOKEN=$APP_TOKEN vault read database/creds/readonlyA Vault engineer works across design (choosing Auth Methods, policies, and Secrets Engines), build (initialization, unsealing, HA topology), operations (backup, auditing, rotation), and governance (review, exception handling). At small scale, an SRE often wears the hat; at larger scale, the work is split between platform and security teams.
The fastest career path is to lock in fundamentals and safe operations with the Associate, then build HA operations, backup, auditing, and incident response patterns with the Ops cert. Adjacent skills like Kubernetes, Terraform, major databases, and cloud IAM are also highly valued.
Auth Methods are the front door that proves a workload's identity. Kubernetes identifies per-pod via ServiceAccount JWTs, AppRole serves CI/batch with RoleID/SecretID, and cloud Auth taps into instance identity via IMDS. Pick based on the environment, ease of rotation, and operator skill.
Policies achieve least privilege by combining paths with capabilities. The rule of thumb: allow specific paths read-only, minimize wildcards, and isolate sudo (admin) operations to dedicated tokens. Tokens should be short-TTL, with periodic renewal where needed.
Availability hinges on storage choice and cluster topology. In most cases, multi-node integrated storage (Raft) is the simplest to run and produces consistent snapshot-based backups. Network and storage latency directly affect cluster stability.
Design backup to include scheduled snapshots and repeated restore drills. Upgrades should follow the compatibility notes, roll node by node, and come with a downgrade procedure and snapshot ready just in case. Unseal procedures, key protection, and audit log preservation are operational essentials.
During an incident, contain the blast radius and revoke credentials quickly. For dynamic secrets, revoke per lease ID; for wider scope, revoke a path prefix in bulk. If a token leaks, revoke that token along with its child tokens.
For sensitive delivery, use Response Wrapping and only transport the one-time wrapping_token. The actual contents are only revealed when the receiver runs unwrap. Always keep at least one audit device enabled, and pay attention to PII handling and the durability of the storage location.
The Terraform Vault provider lets you codify policies, roles, mounts, and Auth Methods, standardizing review and diff management. Combine it with GitOps and privilege changes flow through an auditable change management process.
On Kubernetes, the Vault Agent Injector or a sidecar can automate token renewal and secret delivery, with the app hot-reloading via file watch. In CI, use AppRole or OIDC integration to mint short-lived tokens and revoke them when the job ends.
Associate / Ops
問題 1
An incident involves a dynamic credential issued by Vault's Database Secrets Engine. Which operation invalidates only that credential the fastest while minimizing blast radius?
正解: A
Dynamic credentials are lifetime-managed by leases. The fastest path to invalidate only that specific credential is to revoke its lease ID with vault lease revoke. Disabling the engine or revoking all tokens has excessive impact, and policy updates do not retroactively apply to existing leases.
What is the difference between Vault and cloud KMS?
KMS is a foundation for key management and encryption, but it does not handle delivering secrets to applications. Vault provides authentication, policies, Secrets Engines (dynamic credentials and Transit), auditing, and lease management to safely hand secrets to applications. The two are complementary, not competing.
How should I handle external SaaS that does not support dynamic secrets?
Store static secrets in KV v2 and mitigate risk with TTL-based periodic rotation, response wrapping, and strict policies. Where possible, automate API key reissuance and cutover on the SaaS side to shorten the exposure window.
Which environment should I start with for learning?
The local dev server is convenient, but it does not match production in terms of persistence or security. For Associate/Ops practice, stand up an HA cluster (Raft) with the minimum node count and walk through the full operations cycle: audit, backup, restore, lease revocation, and Auth Methods.
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...