McAfee-Secured Website

Exam Bundle

Exam Code: CKA

Exam Name Certified Kubernetes Administrator

Certification Provider: CNCF

Corresponding Certification: CKA

CNCF CKA Bundle $44.99

100% CNCF CKA Guaranteed Success With Testking Training Materials

Get Real CKA Exam Questions & Expert Verified Answers as Experienced on the Real Exam!

  • Questions & Answers

    CKA Questions & Answers

    58 Questions & Answers

    The ultimate exam preparation tool, Questions & Answers mirrors the actual CKA exam while allowing you to hone and measure every aspect of your test-taking ability.

  • CKA Video Course

    CKA Video Course

    138 Video Lectures

    CKA Video Course is developed by CNCF Professionals to help you pass the CKA exam.

    Description

    This course will improve your knowledge and skills required to pass Certified Kubernetes Administrator exam.
  • Study Guide

    CKA Study Guide

    268 PDF Pages

    Developed by industry experts, this 268-page guide spells out in painstaking detail all of the information you need to ace CKA exam.

Certified Kubernetes Administrator (CKA) Practice Tests

Satisfaction Guaranteed

Money Back Guarantee

Testking provides hassle-free money back guarantee with our products. That is because we have 100% trust in the abilities of our professional and experience product team, and our record is a proof of that.

99.6% PASS RATE
Total Cost: $194.97
Bundle Price: $149.98

Purchase Individually

  • Questions & Answers

    Questions & Answers

    58 Questions

    $124.99
  • CKA Video Course

    Video Course

    138 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    268 PDF Pages

    $29.99

CNCF CKA Practice Test 31

Question 300

A Kubernetes administrator recommends: Measure the effective overlay MTU and align CNI interface MTU with the underlay and tunnel overhead. Which situation most directly calls for that operation?

  1. Two ingress controllers run in the same cluster and an application is being routed by the wrong implementation.
  2. A monitoring Pod with hostNetwork: true unexpectedly conflicts with a host daemon on TCP port 9100.
  3. Large responses between Pods on separate nodes fail while small health checks pass after tunnel encapsulation was enabled.
  4. A bare-metal Kubernetes cluster creates a type LoadBalancer Service but its EXTERNAL-IP remains pending indefinitely.

Explanation

Correct Answer

C:

This is the original issue addressed by CNI MTU mismatch: Cross-node packets avoid fragmentation-related black holes caused by oversized encapsulated traffic.

Incorrect Answers

A:

That separate problem requires another operation: Set spec.ingressClassName to the intended IngressClass and verify that controller's ownership status. The selected controller reconciles the Ingress rather than allowing ambiguous multi-controller processing.

B:

That separate problem requires another operation: Remove the conflicting host port or stop using hostNetwork for a workload that does not require it. The monitoring process avoids competing for a port in the node's shared network namespace.

D:

That separate problem requires another operation: Provide a supported load-balancer controller implementation such as MetalLB or use an appropriate alternative Service type. An implementation supplies external address allocation rather than expecting the Kubernetes core API to provision hardware.

Question 301

A monitoring Pod with hostNetwork: true unexpectedly conflicts with a host daemon on TCP port 9100. Which Kubernetes administration step most directly addresses this problem?

  1. Create a Service with clusterIP: None matching StatefulSet Pods and use the StatefulSet serviceName.
  2. Use a Prefix pathType for /shop after confirming the desired segment-based matching behavior.
  3. Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules.
  4. Remove the conflicting host port or stop using hostNetwork for a workload that does not require it.

Explanation

Correct Answer

D:

This action addresses HostNetwork binding behavior: The monitoring process avoids competing for a port in the node's shared network namespace.

Incorrect Answers

A:

This instead addresses Headless Service discovery: DNS can expose the individual backing Pod identities required for stable peer discovery. It does not directly correct the original HostNetwork binding behavior issue.

B:

This instead addresses PathType prefix semantics: The controller includes descendant paths under the /shop prefix rather than matching only one exact URL. It does not directly correct the original HostNetwork binding behavior issue.

C:

This instead addresses Default deny ingress: Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist. It does not directly correct the original HostNetwork binding behavior issue.

Question 302

A Kubernetes administrator performs the following operation: Remove the conflicting host port or stop using hostNetwork for a workload that does not require it. Which outcome most directly follows?

  1. The monitoring process avoids competing for a port in the node's shared network namespace.
  2. The controller includes descendant paths under the /shop prefix rather than matching only one exact URL.
  3. Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.
  4. DNS can expose the individual backing Pod identities required for stable peer discovery.

Explanation

Correct Answer

A:

This is the intended effect of HostNetwork binding behavior: The monitoring process avoids competing for a port in the node's shared network namespace.

Incorrect Answers

B:

This effect belongs to PathType prefix semantics, produced by a different operation: Use a Prefix pathType for /shop after confirming the desired segment-based matching behavior. It is not the direct consequence of the stated action.

C:

This effect belongs to Default deny ingress, produced by a different operation: Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules. It is not the direct consequence of the stated action.

D:

This effect belongs to Headless Service discovery, produced by a different operation: Create a Service with clusterIP: None matching StatefulSet Pods and use the StatefulSet serviceName. It is not the direct consequence of the stated action.

Question 303

A monitoring Pod with hostNetwork: true unexpectedly conflicts with a host daemon on TCP port 9100. A colleague instead proposes: Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules. Which step best corrects the approach to the original issue?

  1. Use a Prefix pathType for /shop after confirming the desired segment-based matching behavior.
  2. Remove the conflicting host port or stop using hostNetwork for a workload that does not require it.
  3. Create a Service with clusterIP: None matching StatefulSet Pods and use the StatefulSet serviceName.
  4. Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules.

Explanation

Correct Answer

B:

This correction targets HostNetwork binding behavior: The monitoring process avoids competing for a port in the node's shared network namespace.

Incorrect Answers

A:

This option concerns PathType prefix semantics instead. The controller includes descendant paths under the /shop prefix rather than matching only one exact URL.

C:

This option concerns Headless Service discovery instead. DNS can expose the individual backing Pod identities required for stable peer discovery.

D:

This option concerns Default deny ingress instead. Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.

Question 304

A Kubernetes administrator recommends: Remove the conflicting host port or stop using hostNetwork for a workload that does not require it. Which situation most directly calls for that operation?

  1. A StatefulSet's clients must resolve individual replica hostnames instead of routing randomly through a single virtual IP.
  2. An Ingress path rule uses Exact for /shop but clients expect /shop/cart to match as well.
  3. A monitoring Pod with hostNetwork: true unexpectedly conflicts with a host daemon on TCP port 9100.
  4. A payments namespace currently allows inbound connections from any Pod, but policy requires denying traffic unless explicitly approved.

Explanation

Correct Answer

C:

This is the original issue addressed by HostNetwork binding behavior: The monitoring process avoids competing for a port in the node's shared network namespace.

Incorrect Answers

A:

That separate problem requires another operation: Create a Service with clusterIP: None matching StatefulSet Pods and use the StatefulSet serviceName. DNS can expose the individual backing Pod identities required for stable peer discovery.

B:

That separate problem requires another operation: Use a Prefix pathType for /shop after confirming the desired segment-based matching behavior. The controller includes descendant paths under the /shop prefix rather than matching only one exact URL.

D:

That separate problem requires another operation: Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules. Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.

Question 305

A payments namespace currently allows inbound connections from any Pod, but policy requires denying traffic unless explicitly approved. Which Kubernetes administration step most directly addresses this problem?

  1. Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port.
  2. Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules.
  3. Check the referenced Service name, exposed port and ready EndpointSlices before modifying TLS settings.
  4. Create an appropriate selectorless Service and manually supply an EndpointSlice pointing at the approved backend addresses.

Explanation

Correct Answer

B:

This action addresses Default deny ingress: Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.

Incorrect Answers

A:

This instead addresses Allow only frontend to API: Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule. It does not directly correct the original Default deny ingress issue.

C:

This instead addresses Ingress endpoint empty: The upstream backend is restored by fixing Service endpoint selection rather than unrelated certificate settings. It does not directly correct the original Default deny ingress issue.

D:

This instead addresses Manual EndpointSlice service: The Service directs traffic to explicitly managed external endpoints rather than waiting for Pod selector discovery. It does not directly correct the original Default deny ingress issue.

Question 306

A Kubernetes administrator performs the following operation: Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules. Which outcome most directly follows?

  1. The Service directs traffic to explicitly managed external endpoints rather than waiting for Pod selector discovery.
  2. The upstream backend is restored by fixing Service endpoint selection rather than unrelated certificate settings.
  3. Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.
  4. Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.

Explanation

Correct Answer

C:

This is the intended effect of Default deny ingress: Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.

Incorrect Answers

A:

This effect belongs to Manual EndpointSlice service, produced by a different operation: Create an appropriate selectorless Service and manually supply an EndpointSlice pointing at the approved backend addresses. It is not the direct consequence of the stated action.

B:

This effect belongs to Ingress endpoint empty, produced by a different operation: Check the referenced Service name, exposed port and ready EndpointSlices before modifying TLS settings. It is not the direct consequence of the stated action.

D:

This effect belongs to Allow only frontend to API, produced by a different operation: Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port. It is not the direct consequence of the stated action.

Question 307

A payments namespace currently allows inbound connections from any Pod, but policy requires denying traffic unless explicitly approved. A colleague instead proposes: Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port. Which step best corrects the approach to the original issue?

  1. Create an appropriate selectorless Service and manually supply an EndpointSlice pointing at the approved backend addresses.
  2. Check the referenced Service name, exposed port and ready EndpointSlices before modifying TLS settings.
  3. Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port.
  4. Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules.

Explanation

Correct Answer

D:

This correction targets Default deny ingress: Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.

Incorrect Answers

A:

This option concerns Manual EndpointSlice service instead. The Service directs traffic to explicitly managed external endpoints rather than waiting for Pod selector discovery.

B:

This option concerns Ingress endpoint empty instead. The upstream backend is restored by fixing Service endpoint selection rather than unrelated certificate settings.

C:

This option concerns Allow only frontend to API instead. Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.

Question 308

A Kubernetes administrator recommends: Apply a namespaced NetworkPolicy selecting payments Pods with policyTypes Ingress and no ingress allow rules. Which situation most directly calls for that operation?

  1. A payments namespace currently allows inbound connections from any Pod, but policy requires denying traffic unless explicitly approved.
  2. An ingress controller reports upstream unavailable although the host and path rule are valid.
  3. A backend API should accept inbound TCP port 8080 only from Pods labeled role=frontend in the web namespace.
  4. A Service intentionally fronts a legacy backend outside the cluster but has no matching selector-managed Pods.

Explanation

Correct Answer

A:

This is the original issue addressed by Default deny ingress: Inbound connections are denied for selected Pods by capable policy enforcement until explicit ingress allows exist.

Incorrect Answers

B:

That separate problem requires another operation: Check the referenced Service name, exposed port and ready EndpointSlices before modifying TLS settings. The upstream backend is restored by fixing Service endpoint selection rather than unrelated certificate settings.

C:

That separate problem requires another operation: Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port. Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.

D:

That separate problem requires another operation: Create an appropriate selectorless Service and manually supply an EndpointSlice pointing at the approved backend addresses. The Service directs traffic to explicitly managed external endpoints rather than waiting for Pod selector discovery.

Question 309

A backend API should accept inbound TCP port 8080 only from Pods labeled role=frontend in the web namespace. Which Kubernetes administration step most directly addresses this problem?

  1. Check CoreDNS Deployment health, DNS Service selectors and ready EndpointSlices before replacing Pod network settings.
  2. Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace.
  3. Install or select a supported Gateway API controller and use the GatewayClass associated with its controllerName.
  4. Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port.

Explanation

Correct Answer

D:

This action addresses Allow only frontend to API: Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.

Incorrect Answers

A:

This instead addresses CoreDNS service not reachable: DNS service resolution resumes once the cluster DNS Service has healthy backing Pods. It does not directly correct the original Allow only frontend to API issue.

B:

This instead addresses Egress DNS under default deny: DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied. It does not directly correct the original Allow only frontend to API issue.

C:

This instead addresses GatewayClass controller mismatch: The Gateway reconciles under an available implementation rather than remaining unprogrammed. It does not directly correct the original Allow only frontend to API issue.

Question 310

A Kubernetes administrator performs the following operation: Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port. Which outcome most directly follows?

  1. Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.
  2. DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.
  3. The Gateway reconciles under an available implementation rather than remaining unprogrammed.
  4. DNS service resolution resumes once the cluster DNS Service has healthy backing Pods.

Explanation

Correct Answer

A:

This is the intended effect of Allow only frontend to API: Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.

Incorrect Answers

B:

This effect belongs to Egress DNS under default deny, produced by a different operation: Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace. It is not the direct consequence of the stated action.

C:

This effect belongs to GatewayClass controller mismatch, produced by a different operation: Install or select a supported Gateway API controller and use the GatewayClass associated with its controllerName. It is not the direct consequence of the stated action.

D:

This effect belongs to CoreDNS service not reachable, produced by a different operation: Check CoreDNS Deployment health, DNS Service selectors and ready EndpointSlices before replacing Pod network settings. It is not the direct consequence of the stated action.