CertKeen

Certified Kubernetes Application Developer (CKAD) · Free practice question 8 of 12

tcpSocket probe for a non-HTTP server

A Redis-compatible cache at Zennor Systems listens on TCP 6379 and has no HTTP endpoint or health command in the image. Which readiness check is the simplest built-in option?

  1. A.readinessProbe: {exec: {command: [redis-cli, ping]}}
  2. B.readinessProbe: {tcpSocket: {port: 6379}}
  3. C.readinessProbe: {httpGet: {port: 6379, path: /}}
  4. D.readinessProbe: {grpc: {port: 6379}}
Show answer and explanation

Correct answer: B. readinessProbe: {tcpSocket: {port: 6379}}

Why: A tcpSocket probe succeeds if the kubelet can open a TCP connection to the port, which needs nothing in the image. httpGet would send HTTP that the server does not speak, the exec probe needs a client binary the image lacks, and a grpc probe requires the gRPC health service.

More free Certified Kubernetes Application Developer (CKAD) questions