Linux Foundation KCNA Practice Test 115
Question 1140
A multi-tenant hosting provider runs untrusted code and assumes a container namespace is equivalent to a separate hypervisor VM. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed.
- Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements.
- Check Pod nodeSelector keys and values against node labels and scheduling events.
- Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk.
- Control-plane and node upgrades complete within supported skew with workload compatibility checks passing.
Explanation
Correct Answers
A:Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed. This response implements the controlling Kubernetes or cloud native principle. Ordinary containers share the host kernel, whereas a VM normally runs its own guest kernel. Check its effect by: Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements. This is the implementation part of the required paired answer. Workload context: A multi-tenant hosting provider runs untrusted code and assumes a container namespace is equivalent to a separate hypervisor VM.
B:Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements. This is the most discriminating evidence for the described failure or requirement. Ordinary containers share the host kernel, whereas a VM normally runs its own guest kernel. The corresponding implementation is: Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed. This is the diagnostic evidence part of the paired answer. Workload context: A multi-tenant hosting provider runs untrusted code and assumes a container namespace is equivalent to a separate hypervisor VM.
Incorrect Answers
C:Check Pod nodeSelector keys and values against node labels and scheduling events. This step belongs to nodeSelector equality placement rather than the complementary implementation and evidence pair. The intended approach is: Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed. Validate with: Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements. Workload context: A multi-tenant hosting provider runs untrusted code and assumes a container namespace is equivalent to a separate hypervisor VM.
D:Evaluate image SBOMs, signed provenance and vulnerability reports before production promotion, separating detected packages from reachable risk. This step belongs to Image scanning and software bills of materials rather than the complementary implementation and evidence pair. The intended approach is: Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed. Validate with: Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements. Workload context: A multi-tenant hosting provider runs untrusted code and assumes a container namespace is equivalent to a separate hypervisor VM.
E:Control-plane and node upgrades complete within supported skew with workload compatibility checks passing. This step belongs to Kubernetes upgrades and version skew rather than the complementary implementation and evidence pair. The intended approach is: Choose containers for isolated application processes sharing a host kernel and use VMs when a stronger separate-kernel boundary is needed. Validate with: Compare host kernel sharing, namespace isolation, hypervisor boundaries and workload trust requirements. Workload context: A multi-tenant hosting provider runs untrusted code and assumes a container namespace is equivalent to a separate hypervisor VM.
Question 1141
A Service declares port 80 and targetPort 8080 but the app listens on 9090, producing connection failures despite valid DNS. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Each stateful replica retains its expected identity and corresponding durable storage through controlled replacement.
- Only approved Pod flows pass and disallowed lateral or outbound connections fail reproducibly.
- In-cluster clients reach internal services and exposed node ports are limited to approved traffic.
- External clients reach only the intended healthy Service backends and the allocated endpoint matches network policy.
Explanation
Correct Answer
C:In-cluster clients reach internal services and exposed node ports are limited to approved traffic. This is an observable service outcome, not just evidence that a configuration file was saved. ClusterIP does not automatically provide an external endpoint; NodePort opens a port on eligible nodes with network policy constraints. Workload context: A Service declares port 80 and targetPort 8080 but the app listens on 9090, producing connection failures despite valid DNS.
Incorrect Answers
A:Each stateful replica retains its expected identity and corresponding durable storage through controlled replacement. That result validates StatefulSet identity and volume templates rather than the requirement here. Verify instead: In-cluster clients reach internal services and exposed node ports are limited to approved traffic. Workload context: A Service declares port 80 and targetPort 8080 but the app listens on 9090, producing connection failures despite valid DNS.
B:Only approved Pod flows pass and disallowed lateral or outbound connections fail reproducibly. That result validates NetworkPolicy ingress egress isolation rather than the requirement here. Verify instead: In-cluster clients reach internal services and exposed node ports are limited to approved traffic. Workload context: A Service declares port 80 and targetPort 8080 but the app listens on 9090, producing connection failures despite valid DNS.
D:External clients reach only the intended healthy Service backends and the allocated endpoint matches network policy. That result validates LoadBalancer Service provisioning rather than the requirement here. Verify instead: In-cluster clients reach internal services and exposed node ports are limited to approved traffic. Workload context: A Service declares port 80 and targetPort 8080 but the app listens on 9090, producing connection failures despite valid DNS.
Question 1142
A payment team wants 5% of transactions on a candidate build but simply replaces every Pod in a standard rolling update. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal.
- Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version.
- Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions.
- Inspect traffic split, Service selectors or routing weights, version identity and representative user metrics.
- Record artifact provenance, dependency inventories and signed attestations so deployment policy can trace a build to authorized source.
Explanation
Correct Answers
B:Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version. This response implements the controlling Kubernetes or cloud native principle. Blue-green switches environments, whereas canary ramps exposure; a basic Deployment alone may not provide precise traffic percentages. Check its effect by: Inspect traffic split, Service selectors or routing weights, version identity and representative user metrics. This is the implementation part of the required paired answer. Workload context: A payment team wants 5% of transactions on a candidate build but simply replaces every Pod in a standard rolling update.
D:Inspect traffic split, Service selectors or routing weights, version identity and representative user metrics. This is the most discriminating evidence for the described failure or requirement. Blue-green switches environments, whereas canary ramps exposure; a basic Deployment alone may not provide precise traffic percentages. The corresponding implementation is: Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version. This is the diagnostic evidence part of the paired answer. Workload context: A payment team wants 5% of transactions on a candidate build but simply replaces every Pod in a standard rolling update.
Incorrect Answers
A:An incident timeline pinpoints the failing dependency rather than relying on one generic readiness or CPU signal. This step belongs to Correlating metrics logs and traces rather than the complementary implementation and evidence pair. The intended approach is: Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version. Validate with: Inspect traffic split, Service selectors or routing weights, version identity and representative user metrics. Workload context: A payment team wants 5% of transactions on a candidate build but simply replaces every Pod in a standard rolling update.
C:Inspect maxSurge, maxUnavailable, rollout conditions, ReplicaSets, readiness and prior image revisions. This step belongs to Deployment rolling updates and rollback rather than the complementary implementation and evidence pair. The intended approach is: Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version. Validate with: Inspect traffic split, Service selectors or routing weights, version identity and representative user metrics. Workload context: A payment team wants 5% of transactions on a candidate build but simply replaces every Pod in a standard rolling update.
E:Record artifact provenance, dependency inventories and signed attestations so deployment policy can trace a build to authorized source. This step belongs to Software supply chain attestations rather than the complementary implementation and evidence pair. The intended approach is: Choose blue-green for switching between full environments and canary for gradually exposing a small percentage of users to a new version. Validate with: Inspect traffic split, Service selectors or routing weights, version identity and representative user metrics. Workload context: A payment team wants 5% of transactions on a candidate build but simply replaces every Pod in a standard rolling update.
Question 1143
A team backs up container logs and assumes it can recreate lost deployments after all etcd members fail simultaneously. 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 etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure.
- Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness.
- Check API endpoint connectivity, request audit records, resource authorization and response status.
Explanation
Correct Answer
B:Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. This is the most discriminating evidence for the described failure or requirement. etcd is a consistent key-value store for API state; it is not where persistent application volume data lives. The corresponding implementation is: Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. Workload context: A team backs up container logs and assumes it can recreate lost deployments after all etcd members fail simultaneously.
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 etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. Workload context: A team backs up container logs and assumes it can recreate lost deployments after all etcd members fail simultaneously.
C:Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness. These observations are more relevant to Service stable virtual endpoint, not this case. The distinguishing check is: Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. Workload context: A team backs up container logs and assumes it can recreate lost deployments after all etcd members fail simultaneously.
D:Check API endpoint connectivity, request audit records, resource authorization and response status. These observations are more relevant to Kubernetes API server and API requests, not this case. The distinguishing check is: Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. Workload context: A team backs up container logs and assumes it can recreate lost deployments after all etcd members fail simultaneously.
Question 1144
An API listens on port 9000 but its Service targetPort remains 8080 from a previous release. 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.
- The Service has healthy matching backends and forwards to the application process's actual port.
- New claims provision compatible storage without requiring manual static PV creation for each request.
- Healthy but initializing Pods avoid traffic and genuinely stuck workloads recover without unnecessary restart loops.
Explanation
Correct Answer
B:The Service has healthy matching backends and forwards to the application process's actual port. This is an observable service outcome, not just evidence that a configuration file was saved. A Service can resolve in DNS yet have zero endpoints or forward to an incorrect port. Workload context: An API listens on port 9000 but its Service targetPort remains 8080 from a previous release.
Incorrect Answers
A:The container remains running or completes as intended without repeated backoff cycles after a targeted correction. That result validates CrashLoopBackOff and previous logs rather than the requirement here. Verify instead: The Service has healthy matching backends and forwards to the application process's actual port. Workload context: An API listens on port 9000 but its Service targetPort remains 8080 from a previous release.
C:New claims provision compatible storage without requiring manual static PV creation for each request. That result validates StorageClass dynamic provisioning rather than the requirement here. Verify instead: The Service has healthy matching backends and forwards to the application process's actual port. Workload context: An API listens on port 9000 but its Service targetPort remains 8080 from a previous release.
D:Healthy but initializing Pods avoid traffic and genuinely stuck workloads recover without unnecessary restart loops. That result validates Readiness liveness and startup probe behavior rather than the requirement here. Verify instead: The Service has healthy matching backends and forwards to the application process's actual port. Workload context: An API listens on port 9000 but its Service targetPort remains 8080 from a previous release.
Question 1145
A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- Operators identify the failing object and use evidence before editing controllers or escalating access.
- The Pod schedules only onto eligible labeled nodes while other nodes remain untouched.
- Administrative commands target the intended cluster and avoid accidental changes to another environment.
- Workloads relocate where permitted and the maintained node returns to service without unexpected data loss.
Explanation
Correct Answer
C:Administrative commands target the intended cluster and avoid accidental changes to another environment. This is an observable service outcome, not just evidence that a configuration file was saved. A context combines cluster, user and namespace settings; the current shell directory alone does not select a cluster. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
Incorrect Answers
A:Operators identify the failing object and use evidence before editing controllers or escalating access. That result validates kubectl inspect and describe diagnostics rather than the requirement here. Verify instead: Administrative commands target the intended cluster and avoid accidental changes to another environment. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
B:The Pod schedules only onto eligible labeled nodes while other nodes remain untouched. That result validates nodeSelector equality placement rather than the requirement here. Verify instead: Administrative commands target the intended cluster and avoid accidental changes to another environment. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
D:Workloads relocate where permitted and the maintained node returns to service without unexpected data loss. That result validates Node cordon drain maintenance rather than the requirement here. Verify instead: Administrative commands target the intended cluster and avoid accidental changes to another environment. Workload context: A support account authenticates to a cluster yet sees empty resources because its current context points at another namespace.
Question 1146
A developer puts an unsupported spec field in a ConfigMap and assumes YAML formatting guarantees correct Kubernetes behavior. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions.
- Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts.
- Control-plane and node upgrades complete within supported skew with workload compatibility checks passing.
- Allow Kubernetes controllers to reconcile declared desired object state instead of manually replacing each Pod after failure.
- Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API.
Explanation
Correct Answers
B:Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. This is the most discriminating evidence for the described failure or requirement. Kubernetes API versions are resource-specific and evolve; a valid YAML file does not guarantee the API accepts its kind or schema. The corresponding implementation is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. This is the diagnostic evidence part of the paired answer. Workload context: A developer puts an unsupported spec field in a ConfigMap and assumes YAML formatting guarantees correct Kubernetes behavior.
E:Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. This response implements the controlling Kubernetes or cloud native principle. Kubernetes API versions are resource-specific and evolve; a valid YAML file does not guarantee the API accepts its kind or schema. Check its effect by: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. This is the implementation part of the required paired answer. Workload context: A developer puts an unsupported spec field in a ConfigMap and assumes YAML formatting guarantees correct Kubernetes behavior.
Incorrect Answers
A:Review Pod scheduling reasons, node group templates, provisioning limits and autoscaler scale-up decisions. This step belongs to Scheduler versus autoscaler responsibility rather than the complementary implementation and evidence pair. The intended approach is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. Validate with: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. Workload context: A developer puts an unsupported spec field in a ConfigMap and assumes YAML formatting guarantees correct Kubernetes behavior.
C:Control-plane and node upgrades complete within supported skew with workload compatibility checks passing. This step belongs to Kubernetes upgrades and version skew rather than the complementary implementation and evidence pair. The intended approach is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. Validate with: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. Workload context: A developer puts an unsupported spec field in a ConfigMap and assumes YAML formatting guarantees correct Kubernetes behavior.
D:Allow Kubernetes controllers to reconcile declared desired object state instead of manually replacing each Pod after failure. This step belongs to Controller manager reconciliation loops rather than the complementary implementation and evidence pair. The intended approach is: Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. Validate with: Validate manifest API group/version, field schema, kind, namespace, admission responses and managed-field conflicts. Workload context: A developer puts an unsupported spec field in a ConfigMap and assumes YAML formatting guarantees correct Kubernetes behavior.
Question 1147
A new Kubernetes node receives workloads but has no metrics agent because the DaemonSet's node selector excludes it. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect kubectl config current-context, cluster server, user identity and namespace field.
- Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval.
- Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement.
- Inspect quota hard/used counters, LimitRange defaults and API admission rejection messages.
Explanation
Correct Answer
C:Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement. This is the most discriminating evidence for the described failure or requirement. A DaemonSet creates node-level replicas automatically rather than a fixed overall replica count like a Deployment. The corresponding implementation is: Use a DaemonSet to run a supported node agent across eligible nodes, respecting taints and selectors. Workload context: A new Kubernetes node receives workloads but has no metrics agent because the DaemonSet's node selector excludes it.
Incorrect Answers
A:Inspect kubectl config current-context, cluster server, user identity and namespace field. These observations are more relevant to kubectl context and cluster selection, not this case. The distinguishing check is: Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement. Workload context: A new Kubernetes node receives workloads but has no metrics agent because the DaemonSet's node selector excludes it.
B:Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval. These observations are more relevant to Immutable container images and digests, not this case. The distinguishing check is: Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement. Workload context: A new Kubernetes node receives workloads but has no metrics agent because the DaemonSet's node selector excludes it.
D:Inspect quota hard/used counters, LimitRange defaults and API admission rejection messages. These observations are more relevant to ResourceQuota and LimitRange policies, not this case. The distinguishing check is: Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement. Workload context: A new Kubernetes node receives workloads but has no metrics agent because the DaemonSet's node selector excludes it.
Question 1148
A drain is blocked when a PDB requires two healthy replicas but only one is currently Ready. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect allowedDisruptions, healthy replicas, minAvailable/maxUnavailable and drain eviction results.
- Inspect FailedScheduling events, Pod requests, node allocatable and scheduler filter outcomes.
- Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval.
- Compare desired and observed replicas, controller events, ReplicaSet ownership and controller-manager health.
Explanation
Correct Answer
A:Inspect allowedDisruptions, healthy replicas, minAvailable/maxUnavailable and drain eviction results. This is the most discriminating evidence for the described failure or requirement. A PodDisruptionBudget governs voluntary eviction; it does not guarantee protection against hardware failure or create new replicas. The corresponding implementation is: Configure PodDisruptionBudgets for voluntary disruptions while distinguishing eviction safety from normal scheduling decisions. Workload context: A drain is blocked when a PDB requires two healthy replicas but only one is currently Ready.
Incorrect Answers
B:Inspect FailedScheduling events, Pod requests, node allocatable and scheduler filter outcomes. These observations are more relevant to Pending Pods and resource-fit checks, not this case. The distinguishing check is: Inspect allowedDisruptions, healthy replicas, minAvailable/maxUnavailable and drain eviction results. Workload context: A drain is blocked when a PDB requires two healthy replicas but only one is currently Ready.
C:Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval. These observations are more relevant to Immutable container images and digests, not this case. The distinguishing check is: Inspect allowedDisruptions, healthy replicas, minAvailable/maxUnavailable and drain eviction results. Workload context: A drain is blocked when a PDB requires two healthy replicas but only one is currently Ready.
D:Compare desired and observed replicas, controller events, ReplicaSet ownership and controller-manager health. These observations are more relevant to Controller manager reconciliation loops, not this case. The distinguishing check is: Inspect allowedDisruptions, healthy replicas, minAvailable/maxUnavailable and drain eviction results. Workload context: A drain is blocked when a PDB requires two healthy replicas but only one is currently Ready.
Question 1149
An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices.
- Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status.
- Plan component upgrades using the currently supported version-skew policy and validated addon compatibility rather than upgrading arbitrarily.
- Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image.
Explanation
Correct Answer
D:Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image. This response implements the controlling Kubernetes or cloud native principle. A Pending unscheduled Pod has no running container logs; scheduler events reveal placement failures. Check its effect by: Inspect FailedScheduling events, Pod requests, node allocatable and scheduler filter outcomes. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
Incorrect Answers
A:Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices. This action addresses Node affinity required vs preferred instead of the controlling requirement. Preferred affinity can be ignored to schedule a Pod; required affinity must be satisfied at scheduling time. For this scenario prefer: Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
B:Let kubelet on each node reconcile assigned Pod specifications with the container runtime and report node and Pod status. This action addresses Kubelet node agent responsibilities instead of the controlling requirement. kubelet manages Pod execution on a node; it does not serve the central Kubernetes API or select new nodes. For this scenario prefer: Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
C:Plan component upgrades using the currently supported version-skew policy and validated addon compatibility rather than upgrading arbitrarily. This action addresses Kubernetes upgrades and version skew instead of the controlling requirement. API compatibility and supported component skew determine upgrade sequencing; not every Kubernetes version jump is supported. For this scenario prefer: Match Pod CPU/memory requests to node allocatable resources and scheduling constraints before blaming a container image. Workload context: An engineer reduces a Pod CPU limit but leaves its excessive request unchanged and sees no improvement in scheduling.
Question 1150
A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors.
- Review namespace pod-security labels, admission warnings, violations and workload securityContext.
- Inspect namespace labels, Pod selectors, network policy rules, RBAC permissions and effective connectivity tests.
- Review container lastState, exit code, restart count, previous logs and application configuration.
Explanation
Correct Answer
B:Review namespace pod-security labels, admission warnings, violations and workload securityContext. This is the most discriminating evidence for the described failure or requirement. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. The corresponding implementation is: Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.
Incorrect Answers
A:Inspect securityContext, runAsUser, allowPrivilegeEscalation, capabilities, seccompProfile and startup errors. These observations are more relevant to Linux securityContext and seccomp basics, not this case. The distinguishing check is: Review namespace pod-security labels, admission warnings, violations and workload securityContext. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.
C:Inspect namespace labels, Pod selectors, network policy rules, RBAC permissions and effective connectivity tests. These observations are more relevant to Namespace segmentation with NetworkPolicies, not this case. The distinguishing check is: Review namespace pod-security labels, admission warnings, violations and workload securityContext. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.
D:Review container lastState, exit code, restart count, previous logs and application configuration. These observations are more relevant to CrashLoopBackOff and previous logs, not this case. The distinguishing check is: Review namespace pod-security labels, admission warnings, violations and workload securityContext. Workload context: A cluster upgrade changes workload securityContext defaults and the team ignores admission warning logs during staging.