Question 19
Domain 1: Application Design and BuildWhich Pod manifest correctly creates `triple-probe-pod` in namespace `q50` with `nginx:latest`, container port 80, and all three HTTP GET probes on `/`?
Correct answer: A
Explanation
The manifest matches the required Pod name, namespace, image, and container port, and it includes all three HTTP GET probes on "/". It also sets the probe ports and timings as specified: startupProbe with "failureThreshold 30" and "periodSeconds 10", livenessProbe with "periodSeconds 15", and readinessProbe with "periodSeconds 5".
Why each option is right or wrong
A. A Pod named `triple-probe-pod` in `q50` using `nginx:latest` with containerPort 80, startupProbe httpGet `/` on port 80 with failureThreshold 30 and periodSeconds 10, livenessProbe httpGet `/` on port 80 with periodSeconds 15, and readinessProbe httpGet `/` on port 80 with periodSeconds 5.
The manifest satisfies the Pod API fields in `apiVersion: v1` and `kind: Pod` by placing `metadata.name: triple-probe-pod` and `metadata.namespace: q50` exactly as required, and the container spec uses `image: nginx:latest` with `containerPort: 80`. Under the Kubernetes probe schema (`startupProbe`, `livenessProbe`, `readinessProbe`), each probe must define `httpGet.path: /` and `httpGet.port: 80`; the timings also match the stated values: `startupProbe.failureThreshold: 30` with `periodSeconds: 10`, `livenessProbe.periodSeconds: 15`, and `readinessProbe.periodSeconds: 5`.
B. A Pod named `triple-probe-pod` in `q50` using `nginx:latest` with containerPort 80, startupProbe exec `/` with failureThreshold 30 and periodSeconds 10, livenessProbe httpGet `/healthz` on port 80 with periodSeconds 15, and readinessProbe httpGet `/` on port 8080 with periodSeconds 5.
C. A Pod named `triple-probe-pod` in `q50` using `nginx:latest` with containerPort 80, startupProbe httpGet `/` on port 80 with failureThreshold 10 and periodSeconds 30, livenessProbe httpGet `/` on port 80 with periodSeconds 5, and readinessProbe tcpSocket on port 80 with periodSeconds 5.
D. A Pod named `triple-probe-pod` in `q50` using `nginx:latest` with containerPort 8080, startupProbe httpGet `/start` on port 80 with failureThreshold 30 and periodSeconds 10, livenessProbe httpGet `/` on port 80 with periodSeconds 15, and readinessProbe httpGet `/` on port 80 with periodSeconds 5.