100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 330
In namespace `media`, a `ClusterIP` Service `svc-metrics` has selector `app=metrics`, port 5432/TCP, targetPort 5433, and no nodePort; `metrics-41-ready` has matching labels and is Ready; `metrics-41-other` is Ready but has `app=other`; `metrics-41-unready` matches `app=metrics` but fails readiness. No publishNotReadyAddresses is set. Choose ONE statement.
- `metrics-41-other` receives Service traffic because it has Ready=True.
- `metrics-41-unready` is treated as a healthy backend because its app label matches.
- The Service selects `metrics-41-ready` as a ready backend endpoint.
- Clients must contact Pod targetPort 5433 as the Service port instead of 5432.
Explanation
Correct Answer
C:`metrics-41-ready` matches selector `app=metrics` and is Ready, so it can appear as a ready EndpointSlice endpoint.
Incorrect Answers
A:Readiness alone cannot override the Service selector; `metrics-41-other` has label `app=other`.
B:Normal Service endpoint readiness still matters; `metrics-41-unready` currently fails readiness.
D:The Service publishes port 5432; targetPort 5433 belongs to the backend mapping. Service selectors determine backends; endpoint readiness and the configured targetPort affect whether that backend can actually receive traffic.
Question 331
In namespace `orders`, a `NodePort` Service `svc-router` has selector `app=router`, port 9000/TCP, targetPort 7000, and nodePort 30765; `router-46-ready` has matching labels and is Ready; `router-46-other` is Ready but has `app=other`; `router-46-unready` matches `app=router` but fails readiness. No publishNotReadyAddresses is set. Choose ONE statement.
- Clients must contact Pod targetPort 7000 as the Service port instead of 9000.
- `router-46-unready` is treated as a healthy backend because its app label matches.
- `router-46-other` receives Service traffic because it has Ready=True.
- Clients use Service port 9000, which forwards to backend target port 7000.
Explanation
Correct Answer
D:Service port and targetPort describe different sides of routing: 9000 is virtual-service entry and 7000 is the endpoint port. Service selectors determine backends; endpoint readiness and the configured targetPort affect whether that backend can actually receive traffic.
Incorrect Answers
A:The Service publishes port 9000; targetPort 7000 belongs to the backend mapping. Service selectors determine backends; endpoint readiness and the configured targetPort affect whether that backend can actually receive traffic.
B:Normal Service endpoint readiness still matters; `router-46-unready` currently fails readiness.
C:Readiness alone cannot override the Service selector; `router-46-other` has label `app=other`.
Question 332
During an incident review, an operator must choose an accurate diagnosis. A Pod in namespace alpha must resolve a Service named ledger in namespace beta using cluster DNS Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Use `ledger.beta.svc.cluster.local` as the fully qualified in-cluster Service name.
- Use `ledger.alpha.svc.cluster.local` to refer to a Service that exists only in beta.
- Use the Service type NodePort to enable internal DNS resolution.
- Change the Pod imagePullPolicy to repair cross-namespace DNS.
Explanation
Correct Answer
A:the service DNS record includes service name, namespace and the cluster DNS zone.
Incorrect Answers
B:the stated Service is in beta, so an alpha namespace FQDN targets a different nonexistent record.
C:Service DNS records are not dependent on NodePort exposure.
D:image pulling behavior is independent of in-cluster Service DNS naming.
Question 333
Before applying a change, the cluster team checks what the configuration actually permits. A Pod in namespace alpha must resolve a Service named ledger in namespace beta using cluster DNS Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Expect an unqualified `ledger` lookup from namespace alpha to search alpha first.
- Change the Pod imagePullPolicy to repair cross-namespace DNS.
- Use `ledger.alpha.svc.cluster.local` to refer to a Service that exists only in beta.
- Use the Service type NodePort to enable internal DNS resolution.
Explanation
Correct Answer
A:Pod DNS search suffixes prioritize the local namespace for short names.
Incorrect Answers
B:Image pulling behavior is independent of in-cluster Service DNS naming. The prerequisite check or operation is 'Expect an unqualified `ledger` lookup from namespace alpha to search alpha first': Pod DNS search suffixes prioritize the local namespace for short names.
C:The stated Service is in beta, so an alpha namespace FQDN targets a different nonexistent record. The prerequisite check or operation is 'Expect an unqualified `ledger` lookup from namespace alpha to search alpha first': Pod DNS search suffixes prioritize the local namespace for short names.
D:Service DNS records are not dependent on NodePort exposure. The prerequisite check or operation is 'Expect an unqualified `ledger` lookup from namespace alpha to search alpha first': Pod DNS search suffixes prioritize the local namespace for short names.
Question 334
During a remediation drill, the team evaluates the safe next steps and their consequences. A Pod in namespace alpha must resolve a Service named ledger in namespace beta using cluster DNS Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Use `ledger.alpha.svc.cluster.local` to refer to a Service that exists only in beta.
- Inspect CoreDNS and Pod resolver configuration if the FQDN itself fails.
- Change the Pod imagePullPolicy to repair cross-namespace DNS.
- Use the Service type NodePort to enable internal DNS resolution.
Explanation
Correct Answer
B:FQDN resolution depends on a reachable cluster DNS backend and valid search/config settings.
Incorrect Answers
A:The stated Service is in beta, so an alpha namespace FQDN targets a different nonexistent record. Instead, 'Inspect CoreDNS and Pod resolver configuration if the FQDN itself fails' addresses the failure directly: FQDN resolution depends on a reachable cluster DNS backend and valid search/config settings.
C:Image pulling behavior is independent of in-cluster Service DNS naming. Instead, 'Inspect CoreDNS and Pod resolver configuration if the FQDN itself fails' addresses the failure directly: FQDN resolution depends on a reachable cluster DNS backend and valid search/config settings.
D:Service DNS records are not dependent on NodePort exposure. Instead, 'Inspect CoreDNS and Pod resolver configuration if the FQDN itself fails' addresses the failure directly: FQDN resolution depends on a reachable cluster DNS backend and valid search/config settings.
Question 335
During an incident review, an operator must choose an accurate diagnosis. A headless Service for a peer-to-peer application uses `clusterIP: None` and publishes ready Pod addresses rather than one virtual IP Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Expect kube-proxy to route all headless connections through one ClusterIP.
- Assume every unready Pod is always included in normal DNS answers.
- Expect DNS to return endpoint addresses instead of a single Service virtual IP.
- Set type LoadBalancer to make headless per-Pod DNS addresses appear.
Explanation
Correct Answer
C:a headless Service does not allocate a ClusterIP proxy address.
Incorrect Answers
A:a headless Service has no ClusterIP to load-balance through.
B:endpoint readiness and publishNotReadyAddresses influence record publication.
D:headless address publication does not require external load balancer exposure.
Question 336
Before applying a change, the cluster team checks what the configuration actually permits. A headless Service for a peer-to-peer application uses `clusterIP: None` and publishes ready Pod addresses rather than one virtual IP Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Expect kube-proxy to route all headless connections through one ClusterIP.
- Assume every unready Pod is always included in normal DNS answers.
- Use matching selectors and ready endpoints for DNS-based peer discovery.
- Set type LoadBalancer to make headless per-Pod DNS addresses appear.
Explanation
Correct Answer
C:headless Service DNS answers reflect EndpointSlice/endpoint membership.
Incorrect Answers
A:A headless Service has no ClusterIP to load-balance through. The prerequisite check or operation is 'Use matching selectors and ready endpoints for DNS-based peer discovery': Headless Service DNS answers reflect EndpointSlice/endpoint membership.
B:Endpoint readiness and publishNotReadyAddresses influence record publication. The prerequisite check or operation is 'Use matching selectors and ready endpoints for DNS-based peer discovery': Headless Service DNS answers reflect EndpointSlice/endpoint membership.
D:Headless address publication does not require external load balancer exposure. The prerequisite check or operation is 'Use matching selectors and ready endpoints for DNS-based peer discovery': Headless Service DNS answers reflect EndpointSlice/endpoint membership.
Question 337
During a remediation drill, the team evaluates the safe next steps and their consequences. A headless Service for a peer-to-peer application uses `clusterIP: None` and publishes ready Pod addresses rather than one virtual IP Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Assume every unready Pod is always included in normal DNS answers.
- Set type LoadBalancer to make headless per-Pod DNS addresses appear.
- Inspect endpoint readiness if a peer address is unexpectedly absent.
- Expect kube-proxy to route all headless connections through one ClusterIP.
Explanation
Correct Answer
C:unready endpoints may be omitted from normal DNS answers depending on publishing configuration.
Incorrect Answers
A:Endpoint readiness and publishNotReadyAddresses influence record publication. Instead, 'Inspect endpoint readiness if a peer address is unexpectedly absent' addresses the failure directly: Unready endpoints may be omitted from normal DNS answers depending on publishing configuration.
B:Headless address publication does not require external load balancer exposure. Instead, 'Inspect endpoint readiness if a peer address is unexpectedly absent' addresses the failure directly: Unready endpoints may be omitted from normal DNS answers depending on publishing configuration.
D:A headless Service has no ClusterIP to load-balance through. Instead, 'Inspect endpoint readiness if a peer address is unexpectedly absent' addresses the failure directly: Unready endpoints may be omitted from normal DNS answers depending on publishing configuration.
Question 338
During an incident review, an operator must choose an accurate diagnosis. A diagnostic Pod runs with hostNetwork true but still needs the cluster DNS search path for Services Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Set a PVC access mode to ReadWriteMany to configure DNS search domains.
- Use dnsPolicy Default and assume Kubernetes cluster DNS is guaranteed.
- Create a RoleBinding to a DNS server to define resolv.conf.
- Use dnsPolicy ClusterFirstWithHostNet for the hostNetwork Pod.
Explanation
Correct Answer
D:ClusterFirstWithHostNet enables cluster DNS resolution for a Pod using host networking.
Incorrect Answers
A:volume access modes do not configure Pod DNS policy.
B:Default inherits node DNS settings rather than guaranteeing cluster search resolution.
C:API authorization does not replace the Pod DNS configuration.
Question 339
Before applying a change, the cluster team checks what the configuration actually permits. A diagnostic Pod runs with hostNetwork true but still needs the cluster DNS search path for Services Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Use dnsPolicy Default and assume Kubernetes cluster DNS is guaranteed.
- Create a RoleBinding to a DNS server to define resolv.conf.
- Check the effective Pod resolv.conf and cluster DNS Service reachability.
- Set a PVC access mode to ReadWriteMany to configure DNS search domains.
Explanation
Correct Answer
C:host-networked Pods can inherit host resolver behavior if DNS policy is not appropriate.
Incorrect Answers
A:Default inherits node DNS settings rather than guaranteeing cluster search resolution. The prerequisite check or operation is 'Check the effective Pod resolv.conf and cluster DNS Service reachability': Host-networked Pods can inherit host resolver behavior if DNS policy is not appropriate.
B:API authorization does not replace the Pod DNS configuration. The prerequisite check or operation is 'Check the effective Pod resolv.conf and cluster DNS Service reachability': Host-networked Pods can inherit host resolver behavior if DNS policy is not appropriate.
D:Volume access modes do not configure Pod DNS policy. The prerequisite check or operation is 'Check the effective Pod resolv.conf and cluster DNS Service reachability': Host-networked Pods can inherit host resolver behavior if DNS policy is not appropriate.
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.
Certified Kubernetes Administrator (CKA) Practice Tests