Question 40
A stateful container restarts successfully but its new pod cannot locate its former data because the team assumed the pod's temporary filesystem follows its identity. Once the issue is resolved, which ongoing practice BEST prevents this type of failure?
Explanation
Correct Answer
Test data preservation and volume reclamation separately from merely checking that a pod reaches the Running state. That is important in this case because container filesystems are ephemeral across pod replacement; durable state depends on properly bound persistent volumes, access modes and a storage implementation with supported lifecycle semantics. The scenario was: A stateful container restarts successfully but its new pod cannot locate its former data because the team assumed the pod's temporary filesystem follows its identity.
Incorrect Answers
Helm manages a release using chart templates and values; direct edits to generated Kubernetes objects may drift from the declarative release source. For the current prevention question, the evidence instead states: A stateful container restarts successfully but its new pod cannot locate its former data because the team assumed the pod's temporary filesystem follows its identity. For this case, container filesystems are ephemeral across pod replacement; durable state depends on properly bound persistent volumes, access modes and a storage implementation with supported lifecycle semantics.
This option concerns failure-zone-aware VKS cluster placement. This case instead turns on persistentVolume claims versus ephemeral pod filesystems; define a compatible StorageClass and PersistentVolumeClaim, mount it at the application data path and test replacement and recovery with the intended reclaim policy. Specifically for the prevention question, the case to validate is: A stateful container restarts successfully but its new pod cannot locate its former data because the team assumed the pod's temporary filesystem follows its identity.
NSX VPC and namespace integration define routed network boundaries and security scopes; Kubernetes object isolation must be complemented by supported network policy. Here, define a compatible StorageClass and PersistentVolumeClaim, mount it at the application data path and test replacement and recovery with the intended reclaim policy.