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 37

Question 360

A Kubernetes administrator recommends: Configure the Gateway listener allowedRoutes namespaces to select the intended shop namespace and use a correct parentRef. Which situation most directly calls for that operation?

  1. A backend API should accept inbound TCP port 8080 only from Pods labeled role=frontend in the web namespace.
  2. Pods cannot resolve cluster DNS names and the kube-dns Service has no healthy endpoints.
  3. An HTTPRoute in shop must attach to a Gateway in edge but cross-namespace attachment is not allowed by the listener policy.
  4. Traffic reaches a Gateway but returns backend errors because the HTTPRoute backendRef uses 8080 while the Service exposes port 80.

Explanation

Correct Answer

C:

This is the original issue addressed by HTTPRoute parentRef namespace: The HTTPRoute can attach to the Gateway through an explicitly authorized namespace boundary.

Incorrect Answers

A:

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.

B:

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.

D:

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.

Question 361

Traffic reaches a Gateway but returns backend errors because the HTTPRoute backendRef uses 8080 while the Service exposes port 80. Which Kubernetes administration step most directly addresses this problem?

  1. Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org.
  2. Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace.
  3. Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort.
  4. Review the CoreDNS Corefile forward directive and allowed upstream resolver reachability.

Explanation

Correct Answer

C:

This action addresses HTTPRoute backend port reference: The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

Incorrect Answers

A:

This instead addresses Gateway listener hostname restriction: Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing. It does not directly correct the original HTTPRoute backend port reference 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 HTTPRoute backend port reference 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 HTTPRoute backend port reference issue.

Question 362

A Kubernetes administrator performs the following operation: Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort. Which outcome most directly follows?

  1. Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.
  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 Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

Explanation

Correct Answer

D:

This is the intended effect of HTTPRoute backend port reference: The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

Incorrect Answers

A:

This effect belongs to Gateway listener hostname restriction, produced by a different operation: Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org. It is not the direct consequence of the stated action.

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 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.

Question 363

Traffic reaches a Gateway but returns backend errors because the HTTPRoute backendRef uses 8080 while the Service exposes port 80. A colleague instead proposes: Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org. Which step best corrects the approach to the original issue?

  1. Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort.
  2. Add an egress rule permitting UDP and TCP port 53 to the approved DNS Pods or namespace.
  3. Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org.
  4. Review the CoreDNS Corefile forward directive and allowed upstream resolver reachability.

Explanation

Correct Answer

A:

This correction targets HTTPRoute backend port reference: The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

Incorrect Answers

B:

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

C:

This option concerns Gateway listener hostname restriction instead. Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.

D:

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

Question 364

A Kubernetes administrator recommends: Change HTTPRoute backendRefs port to the Service's exposed port 80 rather than its Pod targetPort. Which situation most directly calls for that operation?

  1. A shared Gateway should accept HTTPRoute traffic only for api.example.org, not for every hostname in the cluster.
  2. Traffic reaches a Gateway but returns backend errors because the HTTPRoute backendRef uses 8080 while the Service exposes port 80.
  3. Application Pods fail service-name resolution after an egress default-deny policy was introduced.
  4. Pods resolve internal Service names but fail lookups for external domains after an upstream DNS change.

Explanation

Correct Answer

B:

This is the original issue addressed by HTTPRoute backend port reference: The Gateway routes through the Service port declared in the API instead of a mismatched backend reference.

Incorrect Answers

A:

That separate problem requires another operation: Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org. Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.

C:

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.

D:

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 365

A shared Gateway should accept HTTPRoute traffic only for api.example.org, not for every hostname in the cluster. Which Kubernetes administration step most directly addresses this problem?

  1. Use the fully qualified api.production.svc.cluster.local name or the appropriate cross-namespace DNS name.
  2. Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org.
  3. Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value.
  4. Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support.

Explanation

Correct Answer

B:

This action addresses Gateway listener hostname restriction: Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.

Incorrect Answers

A:

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 Gateway listener hostname restriction issue.

C:

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 Gateway listener hostname restriction issue.

D:

This instead addresses Gateway weighted rollout: Gateway routing distributes requests according to the declared relative backend weights. It does not directly correct the original Gateway listener hostname restriction issue.

Question 366

A Kubernetes administrator performs the following operation: Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org. Which outcome most directly follows?

  1. Gateway routing distributes requests according to the declared relative backend weights.
  2. The namespace-aware peer rule matches the allowed source namespace as designed.
  3. Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.
  4. The client targets the intended namespace Service instead of relying on local DNS search suffixes.

Explanation

Correct Answer

C:

This is the intended effect of Gateway listener hostname restriction: Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.

Incorrect Answers

A:

This effect belongs to Gateway weighted rollout, produced by a different operation: Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support. It is not the direct consequence of the stated action.

B:

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.

D:

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.

Question 367

A shared Gateway should accept HTTPRoute traffic only for api.example.org, not for every hostname in the cluster. A colleague instead proposes: Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support. Which step best corrects the approach to the original issue?

  1. Verify and correct the namespace label or the NetworkPolicy namespaceSelector to use the actual intended value.
  2. Use the fully qualified api.production.svc.cluster.local name or the appropriate cross-namespace DNS name.
  3. Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support.
  4. Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org.

Explanation

Correct Answer

D:

This correction targets Gateway listener hostname restriction: Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.

Incorrect Answers

A:

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

B:

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

C:

This option concerns Gateway weighted rollout instead. Gateway routing distributes requests according to the declared relative backend weights.

Question 368

A Kubernetes administrator recommends: Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org. Which situation most directly calls for that operation?

  1. A shared Gateway should accept HTTPRoute traffic only for api.example.org, not for every hostname in the cluster.
  2. A policy intended to allow traffic from namespace prod does not match because it selects environment=production and the namespace lacks that label.
  3. A Pod in development resolves api to its own namespace's Service rather than the intended production Service.
  4. A migration requires routing 10 percent of traffic to a new Service while keeping most requests on the stable Service.

Explanation

Correct Answer

A:

This is the original issue addressed by Gateway listener hostname restriction: Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.

Incorrect Answers

B:

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.

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.

D:

That separate problem requires another operation: Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support. Gateway routing distributes requests according to the declared relative backend weights.

Question 369

A migration requires routing 10 percent of traffic to a new Service while keeping most requests on the stable Service. Which Kubernetes administration step most directly addresses this problem?

  1. Set dnsPolicy: ClusterFirstWithHostNet on the hostNetwork Pod and verify cluster DNS access.
  2. Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support.
  3. Inspect HTTPRoute parent status conditions and Gateway listener compatibility before changing Pod replicas.
  4. Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object.

Explanation

Correct Answer

B:

This action addresses Gateway weighted rollout: Gateway routing distributes requests according to the declared relative backend weights.

Incorrect Answers

A:

This instead addresses DNS policy for hostNetwork Pod: The host-networked Pod uses the cluster DNS search and resolver behavior needed for Service names. It does not directly correct the original Gateway weighted rollout issue.

C:

This instead addresses Gateway status diagnosis: The route attachment problem is diagnosed using Gateway API reconciliation status rather than blind workload scaling. It does not directly correct the original Gateway weighted rollout issue.

D:

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 Gateway weighted rollout issue.

Question 370

A Kubernetes administrator performs the following operation: Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support. Which outcome most directly follows?

  1. The route attachment problem is diagnosed using Gateway API reconciliation status rather than blind workload scaling.
  2. The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.
  3. Gateway routing distributes requests according to the declared relative backend weights.
  4. The host-networked Pod uses the cluster DNS search and resolver behavior needed for Service names.

Explanation

Correct Answer

C:

This is the intended effect of Gateway weighted rollout: Gateway routing distributes requests according to the declared relative backend weights.

Incorrect Answers

A:

This effect belongs to Gateway status diagnosis, produced by a different operation: Inspect HTTPRoute parent status conditions and Gateway listener compatibility before changing Pod replicas. It is not the direct consequence of the stated action.

B:

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.

D:

This effect belongs to DNS policy for hostNetwork Pod, produced by a different operation: Set dnsPolicy: ClusterFirstWithHostNet on the hostNetwork Pod and verify cluster DNS access. It is not the direct consequence of the stated action.