Consul 1.15 Health Checking Practice Question
You want to run a shell command as a health check. Which field in the service definition specifies the command to execute?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
script
The 'args' or 'script' field is used to define the command the Consul agent executes to perform a script check.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
check_exec
Why it's wrong here
This does not exist.
- ✗
command
Why it's wrong here
This is not the field name.
- ✓
script
Why this is correct
The 'script' field contains the execution string.
- ✗
action
Why it's wrong here
This is not the field name.
About these practice questions
One of 194 original Consul 1.15 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed August 2026 · checked against the official HashiCorp exam blueprint
This Consul 1.15 practice question is part of Courseiva's free HashiCorp certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the Consul 1.15 exam.