Consul Associate ACL System Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Questions: 20 | Updated: Aug 15, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. What does the 'node' rule in an ACL policy control?

Explanation

The `node` rule governs permissions for individual nodes in the cluster. It determines whether a token can access information about a particular node and perform node deregistration, rather than controlling service discovery, key-value operations, or leader election.

Submit
Please wait...
About This Quiz
Consul Associate ACL System Quiz - Quiz

This quiz evaluates your understanding of HashiCorp Consul's Access Control List (ACL) system. You'll test knowledge of ACL tokens, policies, roles, and enforcement mechanisms essential for securing Consul clusters. Master ACL configuration, token types, and policy application to ensure proper access control in your Consul deployments.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which ACL rule allows listing keys in the KV store?

Explanation

KV store access is controlled through key-prefix rules. Granting `list` permission on a `key_prefix` allows a client to enumerate keys under that prefix, while `service`, `node`, and `agent` rules govern different Consul resources.

Submit

3. What is the relationship between ACL roles and policies in Consul?

Explanation

In Consul, policies specify the permissions a token receives, such as access to particular resources. A role groups one or more policies so they can be managed together and then associated with tokens. This makes it easier to assign consistent permission sets without attaching each policy individually.

Submit

4. How can you revoke an ACL token in Consul?

Explanation

Revoke a Consul ACL token by sending a DELETE request to `/v1/acl/token/:id`, replacing `:id` with the token’s ID. This removes the token so it can no longer be used for authorization.

Submit

5. What does the 'intentions' rule control in Consul ACLs?

Explanation

In Consul ACLs, the intentions rule determines whether one service is allowed to communicate with another. It enables administrators to define and enforce service-to-service access policies, allowing or denying traffic between specific services.

Submit

6. In Consul, what is policy templating?

Explanation

Policy templating in Consul lets administrators define ACL permissions using templates whose values are filled in from identity attributes, such as a service or node name. Consul can then generate an appropriate policy dynamically for each identity, reducing duplicated, manually maintained policies while keeping access scoped to relevant resources.

Submit

7. Which Consul API endpoint is used to create ACL tokens?

Explanation

Consul manages ACL tokens through its ACL token HTTP API. A request to `/v1/acl/token` can create a token and, depending on the request and token ID, update one; token properties are supplied in the request body. The other listed paths are not the standard Consul endpoint for creating ACL tokens.

Submit

8. What is the purpose of an anonymous token in Consul ACLs?

Explanation

In Consul, the anonymous token represents API requests that do not include an ACL token. Consul evaluates those requests using the policies and permissions associated with the anonymous token, allowing unauthenticated access only to the extent those default permissions permit. It does not bypass ACL checks or grant unrestricted access.

Submit

9. Can ACL tokens be set with an expiration time in Consul?

Explanation

Consul ACL tokens can be configured with an `ExpirationTime` value. Once that timestamp is reached, the token expires and can no longer be used to authenticate or authorize requests. This allows administrators to limit a token’s lifetime without relying solely on manual revocation.

Submit

10. Which ACL rule type governs access to the Consul KV store?

Explanation

In Consul ACL policies, key rules control permissions on paths in the key/value store, including read, write, and list access. A service rule governs service-related operations, a node rule governs node catalog access, and an agent rule governs agent endpoints. Therefore, KV-store permissions are expressed with a key rule in an ACL policy.

Submit

11. What is the primary purpose of ACLs in HashiCorp Consul?

Explanation

ACLs in HashiCorp Consul define permissions for users and services, controlling which cluster resources and data they can access or modify. This helps protect sensitive information and prevent unauthorized actions across the Consul environment.

Submit

12. How are ACL policies applied to Consul agents?

Explanation

Consul agents use an agent token configured in their settings to authenticate requests and determine which ACL policies apply. This lets administrators assign permissions to each agent rather than applying the same policies automatically to all agents.

Submit

13. What is a service identity token in Consul?

Explanation

A Consul service identity token is an ACL token associated with a particular service name. It lets the service or an agent acting for it perform permitted operations related to that service, while keeping access scoped rather than granting broad privileges across all services, datacenters, or agent communications.

Submit

14. Which permission level allows reading but not writing to Consul KV data?

Explanation

The `read` permission allows users to retrieve Consul KV values without changing them. Writing or modifying KV data requires a higher permission level.

Submit

15. What is the default ACL policy when ACLs are enabled?

Explanation

When access control lists (ACLs) are enabled, the default policy is to deny access unless a rule explicitly grants it. This fail-closed approach prevents users or processes from gaining unintended permissions when no matching rule exists. Administrators can add narrowly scoped allow rules for legitimate access to protected resources.

Submit

16. Which ACL mode must be enabled for ACL enforcement in Consul?

Explanation

Setting `acl_enforce_version_8 = true` enables Consul’s version-8 ACL enforcement behavior, applying ACL authorization checks to requests and protected resources. `acl_enabled = true` turns on the ACL system, while the default policy and master token configure authorization behavior and administrative access; they do not themselves select this enforcement mode.

Submit

17. What is an ACL role in Consul?

Explanation

In Consul, an ACL role provides a reusable way to group policies and service identities. ACL tokens can be linked to a role, allowing them to inherit its permissions without assigning each policy individually. This simplifies access management when multiple users or services need similar privileges.

Submit

18. In Consul ACL policies, what does the 'service' rule control?

Explanation

The `service` rule in a Consul ACL policy governs permissions for named services, including access to their service instances. It lets administrators control which users or tokens can discover or interact with particular services.

Submit

19. What does a Management token in Consul allow?

Explanation

A Management token grants unrestricted administrative permissions in Consul. It allows its holder to create, modify, or delete policies and tokens, and to access and manage all cluster resources. Because of this broad authority, management tokens should be protected carefully.

Submit

20. Which token type is used for general service and agent operations in Consul?

Explanation

A client token supplies ACL credentials for routine requests made by Consul clients, including permitted service and agent operations. Its policies determine what the holder can access. Unlike a management token, it is not inherently unrestricted, and it is distinct from tokens intended specifically for an agent or service identity.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
What does the 'node' rule in an ACL policy control?
Which ACL rule allows listing keys in the KV store?
What is the relationship between ACL roles and policies in Consul?
How can you revoke an ACL token in Consul?
What does the 'intentions' rule control in Consul ACLs?
In Consul, what is policy templating?
Which Consul API endpoint is used to create ACL tokens?
What is the purpose of an anonymous token in Consul ACLs?
Can ACL tokens be set with an expiration time in Consul?
Which ACL rule type governs access to the Consul KV store?
What is the primary purpose of ACLs in HashiCorp Consul?
How are ACL policies applied to Consul agents?
What is a service identity token in Consul?
Which permission level allows reading but not writing to Consul KV...
What is the default ACL policy when ACLs are enabled?
Which ACL mode must be enabled for ACL enforcement in Consul?
What is an ACL role in Consul?
In Consul ACL policies, what does the 'service' rule control?
What does a Management token in Consul allow?
Which token type is used for general service and agent operations in...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!