Bird
0
0

You want to configure a startupProbe that runs a command every 3 seconds and allows 10 failures before restarting. Which is the correct snippet?

hard📝 Workflow Q8 of 15
Kubernetes - Health Checks and Probes
You want to configure a startupProbe that runs a command every 3 seconds and allows 10 failures before restarting. Which is the correct snippet?
AstartupProbe: exec: command: ["/bin/check-startup.sh"] periodSeconds: 3 failureThreshold: 10
BstartupProbe: httpGet: path: /start port: 80 periodSeconds: 10 failureThreshold: 3
CstartupProbe: tcpSocket: port: 8080 periodSeconds: 3 failureThreshold: 5
DstartupProbe: exec: command: ["/bin/check.sh"] periodSeconds: 10 failureThreshold: 3
Step-by-Step Solution
Solution:
  1. Step 1: Match periodSeconds and failureThreshold requirements

    We want periodSeconds=3 and failureThreshold=10, so probe runs every 3 seconds and allows 10 failures.
  2. Step 2: Check probe type and command

    startupProbe: exec: command: ["/bin/check-startup.sh"] periodSeconds: 3 failureThreshold: 10 uses exec with correct command and matches timing requirements exactly.
  3. Final Answer:

    Option A matches the required startupProbe configuration -> Option A
  4. Quick Check:

    periodSeconds=3 and failureThreshold=10 in exec probe = correct [OK]
Quick Trick: Match periodSeconds and failureThreshold to desired timing [OK]
Common Mistakes:
  • Mixing periodSeconds and failureThreshold values
  • Choosing wrong probe type for command
  • Confusing exec command syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes