100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 340
During a remediation drill, the team evaluates the safe next steps and their consequences. A diagnostic Pod runs with hostNetwork true but still needs the cluster DNS search path for Services Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose TWO statements.
- Create a RoleBinding to a DNS server to define resolv.conf.
- Use dnsPolicy ClusterFirstWithHostNet for the hostNetwork Pod.
- Confirm a Service FQDN resolves within the Pod after the DNS policy change.
- Use dnsPolicy Default and assume Kubernetes cluster DNS is guaranteed.
- Set a PVC access mode to ReadWriteMany to configure DNS search domains.
Explanation
Correct Answers
B:ClusterFirstWithHostNet enables cluster DNS resolution for a Pod using host networking. 'Use dnsPolicy Default and assume Kubernetes cluster DNS is guaranteed' would not achieve the required recovery because Default inherits node DNS settings rather than guaranteeing cluster search resolution.
C:querying from that network namespace validates the actual DNS behavior.
Incorrect Answers
A:API authorization does not replace the Pod DNS configuration. Instead, 'Confirm a Service FQDN resolves within the Pod after the DNS policy change' addresses the failure directly: Querying from that network namespace validates the actual DNS behavior.
D:Default inherits node DNS settings rather than guaranteeing cluster search resolution. Instead, 'Use dnsPolicy ClusterFirstWithHostNet for the hostNetwork Pod' addresses the failure directly: ClusterFirstWithHostNet enables cluster DNS resolution for a Pod using host networking.
E:Volume access modes do not configure Pod DNS policy. Instead, 'Use dnsPolicy ClusterFirstWithHostNet for the hostNetwork Pod' addresses the failure directly: ClusterFirstWithHostNet enables cluster DNS resolution for a Pod using host networking.
Question 341
During an incident review, an operator must choose an accurate diagnosis. Pods can reach Pod IPs directly but fail to resolve Service FQDNs; the kube-dns Service has no ready endpoints Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose THREE statements.
- Verify DNS resolution from a test Pod after CoreDNS health is restored.
- Inspect CoreDNS Pod readiness and its backing Deployment.
- Change all workloads to NodePort to fix CoreDNS endpoints.
- Inspect kube-dns Service and EndpointSlices for missing ready backends.
- Delete every Namespace to clear DNS cache errors.
- Increase a storage volume reclaim policy to Retain to repair kube-dns.
Explanation
Correct Answers
A:successful network reachability to Pod IPs does not alone prove DNS service works.
B:the DNS Service needs healthy CoreDNS endpoints to answer in-cluster queries.
D:the observed empty ready endpoint set explains DNS Service routing failure.
Incorrect Answers
C:Service type changes do not make unhealthy CoreDNS Pods ready.
E:namespace deletion is destructive and unrelated to missing DNS backends.
F:volume reclamation is unrelated to DNS endpoint availability.
Question 342
Before applying a change, the cluster team checks what the configuration actually permits. Pods can reach Pod IPs directly but fail to resolve Service FQDNs; the kube-dns Service has no ready endpoints Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Inspect kube-dns Service and EndpointSlices for missing ready backends.
- Change all workloads to NodePort to fix CoreDNS endpoints.
- Increase a storage volume reclaim policy to Retain to repair kube-dns.
- Delete every Namespace to clear DNS cache errors.
Explanation
Correct Answer
A:The observed empty ready endpoint set explains DNS Service routing failure. Before changing live state, distinguish this from 'Delete every Namespace to clear DNS cache errors': Namespace deletion is destructive and unrelated to missing DNS backends.
Incorrect Answers
B:Service type changes do not make unhealthy CoreDNS Pods ready. The prerequisite check or operation is 'Inspect kube-dns Service and EndpointSlices for missing ready backends': The observed empty ready endpoint set explains DNS Service routing failure.
C:Volume reclamation is unrelated to DNS endpoint availability. The prerequisite check or operation is 'Inspect kube-dns Service and EndpointSlices for missing ready backends': The observed empty ready endpoint set explains DNS Service routing failure.
D:Namespace deletion is destructive and unrelated to missing DNS backends. The prerequisite check or operation is 'Inspect kube-dns Service and EndpointSlices for missing ready backends': The observed empty ready endpoint set explains DNS Service routing failure.
Question 343
During a remediation drill, the team evaluates the safe next steps and their consequences. Pods can reach Pod IPs directly but fail to resolve Service FQDNs; the kube-dns Service has no ready endpoints Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Delete every Namespace to clear DNS cache errors.
- Change all workloads to NodePort to fix CoreDNS endpoints.
- Verify DNS resolution from a test Pod after CoreDNS health is restored.
- Increase a storage volume reclaim policy to Retain to repair kube-dns.
Explanation
Correct Answer
C:Successful network reachability to Pod IPs does not alone prove DNS service works. 'Change all workloads to NodePort to fix CoreDNS endpoints' would not achieve the required recovery because Service type changes do not make unhealthy CoreDNS Pods ready.
Incorrect Answers
A:Namespace deletion is destructive and unrelated to missing DNS backends. Instead, 'Verify DNS resolution from a test Pod after CoreDNS health is restored' addresses the failure directly: Successful network reachability to Pod IPs does not alone prove DNS service works.
B:Service type changes do not make unhealthy CoreDNS Pods ready. Instead, 'Verify DNS resolution from a test Pod after CoreDNS health is restored' addresses the failure directly: Successful network reachability to Pod IPs does not alone prove DNS service works.
D:Volume reclamation is unrelated to DNS endpoint availability. Instead, 'Verify DNS resolution from a test Pod after CoreDNS health is restored' addresses the failure directly: Successful network reachability to Pod IPs does not alone prove DNS service works.
Question 344
During an incident review, an operator must choose an accurate diagnosis. An Ingress resource specifies host routing but no Ingress controller is installed to reconcile its rules Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Deploy or configure a compatible Ingress controller for that IngressClass.
- Change a Pod restartPolicy to Always to register the IngressClass.
- Add an HPA to the Ingress object to create its missing controller.
- Expect the Ingress resource alone to provision an external proxy without a controller.
Explanation
Correct Answer
A:Ingress resources require a controller implementation to program external HTTP routing.
Incorrect Answers
B:Pod lifecycle policy cannot install or select an Ingress controller.
C:autoscaling does not install an Ingress controller.
D:Ingress API objects describe desired routing but do not themselves run load balancer software.
Question 345
Before applying a change, the cluster team checks what the configuration actually permits. An Ingress resource specifies host routing but no Ingress controller is installed to reconcile its rules Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Validate the host/path rule and backend Service reference.
- Expect the Ingress resource alone to provision an external proxy without a controller.
- Add an HPA to the Ingress object to create its missing controller.
- Change a Pod restartPolicy to Always to register the IngressClass.
Explanation
Correct Answer
A:Ingress matches external HTTP host/path requests then forwards to a configured Service backend.
Incorrect Answers
B:Ingress API objects describe desired routing but do not themselves run load balancer software. The prerequisite check or operation is 'Validate the host/path rule and backend Service reference': Ingress matches external HTTP host/path requests then forwards to a configured Service backend.
C:Autoscaling does not install an Ingress controller. The prerequisite check or operation is 'Validate the host/path rule and backend Service reference': Ingress matches external HTTP host/path requests then forwards to a configured Service backend.
D:Pod lifecycle policy cannot install or select an Ingress controller. The prerequisite check or operation is 'Validate the host/path rule and backend Service reference': Ingress matches external HTTP host/path requests then forwards to a configured Service backend.
Question 346
During a remediation drill, the team evaluates the safe next steps and their consequences. An Ingress resource specifies host routing but no Ingress controller is installed to reconcile its rules Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Add an HPA to the Ingress object to create its missing controller.
- Expect the Ingress resource alone to provision an external proxy without a controller.
- Change a Pod restartPolicy to Always to register the IngressClass.
- Inspect controller logs and status to verify the rule was reconciled.
Explanation
Correct Answer
D:the API accepting an Ingress object does not mean an implementation has applied it.
Incorrect Answers
A:Autoscaling does not install an Ingress controller. Instead, 'Inspect controller logs and status to verify the rule was reconciled' addresses the failure directly: The API accepting an Ingress object does not mean an implementation has applied it.
B:Ingress API objects describe desired routing but do not themselves run load balancer software. Instead, 'Inspect controller logs and status to verify the rule was reconciled' addresses the failure directly: The API accepting an Ingress object does not mean an implementation has applied it.
C:Pod lifecycle policy cannot install or select an Ingress controller. Instead, 'Inspect controller logs and status to verify the rule was reconciled' addresses the failure directly: The API accepting an Ingress object does not mean an implementation has applied it.
Question 347
During an incident review, an operator must choose an accurate diagnosis. An Ingress has a rule for host api.example.test with Prefix path /v1, and the backend Service is healthy Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- A request for unrelated.example.test/v1/orders must match this host-limited rule.
- The rule matches /v10/orders as a descendant of /v1.
- A request with Host api.example.test and path /v1/orders matches the Prefix rule.
- The Ingress directs requests to a PVC rather than a Service.
Explanation
Correct Answer
C:Ingress Prefix path matching covers the named prefix path segment and its children.
Incorrect Answers
A:the host condition is api.example.test, not an unrelated hostname.
B:Ingress Prefix path matching is path-element based; /v10 is not a child of /v1.
D:standard Ingress HTTP backend references a Service or supported resource backend, not a PVC.
Question 348
Before applying a change, the cluster team checks what the configuration actually permits. An Ingress has a rule for host api.example.test with Prefix path /v1, and the backend Service is healthy Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- The HTTP Host header or equivalent TLS host selection is material to routing.
- The rule matches /v10/orders as a descendant of /v1.
- The Ingress directs requests to a PVC rather than a Service.
- A request for unrelated.example.test/v1/orders must match this host-limited rule.
Explanation
Correct Answer
A:the configured host rule does not match arbitrary unrelated hostnames.
Incorrect Answers
B:Ingress Prefix path matching is path-element based; /v10 is not a child of /v1. The prerequisite check or operation is 'The HTTP Host header or equivalent TLS host selection is material to routing': The configured host rule does not match arbitrary unrelated hostnames.
C:Standard Ingress HTTP backend references a Service or supported resource backend, not a PVC. The prerequisite check or operation is 'The HTTP Host header or equivalent TLS host selection is material to routing': The configured host rule does not match arbitrary unrelated hostnames.
D:The host condition is api.example.test, not an unrelated hostname. The prerequisite check or operation is 'The HTTP Host header or equivalent TLS host selection is material to routing': The configured host rule does not match arbitrary unrelated hostnames.
Question 349
During a remediation drill, the team evaluates the safe next steps and their consequences. An Ingress has a rule for host api.example.test with Prefix path /v1, and the backend Service is healthy Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- The Ingress directs requests to a PVC rather than a Service.
- A request for unrelated.example.test/v1/orders must match this host-limited rule.
- Backend Service port resolution must reference the real Service port.
- The rule matches /v10/orders as a descendant of /v1.
Explanation
Correct Answer
C:an Ingress backend routes to a Service port, not an arbitrary Pod port supplied without Service mapping.
Incorrect Answers
A:Standard Ingress HTTP backend references a Service or supported resource backend, not a PVC. Instead, 'Backend Service port resolution must reference the real Service port' addresses the failure directly: An Ingress backend routes to a Service port, not an arbitrary Pod port supplied without Service mapping.
B:The host condition is api.example.test, not an unrelated hostname. Instead, 'Backend Service port resolution must reference the real Service port' addresses the failure directly: An Ingress backend routes to a Service port, not an arbitrary Pod port supplied without Service mapping.
D:Ingress Prefix path matching is path-element based; /v10 is not a child of /v1. Instead, 'Backend Service port resolution must reference the real Service port' addresses the failure directly: An Ingress backend routes to a Service port, not an arbitrary Pod port supplied without Service mapping.
Question 350
During an incident review, an operator must choose an accurate diagnosis. An HTTPRoute exists, but it references a nonexistent Gateway in parentRefs and is not attached to any listener Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose TWO statements.
- Change a Pod livenessProbe to make a missing Gateway parent appear.
- Inspect HTTPRoute status parents and conditions for Accepted or unresolved references.
- Set the route backend PVC capacity higher.
- Correct parentRefs to point at a real Gateway with a compatible listener.
- Assume API server object creation guarantees route attachment.
Explanation
Correct Answers
B:Gateway API controllers report route acceptance and reference resolution.
D:an HTTPRoute must be attached to an existing Gateway listener to become active.
Incorrect Answers
A:probe settings do not create referenced Gateway API resources.
C:persistent storage capacity has no relation to Gateway route parent attachment.
E:HTTPRoute acceptance depends on Gateway/controller reconciliation after creation.
Certified Kubernetes Administrator (CKA) Practice Tests