Linux Foundation KCNA Practice Test 30
Question 290
A cloud load balancer receives an address but internet requests fail because the provider firewall denies the listener port. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Use supported Ingress or Gateway API resources together with a running controller to route HTTP traffic by host and path.
- Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint.
- Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.
- Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope.
Explanation
Correct Answer
B:Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. This response implements the controlling Kubernetes or cloud native principle. A LoadBalancer Service depends on an implementation or provider controller; creating it does not guarantee an external address. Check its effect by: Inspect external IP status, controller events, security groups, health checks and upstream target availability. Workload context: A cloud load balancer receives an address but internet requests fail because the provider firewall denies the listener port.
Incorrect Answers
A:Use supported Ingress or Gateway API resources together with a running controller to route HTTP traffic by host and path. This action addresses Ingress and Gateway API routing instead of the controlling requirement. Ingress and Gateway API resources describe routing intent; a controller implements data-plane forwarding. For this scenario prefer: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Workload context: A cloud load balancer receives an address but internet requests fail because the provider firewall denies the listener port.
C:Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. This action addresses Pod Security Admission and namespaces instead of the controlling requirement. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. For this scenario prefer: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Workload context: A cloud load balancer receives an address but internet requests fail because the provider firewall denies the listener port.
D:Diagnose image-pull problems by validating image reference, registry availability, permissions and Secret scope. This action addresses ImagePullBackOff registry and auth errors instead of the controlling requirement. ImagePullBackOff is a retrieval or authorization problem; changing app readiness probes cannot fix a missing image. For this scenario prefer: Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. Workload context: A cloud load balancer receives an address but internet requests fail because the provider firewall denies the listener port.
Question 291
A platform designer assumes CNCF staff directly merge every pull request without maintainer review from the relevant project community. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers.
- Check a project's license, contributor requirements and redistribution obligations before copying or shipping components.
- Follow Kubernetes Special Interest Group ownership and enhancement processes when proposing changes to core functionality.
- Distinguish Kubernetes orchestration responsibilities from ecosystem projects that add service mesh, telemetry, delivery and storage capabilities.
Explanation
Correct Answer
C:Follow Kubernetes Special Interest Group ownership and enhancement processes when proposing changes to core functionality. This response implements the controlling Kubernetes or cloud native principle. Kubernetes development is governed through open community processes rather than a single cloud vendor's private roadmap. Check its effect by: Review SIG charter, KEP status, community meeting records and maintainer review responsibilities. Workload context: A platform designer assumes CNCF staff directly merge every pull request without maintainer review from the relevant project community.
Incorrect Answers
A:File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers. This action addresses Upstream issue reporting and review collaboration instead of the controlling requirement. High-quality issue reports help distributed open-source teams collaborate, and a public issue is not a safe place to paste secrets. For this scenario prefer: Follow Kubernetes Special Interest Group ownership and enhancement processes when proposing changes to core functionality. Workload context: A platform designer assumes CNCF staff directly merge every pull request without maintainer review from the relevant project community.
B: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: Follow Kubernetes Special Interest Group ownership and enhancement processes when proposing changes to core functionality. Workload context: A platform designer assumes CNCF staff directly merge every pull request without maintainer review from the relevant project community.
D:Distinguish Kubernetes orchestration responsibilities from ecosystem projects that add service mesh, telemetry, delivery and storage capabilities. This action addresses CNCF ecosystem and Kubernetes roles instead of the controlling requirement. The CNCF ecosystem contains complementary projects; Kubernetes itself is not a complete application observability or delivery platform. For this scenario prefer: Follow Kubernetes Special Interest Group ownership and enhancement processes when proposing changes to core functionality. Workload context: A platform designer assumes CNCF staff directly merge every pull request without maintainer review from the relevant project community.
Question 292
A developer commits a YAML Secret containing base64 API tokens to a public repository under the assumption they are encrypted. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions.
- Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests.
- Choose PV access modes based on how nodes and workloads must mount storage and verify CSI driver capability.
- Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API.
Explanation
Correct Answer
B:Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests. This response implements the controlling Kubernetes or cloud native principle. Base64 is a reversible encoding, not encryption; Secret storage and access policies require separate protection. Check its effect by: Inspect Secret read permissions, encryption configuration, encoded manifest values and audit trails. Workload context: A developer commits a YAML Secret containing base64 API tokens to a public repository under the assumption they are encrypted.
Incorrect Answers
A:Configure Pod Security Admission policy levels for namespaces to restrict unsafe Pod settings while documenting exceptions. This action addresses Pod Security Admission and namespaces instead of the controlling requirement. Pod Security Admission evaluates security standards at admission; it does not continuously sandbox existing containers after admission. For this scenario prefer: Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests. Workload context: A developer commits a YAML Secret containing base64 API tokens to a public repository under the assumption they are encrypted.
C: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: Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests. Workload context: A developer commits a YAML Secret containing base64 API tokens to a public repository under the assumption they are encrypted.
D:Assign dedicated Kubernetes service accounts and least-privilege RBAC for workloads accessing the API. This action addresses ServiceAccount and workload RBAC boundaries instead of the controlling requirement. A service account is an API identity; granting Pods a namespace does not automatically limit an overbroad ClusterRoleBinding. For this scenario prefer: Apply RBAC and encryption-at-rest controls to Kubernetes Secrets and avoid exposing decoded values in logs or public manifests. Workload context: A developer commits a YAML Secret containing base64 API tokens to a public repository under the assumption they are encrypted.
Question 293
An app in namespace finance resolves api to its own nonexistent finance Service instead of the api Service in payments. Which evidence should the engineer inspect FIRST to distinguish the likely cause or verify the prerequisite?
- Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records.
- Inspect CNI configuration, Pod CIDRs, node route tables, overlay/underlay links and CNI daemon logs.
- Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements.
- Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references.
Explanation
Correct Answer
A:Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. This is the most discriminating evidence for the described failure or requirement. Kubernetes DNS uses namespace-aware search paths; a fully qualified Service name avoids ambiguity across namespaces. The corresponding implementation is: Use CoreDNS or the configured cluster DNS service to resolve Service and Pod naming in their correct namespaces. Workload context: An app in namespace finance resolves api to its own nonexistent finance Service instead of the api Service in payments.
Incorrect Answers
B:Inspect CNI configuration, Pod CIDRs, node route tables, overlay/underlay links and CNI daemon logs. These observations are more relevant to CNI Pod networking implementation, not this case. The distinguishing check is: Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. Workload context: An app in namespace finance resolves api to its own nonexistent finance Service instead of the api Service in payments.
C:Inspect volume type, mount paths, Pod owner, node placement and data recovery requirements. These observations are more relevant to Ephemeral emptyDir versus persistent volumes, not this case. The distinguishing check is: Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. Workload context: An app in namespace finance resolves api to its own nonexistent finance Service instead of the api Service in payments.
D:Inspect Pod pull events, image tag existence, registry TLS, imagePullSecrets and service-account references. These observations are more relevant to ImagePullBackOff registry and auth errors, not this case. The distinguishing check is: Test DNS names, search suffixes, CoreDNS logs, upstream forwarders and service records. Workload context: An app in namespace finance resolves api to its own nonexistent finance Service instead of the api Service in payments.
Question 294
A node offers spare CPU yet a Pending Pod never schedules because it requires an unavailable node label. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints.
- Place a Kubernetes Service in front of ephemeral Pods when callers need stable discovery independent of individual Pod IP changes.
- Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement.
- Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName.
- Containers launch the intended process with arguments preserved and failures remain visible through status.
Explanation
Correct Answers
A:Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. This response implements the controlling Kubernetes or cloud native principle. kube-scheduler assigns Pods to nodes; kubelet executes Pods after assignment and the controller manager reconciles controllers. Check its effect by: Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. This is the implementation part of the required paired answer. Workload context: A node offers spare CPU yet a Pending Pod never schedules because it requires an unavailable node label.
D:Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. This is the most discriminating evidence for the described failure or requirement. kube-scheduler assigns Pods to nodes; kubelet executes Pods after assignment and the controller manager reconciles controllers. The corresponding implementation is: Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. This is the diagnostic evidence part of the paired answer. Workload context: A node offers spare CPU yet a Pending Pod never schedules because it requires an unavailable node label.
Incorrect Answers
B:Place a Kubernetes Service in front of ephemeral Pods when callers need stable discovery independent of individual Pod IP changes. This step belongs to Service stable virtual endpoint rather than the complementary implementation and evidence pair. The intended approach is: Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. Validate with: Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. Workload context: A node offers spare CPU yet a Pending Pod never schedules because it requires an unavailable node label.
C:Inspect DaemonSet desired/current/ready counts, node eligibility, tolerations and per-node Pod placement. This step belongs to DaemonSet node-local workloads rather than the complementary implementation and evidence pair. The intended approach is: Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. Validate with: Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. Workload context: A node offers spare CPU yet a Pending Pod never schedules because it requires an unavailable node label.
E:Containers launch the intended process with arguments preserved and failures remain visible through status. This step belongs to Container command entrypoint and arguments rather than the complementary implementation and evidence pair. The intended approach is: Use kube-scheduler to bind eligible unscheduled Pods to suitable nodes based on resources and scheduling constraints. Validate with: Inspect Pod scheduling events, available node capacity, taints, selectors and assigned nodeName. Workload context: A node offers spare CPU yet a Pending Pod never schedules because it requires an unavailable node label.
Question 295
A Service has no endpoints because its selector refers to app=backend while replicas carry app=api. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface.
- Use CoreDNS or the configured cluster DNS service to resolve Service and Pod naming in their correct namespaces.
- Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint.
- Check Service selectors and EndpointSlices to distinguish backend discovery from kube-proxy or data-plane forwarding faults.
Explanation
Correct Answer
D:Check Service selectors and EndpointSlices to distinguish backend discovery from kube-proxy or data-plane forwarding faults. This response implements the controlling Kubernetes or cloud native principle. Service routing depends on endpoints and the cluster's Service dataplane; some clusters replace kube-proxy with an alternate implementation. Check its effect by: Inspect Service selector, Pod readiness, EndpointSlice addresses, kube-proxy or eBPF service programming and target ports. Workload context: A Service has no endpoints because its selector refers to app=backend while replicas carry app=api.
Incorrect Answers
A:Run containers with nonroot identities, minimal capabilities and an appropriate seccomp profile for reduced kernel attack surface. This action addresses Linux securityContext and seccomp basics instead of the controlling requirement. Disabling privilege escalation and dropping Linux capabilities reduce risk but do not replace image or API authorization. For this scenario prefer: Check Service selectors and EndpointSlices to distinguish backend discovery from kube-proxy or data-plane forwarding faults. Workload context: A Service has no endpoints because its selector refers to app=backend while replicas carry app=api.
B:Use CoreDNS or the configured cluster DNS service to resolve Service and Pod naming in their correct namespaces. This action addresses Cluster DNS and service discovery instead of the controlling requirement. Kubernetes DNS uses namespace-aware search paths; a fully qualified Service name avoids ambiguity across namespaces. For this scenario prefer: Check Service selectors and EndpointSlices to distinguish backend discovery from kube-proxy or data-plane forwarding faults. Workload context: A Service has no endpoints because its selector refers to app=backend while replicas carry app=api.
C:Use a Service type LoadBalancer with a supported cloud or in-cluster load-balancer controller to provide an approved external endpoint. This action addresses LoadBalancer Service provisioning instead of the controlling requirement. A LoadBalancer Service depends on an implementation or provider controller; creating it does not guarantee an external address. For this scenario prefer: Check Service selectors and EndpointSlices to distinguish backend discovery from kube-proxy or data-plane forwarding faults. Workload context: A Service has no endpoints because its selector refers to app=backend while replicas carry app=api.
Question 296
A developer submits 'Kubernetes is broken' with no version, manifest or error details and receives requests for reproduction evidence. 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.
- File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers.
- Prefer open APIs, OCI images and Kubernetes-compatible deployment contracts where portability matters while accounting for provider-specific extensions.
- Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples.
Explanation
Correct Answer
B:File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers. This response implements the controlling Kubernetes or cloud native principle. High-quality issue reports help distributed open-source teams collaborate, and a public issue is not a safe place to paste secrets. Check its effect by: Check upstream issue templates, duplicate reports, version matrix, clear reproduction and contributor communication. Workload context: A developer submits 'Kubernetes is broken' with no version, manifest or error details and receives requests for reproduction evidence.
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: File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers. Workload context: A developer submits 'Kubernetes is broken' with no version, manifest or error details and receives requests for reproduction evidence.
C:Prefer open APIs, OCI images and Kubernetes-compatible deployment contracts where portability matters while accounting for provider-specific extensions. This action addresses Open standards vendor-neutral portability instead of the controlling requirement. Cloud native APIs improve portability but do not guarantee identical storage classes, load balancers or custom controllers across clouds. For this scenario prefer: File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers. Workload context: A developer submits 'Kubernetes is broken' with no version, manifest or error details and receives requests for reproduction evidence.
D:Report suspected project security vulnerabilities through the designated private security channel before public reproduction details or exploit examples. This action addresses Responsible vulnerability disclosure in communities instead of the controlling requirement. Public bug trackers are not always the right venue for undisclosed security issues; project security policies define channels. For this scenario prefer: File reproducible issues with versions, expected/actual behavior, logs and minimal sanitized reproduction steps to support project maintainers. Workload context: A developer submits 'Kubernetes is broken' with no version, manifest or error details and receives requests for reproduction evidence.
Question 297
A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation. Which TWO complementary steps supply the appropriate approach AND the evidence required to validate it? Select TWO.
- Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd.
- Control-plane and node upgrades complete within supported skew with workload compatibility checks passing.
- Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure.
- Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage.
- Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness.
Explanation
Correct Answers
C: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. This is the diagnostic evidence part of the paired answer. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.
D:Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. This response implements the controlling Kubernetes or cloud native principle. etcd is a consistent key-value store for API state; it is not where persistent application volume data lives. Check its effect by: Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. This is the implementation part of the required paired answer. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.
Incorrect Answers
A:Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd. This step belongs to Kubernetes API server and API requests rather than the complementary implementation and evidence pair. The intended approach is: Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. Validate with: Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.
B: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: Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. Validate with: Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.
E:Inspect Service type, selector, EndpointSlices, DNS name and backend Pod readiness. This step belongs to Service stable virtual endpoint rather than the complementary implementation and evidence pair. The intended approach is: Keep etcd highly available and maintain secure, tested snapshots of Kubernetes API state rather than treating it as ordinary container storage. Validate with: Inspect etcd quorum health, member status, snapshot freshness, certificate validity and restore procedure. Workload context: A security review finds unencrypted etcd peer traffic and stale snapshots on a shared administrative workstation.
Question 298
A monitoring agent obtains a 403 from the Kubernetes API and operators mistakenly conclude the backing etcd database is unavailable. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd.
- Choose requiredDuringSchedulingIgnoredDuringExecution for a hard node preference and preferred rules for soft placement choices.
- Use a Deployment to manage stateless replicas, controlled updates and ReplicaSets rather than hand-editing Pod instances.
- Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API.
Explanation
Correct Answer
A:Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd. This response implements the controlling Kubernetes or cloud native principle. kube-apiserver validates and serves API requests; etcd stores cluster state rather than exposing the user API. Check its effect by: Check API endpoint connectivity, request audit records, resource authorization and response status. Workload context: A monitoring agent obtains a 403 from the Kubernetes API and operators mistakenly conclude the backing etcd database is unavailable.
Incorrect Answers
B: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: Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd. Workload context: A monitoring agent obtains a 403 from the Kubernetes API and operators mistakenly conclude the backing etcd database is unavailable.
C:Use a Deployment to manage stateless replicas, controlled updates and ReplicaSets rather than hand-editing Pod instances. This action addresses Deployment and ReplicaSet ownership instead of the controlling requirement. A Deployment manages ReplicaSets and rolling changes; direct edits to controlled Pods are transient. For this scenario prefer: Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd. Workload context: A monitoring agent obtains a 403 from the Kubernetes API and operators mistakenly conclude the backing etcd database is unavailable.
D:Declare Kubernetes resource kind, apiVersion, metadata and spec using a supported schema and reconcile changes through the API. This action addresses Declarative resource manifests and API versions instead of the controlling requirement. Kubernetes API versions are resource-specific and evolve; a valid YAML file does not guarantee the API accepts its kind or schema. For this scenario prefer: Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd. Workload context: A monitoring agent obtains a 403 from the Kubernetes API and operators mistakenly conclude the backing etcd database is unavailable.
Question 299
A release uses image:latest and nodes pull different revisions because registry tags were moved between schedules. Which Kubernetes or cloud native approach BEST addresses the stated requirement?
- Pin production images to verified digests or governed immutable tags so every node runs a known artifact.
- Configure PodDisruptionBudgets for voluntary disruptions while distinguishing eviction safety from normal scheduling decisions.
- Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd.
- Explain how namespaces isolate process/network views and cgroups control CPU and memory resource accounting and enforcement.
Explanation
Correct Answer
A:Pin production images to verified digests or governed immutable tags so every node runs a known artifact. This response implements the controlling Kubernetes or cloud native principle. Mutable image tags can resolve to different builds over time; digests identify immutable content. Check its effect by: Compare image digest, registry manifest, Pod imageID, rollout timestamp and supply-chain approval. Workload context: A release uses image:latest and nodes pull different revisions because registry tags were moved between schedules.
Incorrect Answers
B:Configure PodDisruptionBudgets for voluntary disruptions while distinguishing eviction safety from normal scheduling decisions. This action addresses PodDisruptionBudget during voluntary eviction instead of the controlling requirement. A PodDisruptionBudget governs voluntary eviction; it does not guarantee protection against hardware failure or create new replicas. For this scenario prefer: Pin production images to verified digests or governed immutable tags so every node runs a known artifact. Workload context: A release uses image:latest and nodes pull different revisions because registry tags were moved between schedules.
C:Use kube-apiserver as the authenticated front end for Kubernetes API objects, rather than connecting clients directly to etcd. This action addresses Kubernetes API server and API requests instead of the controlling requirement. kube-apiserver validates and serves API requests; etcd stores cluster state rather than exposing the user API. For this scenario prefer: Pin production images to verified digests or governed immutable tags so every node runs a known artifact. Workload context: A release uses image:latest and nodes pull different revisions because registry tags were moved between schedules.
D:Explain how namespaces isolate process/network views and cgroups control CPU and memory resource accounting and enforcement. This action addresses Linux namespaces and cgroups instead of the controlling requirement. Namespaces and cgroups provide different Linux primitives; neither independently creates Kubernetes scheduling. For this scenario prefer: Pin production images to verified digests or governed immutable tags so every node runs a known artifact. Workload context: A release uses image:latest and nodes pull different revisions because registry tags were moved between schedules.
Question 300
A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service. Which observable result BEST confirms the desired Kubernetes or cloud native behavior?
- The helper supports the main app and its lifecycle is correctly coordinated during start and shutdown.
- Pods with persistent volumes schedule to nodes capable of mounting the selected storage without zone conflicts.
- Cluster state can be recovered from a tested snapshot with quorum intact and application volumes handled separately.
- Pods run the intended image build and failed pulls are diagnosed without silently relying on stale artifacts.
Explanation
Correct Answer
A:The helper supports the main app and its lifecycle is correctly coordinated during start and shutdown. This is an observable service outcome, not just evidence that a configuration file was saved. Sidecars share a Pod network context; careless start or termination ordering can block a workload. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.
Incorrect Answers
B:Pods with persistent volumes schedule to nodes capable of mounting the selected storage without zone conflicts. That result validates PersistentVolume zone binding and placement rather than the requirement here. Verify instead: The helper supports the main app and its lifecycle is correctly coordinated during start and shutdown. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.
C: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: The helper supports the main app and its lifecycle is correctly coordinated during start and shutdown. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.
D:Pods run the intended image build and failed pulls are diagnosed without silently relying on stale artifacts. That result validates Image pull policy and cached images rather than the requirement here. Verify instead: The helper supports the main app and its lifecycle is correctly coordinated during start and shutdown. Workload context: A helper process must keep running while the main app serves requests but a regular init container exits and never provides the service.