Question: 667


Interpreting identity in Vault Enterprise after OIDC federated login, entity vault read identity/entity/id/groups shows no prod group despite alias user@example.com. Metadata

{"aws_account_id":"123"} conflicts. Which entity/group interpretation resolves federated access in hybrid cloud?


  1. Metadata filtering excludes stale aliases post-merge

  2. Group alias resolution cascades from entity parents

  3. Entity ID alias iteration debugs inheritance chains

  4. Alias merge policy prioritizes external ID for group lookup


Answer: A,B,C


Explanation: Groups resolve aliases recursively from child entities, propagating federated memberships

correctly. Metadata tags filter relevant aliases, ignoring conflicts from legacy logins. ID-based iteration

traces full alias graphs, pinpointing inheritance breaks in hybrid setups.


Question: 668


A logistics firm promotes Vault Enterprise DR secondary to primary after primary ransomware attack. Post-promotion, clients can't auth due to lease desync. What resolves this? (Choose TWO)


  1. Execute vault lease revoke -prefix for stale leases from old primary

  2. Restart replication to new secondary from promoted cluster

  3. Run vault operator rekey -init -key-bits=256 to rotate master key

  4. Promote namespaces individually: sys/replication/dr/secondary/promote -namespace=app


Answer: A,D


Explanation: lease revoke -prefix clears orphaned leases preventing client auth post-promotion.

Namespace-specific promotion ensures isolated failover without global downtime.


Question: 669


Scenario Title: Performance Secondary Namespace Isolation

Environment Description: A company has a Performance Secondary cluster in a "Finance" VPC and a

Primary in a "Core" VPC. They want to ensure that the Finance team can create their own namespaces on

the Secondary without those namespaces appearing on the Primary. Inspection Instructions: 1. Check the replication mode using `vault read sys/replication/performance/status`.

  1. Attempt to create a namespace on the Performance Secondary.

  2. Review the error message: "can't write to secondary cluster".

  3. Check the `allow_multiregion` flag in the namespace configuration.


    Why can't the administrator create a namespace directly on the Performance Secondary?


    1. The administrator lacks the `sudo` capability on the `sys/namespaces` path.

    2. The Secondary cluster has not been granted "Namespace Admin" rights by the Primary.

C. Namespaces must be created with the `-local` flag on the Secondary to bypass replication.

  1. Performance Secondaries are read-only for all metadata including namespaces.


    Answer: D


    Explanation: In Performance Replication, the Primary cluster is the source of truth for all configuration,

    including namespaces, mount points, and policies. Secondaries are read-only for these control-plane

    objects. Any namespace must be created on the Primary, and it will then be replicated to all Secondaries.

    There is no concept of a "Secondary-only" namespace.


    Question: 670


    Scenario Title: Monitoring Vault Memory Consumption with `runtime` Metrics

    Environment Description: You notice that a Vault node's resident set size (RSS) memory is steadily

    increasing. You are looking at the `vault.runtime.sys_bytes` and `vault.runtime.heap_objects` metrics.

    Inspection Instructions:

    1. Compare `vault.runtime.heap_inuse_bytes` with `vault.runtime.heap_released_bytes`.

    2. Check the number of active leases using `vault.expire.num_leases`.

    3. Review the operational logs for "Go runtime: scavenge" messages.

      Any changes you make will NOT affect grading — only your answer selection is scored.


      If `vault.runtime.heap_inuse_bytes` is stable but `vault.runtime.sys_bytes` continues to grow, what does this indicate?


      1. The Vault audit device buffer is overflowing into swap space.

      2. The operating system is not reclaiming memory that the Go runtime has returned to it.

      3. There is a high volume of identity entities being created in the memory cache.

      4. Vault is experiencing a Go-level memory leak in the Raft FSM.


Answer: B


Explanation: `heap_inuse_bytes` tracks memory currently being used by Vault's Go objects. `sys_bytes`

tracks the total memory obtained from the OS. If `inuse` is stable but `sys` is high or growing, it often

means the Go garbage collector has freed the memory (making it available for reuse by Vault), but it hasn't

been released back to the OS, or the OS hasn't yet reclaimed those pages. This is common behavior for the Go runtime and is often managed by the `GOMEMLIMIT` environment variable in newer versions.


Question: 671


During deployment of a Vault Enterprise HA cluster with integrated storage on Kubernetes using Helm chart v0.25.0, pods in different namespaces fail to form quorum due to mismatched storage class and TLS certs. Which steps correctly configure HA? (Choose TWO)


  1. Configure injector.externalVaultAddr pointing to LoadBalancer service for client access during leader changes

  2. Set server.ha.enabled = true and server.integratedStorage.enabled = true in values.yaml with raft.nodeSecret for TLS

  3. Deploy StatefulSet with volumeClaimTemplates using ReadWriteOnce storage class provisioned across multiple AZs

  4. Enable server.standby = true on all replicas to force performance standby mode immediately


Answer: B,C


Explanation: Enabling ha and integratedStorage in Helm values with raft.nodeSecret provisions TLS-

secured Raft communication essential for Kubernetes HA clusters. Using StatefulSet with ReadWriteOnce

storage class ensures persistent Raft data volumes survive pod restarts and maintain quorum across AZs.


Question: 672


Multi-tenancy namespaces in Vault Enterprise PaaS: root enables secret/ engine, ns-beta tunes max_ttl=7d. Cross-ns read denied despite root policy. Which interpretations fix tenant isolation?


  1. Token namespaces param lists allowed children only

  2. Tuning inheritance requires explicit ns path override

  3. Audit log prefixing enables per-tenant forensics

  4. Sub-ns creation cascades policies recursively


Answer: A,C,D


Explanation: Tokens restrict via allowed_namespaces=["ns-beta"], blocking root-to-child leaks. Logs prefix

ns-beta/, segregating audits natively. Sub-namespaces inherit cascadingly unless tuned, scaling tenant

hierarchies.


Question: 673


For Vault clients in serverless functions, secure introduction requires which zero-trust validations?

  1. Inject via orchestrator with secret zeroing post cold-start completion

  2. Verify platform metadata endpoints before token issuance

  3. Use function-specific policies with dynamic TTL matching invocation

  4. Audit function ARN bindings in auth role configurations strictly


    Answer: B,C


    Explanation: Platform metadata verification establishes trusted identity without static creds. Dynamic TTL

    matching invocation limits ephemeral access duration.


    Question: 674


    Scenario Title: Secure Introduction of RoleID and SecretID

    Environment Description: You are setting up AppRole authentication for a microservice. You have created

    the role but need to distribute the `role_id` and `secret_id` securely.

    Inspection Instructions:

    1. `vault read auth/approle/role/my-app/role-id`

    2. `vault write -f auth/approle/role/my-app/secret-id`


      To implement the "Pull" design pattern for the SecretID, what constraint should be applied to the token used by the application to fetch its SecretID?


      1. The token must be tied to the `default` policy only.

      2. The token should be a root token.

      3. The token should be response-wrapped and have a short TTL with a limited number of uses.

      4. The token must have the `sudo` capability on the `auth/approle/role/+/secret-id` path.


Answer: C


Explanation: In a secure "Pull" pattern, a trusted orchestrator (like Terraform or a CI tool) generates a

response-wrapped SecretID or a short-lived token that can only perform the `write` operation on the

`secret-id` generation path. By wrapping this or limiting its use, you ensure that even if the delivery

mechanism is compromised, the "SecretID" (which is the sensitive part of the AppRole) is protected and

its theft is detectable.


Question: 675


For Vault DR replication in Kubernetes across data centers, which security model practices ensure operation integrity?


  1. Configure namespace-specific DR ops to prevent cross-tenant leaks

  2. Promote secondary only after verifying primary health via automated job

  3. Use TLS-encrypted replication traffic with node mutual auth

  4. Distribute DR operation tokens with short TTL via Kubernetes secrets


    Answer: A,C


    Explanation: TLS with mutual auth secures replication traffic between clusters, protecting against

    eavesdropping or tampering per security barrier design. Namespace-specific configs during DR promotion

    maintain multi-tenant isolation, avoiding leaks in failover scenarios.


    Question: 676


    Scenario Title: Secure Introduction via AppRole and Response Wrapping

    Environment Description: A CI/CD pipeline needs to provision a `role_id` and `secret_id` to a fleeting

    Jenkins agent. The security team mandates that the `secret_id` must never exist in plain text within the

    CI/CD logs or the orchestrator's environment variables.

    Inspection Instructions:

    1. `vault write -f auth/approle/role/jenkins/secret-id`

    2. `vault read sys/wrapping/lookup/`

    3. `vault policy read jenkins-policy`


      Which workflow ensures the "Secure Introduction" principle is maintained for the Jenkins agent?


      1. Deliver the `role_id` via environment variable and the `secret_id` via a 30-second TTL wrapped token

      2. Use a response-wrapped `role_id` while keeping the `secret_id` as a permanent static credential

      3. Provide a CIDR-restricted `secret_id` that is hardcoded into the Jenkins agent's Docker image

      4. Generate a `secret_id` with a usage limit of 0 and send it via an encrypted SSH tunnel


        Answer: A


        Explanation: The correct option states to deliver the role\_id via environment variable and the secret\_id

        via a 30-second TTL wrapped token. Response wrapping is a core component of the Vault security model

        for secure introduction, ensuring that only the intended recipient can unwrap the secret and providing an

        audit trail if the wrap is intercepted (as it would fail to unwrap).


        Question: 677


        Scenario Title: Monitoring Vault's Entropy Augmentation

        Environment Description: A Vault Enterprise cluster is running on a virtualized environment with low

        hardware entropy. The team has enabled the "Entropy Augmentation" feature using a supported PKCS#11

        HSM.

        Inspection Instructions:

        1. `vault read sys/entropy/status`

        2. `vault read sys/metrics`

        3. `ls -l /dev/random`

          Any changes you make will NOT affect grading — only your answer selection is scored.


          Which metric would best allow an operator to monitor if Vault is successfully utilizing the HSM for entropy augmentation during cryptographic operations?


          1. `vault.entropy.external.count`

          2. `vault.core.external_entropy.upsert`

          3. `vault.hsm.entropy.pulls`

          4. `vault.core.entropy_source`


Answer: A


Explanation: When Entropy Augmentation is enabled in Vault Enterprise, Vault can pull high-quality

entropy from an external source (like an HSM) for its internal operations. The metric

`vault.entropy.external.count` tracks the number of times Vault successfully retrieved entropy from the

configured external source. Monitoring this ensures that the HSM integration is functional and that Vault

isn't falling back to the system's potentially depleted entropy pool.


Question: 678


When deploying Vault Enterprise in Kubernetes with Istio service mesh, which security implications must be addressed for mTLS enforcement?


  1. Use SPIFFE auth method for workload identity verification without JWT tokens

  2. Configure NetworkPolicies to isolate Vault namespace from application pods

  3. Enable Vault PKI engine as internal CA for automated certificate lifecycle

  4. Deploy Vault Secrets Operator with CSI driver for direct pod secret mounting


    Answer: B,C


    Explanation: NetworkPolicies isolate the Vault namespace, preventing lateral movement if applications are

    compromised while allowing only trusted ingress. Vault's PKI engine automates mTLS certificate issuance

    and rotation for service-to-service encryption in Istio, eliminating manual PKI management.


    Question: 679


    Scenario Title: Vault Agent Auto-Auth with AppRole

    Environment Description: A Kubernetes sidecar is running Vault Agent to provide secrets to a legacy

    application. The Agent is configured with the AppRole auth method. The `role_id` is baked into the image,

    and the `secret_id` is provided via a local file.

    Inspection Instructions:

    1. `cat /etc/vault/agent-config.hcl`

    2. `vault agent -config=/etc/vault/agent-config.hcl`

    3. `cat /tmp/vault-token`

    4. `ls -l /var/run/secrets/vault/`


      The Vault Agent successfully authenticates and writes a token to the sink. However, when the application attempts to use the token 2 hours later, the token is invalid, even though the AppRole token TTL is set to 24 hours. What is the most likely cause?


      1. The Vault Agent process exited after the initial login, so it stopped renewing the token.

      2. The sink file permissions prevented the Agent from updating the token on disk.

      3. The Agent configuration lacks an `auto_auth` method for token renewal.

      4. The `secret_id` file was deleted by the Agent, causing immediate token revocation.


Answer: A


Explanation: Vault Agent's `auto_auth` functionality includes an active manager that handles the lifecycle

of the acquired token. If the Agent is not running as a long-lived daemon (for example, if it was run with a

one-shot command or crashed), it cannot perform the necessary background renewals. Even if the TTL is

24 hours, the token may expire or be revoked if it is not explicitly maintained by a running Agent.


Question: 680


Scenario Title: Verifying Entropy Augmentation through Metrics

Environment Description: A Vault Enterprise cluster is running on a Linux VM with hardware-based

entropy augmentation enabled. You need to verify that Vault is successfully utilizing the `entropy`

augmentation feature for cryptographic operations.

Inspection Instructions:

  1. Look for `vault.entropy.external.success` in the Prometheus output.

  2. Check the Vault configuration file for the `entropy "device"` block.

  3. Review operational logs for "entropy: source successfully initialized".

    Any changes you make will NOT affect grading — only your answer selection is scored.


    Which telemetry metric provides the most direct evidence that Vault is using an external entropy source for secret generation?


    1. `vault.core.check_entropy`

    2. `vault.audit.log.request`

    3. `vault.token.creation.entropy`

    4. `vault.entropy.source.count`


Answer: D


Explanation: Vault Enterprise supports entropy augmentation to ensure high-quality randomness. The

metric `vault.entropy.source.count` (or similar depending on the specific provider) tracks the interaction

with the external entropy source. Monitoring this value ensures that the cluster is not falling back to

standard pseudo-random number generators due to a failure in the hardware or external entropy module.


Question: 681


A security team is reviewing Vault Enterprise deployment in Kubernetes, where Vault is running as a deployment with multiple replicas. They want to ensure that no Vault‑specific vulnerabilities arise from the Kubernetes orchestration model. Which two points should they validate?


  1. Allow the Vault deployment to run in the default namespace alongside other workloads.

  2. Confirm that Vault’s storage backend (e.g., Consul) is isolated from other tenants in the cluster and not

    shared.

  3. Store all Vault‑related secrets in Kubernetes Secrets without encryption.

  4. Verify that Vault’s unseal‑key and auto‑unseal providers are not exposed via Kubernetes Secrets in

    plaintext.


    Answer: B,D


    Explanation: Ensuring Vault’s storage backend is isolated from other tenants prevents cross‑tenant

    exposure and maintains Vault’s security model, since Consul‑based backends can be accessed by other

    pods if not properly segmented. Protecting unseal keys and auto‑unseal configuration (for example via

    transit‑encrypted storage or external KMS) prevents attackers who compromise the Kubernetes control

    plane from obtaining the ability to re‑seal or re‑configure Vault. Running Vault in default namespaces

    alongside other workloads or storing unseal‑related secrets in plain Kubernetes Secrets increases the risk of

    misconfiguration and lateral‑movement‑based attacks.


    Question: 682


    Scenario Title: Monitoring Batch Token Usage for Performance Tuning

    Environment Description: To reduce pressure on the Raft storage, your team has migrated several high-

    frequency applications to use Batch Tokens. You need to monitor the impact of this change on the

    cluster's performance.

    Inspection Instructions:

    1. Monitor `vault.token.creation` and filter by type.

    2. Check `vault.storage.raft.replication.appendEntries` frequency.

    3. Observe the `vault.expire.num_leases` metric.

      Any changes you make will NOT affect grading — only your answer selection is scored.


      Which trend in telemetry would confirm that Batch Tokens are successfully reducing storage overhead?


      1. An increase in `vault.core.check_token` latency.

      2. A decrease in `vault.storage.put` and `vault.storage.delete` operations relative to the number of

        authentications.

      3. A spike in `vault.runtime.num_goroutines` during peak authentication periods.

      4. A reduction in the size of the `vault.identity.entity.count` metric.


Answer: B


Explanation: Batch tokens are not persisted to the storage backend. Therefore, unlike Service tokens—

which require a `put` operation on creation and a `delete` operation on expiration/revocation—Batch

tokens should result in a significant decrease in total storage write operations (`vault.storage.put`) even as

the number of authentication events stays the same or increases.


Question: 683


An organization is designing a Vault‑backed secrets‑injection pattern for Kubernetes workloads that must comply with strict data‑residency and encryption‑at‑rest requirements. Which two configurations should be implemented?


  1. Deploy Vault instances in each region and enforce region‑scoped policies that restrict cross‑region secret access.

  2. Use a single global Vault cluster for all regions to simplify operations.

  3. Use Vault‑transit‑backed encryption for Kubernetes‑managed secrets before storing them in etcd.

  4. Store all secrets in plain‑text Kubernetes Secrets without Vault involvement.


    Answer: A,C


    Explanation: Using Vault‑transit‑backed encryption means secrets are encrypted before being written to

    etcd, satisfying encryption‑at‑rest and data‑residency controls even if etcd is compromised. Deploying

    region‑scoped Vault clusters with region‑bound policies ensures that secrets are not inadvertently replicated

    or accessed across regions, aligning with data‑sovereignty and residency requirements. Storing secrets in

    plain‑text Kubernetes Secrets or centralizing all regions under a single cluster without strict region‑scoping

    can violate data‑residency and increase cross‑region exposure.


    Question: 684


    Scenario Title: Detecting Token Exhaustion via Metrics

    Environment Description: A high-velocity CI/CD pipeline is causing Vault to generate thousands of short-

    lived tokens. The monitoring team wants to set an alert to prevent the `auth/token` store from becoming a

    performance bottleneck.

    Inspection Instructions:

    1. Examine the `vault.token.creation` metric.

    2. Examine the `vault.token.count` metric.

    3. Check the `vault.expire.num_leases` metric.

      Any changes you make will NOT affect grading — only your answer selection is scored.


      Which metric is the most critical to monitor for identifying a potential "Lease Explosion" where the number of active tokens might impact Vault's ability to perform revocation and expiration tasks?


      1. `vault.token.creation_rate`

      2. `vault.core.active_tokens`

      3. `vault.token.count.by_policy`

      4. `vault.expire.num_leases`


        Answer: D


        Explanation: In Vault, tokens and secrets are managed as leases. The `vault.expire.num_leases` metric

        tracks the total number of active leases in the system. When this number grows excessively high (a "Lease

        Explosion"), the expiration manager (which runs on the leader) must work harder to track and revoke

        them, which can consume significant CPU and slow down the cluster.


        HANDS ON


        SCENARIO


        BASED



        Question 1009:


        Scenario Title: Use Identity Groups for Cross-Namespace Policy Inheritance Environment Description: Teams span multiple namespaces. Central group for shared

        access.


        Instructions / Tasks:

        1. Create group in root namespace.

        2. Add entities from different namespaces.

        3. Attach policy to group.

        4. Verify cross-namespace access via group.


Success Criteria:

Answer:


# On all nodes: edit /etc/vault/config.hcl storage "raft" {

path = "/opt/vault/data"

node_id = "node1" # unique per node: node1/node2/node3 cluster_addr = "https://<node-ip>:8201"

retry_join {

leader_api_addr = "https://node1-ip:8200" leader_ca_cert_file = "/etc/vault/tls/ca.pem" leader_client_cert_file = "/etc/vault/tls/nodeX.pem" leader_client_key_file = "/etc/vault/tls/nodeX-key.pem"

}

}

listener "tcp" {

address = "0.0.0.0:8200"

cluster_address = "0.0.0.0:8201" tls_cert_file = "/etc/vault/tls/nodeX.pem" tls_key_file = "/etc/vault/tls/nodeX-key.pem"

}

disable_mlock = true

# Start on each: vault server -config=/etc/vault/config.hcl &

# On node1:

vault operator init -key-shares=5 -key-threshold=3

# Unseal node1 with 3 keys vault operator unseal <key1> vault operator unseal <key2> vault operator unseal <key3>

# On node2/node3:

vault operator raft join https://node1-ip:8200

vault operator unseal <key1> # repeat for threshold



Explanation: This configuration leverages integrated Raft storage for native HA without external backends, satisfying transactional requirements for Enterprise replication. The retry_join with TLS leader_* fields ensures secure node discovery and inter-node Raft traffic encryption using provided certs (matching production hardening for end-to-end TLS). disable_mlock=true combined with swap disable prevents OOM while following integrated storage guidelines; cluster_addr enables Raft communication. Initialization creates the master key split via Shamir; joining adds voters to achieve quorum (3/5). Unsealing reconstructs the root key only on threshold shares, enabling leader election and automatic failover. This setup demonstrates Raft mechanics for production multi-node resilience and directly meets all checkpoints via verifiable status and peer listings.