Microservices - Orchestration with KubernetesWhich of the following is the correct syntax to define a readiness probe in a Kubernetes pod spec?AlivenessProbe: exec: command: ["cat", "/tmp/healthy"] timeoutSeconds: 1BlivenessProbe: tcpSocket: port: 8080 initialDelaySeconds: 5 periodSeconds: 10CreadinessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 5 periodSeconds: 10DlivenessProbe: httpGet: path: /ready port: 8080 failureThreshold: 3Check Answer
Step-by-Step SolutionSolution:Step 1: Identify readiness probe syntaxReadiness probes often use httpGet with path and port, plus delay and period settings.Step 2: Confirm correct fields and indentationreadinessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 5 periodSeconds: 10 correctly shows readinessProbe with httpGet, initialDelaySeconds, and periodSeconds.Final Answer:readinessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 5 periodSeconds: 10 -> Option CQuick Check:Readiness probe syntax = readinessProbe: httpGet: path: /healthz port: 8080 initialDelaySeconds: 5 periodSeconds: 10 [OK]Quick Trick: Readiness uses httpGet with path and port in YAML [OK]Common Mistakes:MISTAKESMixing livenessProbe and readinessProbe fieldsIncorrect indentation in YAMLUsing wrong probe type for readiness
Master "Orchestration with Kubernetes" in Microservices9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepArchTryChallengeDesignRecallScale
More Microservices Quizzes Event-Driven Architecture - Event types (domain, integration, notification) - Quiz 8hard Event-Driven Architecture - Eventual consistency handling - Quiz 10hard Monitoring and Observability - Correlation IDs - Quiz 14medium Orchestration with Kubernetes - Horizontal Pod Autoscaler - Quiz 13medium Resilience Patterns - Circuit breaker pattern - Quiz 13medium Resilience Patterns - Fallback pattern - Quiz 8hard Resilience Patterns - Circuit breaker pattern - Quiz 1easy Service Mesh - Linkerd overview - Quiz 3easy Service Mesh - Service mesh concept - Quiz 15hard Service Mesh - Why service mesh manages inter-service traffic - Quiz 1easy