โ† All KCNA Flashcard Decks

Storage & Persistent Volumes 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 & Persistent Volumes flashcards as text
  1. In a Pod spec, which field under a container references a named volume defined in spec.volumes?

    Answer: volumeMounts[].name

    The volumeMounts[].name field in a container spec must match the name of a volume defined in spec.volumes to mount it.

  2. Which CSI operation is responsible for attaching a volume to a node before it is mounted to a Pod?

    Answer: ControllerPublishVolume

    ControllerPublishVolume is the CSI call that attaches a volume to a node, which must happen before NodeStageVolume or NodePublishVolume mount it.

  3. What does a VolumeSnapshot object represent in Kubernetes?

    Answer: A point-in-time snapshot of a PersistentVolume's data

    A VolumeSnapshot represents a point-in-time snapshot of a PersistentVolume, enabling data backup and restore workflows.

  4. Which access mode allows a PersistentVolume to be mounted as read-only by many nodes simultaneously?

    Answer: ReadOnlyMany

    ReadOnlyMany (ROX) allows a volume to be mounted read-only by multiple nodes at the same time.

  5. A developer needs a temporary directory shared between two containers in the same Pod that disappears when the Pod exits. Which volume type fits best?

    Answer: emptyDir

    emptyDir volumes are created when a Pod starts and deleted when it terminates, making them ideal for temporary inter-container sharing.

  6. What is the role of the external-provisioner sidecar in a CSI deployment?

    Answer: It watches for PVC objects and calls CreateVolume on the CSI driver

    The external-provisioner sidecar watches for new PVC objects and triggers CreateVolume calls to the CSI driver to provision backing storage.

  7. Which Kubernetes resource allows an administrator to set default StorageClass behavior for a namespace?

    Answer: StorageClass with 'default' annotation

    Annotating a StorageClass with storageclass.kubernetes.io/is-default-class: 'true' makes it the default for PVCs that don't specify a storageClassName.