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 32

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.

Question 311

A backend API should accept inbound TCP port 8080 only from Pods labeled role=frontend in the web namespace. A colleague instead proposes: Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace. Which step best corrects the approach to the original issue?

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

Explanation

Correct Answer

B:

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

Incorrect Answers

A:

This option concerns CoreDNS service not reachable instead. DNS service resolution resumes once the cluster DNS Service has healthy backing Pods.

C:

This option concerns GatewayClass controller mismatch instead. The Gateway reconciles under an available implementation rather than remaining unprogrammed.

D:

This option concerns Egress DNS under default deny instead. DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.

Question 312

A Kubernetes administrator recommends: Create an ingress NetworkPolicy with namespaceSelector plus podSelector and the required TCP 8080 port. Which situation most directly calls for that operation?

  1. Pods cannot resolve cluster DNS names and the kube-dns Service has no healthy endpoints.
  2. An HTTPRoute is valid but no Gateway listener becomes programmed because the GatewayClass names a controller not installed in the cluster.
  3. A backend API should accept inbound TCP port 8080 only from Pods labeled role=frontend in the web namespace.
  4. Application Pods fail service-name resolution after an egress default-deny policy was introduced.

Explanation

Correct Answer

C:

This is the original issue addressed by Allow only frontend to API: Only matching frontend Pods from the specified namespace satisfy the API Pod ingress allow rule.

Incorrect Answers

A:

That separate problem requires another operation: Check CoreDNS Deployment health, DNS Service selectors and ready EndpointSlices before replacing Pod network settings. DNS service resolution resumes once the cluster DNS Service has healthy backing Pods.

B:

That separate problem requires another operation: Install or select a supported Gateway API controller and use the GatewayClass associated with its controllerName. The Gateway reconciles under an available implementation rather than remaining unprogrammed.

D:

That separate problem requires another operation: Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace. DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.

Question 313

Application Pods fail service-name resolution after an egress default-deny policy was introduced. Which Kubernetes administration step most directly addresses this problem?

  1. Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace.
  2. Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value.
  3. Configure the Gateway listener allowedRoutes namespaces to select the intended shop namespace and use a correct parentRef.
  4. Review the CoreDNS Corefile forward directive and allowed upstream resolver reachability.

Explanation

Correct Answer

A:

This action addresses Egress DNS under default deny: DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.

Incorrect Answers

B:

This instead addresses Namespace label mismatch: The namespace-aware peer rule matches the allowed source namespace as designed. It does not directly correct the original Egress DNS under default deny issue.

C:

This instead addresses HTTPRoute parentRef namespace: The HTTPRoute can attach to the Gateway through an explicitly authorized namespace boundary. It does not directly correct the original Egress DNS under default deny issue.

D:

This instead addresses CoreDNS upstream external resolution: Cluster-local zones continue to resolve while external queries use a working upstream resolver. It does not directly correct the original Egress DNS under default deny issue.

Question 314

A Kubernetes administrator performs the following operation: Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace. Which outcome most directly follows?

  1. The namespace-aware peer rule matches the allowed source namespace as designed.
  2. DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.
  3. Cluster-local zones continue to resolve while external queries use a working upstream resolver.
  4. The HTTPRoute can attach to the Gateway through an explicitly authorized namespace boundary.

Explanation

Correct Answer

B:

This is the intended effect of Egress DNS under default deny: DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.

Incorrect Answers

A:

This effect belongs to Namespace label mismatch, produced by a different operation: Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value. It is not the direct consequence of the stated action.

C:

This effect belongs to CoreDNS upstream external resolution, produced by a different operation: Review the CoreDNS Corefile forward directive and allowed upstream resolver reachability. It is not the direct consequence of the stated action.

D:

This effect belongs to HTTPRoute parentRef namespace, produced by a different operation: Configure the Gateway listener allowedRoutes namespaces to select the intended shop namespace and use a correct parentRef. It is not the direct consequence of the stated action.

Question 315

Application Pods fail service-name resolution after an egress default-deny policy was introduced. A colleague instead proposes: Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value. Which step best corrects the approach to the original issue?

  1. Configure the Gateway listener allowedRoutes namespaces to select the intended shop namespace and use a correct parentRef.
  2. Review the CoreDNS Corefile forward directive and allowed upstream resolver reachability.
  3. Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace.
  4. Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value.

Explanation

Correct Answer

C:

This correction targets Egress DNS under default deny: DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.

Incorrect Answers

A:

This option concerns HTTPRoute parentRef namespace instead. The HTTPRoute can attach to the Gateway through an explicitly authorized namespace boundary.

B:

This option concerns CoreDNS upstream external resolution instead. Cluster-local zones continue to resolve while external queries use a working upstream resolver.

D:

This option concerns Namespace label mismatch instead. The namespace-aware peer rule matches the allowed source namespace as designed.

Question 316

A Kubernetes administrator recommends: Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace. Which situation most directly calls for that operation?

  1. A policy intended to allow traffic from namespace prod does not match because it selects environment=production and the namespace lacks that label.
  2. An HTTPRoute in shop must attach to a Gateway in edge but cross-namespace attachment is not allowed by the listener policy.
  3. Pods resolve internal Service names but fail lookups for external domains after an upstream DNS change.
  4. Application Pods fail service-name resolution after an egress default-deny policy was introduced.

Explanation

Correct Answer

D:

This is the original issue addressed by Egress DNS under default deny: DNS lookups can leave the isolated Pods while other unapproved egress traffic remains denied.

Incorrect Answers

A:

That separate problem requires another operation: Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value. The namespace-aware peer rule matches the allowed source namespace as designed.

B:

That separate problem requires another operation: Configure the Gateway listener allowedRoutes namespaces to select the intended shop namespace and use a correct parentRef. The HTTPRoute can attach to the Gateway through an explicitly authorized namespace boundary.

C:

That separate problem requires another operation: Review the CoreDNS Corefile forward directive and allowed upstream resolver reachability. Cluster-local zones continue to resolve while external queries use a working upstream resolver.

Question 317

A policy intended to allow traffic from namespace prod does not match because it selects environment=production and the namespace lacks that label. Which Kubernetes administration step most directly addresses this problem?

  1. Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value.
  2. Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object.
  3. Use the fully qualified api.production.svc.cluster.local name or the appropriate cross-namespace DNS name.
  4. Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort.

Explanation

Correct Answer

A:

This action addresses Namespace label mismatch: The namespace-aware peer rule matches the allowed source namespace as designed.

Incorrect Answers

B:

This instead addresses NetworkPolicy CNI enforcement support: The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering. It does not directly correct the original Namespace label mismatch issue.

C:

This instead addresses Service FQDN namespace search: The client targets the intended namespace Service instead of relying on local DNS search suffixes. It does not directly correct the original Namespace label mismatch issue.

D:

This instead addresses HTTPRoute backend port reference: The Gateway routes through the Service port declared in the API instead of a mismatched backend reference. It does not directly correct the original Namespace label mismatch issue.

Question 318

A Kubernetes administrator performs the following operation: Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value. Which outcome most directly follows?

  1. The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.
  2. The namespace-aware peer rule matches the allowed source namespace as designed.
  3. The client targets the intended namespace Service instead of relying on local DNS search suffixes.
  4. The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

Explanation

Correct Answer

B:

This is the intended effect of Namespace label mismatch: The namespace-aware peer rule matches the allowed source namespace as designed.

Incorrect Answers

A:

This effect belongs to NetworkPolicy CNI enforcement support, produced by a different operation: Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object. It is not the direct consequence of the stated action.

C:

This effect belongs to Service FQDN namespace search, produced by a different operation: Use the fully qualified api.production.svc.cluster.local name or the appropriate cross-namespace DNS name. It is not the direct consequence of the stated action.

D:

This effect belongs to HTTPRoute backend port reference, produced by a different operation: Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort. It is not the direct consequence of the stated action.

Question 319

A policy intended to allow traffic from namespace prod does not match because it selects environment=production and the namespace lacks that label. A colleague instead proposes: Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object. Which step best corrects the approach to the original issue?

  1. Use the fully qualified api.production.svc.cluster.local name or the appropriate cross-namespace DNS name.
  2. Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort.
  3. Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value.
  4. Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object.

Explanation

Correct Answer

C:

This correction targets Namespace label mismatch: The namespace-aware peer rule matches the allowed source namespace as designed.

Incorrect Answers

A:

This option concerns Service FQDN namespace search instead. The client targets the intended namespace Service instead of relying on local DNS search suffixes.

B:

This option concerns HTTPRoute backend port reference instead. The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

D:

This option concerns NetworkPolicy CNI enforcement support instead. The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.

Question 320

A Kubernetes administrator recommends: Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value. Which situation most directly calls for that operation?

  1. A restrictive NetworkPolicy is applied successfully but the traffic it should deny is still allowed.
  2. Traffic reaches a Gateway but returns backend errors because the HTTPRoute backendRef uses 8080 while the Service exposes port 80.
  3. A Pod in development resolves api to its own namespace's Service rather than the intended production Service.
  4. A policy intended to allow traffic from namespace prod does not match because it selects environment=production and the namespace lacks that label.

Explanation

Correct Answer

D:

This is the original issue addressed by Namespace label mismatch: The namespace-aware peer rule matches the allowed source namespace as designed.

Incorrect Answers

A:

That separate problem requires another operation: Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object. The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.

B:

That separate problem requires another operation: Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort. The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

C:

That separate problem requires another operation: Use the fully qualified api.production.svc.cluster.local name or the appropriate cross-namespace DNS name. The client targets the intended namespace Service instead of relying on local DNS search suffixes.