Courseiva

CCNA Vault Security Model Questions

24 questions · Vault Security Model · All types, answers revealed

1
MCQhard

You want to ensure that a SecretID used by an AppRole is only valid for a single use. Which parameter should be set when creating the SecretID?

A.Set 'secret_id_ttl' to 0.
B.Set 'num_uses' to 1.
C.Set 'token_bound_cidrs' to the client IP.
D.Set 'secret_id_no_store' to true.
AnswerB

This enforces single-use functionality.

Why this answer

The 'num_uses' parameter allows you to restrict a SecretID to a specific number of authentication attempts (in this case, 1).

2
Multi-Selecthard

Which THREE of the following are potential security risks when using the AppRole method if not configured correctly?

Select 3 answers
A.Setting 'token_ttl' to 87600h.
B.No CIDR binding on the SecretID.
C.Enabling the Transit engine.
D.Using Vault Namespaces.
E.Unlimited SecretID usage count.
AnswersA, B, E

Tokens last too long, increasing risk.

Why this answer

Missing CIDR limits, long TTLs, and lack of SecretID usage limits all increase security risk.

3
Multi-Selectmedium

Which TWO of the following statements about the 'vault-agent' injector in Kubernetes are correct?

Select 2 answers
A.It is only available for non-Enterprise versions.
B.It runs as a Kubernetes Mutating Admission Webhook.
C.It can inject secrets into files directly in the pod.
D.It bypasses all Vault policies.
E.It requires manual pod restarts to update secrets.
AnswersB, C

This is the architecture of the injector.

Why this answer

The injector is a controller that modifies pod specs, and it uses sidecars for secret delivery.

4
MCQeasy

When using the 'vault login -method=kubernetes' command from a pod, which value is automatically sent to the Vault server as the JWT?

A.The pod's hostname.
B.The contents of the mounted service account token file.
C.The Vault server's Root CA certificate.
D.The Kubernetes API server public key.
AnswerB

This is the standard location for the K8s service account token.

Why this answer

The Vault client automatically reads the JWT from /var/run/secrets/kubernetes.io/serviceaccount/token in the pod.

5
MCQhard

Your Vault cluster is behind a load balancer that terminates TLS. For the Kubernetes auth method to properly validate the 'kubernetes_host', what must you configure in Vault?

A.Provide the 'kubernetes_ca_cert' of the K8s API server.
B.Map the load balancer IP to the Vault 'cluster_addr'.
C.Disable TLS verification in the auth method.
D.Import the load balancer's CA into Vault's trust store.
AnswerA

Vault uses this to verify the JWT authenticity.

Why this answer

You must provide the 'kubernetes_ca_cert' that the Kubernetes API server uses to sign its tokens, so Vault can verify them.

6
MCQhard

An application is using the AppRole method and you want to ensure that the SecretID can only be used from a specific CIDR range. Which field in the AppRole role configuration should be updated?

A.Configure the CIDR block in the 'token_policies'.
B.Update the 'secret_id_bound_cidrs' field in the role.
C.Create a custom sentinel policy for the auth method.
D.Update the 'token_bound_cidrs' field in the role.
AnswerB

This is the specific field for SecretID CIDR binding.

Why this answer

The 'secret_id_bound_cidrs' parameter allows you to restrict where a SecretID can be used.

7
MCQhard

When integrating Vault with Kubernetes, you are configuring the Vault Kubernetes Auth Method. You need to ensure that the service account token presented by the pod is verified against the Kubernetes TokenReview API. Which configuration is required in Vault to enable this?

A.Enable the 'kubernetes_allow_any_token' flag in the global configuration.
B.Create a static secret in Vault that matches the Kubernetes service account name.
C.Configure the 'kubernetes_host' and 'kubernetes_ca_cert' in the auth method configuration.
D.Manually copy the pod's service account token into the Vault server's local keyring.
AnswerC

Vault must be able to talk to the K8s API to validate tokens.

Why this answer

The 'kubernetes_host' and the 'kubernetes_ca_cert' must be correctly configured in the auth/kubernetes/config endpoint for Vault to communicate securely with the API server.

8
MCQmedium

An AppRole's SecretID is stolen. You want to immediately invalidate that specific SecretID without affecting the RoleID or other active tokens. What is the correct action?

A.Rotate the RoleID.
B.Disable the AppRole auth method.
C.Delete the entire AppRole.
D.Destroy the specific SecretID.
AnswerD

This targets the compromised credential directly.

Why this answer

Destroying the SecretID through the API effectively invalidates it, preventing any new tokens from being issued via that specific SecretID.

9
MCQmedium

When using the Kubernetes Auth method, you notice that pods are failing to authenticate. Which log file or command provides the most insight into the validation failure?

A.Checking the Kubernetes events list.
B.Running 'kubectl describe pod'.
C.Checking Vault server audit logs.
D.Running 'vault read sys/auth/kubernetes'.
AnswerC

Audit logs record the authentication attempt and the failure reason.

Why this answer

The Vault server logs (at 'debug' level) will show the specific error returned by the Kubernetes TokenReview API.

10
Multi-Selecthard

Which THREE actions are recommended to secure the Vault-Kubernetes integration against token theft?

Select 3 answers
A.Use the Vault Agent injector for automatic sidecar management.
B.Apply 'token_bound_cidrs' to the role.
C.Set short TTLs on all issued tokens.
D.Disable audit logging to increase performance.
E.Use the 'root' token for the application.
AnswersA, B, C

Ensures best practices for token lifecycle.

Why this answer

Short TTLs, CIDR binding, and using the agent injector all minimize the risk and blast radius of token theft.

11
MCQeasy

What is the primary purpose of the 'token_ttl' setting in an AppRole role definition?

A.To limit the number of uses for the SecretID.
B.To set the expiration of the RoleID.
C.To set the rotation period for the Vault master key.
D.To define the duration of the authentication session.
AnswerD

It controls the lifespan of the resulting token.

Why this answer

The 'token_ttl' sets the initial time-to-live for the tokens generated by that role, ensuring tokens are short-lived by default.

12
Multi-Selectmedium

Which TWO of the following are true about AppRole 'SecretID' management?

Select 2 answers
A.SecretIDs are synonymous with RoleIDs.
B.SecretIDs can be constrained by 'num_uses'.
C.SecretIDs should be stored in cleartext in version control.
D.SecretIDs can be generated with a custom TTL.
E.SecretIDs are the same for all applications in a namespace.
AnswersB, D

A key security feature for SecretIDs.

Why this answer

SecretIDs can be generated via API and can have specific expiration or usage constraints, but they should never be hardcoded.

13
MCQmedium

You need to automate the delivery of a Vault token to a new virtual machine during its provisioning process. Which Vault feature is specifically designed to facilitate secure introduction for dynamic infrastructure?

A.LDAP bind credentials.
B.Cubbyhole storage.
C.Response Wrapping.
D.Transit Secret Engine.
AnswerC

It protects the delivery of the token.

Why this answer

Vault's 'Response Wrapping' allows for a secure, one-time introduction of a token to a client, which is essential for dynamic infrastructure.

14
MCQhard

You are implementing a multi-cluster Vault strategy. You want to ensure that a pod in Cluster A cannot authenticate to Vault using a service account token from Cluster B. What configuration must be set?

A.Set a different 'kubernetes_host' for each cluster.
B.Use the same 'kubernetes_ca_cert' for both clusters.
C.Enable 'token_bound_cidrs' on the roles.
D.Assign different 'token_policies' to the roles.
AnswerA

This ensures Vault points to the correct API server for token verification.

Why this answer

You must ensure that each Vault instance is configured with the correct 'kubernetes_host' and its own unique 'kubernetes_ca_cert' for the specific K8s cluster it is meant to trust.

15
Multi-Selecthard

When designing a secure Vault-Kubernetes Auth integration, which THREE factors must be considered to prevent token compromise?

Select 3 answers
A.The number of nodes in the cluster.
B.The scope of the service account token.
C.Validation of the K8s API server CA.
D.The version of the Kubernetes binary.
E.The TTL of the Vault token generated.
AnswersB, C, E

Limit the token's privileges.

Why this answer

Pod isolation, token scope (TTL), and secure communication (TLS/API trust) are the pillars of secure integration.

16
MCQmedium

When configuring the Kubernetes auth method, what does the 'token_bound_cidrs' parameter on a role do?

A.Restricts the generated Vault token to specific IP ranges.
B.Restricts the Kubernetes API server access.
C.Binds the login process to a specific pod IP.
D.Limits the number of simultaneous logins from an IP.
AnswerA

This is a core security control for tokens.

Why this answer

This restricts the resulting token to only be usable from the specified CIDR ranges, providing an additional layer of security after authentication.

17
Multi-Selectmedium

Which TWO of the following are valid ways to improve the security of the AppRole authentication process?

Select 2 answers
A.Disable TLS on the Vault listener.
B.Enable 'secret_id_bound_cidrs' on the role.
C.Use Response Wrapping for the SecretID.
D.Increase the SecretID TTL to infinity.
E.Share the same SecretID across all application replicas.
AnswersB, C

Adds IP-based validation.

Why this answer

Response wrapping provides secure introduction, and CIDR binding adds network-level restrictions.

18
MCQeasy

Which of the following is the most effective way to secure a Vault token during the 'Secure Client Introduction' phase in an automated environment?

A.Using a long-lived root token.
B.Passing the token as an environment variable.
C.Response wrapping.
D.Storing the token in a public configuration repo.
AnswerC

It provides a temporary, single-use wrapper for the sensitive data.

Why this answer

Response wrapping ensures that the token is not visible in cleartext in logs or process lists during delivery.

19
Multi-Selecthard

When configuring the Kubernetes Auth Method, which THREE of the following are required to ensure secure communication between Vault and the Kubernetes API server?

Select 3 answers
A.The Kubernetes node's SSH private key.
B.The 'kubernetes_host' address.
C.A list of all pod IP addresses.
D.The 'reviewer_service_account_jwt'.
E.The 'kubernetes_ca_cert' for validation.
AnswersB, D, E

Points Vault to the correct API server.

Why this answer

The host address, the CA certificate, and the token for the reviewer account are mandatory for the TokenReview API communication.

20
MCQeasy

In the context of the Vault Kubernetes Auth Method, what is the role of the 'reviewer_service_account'?

A.It is the account Vault uses to verify client tokens.
B.It is the account that logs in to Vault.
C.It is the account that manages K8s secrets.
D.It is an administrative account used to manage Vault roles.
AnswerA

Vault needs a service account with permission to call the TokenReview API.

Why this answer

The 'reviewer_service_account' is the service account that Vault uses to perform the 'TokenReview' request against the Kubernetes API.

21
MCQmedium

When using the Kubernetes auth method, what does the 'audience' field in the configuration allow you to do?

A.Restrict access to specific K8s pods.
B.Verify the 'aud' claim in the JWT.
C.Define which namespaces can authenticate.
D.Control the maximum token TTL.
AnswerB

This ensures the token was intended for the Vault instance.

Why this answer

The 'audience' field specifies the expected audience of the JWT, which helps in preventing token reuse attacks across different services.

22
MCQmedium

An administrator needs to enable secure client introduction for a legacy application using the AppRole auth method. The application resides on a server where it can periodically fetch a SecretID. What is the most secure workflow to ensure the secret delivery process is not compromised?

A.Issue a wrapped response for the SecretID with a specific TTL.
B.Use a global static token for all AppRole authentications.
C.Hardcode the SecretID into the application's configuration file.
D.Disable the SecretID requirement and use only the RoleID.
AnswerA

Response wrapping protects the secret in transit and ensures it is single-use.

Why this answer

Using Response Wrapping with a short TTL provides a single-use token that ensures the SecretID is only accessible by the intended recipient.

23
MCQmedium

You are using the Kubernetes Auth method and want to restrict a role so that it can only be used by pods in a specific namespace. How do you implement this constraint?

A.Set the 'allowed_namespaces' policy on the service account.
B.Apply a Vault namespace to the Kubernetes pod manifest.
C.Use a regex in the 'token_policies' field to filter by namespace.
D.Define the 'bound_namespaces' parameter in the Vault role configuration.
AnswerD

Vault enforces this at the role level during authentication.

Why this answer

When creating a role in the Kubernetes auth method, the 'bound_namespaces' field is used to restrict the role to specific Kubernetes namespaces.

24
Multi-Selectmedium

Which TWO of the following are true regarding the Vault Kubernetes Auth Method 'bound_service_account_names' parameter?

Select 2 answers
A.It can only be applied to cluster-admin accounts.
B.It allows wildcards to match multiple service accounts.
C.It replaces the need for Vault policies.
D.It restricts which service accounts can authenticate.
E.It is optional if 'bound_namespaces' is set.
AnswersB, D

Wildcards are supported for flexibility.

Why this answer

It restricts authentication to specific service accounts and prevents unauthorized service accounts from assuming the role.

Ready to test yourself?

Try a timed practice session using only Vault Security Model questions.