Linux Foundation KCNA Practice Test 117
Question 1160
A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation.
- Inspect kubectl config current-context, cluster server, user identity and namespace field.
- Unschedulable unhealthy nodes are excluded until they meet documented readiness checks, preserving healthy placement.
- Maintain accurate node labels, allocatable resources and topology information to support workload placement and capacity analysis.
- Confirm the active kubeconfig context and namespace before using kubectl on production clusters.
Explanation
Correct Answers
B:Inspect kubectl config current-context, cluster server, user identity and namespace field. This is the most discriminating evidence for the described failure or requirement. A context combines cluster, user and namespace settings; the current shell directory alone does not select a cluster. The corresponding implementation is: Confirm the active kubeconfig context and namespace before using kubectl on production clusters. This is the diagnostic evidence part of the paired answer. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
E:Confirm the active kubeconfig context and namespace before using kubectl on production clusters. This response implements the controlling Kubernetes or cloud native principle. A context combines cluster, user and namespace settings; the current shell directory alone does not select a cluster. Check its effect by: Inspect kubectl config current-context, cluster server, user identity and namespace field. This is the implementation part of the required paired answer. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
Incorrect Answers
A:Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation. This step belongs to kubectl apply and declarative updates rather than the complementary implementation and evidence pair. The intended approach is: Confirm the active kubeconfig context and namespace before using kubectl on production clusters. Validate with: Inspect kubectl config current-context, cluster server, user identity and namespace field. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
C:Unschedulable unhealthy nodes are excluded until they meet documented readiness checks, preserving healthy placement. This step belongs to Node readiness and scheduling exclusion rather than the complementary implementation and evidence pair. The intended approach is: Confirm the active kubeconfig context and namespace before using kubectl on production clusters. Validate with: Inspect kubectl config current-context, cluster server, user identity and namespace field. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
D:Maintain accurate node labels, allocatable resources and topology information to support workload placement and capacity analysis. This step belongs to Node labels and allocatable inventory rather than the complementary implementation and evidence pair. The intended approach is: Confirm the active kubeconfig context and namespace before using kubectl on production clusters. Validate with: Inspect kubectl config current-context, cluster server, user identity and namespace field. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
Question 1161
A new platform team chooses a service mesh to manage service-to-service traffic but believes it replaces Kubernetes scheduling and etcd. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit.
- Distinguish Kubernetes orchestration responsibilities from ecosystem projects that add service mesh, telemetry, delivery and storage capabilities.
- Check a project's license, contributor requirements and redistribution obligations before copying or shipping components.
- Define user-relevant service-level indicators and objectives for availability, error rate or latency with practical alert thresholds.
Explanation
Correct Answer
B:Distinguish Kubernetes orchestration responsibilities from ecosystem projects that add service mesh, telemetry, delivery and storage capabilities. This response implements the controlling Kubernetes or cloud native principle. The CNCF ecosystem contains complementary projects; Kubernetes itself is not a complete application observability or delivery platform. Check its effect by: Identify each project role, integration point, maintainer documentation and whether it belongs to Kubernetes core. Workload context: A new platform team chooses a service mesh to manage service-to-service traffic but believes it replaces Kubernetes scheduling and etcd.
Incorrect Answers
A:Evaluate CNCF sandbox, incubating and graduated projects in context of maintenance, community adoption and technical fit. This action addresses CNCF project maturity and adoption decisions instead of the controlling requirement. CNCF maturity levels indicate aspects of governance and adoption, not a guarantee of security or perfect product fit. For this scenario prefer: Distinguish Kubernetes orchestration responsibilities from ecosystem projects that add service mesh, telemetry, delivery and storage capabilities. Workload context: A new platform team chooses a service mesh to manage service-to-service traffic but believes it replaces Kubernetes scheduling and etcd.
C:Check a project's license, contributor requirements and redistribution obligations before copying or shipping components. This action addresses Open source licensing and contribution basics instead of the controlling requirement. Open source permits work under a specific license; public availability of source code alone does not erase conditions. For this scenario prefer: Distinguish Kubernetes orchestration responsibilities from ecosystem projects that add service mesh, telemetry, delivery and storage capabilities. Workload context: A new platform team chooses a service mesh to manage service-to-service traffic but believes it replaces Kubernetes scheduling and etcd.
D:Define user-relevant service-level indicators and objectives for availability, error rate or latency with practical alert thresholds. This action addresses SLIs SLOs and golden signals instead of the controlling requirement. An SLI is a measurement, an SLO is a target and an SLA is a contractual commitment; they should not be conflated. For this scenario prefer: Distinguish Kubernetes orchestration responsibilities from ecosystem projects that add service mesh, telemetry, delivery and storage capabilities. Workload context: A new platform team chooses a service mesh to manage service-to-service traffic but believes it replaces Kubernetes scheduling and etcd.
Question 1162
An engineer adds a ResourceQuota but forgets required request defaults and new Pods fail admission without resource fields. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Teams receive predictable defaults and cannot consume more namespace resources than policy permits.
- Administrative commands target the intended cluster and avoid accidental changes to another environment.
- Workloads read needed configuration while unauthorized users cannot retrieve credential material through the API.
- Cluster state can be recovered from a tested snapshot with quorum intact and application volumes handled separately.
Explanation
Correct Answer
A:Teams receive predictable defaults and cannot consume more namespace resources than policy permits. This is an observable service outcome, not just evidence that a configuration file was saved. ResourceQuota applies aggregate namespace limits while LimitRange sets per-object defaults and constraints; quotas do not make capacity. Workload context: An engineer adds a ResourceQuota but forgets required request defaults and new Pods fail admission without resource fields.
Incorrect Answers
B:Administrative commands target the intended cluster and avoid accidental changes to another environment. That result validates kubectl context and cluster selection rather than the requirement here. Verify instead: Teams receive predictable defaults and cannot consume more namespace resources than policy permits. Workload context: An engineer adds a ResourceQuota but forgets required request defaults and new Pods fail admission without resource fields.
C:Workloads read needed configuration while unauthorized users cannot retrieve credential material through the API. That result validates ConfigMap and Secret boundaries rather than the requirement here. Verify instead: Teams receive predictable defaults and cannot consume more namespace resources than policy permits. Workload context: An engineer adds a ResourceQuota but forgets required request defaults and new Pods fail admission without resource fields.
D:Cluster state can be recovered from a tested snapshot with quorum intact and application volumes handled separately. That result validates etcd consistency and cluster state rather than the requirement here. Verify instead: Teams receive predictable defaults and cannot consume more namespace resources than policy permits. Workload context: An engineer adds a ResourceQuota but forgets required request defaults and new Pods fail admission without resource fields.
Question 1163
Two workloads share the default service account and one unexpectedly gains permissions intended for the other. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API.
- Choose PV access modes based on how nodes and workloads must mount storage and verify CSI driver capability.
- Require approved registry artifacts and verifiable signatures or digests before admitting production workloads.
- Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic.
Explanation
Correct Answer
A:Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API. This response implements the controlling Kubernetes or cloud native principle. A service account is an API identity; granting Pods a namespace does not automatically limit an overbroad ClusterRoleBinding. Check its effect by: Inspect serviceAccountName, RoleBindings, projected tokens, audience and kubectl auth can-i permissions. Workload context: Two workloads share the default service account and one unexpectedly gains permissions intended for the other.
Incorrect Answers
B:Choose PV access modes based on how nodes and workloads must mount storage and verify CSI driver capability. This action addresses ReadWriteOnce and ReadWriteMany semantics instead of the controlling requirement. ReadWriteOnce normally limits read-write mounting to one node, not necessarily exactly one Pod; driver behavior matters. For this scenario prefer: Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API. Workload context: Two workloads share the default service account and one unexpectedly gains permissions intended for the other.
C:Require approved registry artifacts and verifiable signatures or digests before admitting production workloads. This action addresses Image provenance and admission policies instead of the controlling requirement. An image scanner alone does not prove publisher identity; signed provenance and admission enforcement address different guarantees. For this scenario prefer: Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API. Workload context: Two workloads share the default service account and one unexpectedly gains permissions intended for the other.
D:Diagnose memory limit terminations using lastState and observed working-set growth rather than assuming every restart is application logic. This action addresses Container OOMKilled and resource pressure instead of the controlling requirement. Container memory exceeding its cgroup limit can trigger OOMKilled even when node aggregate memory seems available. For this scenario prefer: Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API. Workload context: Two workloads share the default service account and one unexpectedly gains permissions intended for the other.
Question 1164
A test batch job stores intermediate scratch files in emptyDir and appropriately discards them when it completes. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Configure a supported StorageClass and CSI provisioner to dynamically create backing volumes for PVCs.
- Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements.
- Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events.
- Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement.
- External HTTP clients reach the correct application by hostname and route rules while unrelated paths stay rejected.
Explanation
Correct Answers
B:Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements. This is the most discriminating evidence for the described failure or requirement. emptyDir exists for the lifetime of a Pod on a node and is lost when the Pod is removed. The corresponding implementation is: Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. This is the diagnostic evidence part of the paired answer. Workload context: A test batch job stores intermediate scratch files in emptyDir and appropriately discards them when it completes.
D:Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. This response implements the controlling Kubernetes or cloud native principle. emptyDir exists for the lifetime of a Pod on a node and is lost when the Pod is removed. Check its effect by: Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements. This is the implementation part of the required paired answer. Workload context: A test batch job stores intermediate scratch files in emptyDir and appropriately discards them when it completes.
Incorrect Answers
A:Configure a supported StorageClass and CSI provisioner to dynamically create backing volumes for PVCs. This step belongs to StorageClass dynamic provisioning rather than the complementary implementation and evidence pair. The intended approach is: Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. Validate with: Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements. Workload context: A test batch job stores intermediate scratch files in emptyDir and appropriately discards them when it completes.
C:Review storageClass volumeBindingMode, PVC condition, Pod node constraints and CSI topology events. This step belongs to WaitForFirstConsumer volume binding rather than the complementary implementation and evidence pair. The intended approach is: Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. Validate with: Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements. Workload context: A test batch job stores intermediate scratch files in emptyDir and appropriately discards them when it completes.
E:External HTTP clients reach the correct application by hostname and route rules while unrelated paths stay rejected. This step belongs to Ingress and Gateway API routing rather than the complementary implementation and evidence pair. The intended approach is: Use emptyDir for temporary Pod-scoped data and PVC-backed volumes when data must survive Pod replacement. Validate with: Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements. Workload context: A test batch job stores intermediate scratch files in emptyDir and appropriately discards them when it completes.
Question 1165
An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Use a DaemonSet to run a supported node agent across eligible nodes, respecting taints and selectors.
- Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads.
- Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod.
- Define podAffinity for desired co-location and podAntiAffinity to separate replicas across appropriate topology domains.
Explanation
Correct Answer
B:Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. This response implements the controlling Kubernetes or cloud native principle. Priority influences scheduling and potential preemption but does not bypass hard affinity or lack of suitable hardware. Check its effect by: Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.
Incorrect Answers
A:Use a DaemonSet to run a supported node agent across eligible nodes, respecting taints and selectors. This action addresses DaemonSet node-local workloads instead of the controlling requirement. A DaemonSet creates node-level replicas automatically rather than a fixed overall replica count like a Deployment. For this scenario prefer: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.
C:Use supported sidecar containers for tightly coupled helper functions and verify lifecycle coordination within the Pod. This action addresses Sidecar containers and shared Pod lifecycle instead of the controlling requirement. Sidecars share a Pod network context; careless start or termination ordering can block a workload. For this scenario prefer: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.
D:Define podAffinity for desired co-location and podAntiAffinity to separate replicas across appropriate topology domains. This action addresses Pod affinity anti-affinity instead of the controlling requirement. Pod affinity references other Pods by labels, not node resource attributes, and required rules can make replicas Pending. For this scenario prefer: Assign PriorityClasses carefully and understand when the scheduler may preempt lower-priority Pods to place urgent workloads. Workload context: An app with preemptionPolicy Never is given a high numeric priority and operators mistakenly expect it to evict running workloads.
Question 1166
A backend loads a missing environment variable, exits with code 1 and enters CrashLoopBackOff after multiple restarts. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- The container remains running or completes as intended without repeated backoff cycles after a targeted correction.
- Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state.
- The Service has healthy matching backends and forwards to the application process's actual port.
- The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts.
Explanation
Correct Answer
A:The container remains running or completes as intended without repeated backoff cycles after a targeted correction. This is an observable service outcome, not just evidence that a configuration file was saved. CrashLoopBackOff indicates repeated container exits and restart delays, not a scheduler placement failure. Workload context: A backend loads a missing environment variable, exits with code 1 and enters CrashLoopBackOff after multiple restarts.
Incorrect Answers
B:Valid identities perform only allowed actions and rejected resource specifications do not reach persistent state. That result validates Authentication authorization and admission order rather than the requirement here. Verify instead: The container remains running or completes as intended without repeated backoff cycles after a targeted correction. Workload context: A backend loads a missing environment variable, exits with code 1 and enters CrashLoopBackOff after multiple restarts.
C:The Service has healthy matching backends and forwards to the application process's actual port. That result validates Service selector and port mismatch diagnostics rather than the requirement here. Verify instead: The container remains running or completes as intended without repeated backoff cycles after a targeted correction. Workload context: A backend loads a missing environment variable, exits with code 1 and enters CrashLoopBackOff after multiple restarts.
D:The application operates within measured memory budgets or receives justified capacity changes without repeated OOM restarts. That result validates Container OOMKilled and resource pressure rather than the requirement here. Verify instead: The container remains running or completes as intended without repeated backoff cycles after a targeted correction. Workload context: A backend loads a missing environment variable, exits with code 1 and enters CrashLoopBackOff after multiple restarts.
Question 1167
A contributor notices an embargoed fix referenced in a pull request and needs to avoid accidental disclosure before release coordination. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples.
- Inspect LICENSE files, contribution guidelines, DCO or CLA requirements and third-party dependency notices.
- Review security policy, affected version, maintainer contact, severity evidence and coordinated disclosure plan.
- A single downstream failure degrades gracefully without causing an uncontrolled cascade across independent services.
- File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers.
Explanation
Correct Answers
A:Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples. This response implements the controlling Kubernetes or cloud native principle. Public bug trackers are not always the right venue for undisclosed security issues; project security policies define channels. Check its effect by: Review security policy, affected version, maintainer contact, severity evidence and coordinated disclosure plan. This is the implementation part of the required paired answer. Workload context: A contributor notices an embargoed fix referenced in a pull request and needs to avoid accidental disclosure before release coordination.
C:Review security policy, affected version, maintainer contact, severity evidence and coordinated disclosure plan. This is the most discriminating evidence for the described failure or requirement. Public bug trackers are not always the right venue for undisclosed security issues; project security policies define channels. The corresponding implementation is: Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples. This is the diagnostic evidence part of the paired answer. Workload context: A contributor notices an embargoed fix referenced in a pull request and needs to avoid accidental disclosure before release coordination.
Incorrect Answers
B:Inspect LICENSE files, contribution guidelines, DCO or CLA requirements and third-party dependency notices. This step belongs to Open source licensing and contribution basics rather than the complementary implementation and evidence pair. The intended approach is: Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples. Validate with: Review security policy, affected version, maintainer contact, severity evidence and coordinated disclosure plan. Workload context: A contributor notices an embargoed fix referenced in a pull request and needs to avoid accidental disclosure before release coordination.
D:A single downstream failure degrades gracefully without causing an uncontrolled cascade across independent services. This step belongs to Microservices contracts and failure isolation rather than the complementary implementation and evidence pair. The intended approach is: Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples. Validate with: Review security policy, affected version, maintainer contact, severity evidence and coordinated disclosure plan. Workload context: A contributor notices an embargoed fix referenced in a pull request and needs to avoid accidental disclosure before release coordination.
E:File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers. This step belongs to Upstream issue reporting and review collaboration rather than the complementary implementation and evidence pair. The intended approach is: Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples. Validate with: Review security policy, affected version, maintainer contact, severity evidence and coordinated disclosure plan. Workload context: A contributor notices an embargoed fix referenced in a pull request and needs to avoid accidental disclosure before release coordination.
Question 1168
A Deployment appears Available but one pod has recurring restarts and administrators need to correlate describe events with app logs. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation.
- Inspect resource status, conditions, events, generation, owner references and logs from the relevant container.
- Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection.
- Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior.
Explanation
Correct Answer
B:Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. This is the most discriminating evidence for the described failure or requirement. kubectl get summarizes objects; describe reveals events and details; logs reveals container stdout/stderr, not complete API diagnostics. The corresponding implementation is: Use kubectl get, describe and logs as complementary views of object state, events and container output before changing resources. Workload context: A Deployment appears Available but one pod has recurring restarts and administrators need to correlate describe events with app logs.
Incorrect Answers
A:Inspect local-versus-server manifest diff, field ownership, admission rejection and resulting resource generation. These observations are more relevant to kubectl apply and declarative updates, not this case. The distinguishing check is: Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. Workload context: A Deployment appears Available but one pod has recurring restarts and administrators need to correlate describe events with app logs.
C:Check Pod priority, preemptionPolicy, scheduling events, available alternatives and victim selection. These observations are more relevant to PriorityClass and preemption, not this case. The distinguishing check is: Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. Workload context: A Deployment appears Available but one pod has recurring restarts and administrators need to correlate describe events with app logs.
D:Inspect ConfigMap/Secret references, RBAC, API audit records, encryption-at-rest settings and mount or environment behavior. These observations are more relevant to ConfigMap and Secret boundaries, not this case. The distinguishing check is: Inspect resource status, conditions, events, generation, owner references and logs from the relevant container. Workload context: A Deployment appears Available but one pod has recurring restarts and administrators need to correlate describe events with app logs.
Question 1169
A rollout stalls with old and new ReplicaSets and developers delete the Deployment instead of checking readiness and progress. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes.
- Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events.
- Compare Deployment spec, ReplicaSet ownership, rollout history and updated/available replica conditions.
- Inspect container membership, localhost connectivity, Pod IP, restart policies and inter-container volumes.
Explanation
Correct Answer
C:Compare Deployment spec, ReplicaSet ownership, rollout history and updated/available replica conditions. This is the most discriminating evidence for the described failure or requirement. A Deployment manages ReplicaSets and rolling changes; direct edits to controlled Pods are transient. The corresponding implementation is: Use a Deployment to manage stateless replicas, controlled updates and ReplicaSets rather than hand-editing Pod instances. Workload context: A rollout stalls with old and new ReplicaSets and developers delete the Deployment instead of checking readiness and progress.
Incorrect Answers
A:Review kubelet service logs, node conditions, CRI connectivity and Pod events for assigned nodes. These observations are more relevant to Kubelet node agent responsibilities, not this case. The distinguishing check is: Compare Deployment spec, ReplicaSet ownership, rollout history and updated/available replica conditions. Workload context: A rollout stalls with old and new ReplicaSets and developers delete the Deployment instead of checking readiness and progress.
B:Check node unschedulable state, PodDisruptionBudgets, DaemonSets, local storage and eviction events. These observations are more relevant to Node cordon drain maintenance, not this case. The distinguishing check is: Compare Deployment spec, ReplicaSet ownership, rollout history and updated/available replica conditions. Workload context: A rollout stalls with old and new ReplicaSets and developers delete the Deployment instead of checking readiness and progress.
D:Inspect container membership, localhost connectivity, Pod IP, restart policies and inter-container volumes. These observations are more relevant to Pod shared network namespace and lifecycle, not this case. The distinguishing check is: Compare Deployment spec, ReplicaSet ownership, rollout history and updated/available replica conditions. Workload context: A rollout stalls with old and new ReplicaSets and developers delete the Deployment instead of checking readiness and progress.
Question 1170
A Deployment references a removed private-registry tag and the kubelet repeatedly reports manifest unknown. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope.
- Use Pod events and scheduler reasons to diagnose Pending workloads before changing application images or reading nonexistent logs.
- Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references.
- Temporary data is disposable while durable application records remain accessible across Pod recreation.
- Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets.
Explanation
Correct Answers
A:Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. This response implements the controlling Kubernetes or cloud native principle. ImagePullBackOff is a retrieval or authorization problem; changing app readiness probes cannot fix a missing image. Check its effect by: Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. This is the implementation part of the required paired answer. Workload context: A Deployment references a removed private-registry tag and the kubelet repeatedly reports manifest unknown.
C:Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. This is the most discriminating evidence for the described failure or requirement. ImagePullBackOff is a retrieval or authorization problem; changing app readiness probes cannot fix a missing image. The corresponding implementation is: Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. This is the diagnostic evidence part of the paired answer. Workload context: A Deployment references a removed private-registry tag and the kubelet repeatedly reports manifest unknown.
Incorrect Answers
B:Use Pod events and scheduler reasons to diagnose Pending workloads before changing application images or reading nonexistent logs. This step belongs to Pending pod FailedScheduling events rather than the complementary implementation and evidence pair. The intended approach is: Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. Validate with: Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. Workload context: A Deployment references a removed private-registry tag and the kubelet repeatedly reports manifest unknown.
D:Temporary data is disposable while durable application records remain accessible across Pod recreation. This step belongs to Ephemeral emptyDir versus persistent volumes rather than the complementary implementation and evidence pair. The intended approach is: Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. Validate with: Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. Workload context: A Deployment references a removed private-registry tag and the kubelet repeatedly reports manifest unknown.
E:Inspect Service metadata, selected Pod labels, EndpointSlice readiness, containerPort and actual listening sockets. This step belongs to Service selector and port mismatch diagnostics rather than the complementary implementation and evidence pair. The intended approach is: Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. Validate with: Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. Workload context: A Deployment references a removed private-registry tag and the kubelet repeatedly reports manifest unknown.