Bird
0
0

Which of the following is the correct syntax snippet for an exec readiness probe in a pod spec?

easy📝 Configuration Q3 of 15
Kubernetes - Health Checks and Probes
Which of the following is the correct syntax snippet for an exec readiness probe in a pod spec?
AreadinessProbe: exec: command: ["/bin/check_ready"]
BreadinessProbe: httpGet: path: "/ready"
CreadinessProbe: tcpSocket: port: 8080
DreadinessProbe: exec: path: "/bin/check_ready"
Step-by-Step Solution
Solution:
  1. Step 1: Check exec probe syntax

    Exec probes use exec: with a command array listing the command and arguments.
  2. Step 2: Validate options

    readinessProbe: exec: command: ["/bin/check_ready"] correctly uses command with an array. readinessProbe: exec: path: "/bin/check_ready" incorrectly uses path, which is invalid for exec probes.
  3. Final Answer:

    readinessProbe with exec and command array -> Option A
  4. Quick Check:

    Exec probe syntax = command array [OK]
Quick Trick: Exec probe command must be an array of strings [OK]
Common Mistakes:
  • Using path instead of command in exec probe
  • Confusing exec with httpGet or tcpSocket probes
  • Not using an array for command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes