Question 1mediummultiple choice
Read the full NAT/PAT explanation →KCNA Cloud Native Architecture • Complete Question Bank
Complete KCNA Cloud Native Architecture question bank — all 0 questions with answers and detailed explanations.
Refer to the exhibit.
```
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 3
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: nginx
image: nginx:1.21
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /healthz
port: 80
initialDelaySeconds: 5
periodSeconds: 10
readinessProbe:
httpGet:
path: /ready
port: 80
initialDelaySeconds: 3
periodSeconds: 5
```Refer to the exhibit. ``` $ kubectl get pods -n production NAME READY STATUS RESTARTS AGE api-7d4f8b8c6-abc12 1/1 Running 0 5m api-7d4f8b8c6-xyz78 1/1 Running 0 5m web-9f6c8d7e5-lmn34 1/1 Running 3 10m web-9f6c8d7e5-pqr56 1/1 Running 0 10m $ kubectl logs web-9f6c8d7e5-lmn34 Error: failed to connect to database at 10.0.0.1:3306 $ kubectl describe pod web-9f6c8d7e5-lmn34 | grep -A5 Events Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning Unhealthy 2m kubelet Liveness probe failed: HTTP probe failed with statuscode: 503 Normal Killing 2m kubelet Container failed liveness probe, will be restarted Normal Pulling 2m kubelet Pulling image "webapp:2.0" ```
Refer to the exhibit.
```
apiVersion: v1
kind: Pod
metadata:
name: web-app
spec:
containers:
- name: app
image: nginx:latest
ports:
- containerPort: 80
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 3
periodSeconds: 5
```Drag steps to the numbered slots on the right, or tap a step then tap a slot.
Drag a concept onto its matching description — or click a concept then click the description.
Ensures a copy of a pod runs on all or selected nodes
Manages stateful applications with unique network identities
Runs a finite task to completion
Runs jobs on a time-based schedule
Automatically scales pod replicas based on CPU/memory metrics