100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 520
During a remediation drill, the team evaluates the safe next steps and their consequences. A Service exposes TCP port 80 and forwards to targetPort 8081, but the ready application container only listens on 8080 Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Assume targetPort 8081 works because the container exposes containerPort 8080.
- Set the Service port to 8081 while leaving the wrong targetPort unchanged.
- Change namespace ResourceQuota to redirect targetPort.
- Test connection to backend Pod IP port 8080 and Service port 80 after correction.
Explanation
Correct Answer
D:direct and virtual-IP tests isolate backend listener versus Service translation.
Incorrect Answers
A:A numerical mismatch persists regardless of containerPort metadata. Instead, 'Test connection to backend Pod IP port 8080 and Service port 80 after correction' addresses the failure directly: Direct and virtual-IP tests isolate backend listener versus Service translation.
B:Clients changing destination service port does not make the backend listen on 8081. Instead, 'Test connection to backend Pod IP port 8080 and Service port 80 after correction' addresses the failure directly: Direct and virtual-IP tests isolate backend listener versus Service translation.
C:Quota admission has no role in Service backend port forwarding. Instead, 'Test connection to backend Pod IP port 8080 and Service port 80 after correction' addresses the failure directly: Direct and virtual-IP tests isolate backend listener versus Service translation.
Question 521
A NetworkPolicy is created in namespace public, selecting app=api there. A matching app=api Pod exists in namespace private. Which Pod does this policy select? Choose ONE answer.
- Neither Pod unless a ClusterRoleBinding exists.
- Only the matching Pod in public.
- Only the Pod in private.
- Both Pods because app labels match.
Explanation
Correct Answer
B:NetworkPolicy podSelector selects destinations in the policy’s own namespace.
Incorrect Answers
A:Dataplane policy targeting is not governed by ClusterRoleBinding presence.
C:The policy lives in public and does not directly select private Pods.
D:Destination podSelector is not a cluster-wide Pod selection.
Question 522
During a remediation drill, the team evaluates the safe next steps and their consequences. A namespace has a default-deny ingress policy and a frontend Pod cannot reach a backend Pod on TCP 8443 despite direct Pod IP connectivity in an unrestricted namespace Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Add a PVC with ReadWriteMany as the sole ingress permission.
- Check that the CNI implementation enforces NetworkPolicy.
- Change only frontend Pod readiness to bypass backend ingress isolation.
- Assume a Service NodePort always bypasses NetworkPolicy on backend Pods.
Explanation
Correct Answer
B:Kubernetes defines policy objects while plugin enforcement depends on networking implementation.
Incorrect Answers
A:storage access mode cannot authorize network traffic.
C:application readiness does not override a backend ingress policy.
D:normal backend Pod traffic remains subject to applicable policy enforcement.
Question 523
During an incident review, an operator must choose an accurate diagnosis. After egress default-deny is enabled, an application loses DNS resolution although it can still connect to a known permitted server IP Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Check egress policies selecting the client Pod for UDP and TCP DNS port 53.
- Assume default-deny egress always exempts DNS automatically.
- Change kubeadm bootstrap tokens to authorize Pod DNS traffic.
- Increase PVC capacity to unblock UDP queries.
Explanation
Correct Answer
A:DNS queries need explicit egress allowance for isolated Pods.
Incorrect Answers
B:NetworkPolicy does not include a built-in blanket DNS allowance.
C:bootstrap credentials do not implement network egress rules.
D:storage capacity does not affect traffic denied by egress policy.
Question 524
Before applying a change, the cluster team checks what the configuration actually permits. After egress default-deny is enabled, an application loses DNS resolution although it can still connect to a known permitted server IP Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose TWO statements.
- Change kubeadm bootstrap tokens to authorize Pod DNS traffic.
- Validate DNS lookup plus the intended application destination after the change.
- Assume default-deny egress always exempts DNS automatically.
- Increase PVC capacity to unblock UDP queries.
- Allow only required DNS resolver destinations and protocols.
Explanation
Correct Answers
B:restoring DNS alone does not necessarily restore other application egress permissions.
E:a targeted DNS exception can restore resolution without allowing arbitrary egress.
Incorrect Answers
A:Bootstrap credentials do not implement network egress rules. The prerequisite check or operation is 'Allow only required DNS resolver destinations and protocols': A targeted DNS exception can restore resolution without allowing arbitrary egress.
C:NetworkPolicy does not include a built-in blanket DNS allowance. The prerequisite check or operation is 'Allow only required DNS resolver destinations and protocols': A targeted DNS exception can restore resolution without allowing arbitrary egress.
D:Storage capacity does not affect traffic denied by egress policy. The prerequisite check or operation is 'Allow only required DNS resolver destinations and protocols': A targeted DNS exception can restore resolution without allowing arbitrary egress.
Question 525
During a remediation drill, the team evaluates the safe next steps and their consequences. After egress default-deny is enabled, an application loses DNS resolution although it can still connect to a known permitted server IP Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose THREE statements.
- Validate DNS lookup plus the intended application destination after the change.
- Allow only required DNS resolver destinations and protocols.
- Change kubeadm bootstrap tokens to authorize Pod DNS traffic.
- Check egress policies selecting the client Pod for UDP and TCP DNS port 53.
- Increase PVC capacity to unblock UDP queries.
- Assume default-deny egress always exempts DNS automatically.
Explanation
Correct Answers
A:Restoring DNS alone does not necessarily restore other application egress permissions. 'Assume default-deny egress always exempts DNS automatically' would not achieve the required recovery because NetworkPolicy does not include a built-in blanket DNS allowance.
B:A targeted DNS exception can restore resolution without allowing arbitrary egress. 'Change kubeadm bootstrap tokens to authorize Pod DNS traffic' would not achieve the required recovery because Bootstrap credentials do not implement network egress rules.
D:DNS queries need explicit egress allowance for isolated Pods. 'Increase PVC capacity to unblock UDP queries' would not achieve the required recovery because Storage capacity does not affect traffic denied by egress policy.
Incorrect Answers
C:Bootstrap credentials do not implement network egress rules. Instead, 'Check egress policies selecting the client Pod for UDP and TCP DNS port 53' addresses the failure directly: DNS queries need explicit egress allowance for isolated Pods.
E:Storage capacity does not affect traffic denied by egress policy. Instead, 'Check egress policies selecting the client Pod for UDP and TCP DNS port 53' addresses the failure directly: DNS queries need explicit egress allowance for isolated Pods.
F:NetworkPolicy does not include a built-in blanket DNS allowance. Instead, 'Validate DNS lookup plus the intended application destination after the change' addresses the failure directly: Restoring DNS alone does not necessarily restore other application egress permissions.
Question 526
Before applying a change, the cluster team checks what the configuration actually permits. An Ingress object is accepted by the API but has no address or functional HTTP routing; no controller handles its configured IngressClass Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Delete all Pod requests to make the API server implement Ingress.
- Change PV access mode to expose the Ingress class.
- Check IngressClass references, controller logs and status.
- Assume creating an Ingress object always provisions a public load balancer.
Explanation
Correct Answer
C:an unmatched class can leave rules unreconciled.
Incorrect Answers
A:scheduler requests do not supply a missing HTTP controller.
B:volume semantics do not select or install Ingress controllers.
D:Ingress creation depends on an implementation and environment-specific integration.
Question 527
During a remediation drill, the team evaluates the safe next steps and their consequences. An Ingress object is accepted by the API but has no address or functional HTTP routing; no controller handles its configured IngressClass Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Verify host/path routing only after backend Service and controller become healthy.
- Delete all Pod requests to make the API server implement Ingress.
- Assume creating an Ingress object always provisions a public load balancer.
- Change PV access mode to expose the Ingress class.
Explanation
Correct Answer
A:an accepted manifest alone does not prove network reachability.
Incorrect Answers
B:Scheduler requests do not supply a missing HTTP controller. Instead, 'Verify host/path routing only after backend Service and controller become healthy' addresses the failure directly: An accepted manifest alone does not prove network reachability.
C:Ingress creation depends on an implementation and environment-specific integration. Instead, 'Verify host/path routing only after backend Service and controller become healthy' addresses the failure directly: An accepted manifest alone does not prove network reachability.
D:Volume semantics do not select or install Ingress controllers. Instead, 'Verify host/path routing only after backend Service and controller become healthy' addresses the failure directly: An accepted manifest alone does not prove network reachability.
Question 528
During an incident review, an operator must choose an accurate diagnosis. An HTTPRoute was applied but is not carrying traffic because its parentRef points to a Gateway listener that does not accept that route Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Increase deployment maxSurge to accept an HTTPRoute.
- Assume every HTTPRoute with a valid YAML schema is automatically attached.
- Inspect HTTPRoute Accepted and ResolvedRefs conditions.
- Delete the kube-dns Service to force the HTTPRoute to be accepted.
Explanation
Correct Answer
C:status reports whether the route is attached and whether its references resolve.
Incorrect Answers
A:rolling update surge has no authority over Gateway listener attachment.
B:the Gateway controller and listener acceptance rules determine attachment.
D:DNS Service deletion cannot fix Gateway listener configuration.
Question 529
Before applying a change, the cluster team checks what the configuration actually permits. An HTTPRoute was applied but is not carrying traffic because its parentRef points to a Gateway listener that does not accept that route Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Increase deployment maxSurge to accept an HTTPRoute.
- Delete the kube-dns Service to force the HTTPRoute to be accepted.
- Assume every HTTPRoute with a valid YAML schema is automatically attached.
- Check listener allowedRoutes and hostname compatibility.
Explanation
Correct Answer
D:listener policy and hostname intersections determine eligible HTTPRoute attachments.
Incorrect Answers
A:Rolling update surge has no authority over Gateway listener attachment. The prerequisite check or operation is 'Check listener allowedRoutes and hostname compatibility': Listener policy and hostname intersections determine eligible HTTPRoute attachments.
B:DNS Service deletion cannot fix Gateway listener configuration. The prerequisite check or operation is 'Check listener allowedRoutes and hostname compatibility': Listener policy and hostname intersections determine eligible HTTPRoute attachments.
C:The Gateway controller and listener acceptance rules determine attachment. The prerequisite check or operation is 'Check listener allowedRoutes and hostname compatibility': Listener policy and hostname intersections determine eligible HTTPRoute attachments.
Question 530
During a remediation drill, the team evaluates the safe next steps and their consequences. An HTTPRoute was applied but is not carrying traffic because its parentRef points to a Gateway listener that does not accept that route Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Assume every HTTPRoute with a valid YAML schema is automatically attached.
- Delete the kube-dns Service to force the HTTPRoute to be accepted.
- Increase deployment maxSurge to accept an HTTPRoute.
- Correct the listener or parentRef relationship before testing backend paths.
Explanation
Correct Answer
D:an unattached route cannot program the expected traffic path.
Incorrect Answers
A:The Gateway controller and listener acceptance rules determine attachment. Instead, 'Correct the listener or parentRef relationship before testing backend paths' addresses the failure directly: An unattached route cannot program the expected traffic path.
B:DNS Service deletion cannot fix Gateway listener configuration. Instead, 'Correct the listener or parentRef relationship before testing backend paths' addresses the failure directly: An unattached route cannot program the expected traffic path.
C:Rolling update surge has no authority over Gateway listener attachment. Instead, 'Correct the listener or parentRef relationship before testing backend paths' addresses the failure directly: An unattached route cannot program the expected traffic path.
Certified Kubernetes Administrator (CKA) Practice Tests