McAfee Secure

CNCF CKA 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 Training 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

    Training Course

    138 Video Lectures

    $39.99
  • Study Guide

    Study Guide

    268 PDF Pages

    $29.99

CNCF CKA Practice Test 65

Question 640

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: After egress isolation, app=invoice-api in ledger must be allowed to query cluster DNS using reviewed manifest ./policies/invoice-api-dns.yaml. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Test Service selectors against actual Pod template labels during deployments and renames.
  2. Verify peer label governance and avoid permitting all namespace workloads accidentally.
  3. Include DNS as an explicit dependency when designing egress policies for isolated Pods.
  4. Test security policies from allowed and denied sources rather than trusting YAML alone.

Explanation

Correct Answer

C:

Include DNS as an explicit dependency when designing egress policies for isolated Pods. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n ledger apply -f ./policies/invoice-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations. The relevant mechanism is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.

Incorrect Answers

A:

That safeguard is relevant to: Services select matching Pods; an unmatched selector can leave EndpointSlices without usable backends despite healthy Pods. The current failure instead follows from: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Its prevention measure is “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

B:

This routine guards against another mechanism: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. The recurring exposure in the current case is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The matching preventive check is “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

D:

That safeguard is relevant to: A selecting NetworkPolicy with ingress isolation and no allow rules denies new ingress to selected Pods except protocol-specific policy behavior; it does not itself control egress. The current failure instead follows from: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Its prevention measure is “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

Question 641

At Horizon observability, in a disposable simulated environment during a monitored release window: After egress isolation, app=metrics-api in observability must be allowed to query cluster DNS using reviewed manifest ./policies/metrics-api-dns.yaml. Work only within the stated target and verify before declaring success. Which command or initial safe diagnostic step best addresses the stated lab task?

  1. Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations.
  2. Run kubectl -n observability apply -f ./policies/metrics-api-cross-namespace.yaml after confirming its namespaceSelector and TCP port 8080.
  3. Run kubectl -n observability apply -f ./policies/metrics-api-deny-egress.yaml after reviewing impact on DNS and observability.
  4. Run kubectl -n observability apply -f ./gateway/metrics-api-route.yaml after confirming parentRefs, hostnames and backendRefs.

Explanation

Correct Answer

A:

Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations. This is the appropriate command-line action or first safe diagnostic. The technical reason is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Validate the result with: Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

B:

The proposed action belongs to the mechanism: A namespaceSelector in a NetworkPolicy ingress peer matches namespace labels; it differs from matching arbitrary Pod labels across namespaces. Here the stated fault follows a different mechanism: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The corrective choice is “Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations”.

C:

The offered action targets: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. The case facts point instead to: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Implement “Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations” to address that specific condition.

D:

This alternative is a response to another technical cause: Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners. The reported case instead depends on: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The action that directly addresses it is “Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations”.

Question 642

At Horizon observability, in a disposable simulated environment during a monitored release window: After egress isolation, app=metrics-api in observability must be allowed to query cluster DNS using reviewed manifest ./policies/metrics-api-dns.yaml. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates.
  2. NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.
  3. An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors.
  4. An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances.

Explanation

Correct Answer

B:

NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. This explains the stated condition. The corresponding action is: Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations. The direct acceptance evidence is: Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation.

Incorrect Answers

A:

Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. That explanation applies to a different technical failure. Here the controlling principle is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.

C:

This principle describes a separate cause: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. The reported condition is governed by: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The two mechanisms should not be conflated.

D:

An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. That explanation applies to a different technical failure. Here the controlling principle is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.

Question 643

At Horizon observability, in a disposable simulated environment during a monitored release window: After egress isolation, app=metrics-api in observability must be allowed to query cluster DNS using reviewed manifest ./policies/metrics-api-dns.yaml. Work only within the stated target and verify before declaring success. Which observation best verifies the requested outcome rather than an unrelated state?

  1. Run kubectl -n fulfillment describe networkpolicy dispatch-api-deny-egress and test expected blocked destinations.
  2. Run kubectl -n observability get service metrics-svc -o wide and inspect the allocated node port and endpoints.
  3. Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation.
  4. Run positive and negative network connectivity tests from Pods with and without the trusted source label.

Explanation

Correct Answer

C:

Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The intended action is: Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations.

Incorrect Answers

A:

That test belongs to another control with this basis: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. In the current case, the governing reason is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The direct verification is “Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation”.

B:

This observation would test a different technical dependency: A NodePort Service allocates a cluster-configured host port on each node while retaining its cluster IP routing. The current issue is governed by: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Its decisive check is “Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation”.

D:

That test belongs to another control with this basis: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. In the current case, the governing reason is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The direct verification is “Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation”.

Question 644

At Horizon observability, in a disposable simulated environment during a monitored release window: After egress isolation, app=metrics-api in observability must be allowed to query cluster DNS using reviewed manifest ./policies/metrics-api-dns.yaml. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Maintain lightweight in-cluster DNS canaries and verify Service creation and DNS freshness.
  2. Check gateway class/controller compatibility and delegate route attachment privileges deliberately.
  3. Test security policies from allowed and denied sources rather than trusting YAML alone.
  4. Include DNS as an explicit dependency when designing egress policies for isolated Pods.

Explanation

Correct Answer

D:

Include DNS as an explicit dependency when designing egress policies for isolated Pods. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n observability apply -f ./policies/metrics-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations. The relevant mechanism is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.

Incorrect Answers

A:

This routine guards against another mechanism: Cluster DNS should resolve Service names inside its configured domain; host-side DNS results do not prove in-cluster resolution. The recurring exposure in the current case is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The matching preventive check is “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

B:

The suggested review tracks a different technical risk: Gateway API separates infrastructure listener ownership from application route attachments and depends on controller support. Here the sustained control must address: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Choose “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

C:

That safeguard is relevant to: A selecting NetworkPolicy with ingress isolation and no allow rules denies new ingress to selected Pods except protocol-specific policy behavior; it does not itself control egress. The current failure instead follows from: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Its prevention measure is “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

Question 645

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: After egress isolation, app=dispatch-api in fulfillment must be allowed to query cluster DNS using reviewed manifest ./policies/dispatch-api-dns.yaml. Work only within the stated target and verify before declaring success. Which command or initial safe diagnostic step best addresses the stated lab task?

  1. Run kubectl -n fulfillment apply -f ./gateway/dispatch-api-gateway.yaml after confirming GatewayClass and listener settings.
  2. Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations.
  3. Run kubectl -n fulfillment patch service dispatch-svc --type=merge -p '{"spec":{"selector":{"app":"dispatch-api"}}}' after confirming the label is authoritative.
  4. Run kubectl -n fulfillment apply -f ./ingress/dispatch-api-tls.yaml after checking secret type and host match.

Explanation

Correct Answer

B:

Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations. This is the appropriate command-line action or first safe diagnostic. The technical reason is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Validate the result with: Run an in-Pod nslookup dispatch-svc.fulfillment.svc.cluster.local and confirm name resolution under isolation. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

A:

The proposed action belongs to the mechanism: Gateway API separates infrastructure listener ownership from application route attachments and depends on controller support. Here the stated fault follows a different mechanism: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The corrective choice is “Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations”.

C:

This alternative is a response to another technical cause: Services select matching Pods; an unmatched selector can leave EndpointSlices without usable backends despite healthy Pods. The reported case instead depends on: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The action that directly addresses it is “Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations”.

D:

The proposed action belongs to the mechanism: Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. Here the stated fault follows a different mechanism: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The corrective choice is “Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations”.

Question 646

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: After egress isolation, app=dispatch-api in fulfillment must be allowed to query cluster DNS using reviewed manifest ./policies/dispatch-api-dns.yaml. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates.
  2. An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances.
  3. NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.
  4. Cluster DNS should resolve Service names inside its configured domain; host-side DNS results do not prove in-cluster resolution.

Explanation

Correct Answer

C:

NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations. The direct acceptance evidence is: Run an in-Pod nslookup dispatch-svc.fulfillment.svc.cluster.local and confirm name resolution under isolation.

Incorrect Answers

A:

The offered statement is true for this other mechanism: Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. It does not explain the facts described here, which follow from: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.

B:

This principle describes a separate cause: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. The reported condition is governed by: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The two mechanisms should not be conflated.

D:

The offered statement is true for this other mechanism: Cluster DNS should resolve Service names inside its configured domain; host-side DNS results do not prove in-cluster resolution. It does not explain the facts described here, which follow from: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.

Question 647

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: After egress isolation, app=dispatch-api in fulfillment must be allowed to query cluster DNS using reviewed manifest ./policies/dispatch-api-dns.yaml. Work only within the stated target and verify before declaring success. Which observation best verifies the requested outcome rather than an unrelated state?

  1. Run kubectl -n observability logs metrics-api-dns-test and look for a valid Service address before deleting the test Pod.
  2. Run positive and negative network connectivity tests from Pods with and without the trusted source label.
  3. Run kubectl -n observability describe networkpolicy metrics-api-deny-egress and test expected blocked destinations.
  4. Run an in-Pod nslookup dispatch-svc.fulfillment.svc.cluster.local and confirm name resolution under isolation.

Explanation

Correct Answer

D:

Run an in-Pod nslookup dispatch-svc.fulfillment.svc.cluster.local and confirm name resolution under isolation. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The intended action is: Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations.

Incorrect Answers

A:

This observation would test a different technical dependency: Cluster DNS should resolve Service names inside its configured domain; host-side DNS results do not prove in-cluster resolution. The current issue is governed by: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Its decisive check is “Run an in-Pod nslookup dispatch-svc.fulfillment.svc.cluster.local and confirm name resolution under isolation”.

B:

The alternative verifies a different condition: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. The current case instead depends on: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Confirm that “Run an in-Pod nslookup dispatch-svc.fulfillment.svc.cluster.local and confirm name resolution under isolation”.

C:

That test belongs to another control with this basis: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. In the current case, the governing reason is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The direct verification is “Run an in-Pod nslookup dispatch-svc.fulfillment.svc.cluster.local and confirm name resolution under isolation”.

Question 648

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: After egress isolation, app=dispatch-api in fulfillment must be allowed to query cluster DNS using reviewed manifest ./policies/dispatch-api-dns.yaml. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Include DNS as an explicit dependency when designing egress policies for isolated Pods.
  2. Check gateway class/controller compatibility and delegate route attachment privileges deliberately.
  3. Test security policies from allowed and denied sources rather than trusting YAML alone.
  4. Review ingress class ownership and avoid exposing test applications outside intended environments.

Explanation

Correct Answer

A:

Include DNS as an explicit dependency when designing egress policies for isolated Pods. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment apply -f ./policies/dispatch-api-dns.yaml where egress grants UDP and TCP 53 to validated DNS destinations. The relevant mechanism is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record.

Incorrect Answers

B:

That safeguard is relevant to: Gateway API separates infrastructure listener ownership from application route attachments and depends on controller support. The current failure instead follows from: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Its prevention measure is “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

C:

This routine guards against another mechanism: A selecting NetworkPolicy with ingress isolation and no allow rules denies new ingress to selected Pods except protocol-specific policy behavior; it does not itself control egress. The recurring exposure in the current case is: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The matching preventive check is “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

D:

The suggested review tracks a different technical risk: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. Here the sustained control must address: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. Choose “Include DNS as an explicit dependency when designing egress policies for isolated Pods”.

Question 649

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A policy ./policies/invoice-api-peer.yaml is ready to permit Pod-to-Pod traffic only from trusted labels in namespace ledger. Work only within the stated target and verify before declaring success. Which command or initial safe diagnostic step best addresses the stated lab task?

  1. Run kubectl -n ledger expose deployment invoice-api --name=invoice-svc --type=LoadBalancer --port=80 --target-port=8080.
  2. Run kubectl -n ledger patch service invoice-svc --type=merge -p '{"spec":{"selector":{"app":"invoice-api"}}}' after confirming the label is authoritative.
  3. Run kubectl -n ledger apply -f ./policies/invoice-api-peer.yaml after verifying podSelector rules match the source identity.
  4. Run kubectl -n ledger create ingress invoice-ingress --class=nginx --rule='invoice.example.test/=invoice-svc:80' after confirming the Service exists.

Explanation

Correct Answer

C:

Run kubectl -n ledger apply -f ./policies/invoice-api-peer.yaml after verifying podSelector rules match the source identity. This is the appropriate command-line action or first safe diagnostic. The technical reason is: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. Validate the result with: Run positive and negative network connectivity tests from Pods with and without the trusted source label. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

A:

The offered action targets: LoadBalancer Services request external routing from a supported infrastructure controller; a bare cluster does not guarantee an external address. The case facts point instead to: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. Implement “Run kubectl -n ledger apply -f ./policies/invoice-api-peer.yaml after verifying podSelector rules match the source identity” to address that specific condition.

B:

This alternative is a response to another technical cause: Services select matching Pods; an unmatched selector can leave EndpointSlices without usable backends despite healthy Pods. The reported case instead depends on: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. The action that directly addresses it is “Run kubectl -n ledger apply -f ./policies/invoice-api-peer.yaml after verifying podSelector rules match the source identity”.

D:

The offered action targets: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. The case facts point instead to: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. Implement “Run kubectl -n ledger apply -f ./policies/invoice-api-peer.yaml after verifying podSelector rules match the source identity” to address that specific condition.

Question 650

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A policy ./policies/invoice-api-peer.yaml is ready to permit Pod-to-Pod traffic only from trusted labels in namespace ledger. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints.
  2. Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates.
  3. A selecting NetworkPolicy with ingress isolation and no allow rules denies new ingress to selected Pods except protocol-specific policy behavior; it does not itself control egress.
  4. An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors.

Explanation

Correct Answer

D:

An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. This explains the stated condition. The corresponding action is: Run kubectl -n ledger apply -f ./policies/invoice-api-peer.yaml after verifying podSelector rules match the source identity. The direct acceptance evidence is: Run positive and negative network connectivity tests from Pods with and without the trusted source label.

Incorrect Answers

A:

This principle describes a separate cause: A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints. The reported condition is governed by: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors. The two mechanisms should not be conflated.

B:

Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. That explanation applies to a different technical failure. Here the controlling principle is: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors.

C:

The offered statement is true for this other mechanism: A selecting NetworkPolicy with ingress isolation and no allow rules denies new ingress to selected Pods except protocol-specific policy behavior; it does not itself control egress. It does not explain the facts described here, which follow from: An ingress rule with a podSelector selects source Pods in its own namespace unless combined with other peer selectors.