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 101

Question 1000

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Deployment invoice-api in ledger has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Validate selector and template-label consistency before initial resource creation.
  2. Add labels, readiness and EndpointSlice checks to Service deployment acceptance tests.
  3. Review sizing and autoscaling headroom against known resource requests.
  4. Maintain an inventory of dedicated-node taints and explicitly reviewed workload tolerations.

Explanation

Correct Answer

A:

Validate selector and template-label consistency before initial resource creation. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n ledger get deployment invoice-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement. The relevant mechanism is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

Incorrect Answers

B:

This routine guards against another mechanism: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The recurring exposure in the current case is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The matching preventive check is “Validate selector and template-label consistency before initial resource creation”.

C:

The suggested review tracks a different technical risk: The scheduler places Pods by requested resources and constraints, not the current shell's observed free CPU alone. Here the sustained control must address: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Choose “Validate selector and template-label consistency before initial resource creation”.

D:

That safeguard is relevant to: A NoSchedule taint excludes Pods lacking a matching toleration even if the Node has free resources. The current failure instead follows from: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Its prevention measure is “Validate selector and template-label consistency before initial resource creation”.

Question 1001

At Horizon observability, in a disposable simulated environment during a monitored release window: Deployment metrics-api in observability has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. 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 kube-system get pods -l k8s-app=kube-dns and kubectl -n kube-system logs deployment/coredns --tail=80.
  2. Run kubectl -n observability describe daemonset metrics-api and compare target node eligibility, taints and Pod events.
  3. Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement.
  4. Run kubectl -n kube-system get pods -l component=kube-controller-manager and inspect its logs or local static Pod status.

Explanation

Correct Answer

C:

Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement. This is the appropriate command-line action or first safe diagnostic. The technical reason is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Validate the result with: Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas. 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: A cluster-wide DNS component failure affects names across workloads and cannot be resolved by changing one Service selector. The reported case instead depends on: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The action that directly addresses it is “Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement”.

B:

The proposed action belongs to the mechanism: DaemonSets schedule according to node selection and toleration rules; unavailable node agents can break networking or logging on selected workers. Here the stated fault follows a different mechanism: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The corrective choice is “Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement”.

D:

This alternative is a response to another technical cause: Controllers reconcile desired resources with observed state; the API server storing a Deployment does not itself create replica Pods. The reported case instead depends on: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The action that directly addresses it is “Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement”.

Question 1002

At Horizon observability, in a disposable simulated environment during a monitored release window: Deployment metrics-api in observability has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. NetworkPolicy allows only explicitly selected paths once Pod ingress or egress isolation applies, and both directions may matter.
  2. A cluster-wide DNS component failure affects names across workloads and cannot be resolved by changing one Service selector.
  3. A running container is not necessarily Ready; failing readiness can remove a Pod from ready Service endpoints.
  4. A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

Explanation

Correct Answer

D:

A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. This explains the stated condition. The corresponding action is: Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement. The direct acceptance evidence is: Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas.

Incorrect Answers

A:

NetworkPolicy allows only explicitly selected paths once Pod ingress or egress isolation applies, and both directions may matter. That explanation applies to a different technical failure. Here the controlling principle is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

B:

The offered statement is true for this other mechanism: A cluster-wide DNS component failure affects names across workloads and cannot be resolved by changing one Service selector. It does not explain the facts described here, which follow from: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

C:

This principle describes a separate cause: A running container is not necessarily Ready; failing readiness can remove a Pod from ready Service endpoints. The reported condition is governed by: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The two mechanisms should not be conflated.

Question 1003

At Horizon observability, in a disposable simulated environment during a monitored release window: Deployment metrics-api in observability has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. Work only within the stated target and verify before declaring success. Which observation best verifies the requested outcome rather than an unrelated state?

  1. Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas.
  2. Run kubectl -n observability get pvc metrics-data and confirm Bound with capacity and the intended StorageClass after correction.
  3. Confirm the scheduler events clear and the Pod is assigned after capacity or request adjustments.
  4. Verify restart counts stabilize after an appropriate startup/liveness configuration change, without masking genuine deadlocks.

Explanation

Correct Answer

A:

Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The intended action is: Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement.

Incorrect Answers

B:

This observation would test a different technical dependency: A PVC binds only to compatible available storage or successful dynamic provisioning; absent provisioners, quotas or delayed binding can leave it Pending. The current issue is governed by: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Its decisive check is “Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas”.

C:

The alternative verifies a different condition: The scheduler places Pods by requested resources and constraints, not the current shell's observed free CPU alone. The current case instead depends on: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Confirm that “Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas”.

D:

That test belongs to another control with this basis: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. In the current case, the governing reason is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The direct verification is “Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas”.

Question 1004

At Horizon observability, in a disposable simulated environment during a monitored release window: Deployment metrics-api in observability has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Test probe paths, startup time and port assumptions before rolling out new workloads.
  2. Validate selector and template-label consistency before initial resource creation.
  3. Choose realistic initial delays or startup probes based on measured application start behavior.
  4. Use identity-specific can-i checks as part of RBAC rollout tests.

Explanation

Correct Answer

B:

Validate selector and template-label consistency before initial resource creation. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n observability get deployment metrics-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement. The relevant mechanism is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

Incorrect Answers

A:

This routine guards against another mechanism: A running container is not necessarily Ready; failing readiness can remove a Pod from ready Service endpoints. The recurring exposure in the current case is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The matching preventive check is “Validate selector and template-label consistency before initial resource creation”.

C:

That safeguard is relevant to: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. The current failure instead follows from: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Its prevention measure is “Validate selector and template-label consistency before initial resource creation”.

D:

This routine guards against another mechanism: Authentication establishes identity but authorization still requires permitted verbs, resources and scope in matching RBAC bindings. The recurring exposure in the current case is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The matching preventive check is “Validate selector and template-label consistency before initial resource creation”.

Question 1005

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Deployment dispatch-api in fulfillment has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. 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 auth can-i list pods -n fulfillment --as=system:serviceaccount:fulfillment:sync-bot and inspect its RoleBindings.
  2. Run kubectl -n fulfillment describe pod dispatch-api plus kubectl -n fulfillment logs dispatch-api --previous to distinguish startup and runtime faults.
  3. Run kubectl -n kube-system get pods -l component=kube-controller-manager and inspect its logs or local static Pod status.
  4. Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement.

Explanation

Correct Answer

D:

Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement. This is the appropriate command-line action or first safe diagnostic. The technical reason is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Validate the result with: Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

A:

The proposed action belongs to the mechanism: Authentication establishes identity but authorization still requires permitted verbs, resources and scope in matching RBAC bindings. Here the stated fault follows a different mechanism: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The corrective choice is “Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement”.

B:

The offered action targets: Liveness failure triggers restarts, while startup and readiness probes serve different lifecycle purposes. The case facts point instead to: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Implement “Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement” to address that specific condition.

C:

This alternative is a response to another technical cause: Controllers reconcile desired resources with observed state; the API server storing a Deployment does not itself create replica Pods. The reported case instead depends on: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The action that directly addresses it is “Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement”.

Question 1006

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Deployment dispatch-api in fulfillment has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.
  2. ImagePullBackOff indicates failed image retrieval; cluster DNS, credentials, registry availability and image names are distinct potential causes.
  3. CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error.
  4. Controllers reconcile desired resources with observed state; the API server storing a Deployment does not itself create replica Pods.

Explanation

Correct Answer

A:

A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. This explains the stated condition. The corresponding action is: Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement. The direct acceptance evidence is: Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas.

Incorrect Answers

B:

This principle describes a separate cause: ImagePullBackOff indicates failed image retrieval; cluster DNS, credentials, registry availability and image names are distinct potential causes. The reported condition is governed by: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The two mechanisms should not be conflated.

C:

CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error. That explanation applies to a different technical failure. Here the controlling principle is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

D:

The offered statement is true for this other mechanism: Controllers reconcile desired resources with observed state; the API server storing a Deployment does not itself create replica Pods. It does not explain the facts described here, which follow from: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

Question 1007

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Deployment dispatch-api in fulfillment has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. 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 daemonset dispatch-api and inspect desired/ready counts after the specific node issue is fixed.
  2. Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas.
  3. Verify both the full Service name and intended short name resolve after DNS configuration correction.
  4. Run kubectl -n fulfillment get pod dispatch-api and inspect matching EndpointSlices after correcting the probe or backend.

Explanation

Correct Answer

B:

Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas. This validates the affected object or control path, rather than only showing a command completed. The underlying reason is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The intended action is: Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement.

Incorrect Answers

A:

This observation would test a different technical dependency: DaemonSets schedule according to node selection and toleration rules; unavailable node agents can break networking or logging on selected workers. The current issue is governed by: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Its decisive check is “Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas”.

C:

That test belongs to another control with this basis: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution. In the current case, the governing reason is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. The direct verification is “Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas”.

D:

This observation would test a different technical dependency: A running container is not necessarily Ready; failing readiness can remove a Pod from ready Service endpoints. The current issue is governed by: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Its decisive check is “Verify the replacement Deployment has matching immutable selector and template labels plus desired available replicas”.

Question 1008

At Pinecrest logistics, in a sandbox Kubernetes cluster during a recovery tabletop exercise: Deployment dispatch-api in fulfillment has healthy Pods with unexpected labels, and its selector no longer matches the intended Pod template. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?

  1. Keep cleanup controllers healthy and document controlled escalation for stuck finalizers.
  2. Monitor controller-manager availability and reconcile control-plane leader-election health.
  3. Validate selector and template-label consistency before initial resource creation.
  4. Monitor peak memory with appropriate safety margins and evaluate application leaks rather than unlimited resource increases.

Explanation

Correct Answer

C:

Validate selector and template-label consistency before initial resource creation. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n fulfillment get deployment dispatch-api -o yaml and inspect immutable selector and Pod-template labels before planning controlled replacement. The relevant mechanism is: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership.

Incorrect Answers

A:

The suggested review tracks a different technical risk: Finalizers protect cleanup work; forcibly removing them without identifying failing controllers can orphan resources and leak infrastructure. Here the sustained control must address: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Choose “Validate selector and template-label consistency before initial resource creation”.

B:

That safeguard is relevant to: Controllers reconcile desired resources with observed state; the API server storing a Deployment does not itself create replica Pods. The current failure instead follows from: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Its prevention measure is “Validate selector and template-label consistency before initial resource creation”.

D:

The suggested review tracks a different technical risk: The container runtime can terminate a container when it exceeds its memory cgroup limit; increasing CPU requests does not repair a memory limit failure. Here the sustained control must address: A Deployment selector identifies Pods it owns and is generally immutable after creation; patching Service selectors alone does not repair ownership. Choose “Validate selector and template-label consistency before initial resource creation”.

Question 1009

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Service invoice-svc in ledger exists but requests fail and its EndpointSlices list no ready backends. 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 describe service invoice-svc and kubectl -n ledger get endpointslices -l kubernetes.io/service-name=invoice-svc.
  2. Run kubectl -n ledger describe pod invoice-api and inspect image-pull events, tag and imagePullSecrets.
  3. Run kubectl -n ledger get networkpolicy -o yaml and compare podSelector, peers, ports and CNI policy support.
  4. Run kubectl -n ledger describe pvc invoice-data and kubectl get storageclass fast-block before recreating either resource.

Explanation

Correct Answer

A:

Run kubectl -n ledger describe service invoice-svc and kubectl -n ledger get endpointslices -l kubernetes.io/service-name=invoice-svc. This is the appropriate command-line action or first safe diagnostic. The technical reason is: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. Validate the result with: Confirm endpoint addresses appear for healthy selected Pods and test a request through invoice-svc. Execute changes only in an authorized disposable lab or after normal production change controls.

Incorrect Answers

B:

This alternative is a response to another technical cause: ImagePullBackOff indicates failed image retrieval; cluster DNS, credentials, registry availability and image names are distinct potential causes. The reported case instead depends on: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The action that directly addresses it is “Run kubectl -n ledger describe service invoice-svc and kubectl -n ledger get endpointslices -l kubernetes.io/service-name=invoice-svc”.

C:

The proposed action belongs to the mechanism: NetworkPolicy allows only explicitly selected paths once Pod ingress or egress isolation applies, and both directions may matter. Here the stated fault follows a different mechanism: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The corrective choice is “Run kubectl -n ledger describe service invoice-svc and kubectl -n ledger get endpointslices -l kubernetes.io/service-name=invoice-svc”.

D:

The offered action targets: A PVC binds only to compatible available storage or successful dynamic provisioning; absent provisioners, quotas or delayed binding can leave it Pending. The case facts point instead to: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. Implement “Run kubectl -n ledger describe service invoice-svc and kubectl -n ledger get endpointslices -l kubernetes.io/service-name=invoice-svc” to address that specific condition.

Question 1010

At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: Service invoice-svc in ledger exists but requests fail and its EndpointSlices list no ready backends. Work only within the stated target and verify before declaring success. Which Kubernetes behavior best explains the required change or diagnosis?

  1. Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution.
  2. A Service may exist without usable backends because labels or Pod readiness do not match expected routing.
  3. A PVC binds only to compatible available storage or successful dynamic provisioning; absent provisioners, quotas or delayed binding can leave it Pending.
  4. The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there.

Explanation

Correct Answer

B:

A Service may exist without usable backends because labels or Pod readiness do not match expected routing. This explains the stated condition. The corresponding action is: Run kubectl -n ledger describe service invoice-svc and kubectl -n ledger get endpointslices -l kubernetes.io/service-name=invoice-svc. The direct acceptance evidence is: Confirm endpoint addresses appear for healthy selected Pods and test a request through invoice-svc.

Incorrect Answers

A:

This principle describes a separate cause: Cluster DNS search domains and dnsPolicy control short-name resolution; resolving a public hostname is not proof of Kubernetes Service resolution. The reported condition is governed by: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The two mechanisms should not be conflated.

C:

The offered statement is true for this other mechanism: A PVC binds only to compatible available storage or successful dynamic provisioning; absent provisioners, quotas or delayed binding can leave it Pending. It does not explain the facts described here, which follow from: A Service may exist without usable backends because labels or Pod readiness do not match expected routing.

D:

This principle describes a separate cause: The Service routes to its configured backend target port; working DNS does not establish that the destination process is listening there. The reported condition is governed by: A Service may exist without usable backends because labels or Pod readiness do not match expected routing. The two mechanisms should not be conflated.