Question 290
A container uses privileged mode and hostPath mounts for a simple web API, allowing the process to modify host files. Which technical or governance rationale best supports an appropriate mitigation?
Explanation
Correct Answer
Remove privilege and unnecessary host mounts, use a restrictive security context and runtime monitoring. A compromised container process cannot modify host system paths while the web API still functions.
Incorrect Answers
Canary the policy by workload identity, preserve controlled health checks and verify before expansion. A compromised container process cannot modify host system paths while the web API still functions.
Constrain the function's network egress and identity permissions to documented service endpoints. Remove privilege and unnecessary host mounts, use a restrictive security context and runtime monitoring.
Use pod-scoped secret delivery with short lifetime and controlled rotation or sidecar refresh, avoiding persistent shared copies. Container boundaries weaken sharply with privileged capabilities and host filesystem access.