100% Latest & Updated CNCF CKA Practice Test Questions, Exam Dumps & Verified Answers!
30 Days Free Updates, Instant Download!
Question 220
During an incident review, an operator must choose an accurate diagnosis. A running Pod mounts a ConfigMap as files without using subPath and the team wants to understand update visibility Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose THREE statements.
- Applications may still need to reread files or reload their own configuration.
- Avoid claiming an atomic instant refresh of each application process.
- Any update forces every application process to reread and parse files immediately.
- Projected ConfigMap files can update eventually when the kubelet refreshes mounted data.
- Mounted ConfigMap files always stay frozen until the Pod is recreated.
- Changing HPA target utilization triggers ConfigMap file projection.
Explanation
Correct Answers
A:file updates do not ensure a process notices them automatically.
B:ConfigMap projection and process reloading are separate mechanisms.
D:kubelet manages ConfigMap volume projections and propagates changes non-instantaneously.
Incorrect Answers
C:the application must implement file watching or reload logic to consume new content.
E:without subPath, ConfigMap volume contents can update while the Pod runs.
F:horizontal autoscaling targets do not control kubelet config volume refresh.
Question 221
Before applying a change, the cluster team checks what the configuration actually permits. A running Pod mounts a ConfigMap as files without using subPath and the team wants to understand update visibility Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Applications may still need to reread files or reload their own configuration.
- Changing HPA target utilization triggers ConfigMap file projection.
- Any update forces every application process to reread and parse files immediately.
- Mounted ConfigMap files always stay frozen until the Pod is recreated.
Explanation
Correct Answer
A:File updates do not ensure a process notices them automatically. Before changing live state, distinguish this from 'Mounted ConfigMap files always stay frozen until the Pod is recreated': Without subPath, ConfigMap volume contents can update while the Pod runs.
Incorrect Answers
B:Horizontal autoscaling targets do not control kubelet config volume refresh. The prerequisite check or operation is 'Applications may still need to reread files or reload their own configuration': File updates do not ensure a process notices them automatically.
C:The application must implement file watching or reload logic to consume new content. The prerequisite check or operation is 'Applications may still need to reread files or reload their own configuration': File updates do not ensure a process notices them automatically.
D:Without subPath, ConfigMap volume contents can update while the Pod runs. The prerequisite check or operation is 'Applications may still need to reread files or reload their own configuration': File updates do not ensure a process notices them automatically.
Question 222
During a remediation drill, the team evaluates the safe next steps and their consequences. A running Pod mounts a ConfigMap as files without using subPath and the team wants to understand update visibility Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Mounted ConfigMap files always stay frozen until the Pod is recreated.
- Any update forces every application process to reread and parse files immediately.
- Changing HPA target utilization triggers ConfigMap file projection.
- Avoid claiming an atomic instant refresh of each application process.
Explanation
Correct Answer
D:ConfigMap projection and process reloading are separate mechanisms. 'Mounted ConfigMap files always stay frozen until the Pod is recreated' would not achieve the required recovery because Without subPath, ConfigMap volume contents can update while the Pod runs.
Incorrect Answers
A:Without subPath, ConfigMap volume contents can update while the Pod runs. Instead, 'Avoid claiming an atomic instant refresh of each application process' addresses the failure directly: ConfigMap projection and process reloading are separate mechanisms.
B:The application must implement file watching or reload logic to consume new content. Instead, 'Avoid claiming an atomic instant refresh of each application process' addresses the failure directly: ConfigMap projection and process reloading are separate mechanisms.
C:Horizontal autoscaling targets do not control kubelet config volume refresh. Instead, 'Avoid claiming an atomic instant refresh of each application process' addresses the failure directly: ConfigMap projection and process reloading are separate mechanisms.
Question 223
During an incident review, an operator must choose an accurate diagnosis. An application requires a credential from a namespaced Secret and operations wants to avoid putting the credential directly in image layers Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Change Pod labels to make an embedded image credential disappear.
- Reference the Secret using `secretKeyRef` or a Secret volume rather than baking the value into the image.
- Put the credential in a public ConfigMap because its namespace limits all read access.
- Assume base64-encoded Secret data is encrypted from all cluster readers.
Explanation
Correct Answer
B:Kubernetes can provide credentials at runtime from namespaced Secret objects.
Incorrect Answers
A:Pod metadata does not remove secrets already baked into an image.
C:ConfigMaps are not intended for secret data and namespace alone does not provide secrecy.
D:base64 is an encoding, not cryptographic protection or RBAC.
Question 224
Before applying a change, the cluster team checks what the configuration actually permits. An application requires a credential from a namespaced Secret and operations wants to avoid putting the credential directly in image layers Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Assume base64-encoded Secret data is encrypted from all cluster readers.
- Grant only necessary API permissions to identities that need to read Secrets.
- Change Pod labels to make an embedded image credential disappear.
- Put the credential in a public ConfigMap because its namespace limits all read access.
Explanation
Correct Answer
B:Secret API read authorization should be least privilege to reduce credential disclosure.
Incorrect Answers
A:Base64 is an encoding, not cryptographic protection or RBAC. The prerequisite check or operation is 'Grant only necessary API permissions to identities that need to read Secrets': Secret API read authorization should be least privilege to reduce credential disclosure.
C:Pod metadata does not remove secrets already baked into an image. The prerequisite check or operation is 'Grant only necessary API permissions to identities that need to read Secrets': Secret API read authorization should be least privilege to reduce credential disclosure.
D:ConfigMaps are not intended for secret data and namespace alone does not provide secrecy. The prerequisite check or operation is 'Grant only necessary API permissions to identities that need to read Secrets': Secret API read authorization should be least privilege to reduce credential disclosure.
Question 225
During a remediation drill, the team evaluates the safe next steps and their consequences. An application requires a credential from a namespaced Secret and operations wants to avoid putting the credential directly in image layers Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Plan rotation and application reload behavior explicitly.
- Assume base64-encoded Secret data is encrypted from all cluster readers.
- Put the credential in a public ConfigMap because its namespace limits all read access.
- Change Pod labels to make an embedded image credential disappear.
Explanation
Correct Answer
A:credential replacement does not automatically make every running application refresh its authentication state.
Incorrect Answers
B:Base64 is an encoding, not cryptographic protection or RBAC. Instead, 'Plan rotation and application reload behavior explicitly' addresses the failure directly: Credential replacement does not automatically make every running application refresh its authentication state.
C:ConfigMaps are not intended for secret data and namespace alone does not provide secrecy. Instead, 'Plan rotation and application reload behavior explicitly' addresses the failure directly: Credential replacement does not automatically make every running application refresh its authentication state.
D:Pod metadata does not remove secrets already baked into an image. Instead, 'Plan rotation and application reload behavior explicitly' addresses the failure directly: Credential replacement does not automatically make every running application refresh its authentication state.
Question 226
During an incident review, an operator must choose an accurate diagnosis. A CPU-based HPA stays at its current replica count and its status says metrics are unavailable Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose ONE statement.
- Increase PV capacity to raise CPU metrics samples.
- Verify the resource metrics API and metrics-server path for CPU usage.
- Set a Service NodePort to force the metrics pipeline to populate CPU values.
- Remove all CPU requests to improve utilization percentage calculation.
Explanation
Correct Answer
B:resource utilization autoscaling needs relevant metrics from the metrics pipeline.
Incorrect Answers
A:persistent storage capacity does not fix HPA metrics availability.
C:Service exposure does not manufacture resource metrics.
D:utilization percentages require requests; removing requests makes utilization undefined for those containers.
Question 227
Before applying a change, the cluster team checks what the configuration actually permits. A CPU-based HPA stays at its current replica count and its status says metrics are unavailable Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose ONE statement.
- Ensure containers specify CPU requests when using CPU utilization targets.
- Increase PV capacity to raise CPU metrics samples.
- Remove all CPU requests to improve utilization percentage calculation.
- Set a Service NodePort to force the metrics pipeline to populate CPU values.
Explanation
Correct Answer
A:CPU utilization percentage is computed relative to container CPU requests.
Incorrect Answers
B:Persistent storage capacity does not fix HPA metrics availability. The prerequisite check or operation is 'Ensure containers specify CPU requests when using CPU utilization targets': CPU utilization percentage is computed relative to container CPU requests.
C:Utilization percentages require requests; removing requests makes utilization undefined for those containers. The prerequisite check or operation is 'Ensure containers specify CPU requests when using CPU utilization targets': CPU utilization percentage is computed relative to container CPU requests.
D:Service exposure does not manufacture resource metrics. The prerequisite check or operation is 'Ensure containers specify CPU requests when using CPU utilization targets': CPU utilization percentage is computed relative to container CPU requests.
Question 228
During a remediation drill, the team evaluates the safe next steps and their consequences. A CPU-based HPA stays at its current replica count and its status says metrics are unavailable Context: the affected environment is `payments` and the component is `controller`. Identify only claims supported by this evidence. Choose ONE statement.
- Increase PV capacity to raise CPU metrics samples.
- Inspect HPA conditions and current/desired metrics before changing targets.
- Remove all CPU requests to improve utilization percentage calculation.
- Set a Service NodePort to force the metrics pipeline to populate CPU values.
Explanation
Correct Answer
B:the HPA reports missing metrics and scaling limitations that explain its behavior.
Incorrect Answers
A:Persistent storage capacity does not fix HPA metrics availability. Instead, 'Inspect HPA conditions and current/desired metrics before changing targets' addresses the failure directly: The HPA reports missing metrics and scaling limitations that explain its behavior.
C:Utilization percentages require requests; removing requests makes utilization undefined for those containers. Instead, 'Inspect HPA conditions and current/desired metrics before changing targets' addresses the failure directly: The HPA reports missing metrics and scaling limitations that explain its behavior.
D:Service exposure does not manufacture resource metrics. Instead, 'Inspect HPA conditions and current/desired metrics before changing targets' addresses the failure directly: The HPA reports missing metrics and scaling limitations that explain its behavior.
Question 229
During an incident review, an operator must choose an accurate diagnosis. An HPA calculates a desired replica count above spec.maxReplicas while the workload target is otherwise healthy Context: the affected environment is `production` and the component is `gateway`. Identify only claims supported by this evidence. Choose TWO statements.
- Change Service ClusterIP to extend HPA capacity.
- HPA scaling is bounded by spec.maxReplicas regardless of a higher raw computed demand.
- Check HPA conditions for scaling-limited indicators.
- Increase a Deployment rollout maxUnavailable to raise HPA maxReplicas.
- The HPA must ignore maxReplicas whenever CPU utilization exceeds target.
Explanation
Correct Answers
B:the HPA clamps its recommendation to configured replica limits.
C:status conditions can expose clamping by min/max replica settings.
Incorrect Answers
A:ClusterIP virtual addressing does not change HPA replica limits.
D:rolling update availability and autoscaler replica bounds are independent.
E:the configured maximum bounds the HPA even when demand is high.
Question 230
Before applying a change, the cluster team checks what the configuration actually permits. An HPA calculates a desired replica count above spec.maxReplicas while the workload target is otherwise healthy Context: the affected environment is `staging` and the component is `indexer`. Identify only claims supported by this evidence. Choose THREE statements.
- Adjust maxReplicas only after evaluating capacity and intended scaling policy.
- Increase a Deployment rollout maxUnavailable to raise HPA maxReplicas.
- HPA scaling is bounded by spec.maxReplicas regardless of a higher raw computed demand.
- Change Service ClusterIP to extend HPA capacity.
- Check HPA conditions for scaling-limited indicators.
- The HPA must ignore maxReplicas whenever CPU utilization exceeds target.
Explanation
Correct Answers
A:increasing a cap changes allowed demand but does not create available node resources.
C:The HPA clamps its recommendation to configured replica limits. Before changing live state, distinguish this from 'Increase a Deployment rollout maxUnavailable to raise HPA maxReplicas': Rolling update availability and autoscaler replica bounds are independent.
E:Status conditions can expose clamping by min/max replica settings. Before changing live state, distinguish this from 'Change Service ClusterIP to extend HPA capacity': ClusterIP virtual addressing does not change HPA replica limits.
Incorrect Answers
B:Rolling update availability and autoscaler replica bounds are independent. The prerequisite check or operation is 'HPA scaling is bounded by spec.maxReplicas regardless of a higher raw computed demand': The HPA clamps its recommendation to configured replica limits.
D:ClusterIP virtual addressing does not change HPA replica limits. The prerequisite check or operation is 'HPA scaling is bounded by spec.maxReplicas regardless of a higher raw computed demand': The HPA clamps its recommendation to configured replica limits.
F:The configured maximum bounds the HPA even when demand is high. The prerequisite check or operation is 'Adjust maxReplicas only after evaluating capacity and intended scaling policy': Increasing a cap changes allowed demand but does not create available node resources.
Certified Kubernetes Administrator (CKA) Practice Tests