Courseiva

Consul 1.15 · domain

Key Value Store

Practise HashiCorp Certified: Consul Associate (Consul 1.15) (Consul 1.15) Key Value Store practice questions — original exam-style scenarios with answer choices, explanations, and analysis of common mistakes.

38 questions12 easy15 medium11 hard

Focused practice

Practice Key Value Store questions

Scored sessions drawing only from this domain — pick a length below.

Start 20-question practice test →

What this domain covers

What to know about Key Value Store

Key Value Store questions test whether you can apply the concept in context, not just recognise a definition.

How the topic appears in realistic exam-style scenarios.

Which detail in the question changes the correct answer.

How to eliminate plausible but wrong options.

How to connect the question back to the wider exam objective.

Watch out for

Common Key Value Store exam traps

  • Answering from memory before reading the full scenario.
  • Missing a constraint such as cost, availability, security, scope or command context.
  • Choosing a broad answer when the question asks for the most specific fix.
  • Ignoring why the wrong options are tempting.

Question index

All Key Value Store questions (38)

Click any question to see the full explanation, or start a practice session above.

1

What is the default value for the Consul KV flags field if not provided during a write?

Easy
2

Which Consul agent configuration parameter defines the KV store file location when running locally?

Easy
3

You need to perform a write operation to the Consul KV store that only succeeds if the current ModifyIndex of the key is zero. Which parameter should you include in your API call?

Medium
4

Which THREE of the following represent potential bottlenecks for Consul KV performance?

Hard
5

You observe that a session lock is being released unexpectedly. What is the most likely cause?

Hard
6

What is the purpose of the 'Behavior' field when creating a Consul session?

Medium
7

Which HTTP method is used to create or update a key in the Consul KV store?

Easy
8

Which THREE of the following fields are returned in a typical Consul KV API GET response?

Medium
9

You are configuring a Consul Watch to trigger a script whenever a specific KV key changes. Which type of watch should you define in your configuration file?

Medium
10

Which command-line interface command is used to set a value in the Consul KV store?

Easy
11

Which THREE of the following are true about Consul KV keys?

Easy
12

You want to delete a key and all its children in the KV store using the CLI. Which flag should you use?

Medium
13

Which Consul API endpoint is used to create a new session that can be used for locking KV keys?

Medium
14

When using the Consul KV store, what is the maximum size allowed for a single value in a key?

Easy
15

When providing a session TTL, what is the minimum duration allowed?

Medium
16

What happens if you try to write to a key that is currently locked by a session you do not own?

Easy
17

You need to ensure that a read operation from the KV store is strongly consistent. Which consistency mode should you specify?

Hard
18

Which flag can be used to pass arbitrary metadata to a KV entry?

Easy
19

Which THREE of the following are standard Consul KV CLI subcommands?

Easy
20

Which TWO of the following are valid ways to trigger a KV watch?

Medium
21

Which TWO of the following are true regarding Consul KV watches?

Hard
22

You are using a Consul Watch to monitor KV changes. What does the 'handler' field specify?

Medium
23

When a session is associated with a lock, what happens to the lock if the session is deleted?

Medium
24

Which TWO of the following are true about the 'cas' parameter in KV writes?

Medium
25

What happens to a session if the associated node is marked as 'failed' by the Consul health check?

Hard
26

You want to perform a blocking query on a KV key to watch for updates. Which parameter must you provide in your request based on the last observed index?

Medium
27

When using Consul KV for distributed locking, why is it recommended to use a session?

Hard
28

An application is using Consul KV to store configuration. You notice that the KV store is becoming large. What is the most efficient way to retrieve only the keys under the prefix "service/web/"?

Easy
29

If a KV operation returns a 403 Forbidden status, what is the most common cause?

Hard
30

You have implemented a leader election mechanism using Consul KV sessions. The session has a TTL of 15 seconds. If the application crashes, how long will it take for the lock to be automatically released?

Hard
31

If a Consul agent is configured with 'disable_remote_exec = true', how does this affect the KV store?

Hard
32

Which THREE of the following are valid session behaviors when a session is invalidated?

Hard
33

Which TWO of the following are true regarding the behavior of the Consul KV store?

Hard
34

You need to retrieve the session information for a specific session ID. Which endpoint should you query?

Medium
35

You want to perform a list operation on a KV prefix to see all keys, but you don't want the values returned. Which API parameter helps reduce payload size?

Medium
36

Which Consul feature allows you to observe the KV store for changes and run a command in response?

Easy
37

Which THREE of the following are required to successfully acquire a lock on a KV key?

Medium
38

Which TWO of the following are common use cases for the Consul KV store?

Easy

Frequently asked questions

What does the Key Value Store domain cover on the Consul 1.15 exam?
Key Value Store questions test whether you can apply the concept in context, not just recognise a definition.
How many questions are in this domain?
This page lists all 38 Key Value Store questions in the Consul 1.15 question bank. The actual exam draws from this domain proportionally to its weighting in the official exam blueprint.
What is the best way to practise this domain?
Start with a short focused session (10 questions) to identify gaps, then work through explanations. Repeat with a longer session once the weak areas feel solid.
Can I practise only Key Value Store questions?
Yes — the session launcher on this page filters questions to this domain only. Choose any session length for inline explanations and scoring.
hashicorp-consul HASHICORP-CONSUL key value store Practice Questions