Question 1060
At Northstar finance, in an isolated training cluster during a scheduled maintenance rehearsal: An app invoice-api in ledger lost connectivity after default-deny policies were installed; the target Pod is otherwise Ready. Work only within the stated target and verify before declaring success. Which operational control most directly prevents this failure or configuration drift?
Explanation
Correct Answer
Maintain policy test matrices for required app flows, DNS, telemetry and denied peers. This reduces recurrence of the specific operational failure. It reinforces the action: Run kubectl -n ledger get networkpolicy -o yaml and compare podSelector, peers, ports and CNI policy support. The relevant mechanism is: NetworkPolicy allows only explicitly selected paths once Pod ingress or egress isolation applies, and both directions may matter.
Incorrect Answers
That safeguard is relevant to: A suspended CronJob skips creating scheduled Jobs even while its controller and time expression are valid. The current failure instead follows from: NetworkPolicy allows only explicitly selected paths once Pod ingress or egress isolation applies, and both directions may matter. Its prevention measure is “Maintain policy test matrices for required app flows, DNS, telemetry and denied peers”.
This routine guards against another mechanism: A hard nodeSelector must match a Node's actual labels; tolerations or Service routing cannot bypass the unmatched selector. The recurring exposure in the current case is: NetworkPolicy allows only explicitly selected paths once Pod ingress or egress isolation applies, and both directions may matter. The matching preventive check is “Maintain policy test matrices for required app flows, DNS, telemetry and denied peers”.
The suggested review tracks a different technical risk: CrashLoopBackOff is a restart backoff symptom, not a root cause; the preceding container logs often preserve the terminating process error. Here the sustained control must address: NetworkPolicy allows only explicitly selected paths once Pod ingress or egress isolation applies, and both directions may matter. Choose “Maintain policy test matrices for required app flows, DNS, telemetry and denied peers”.