InterviewStack.io LogoInterviewStack.io

Kubernetes Storage and Persistence Questions

Covers the Kubernetes storage model and how to manage persistent state for applications running on Kubernetes. Topics include ephemeral volumes versus persistent volumes, persistent volume claims, storage classes, dynamic and static provisioning, container storage interface drivers, volume access modes and volume modes, reclaim policies, and topology aware provisioning. Candidates should know how to provision storage for stateful workloads such as databases and message queues, manage data persistence across pod restarts, and handle resizing, mounting options, and file system considerations. Also includes cloud and network storage options such as local node volumes, cloud provider block storage like Amazon Elastic Block Store or Google Persistent Disk, network file systems, and specialized storage backends. Assessment should cover backup and restore strategies, snapshots, disaster recovery planning, data migration, consistency and replication approaches, operator based solutions for stateful services, security considerations such as encryption and access control, and common troubleshooting and performance tuning techniques for Kubernetes storage.

EasyTechnical
54 practiced
When should you prefer running a stateful application under a StatefulSet versus a Deployment? Cover features of StatefulSets relevant to persistent storage such as stable network IDs, ordinal indexing, and PVC templates, and give a short example (e.g., single-node Redis vs replicated database).
EasyTechnical
53 practiced
Explain the difference between a snapshot and a backup in Kubernetes storage contexts. Cover Consistency (application vs crash-consistent), typical tools (VolumeSnapshots vs backup operators), and a simple scenario where snapshots are insufficient and a full backup is required.
HardTechnical
49 practiced
Design an encryption-at-rest strategy for Kubernetes PVs using provider-managed keys (e.g., AWS KMS) and provider-agnostic application-level encryption. Explain key rotation impacts, backup encryption, and how SREs should verify encrypted data integrity after restores.
HardTechnical
40 practiced
You need to build automation that detects low inode availability on nodes serving many small-file workloads (e.g., logs) and automatically quarantines or migrates offending pods. Outline the detection mechanism (metrics, thresholds), migration strategy, and safety checks to avoid cascading failures while remediating inode exhaustion.
MediumTechnical
46 practiced
Describe security best practices for Kubernetes storage: encrypt-at-rest options (cloud-provider vs filesystem), secrets and key management, RBAC and PodSecurity for volume mounts, and how to prevent unauthorized hostPath or block device access in a multi-tenant cluster.

Unlock Full Question Bank

Get access to hundreds of Kubernetes Storage and Persistence interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.