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 33

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.

Question 321

A restrictive NetworkPolicy is applied successfully but the traffic it should deny is still allowed. 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 policyTypes Egress with appropriate explicit egress allows or default-deny egress rules.
  3. Set dnsPolicy: ClusterFirstWithHostNet on the hostNetwork Pod and verify cluster DNS access.
  4. Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object.

Explanation

Correct Answer

D:

This action addresses NetworkPolicy CNI enforcement support: The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.

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 NetworkPolicy CNI enforcement support issue.

B:

This instead addresses Separate ingress and egress rules: The policy selects outbound as well as inbound traffic for enforcement according to declared directions. It does not directly correct the original NetworkPolicy CNI enforcement support issue.

C:

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 NetworkPolicy CNI enforcement support issue.

Question 322

A Kubernetes administrator performs the following operation: Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object. Which outcome most directly follows?

  1. The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.
  2. The host-networked Pod uses the cluster DNS search and resolver behavior needed for Service names.
  3. The policy selects outbound as well as inbound traffic for enforcement according to declared directions.
  4. Only routes that satisfy listener hostname constraints participate in that Gateway listener's routing.

Explanation

Correct Answer

A:

This is the intended effect of NetworkPolicy CNI enforcement support: The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.

Incorrect Answers

B:

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.

C:

This effect belongs to Separate ingress and egress rules, produced by a different operation: Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules. It is not the direct consequence of the stated action.

D:

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.

Question 323

A restrictive NetworkPolicy is applied successfully but the traffic it should deny is still allowed. A colleague instead proposes: Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules. Which step best corrects the approach to the original issue?

  1. Configure a listener hostname and corresponding HTTPRoute hostnames that intersect on api.example.org.
  2. Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object.
  3. Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules.
  4. Set dnsPolicy: ClusterFirstWithHostNet on the hostNetwork Pod and verify cluster DNS access.

Explanation

Correct Answer

B:

This correction targets NetworkPolicy CNI enforcement support: The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.

Incorrect Answers

A:

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

C:

This option concerns Separate ingress and egress rules instead. The policy selects outbound as well as inbound traffic for enforcement according to declared directions.

D:

This option concerns DNS policy for hostNetwork Pod instead. The host-networked Pod uses the cluster DNS search and resolver behavior needed for Service names.

Question 324

A Kubernetes administrator recommends: Confirm the installed CNI implements Kubernetes NetworkPolicy enforcement before trusting the YAML object. Which situation most directly calls for that operation?

  1. A hostNetwork troubleshooting Pod uses the host resolver and fails to resolve internal Kubernetes Service records.
  2. A Pod is isolated for ingress but still sends outbound requests to arbitrary addresses after applying its first policy.
  3. A restrictive NetworkPolicy is applied successfully but the traffic it should deny is still allowed.
  4. A shared Gateway should accept HTTPRoute traffic only for api.example.org, not for every hostname in the cluster.

Explanation

Correct Answer

C:

This is the original issue addressed by NetworkPolicy CNI enforcement support: The team identifies missing policy enforcement capability instead of assuming admission equals traffic filtering.

Incorrect Answers

A:

That separate problem requires another operation: Set dnsPolicy: ClusterFirstWithHostNet on the hostNetwork Pod and verify cluster DNS access. The host-networked Pod uses the cluster DNS search and resolver behavior needed for Service names.

B:

That separate problem requires another operation: Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules. The policy selects outbound as well as inbound traffic for enforcement according to declared directions.

D:

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.

Question 325

A Pod is isolated for ingress but still sends outbound requests to arbitrary addresses after applying its first policy. Which Kubernetes administration step most directly addresses this problem?

  1. Compare the Service selector with the target Pod labels and correct the mismatched key or value.
  2. Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules.
  3. Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support.
  4. Validate the Corefile syntax, revert the faulty configuration and monitor CoreDNS rollout and readiness.

Explanation

Correct Answer

B:

This action addresses Separate ingress and egress rules: The policy selects outbound as well as inbound traffic for enforcement according to declared directions.

Incorrect Answers

A:

This instead addresses Service selector typo: The Service controller discovers matching ready Pod endpoints instead of routing to an empty backend set. It does not directly correct the original Separate ingress and egress rules issue.

C:

This instead addresses Gateway weighted rollout: Gateway routing distributes requests according to the declared relative backend weights. It does not directly correct the original Separate ingress and egress rules issue.

D:

This instead addresses CoreDNS syntax rollout failure: DNS service health recovers after restoring a valid CoreDNS configuration. It does not directly correct the original Separate ingress and egress rules issue.

Question 326

A Kubernetes administrator performs the following operation: Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules. Which outcome most directly follows?

  1. The Service controller discovers matching ready Pod endpoints instead of routing to an empty backend set.
  2. Gateway routing distributes requests according to the declared relative backend weights.
  3. The policy selects outbound as well as inbound traffic for enforcement according to declared directions.
  4. DNS service health recovers after restoring a valid CoreDNS configuration.

Explanation

Correct Answer

C:

This is the intended effect of Separate ingress and egress rules: The policy selects outbound as well as inbound traffic for enforcement according to declared directions.

Incorrect Answers

A:

This effect belongs to Service selector typo, produced by a different operation: Compare the Service selector with the target Pod labels and correct the mismatched key or value. It is not the direct consequence of the stated action.

B:

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.

D:

This effect belongs to CoreDNS syntax rollout failure, produced by a different operation: Validate the Corefile syntax, revert the faulty configuration and monitor CoreDNS rollout and readiness. It is not the direct consequence of the stated action.

Question 327

A Pod is isolated for ingress but still sends outbound requests to arbitrary addresses after applying its first policy. A colleague instead proposes: Compare the Service selector with the target Pod labels and correct the mismatched key or value. Which step best corrects the approach to the original issue?

  1. Compare the Service selector with the target Pod labels and correct the mismatched key or value.
  2. Validate the Corefile syntax, revert the faulty configuration and monitor CoreDNS rollout and readiness.
  3. Configure an HTTPRoute rule with two backendRefs and weights 90 and 10 after validating controller support.
  4. Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules.

Explanation

Correct Answer

D:

This correction targets Separate ingress and egress rules: The policy selects outbound as well as inbound traffic for enforcement according to declared directions.

Incorrect Answers

A:

This option concerns Service selector typo instead. The Service controller discovers matching ready Pod endpoints instead of routing to an empty backend set.

B:

This option concerns CoreDNS syntax rollout failure instead. DNS service health recovers after restoring a valid CoreDNS configuration.

C:

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

Question 328

A Kubernetes administrator recommends: Add policyTypes Egress with appropriate explicit egress allows or default-deny egress rules. Which situation most directly calls for that operation?

  1. A Pod is isolated for ingress but still sends outbound requests to arbitrary addresses after applying its first policy.
  2. A CoreDNS ConfigMap edit introduces an invalid plugin directive and DNS Pods begin CrashLoopBackOff.
  3. A ClusterIP Service resolves in DNS but has no EndpointSlices despite healthy application Pods running.
  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 Separate ingress and egress rules: The policy selects outbound as well as inbound traffic for enforcement according to declared directions.

Incorrect Answers

B:

That separate problem requires another operation: Validate the Corefile syntax, revert the faulty configuration and monitor CoreDNS rollout and readiness. DNS service health recovers after restoring a valid CoreDNS configuration.

C:

That separate problem requires another operation: Compare the Service selector with the target Pod labels and correct the mismatched key or value. The Service controller discovers matching ready Pod endpoints instead of routing to an empty backend set.

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 329

A ClusterIP Service resolves in DNS but has no EndpointSlices despite healthy application Pods running. Which Kubernetes administration step most directly addresses this problem?

  1. Compare the Service selector with the target Pod labels and correct the mismatched key or value.
  2. Inspect HTTPRoute parent status conditions and Gateway listener compatibility before changing Pod replicas.
  3. Inspect CNI routing or encapsulation configuration and node PodCIDR routes before changing Service objects.
  4. Set the Service port to 80 and targetPort to the actual container listening port 8080.

Explanation

Correct Answer

A:

This action addresses Service selector typo: The Service controller discovers matching ready Pod endpoints instead of routing to an empty backend set.

Incorrect Answers

B:

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 Service selector typo issue.

C:

This instead addresses Cross-node Pod routing: The fault is isolated to cross-node Pod transport rather than an unrelated Service abstraction. It does not directly correct the original Service selector typo issue.

D:

This instead addresses Port versus targetPort: ClusterIP traffic arriving on the Service port is directed to the correct backend application port. It does not directly correct the original Service selector typo issue.

Question 330

A Kubernetes administrator performs the following operation: Compare the Service selector with the target Pod labels and correct the mismatched key or value. Which outcome most directly follows?

  1. The route attachment problem is diagnosed using Gateway API reconciliation status rather than blind workload scaling.
  2. The Service controller discovers matching ready Pod endpoints instead of routing to an empty backend set.
  3. The fault is isolated to cross-node Pod transport rather than an unrelated Service abstraction.
  4. ClusterIP traffic arriving on the Service port is directed to the correct backend application port.

Explanation

Correct Answer

B:

This is the intended effect of Service selector typo: The Service controller discovers matching ready Pod endpoints instead of routing to an empty backend set.

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.

C:

This effect belongs to Cross-node Pod routing, produced by a different operation: Inspect CNI routing or encapsulation configuration and node PodCIDR routes before changing Service objects. It is not the direct consequence of the stated action.

D:

This effect belongs to Port versus targetPort, produced by a different operation: Set the Service port to 80 and targetPort to the actual container listening port 8080. It is not the direct consequence of the stated action.