Bird
0
0

Identify the error in this exec probe snippet: livenessProbe: exec: command: "/bin/check_health" initialDelaySeconds: 5

medium📝 Debug Q6 of 15
Kubernetes - Health Checks and Probes
Identify the error in this exec probe snippet: livenessProbe: exec: command: "/bin/check_health" initialDelaySeconds: 5
Aexec probe requires a timeoutSeconds field
BinitialDelaySeconds is not allowed in livenessProbe
Ccommand should be an array, not a string
Dcommand must include arguments even if empty
Step-by-Step Solution
Solution:
  1. Step 1: Check command field type

    The command field must be an array of strings, not a single string.
  2. Step 2: Validate other fields

    initialDelaySeconds is valid and optional; timeoutSeconds is optional; command arguments can be empty.
  3. Final Answer:

    command should be an array, not a string -> Option C
  4. Quick Check:

    Exec command must be array [OK]
Quick Trick: Exec command must be an array of strings [OK]
Common Mistakes:
  • Using string instead of array for command
  • Thinking initialDelaySeconds is invalid
  • Assuming timeoutSeconds is mandatory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes