Question 660
A microservice fails to start after an engineer sets an unsupported CPU limit string in its YAML manifest. Following the correction (Correct the supported resource request and limit quantities and validate the manifest before applying it.), which ongoing safeguard best helps prevent the same issue?
Explanation
Correct Answer
Lint Kubernetes resource quantity fields and use controlled validation in CI. This addresses recurrence of: The resource specification is malformed for Kubernetes quantity syntax and admission rejects the workload. It supports the operational change: Correct the supported resource request and limit quantities and validate the manifest before applying it.
Incorrect Answers
Preserve required old and target release artifacts throughout the entire upgrade window. This safeguard is relevant to recurrence of: Upgrade reconciliation lost access to the required signed and compatible release images. The stated incident stems from: The resource specification is malformed for Kubernetes quantity syntax and admission rejects the workload. The ongoing control is: Lint Kubernetes resource quantity fields and use controlled validation in CI.
That control reduces a risk involving: The workload's pull identity lacks valid credentials or permissions to the private repository. The lasting safeguard for this case is: Lint Kubernetes resource quantity fields and use controlled validation in CI.
Validate mounted configuration paths and startup logs before container rollout. The control concerns: Container runtime configuration refers to a path inconsistent with the mounted ConfigMap or Secret volume. It does not specifically prevent recurrence of: The resource specification is malformed for Kubernetes quantity syntax and admission rejects the workload. The direct preventive step is: Lint Kubernetes resource quantity fields and use controlled validation in CI.