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 62

Question 610

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Cluster DNS lookups are intermittent; inspect CoreDNS Deployment availability before changing application Service names. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. CoreDNS behavior is configured separately from Service definitions, and incorrect DNS plugins or cluster domain can break discovery cluster-wide.
  2. DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist.
  3. A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints.
  4. EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist.

Explanation

Correct Answer

B:

DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. This explains the stated condition. The corresponding action is: Run kubectl -n kube-system get deploy coredns; kubectl -n kube-system get pods -l k8s-app=kube-dns. The direct acceptance evidence is: Run kubectl -n kube-system logs deployment/coredns --tail=50 and compare to an in-Pod resolution test. Applied here, the relevant facts are: inspect CoreDNS Deployment availability before changing application Service names. Work only within the stated target and verify before declaring success. The question asks which Kubernetes behavior best explains the required change or diagnosis. The choice being evaluated here is: CoreDNS behavior is configured separately from Service definitions, and incorrect DNS plugins or cluster domain can break discovery cluster-wide. The case setting is: At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Cluster DNS lookups are intermittent;.

Incorrect Answers

A:

The offered statement is true for this other mechanism: CoreDNS behavior is configured separately from Service definitions, and incorrect DNS plugins or cluster domain can break discovery cluster-wide. It does not explain the facts described here, which follow from: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist.

C:

A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints. That explanation applies to a different technical failure. Here the controlling principle is: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist.

D:

The offered statement is true for this other mechanism: EndpointSlices represent Service backend addresses and readiness; Service existence alone does not prove endpoints exist. It does not explain the facts described here, which follow from: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist.

Question 611

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Cluster DNS lookups are intermittent; inspect CoreDNS Deployment availability before changing application Service names. 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 get service dispatch-svc -o wide and inspect the allocated node port and endpoints.
  2. Run kubectl -n fulfillment get endpointslices -l kubernetes.io/service-name=dispatch-svc and verify addresses for the intended Pods.
  3. Run kubectl -n kube-system logs deployment/coredns --tail=50 and compare to an in-Pod resolution test.
  4. Run kubectl -n fulfillment describe networkpolicy dispatch-api-deny-egress and test expected blocked destinations.

Explanation

Correct Answer

C:

Run kubectl -n kube-system logs deployment/coredns --tail=50 and compare to an in-Pod resolution test. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. The intended action is: Run kubectl -n kube-system get deploy coredns; kubectl -n kube-system get pods -l k8s-app=kube-dns. Applied here, the relevant facts are: inspect CoreDNS Deployment availability before changing application Service names. Work only within the stated target and verify before declaring success. The question asks which observation best verifies the requested outcome rather than an unrelated state. The choice being evaluated here is: Run kubectl -n fulfillment get service dispatch-svc -o wide and inspect the allocated node port and endpoints. The case setting is: At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Cluster DNS lookups are intermittent;.

Incorrect Answers

A:

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: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. Its decisive check is “Run kubectl -n kube-system logs deployment/coredns --tail=50 and compare to an in-Pod resolution test”.

B:

The alternative verifies a different condition: Services select matching Pods; an unmatched selector can leave EndpointSlices without usable backends despite healthy Pods. The current case instead depends on: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. Confirm that “Run kubectl -n kube-system logs deployment/coredns --tail=50 and compare to an in-Pod resolution test”.

D:

This observation would test a different technical dependency: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. The current issue is governed by: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. Its decisive check is “Run kubectl -n kube-system logs deployment/coredns --tail=50 and compare to an in-Pod resolution test”.

Question 612

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Cluster DNS lookups are intermittent; inspect CoreDNS Deployment availability before changing application Service names. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Check exposed Service port mappings against actual container listeners and named ports before releases.
  2. Maintain lightweight in-cluster DNS canaries and verify Service creation and DNS freshness.
  3. Include DNS as an explicit dependency when designing egress policies for isolated Pods.
  4. Monitor DNS replica readiness, restart trends and upstream resolution errors.

Explanation

Correct Answer

D:

Monitor DNS replica readiness, restart trends and upstream resolution errors. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n kube-system get deploy coredns; kubectl -n kube-system get pods -l k8s-app=kube-dns. The relevant mechanism is: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. Applied here, the relevant facts are: inspect CoreDNS Deployment availability before changing application Service names. Work only within the stated target and verify before declaring success. The question asks which operational control most directly prevents this failure or configuration drift. The choice being evaluated here is: Check exposed Service port mappings against actual container listeners and named ports before releases. The case setting is: At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Cluster DNS lookups are intermittent;.

Incorrect Answers

A:

The suggested review tracks a different technical risk: The Service port is what clients connect to, while targetPort must reach the actual backend listener. Here the sustained control must address: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. Choose “Monitor DNS replica readiness, restart trends and upstream resolution errors”.

B:

That safeguard is relevant to: Cluster DNS should resolve Service names inside its configured domain; host-side DNS results do not prove in-cluster resolution. The current failure instead follows from: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. Its prevention measure is “Monitor DNS replica readiness, restart trends and upstream resolution errors”.

C:

This routine guards against another mechanism: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The recurring exposure in the current case is: DNS resolution may fail when CoreDNS replicas are unhealthy even when the requested Service and Pod endpoints exist. The matching preventive check is “Monitor DNS replica readiness, restart trends and upstream resolution errors”.

Question 613

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A reviewed manifest ./policies/invoice-api-deny-ingress.yaml selects app=invoice-api in namespace ledger and declares policyTypes: [Ingress] with no allowed ingress peers. 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 ./policies/dispatch-api-deny-egress.yaml after reviewing impact on DNS and observability.
  2. Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support.
  3. Run kubectl -n observability apply -f ./policies/metrics-api-deny-egress.yaml after reviewing impact on DNS and observability.
  4. Run kubectl -n fulfillment create ingress dispatch-ingress --class=nginx --rule='dispatch.example.test/=dispatch-svc:9090' after confirming the Service exists.

Explanation

Correct Answer

B:

Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support. This is the appropriate command-line action or first safe diagnostic. The technical reason is: 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. Validate the result with: Run kubectl -n ledger get networkpolicy invoice-api-deny-ingress -o yaml and perform an authorized denied-connection probe. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

A:

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: 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. Implement “Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support” to address that specific condition.

C:

The proposed action belongs to the mechanism: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. Here the stated fault follows a different 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 corrective choice is “Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support”.

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: 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. Implement “Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support” to address that specific condition.

Question 614

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A reviewed manifest ./policies/invoice-api-deny-ingress.yaml selects app=invoice-api in namespace ledger and declares policyTypes: [Ingress] with no allowed ingress peers. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. A NodePort Service allocates a cluster-configured host port on each node while retaining its cluster IP routing.
  2. Gateway API separates infrastructure listener ownership from application route attachments and depends on controller support.
  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 egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances.

Explanation

Correct Answer

C:

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. This explains the stated condition. The corresponding action is: Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support. The direct acceptance evidence is: Run kubectl -n ledger get networkpolicy invoice-api-deny-ingress -o yaml and perform an authorized denied-connection probe.

Incorrect Answers

A:

This principle describes a separate cause: A NodePort Service allocates a cluster-configured host port on each node while retaining its cluster IP routing. The reported condition is governed by: 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 two mechanisms should not be conflated.

B:

Gateway API separates infrastructure listener ownership from application route attachments and depends on controller support. That explanation applies to a different technical failure. Here the controlling principle is: 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.

D:

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: 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 two mechanisms should not be conflated.

Question 615

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A reviewed manifest ./policies/invoice-api-deny-ingress.yaml selects app=invoice-api in namespace ledger and declares policyTypes: [Ingress] with no allowed ingress peers. 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 describe networkpolicy metrics-api-deny-egress and test expected blocked destinations.
  2. Run positive and negative network connectivity tests from Pods with and without the trusted source label.
  3. Run kubectl -n ledger get httproute invoice-route -o yaml and inspect parent acceptance and resolved-reference conditions.
  4. Run kubectl -n ledger get networkpolicy invoice-api-deny-ingress -o yaml and perform an authorized denied-connection probe.

Explanation

Correct Answer

D:

Run kubectl -n ledger get networkpolicy invoice-api-deny-ingress -o yaml and perform an authorized denied-connection probe. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: 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 intended action is: Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support.

Incorrect Answers

A:

The alternative verifies a different condition: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. The current case instead depends on: 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. Confirm that “Run kubectl -n ledger get networkpolicy invoice-api-deny-ingress -o yaml and perform an authorized denied-connection probe”.

B:

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: 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 direct verification is “Run kubectl -n ledger get networkpolicy invoice-api-deny-ingress -o yaml and perform an authorized denied-connection probe”.

C:

This observation would test a different technical dependency: Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners. The current issue is governed by: 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. Its decisive check is “Run kubectl -n ledger get networkpolicy invoice-api-deny-ingress -o yaml and perform an authorized denied-connection probe”.

Question 616

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: A reviewed manifest ./policies/invoice-api-deny-ingress.yaml selects app=invoice-api in namespace ledger and declares policyTypes: [Ingress] with no allowed ingress peers. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Test security policies from allowed and denied sources rather than trusting YAML alone.
  2. Maintain lightweight in-cluster DNS canaries and verify Service creation and DNS freshness.
  3. Track TLS Secret renewal and enforce appropriate ingress-controller security policies.
  4. Review ingress class ownership and avoid exposing test applications outside intended environments.

Explanation

Correct Answer

A:

Test security policies from allowed and denied sources rather than trusting YAML alone. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n ledger apply -f ./policies/invoice-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support. The relevant mechanism is: 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.

Incorrect Answers

B:

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: 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 matching preventive check is “Test security policies from allowed and denied sources rather than trusting YAML alone”.

C:

The suggested review tracks a different technical risk: Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. Here the sustained control must address: 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. Choose “Test security policies from allowed and denied sources rather than trusting YAML alone”.

D:

That safeguard is relevant to: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. The current failure instead follows from: 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. Its prevention measure is “Test security policies from allowed and denied sources rather than trusting YAML alone”.

Question 617

At Horizon observability, in a disposable simulated environment during a monitored release window: A reviewed manifest ./policies/metrics-api-deny-ingress.yaml selects app=metrics-api in namespace observability and declares policyTypes: [Ingress] with no allowed ingress peers. 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 create ingress invoice-ingress --class=nginx --rule='invoice.example.test/=invoice-svc:80' after confirming the Service exists.
  2. Run kubectl -n observability patch service metrics-svc --type=merge -p '{"spec":{"selector":{"app":"metrics-api"}}}' after confirming the label is authoritative.
  3. Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support.
  4. Run kubectl -n observability expose deployment metrics-api --name=metrics-svc --type=ClusterIP --port=8080 --target-port=3000.

Explanation

Correct Answer

C:

Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support. This is the appropriate command-line action or first safe diagnostic. The technical reason is: 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. Validate the result with: Run kubectl -n observability get networkpolicy metrics-api-deny-ingress -o yaml and perform an authorized denied-connection probe. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

A:

This alternative is a response to another technical cause: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. The reported case instead depends on: 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 action that directly addresses it is “Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support”.

B:

The proposed action belongs to the mechanism: Services select matching Pods; an unmatched selector can leave EndpointSlices without usable backends despite healthy Pods. Here the stated fault follows a different 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 corrective choice is “Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support”.

D:

This alternative is a response to another technical cause: A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints. The reported case instead depends on: 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 action that directly addresses it is “Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support”.

Question 618

At Horizon observability, in a disposable simulated environment during a monitored release window: A reviewed manifest ./policies/metrics-api-deny-ingress.yaml selects app=metrics-api in namespace observability and declares policyTypes: [Ingress] with no allowed ingress peers. 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. An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances.
  3. Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners.
  4. 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.

Explanation

Correct Answer

D:

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. This explains the stated condition. The corresponding action is: Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support. The direct acceptance evidence is: Run kubectl -n observability get networkpolicy metrics-api-deny-ingress -o yaml and perform an authorized denied-connection probe.

Incorrect Answers

A:

A ClusterIP Service provides stable in-cluster virtual addressing and directs traffic to selected ready Pod endpoints. That explanation applies to a different technical failure. Here the controlling principle is: 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.

B:

The offered statement is true for this other mechanism: An egress-isolating NetworkPolicy can block Pod outbound connections; DNS and required dependencies need explicit allowances. It does not explain the facts described here, which follow from: 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.

C:

This principle describes a separate cause: Gateway API HTTPRoutes express matching and backend behavior while Gateway resources own compatible listeners. The reported condition is governed by: 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 two mechanisms should not be conflated.

Question 619

At Horizon observability, in a disposable simulated environment during a monitored release window: A reviewed manifest ./policies/metrics-api-deny-ingress.yaml selects app=metrics-api in namespace observability and declares policyTypes: [Ingress] with no allowed ingress peers. 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 get networkpolicy metrics-api-deny-ingress -o yaml and perform an authorized denied-connection probe.
  2. Run an in-Pod nslookup metrics-svc.observability.svc.cluster.local and confirm name resolution under isolation.
  3. Run kubectl -n observability get gateway edge-gw -o yaml and inspect Accepted and Programmed conditions.
  4. Run kubectl -n observability describe ingress metrics-ingress and test the route through the controller address using the expected Host header.

Explanation

Correct Answer

A:

Run kubectl -n observability get networkpolicy metrics-api-deny-ingress -o yaml and perform an authorized denied-connection probe. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: 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 intended action is: Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support.

Incorrect Answers

B:

This observation would test a different technical dependency: NetworkPolicy egress rules are additive and DNS lookup requires permitted traffic to the DNS server, not only a correct Service record. The current issue is governed by: 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. Its decisive check is “Run kubectl -n observability get networkpolicy metrics-api-deny-ingress -o yaml and perform an authorized denied-connection probe”.

C:

The alternative verifies a different condition: Gateway API separates infrastructure listener ownership from application route attachments and depends on controller support. The current case instead depends on: 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. Confirm that “Run kubectl -n observability get networkpolicy metrics-api-deny-ingress -o yaml and perform an authorized denied-connection probe”.

D:

That test belongs to another control with this basis: An Ingress resource declares HTTP host/path routing but requires an actual installed Ingress controller. In the current case, the governing reason is: 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 direct verification is “Run kubectl -n observability get networkpolicy metrics-api-deny-ingress -o yaml and perform an authorized denied-connection probe”.

Question 620

At Horizon observability, in a disposable simulated environment during a monitored release window: A reviewed manifest ./policies/metrics-api-deny-ingress.yaml selects app=metrics-api in namespace observability and declares policyTypes: [Ingress] with no allowed ingress peers. 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. Test security policies from allowed and denied sources rather than trusting YAML alone.
  3. Check gateway class/controller compatibility and delegate route attachment privileges deliberately.
  4. Track TLS Secret renewal and enforce appropriate ingress-controller security policies.

Explanation

Correct Answer

B:

Test security policies from allowed and denied sources rather than trusting YAML alone. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n observability apply -f ./policies/metrics-api-deny-ingress.yaml after validating selectors and the CNI's policy enforcement support. The relevant mechanism is: 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.

Incorrect Answers

A:

This routine guards against another mechanism: Services select matching Pods; an unmatched selector can leave EndpointSlices without usable backends despite healthy Pods. The recurring exposure in the current case is: 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 matching preventive check is “Test security policies from allowed and denied sources rather than trusting YAML alone”.

C:

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: 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. Its prevention measure is “Test security policies from allowed and denied sources rather than trusting YAML alone”.

D:

This routine guards against another mechanism: Ingress TLS termination relies on a controller and a referenced TLS Secret; updating a Service alone does not install certificates. The recurring exposure in the current case is: 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 matching preventive check is “Test security policies from allowed and denied sources rather than trusting YAML alone”.