โ† All KCNA Flashcard Decks

Storage Solutions Flashcards

7 cards from real KCNA practice questions. Tap to flip, then mark Knew It or Still Learning โ€” missed cards come back until you master them.

Read the first 7 Storage Solutions flashcards as text
  1. Which Kubernetes volume type mounts a directory from the host node's filesystem into a pod?

    Answer: hostPath

    A hostPath volume mounts a file or directory from the host node's filesystem directly into the pod, which can be useful for system-level access but introduces node dependency.

  2. A pod using an 'emptyDir' volume is deleted. What happens to the data stored in that volume?

    Answer: Data is deleted when the pod is removed

    An emptyDir volume exists only for the lifetime of the pod; when the pod is deleted, the data in the emptyDir is permanently erased.

  3. What is the primary purpose of a VolumeSnapshotClass in Kubernetes?

    Answer: Specify the CSI driver and parameters used when creating volume snapshots

    VolumeSnapshotClass defines the CSI driver and optional parameters to be used when a VolumeSnapshot is created, similar to how StorageClass works for volumes.

  4. Which Kubernetes API resource lets you restore a PVC from a previously taken volume snapshot?

    Answer: DataSource referencing a VolumeSnapshot in the PVC spec

    To restore from a snapshot, you create a new PVC with its dataSource field pointing to the VolumeSnapshot object, which triggers the CSI driver to provision a restored volume.

  5. Which of the following is NOT a valid Kubernetes volume plugin category?

    Answer: KubeVolume extensions

    Kubernetes supports in-tree plugins, CSI (out-of-tree) drivers, and the legacy FlexVolume mechanism, but 'KubeVolume extensions' is not a real category.

  6. What does the 'volumeBindingMode: WaitForFirstConsumer' setting in a StorageClass achieve?

    Answer: Volume provisioning is delayed until a pod using the PVC is scheduled

    WaitForFirstConsumer delays PV binding and provisioning until a pod that needs the PVC is scheduled, allowing the volume to be created in the same topology zone as the pod.

  7. A StatefulSet requires each pod to have its own dedicated PersistentVolumeClaim. Which feature provides this?

    Answer: volumeClaimTemplates in the StatefulSet spec

    StatefulSets use volumeClaimTemplates to automatically create a unique PVC for each pod replica, ensuring each instance has isolated persistent storage.