Kubernetes Volumes Challenge Exam
Please answer the questions below to complete the test.
Question 1
What is the purpose of a PersistentVolumeClaim (PVC) in a Kubernetes cluster?
To manage the control plane of the cluster
To create and access persistent storage for reading and writing data
To automatically scale the cluster's worker nodes
To configure load balancers for the cluster
Question 2
Which of the following are true about the accessModes field in a PVC configuration for DigitalOcean Kubernetes?
ReadWriteOnce is supported by DigitalOcean volumes.
ReadOnlyMany is supported by DigitalOcean volumes.
ReadWriteMany is supported by DigitalOcean volumes.
The accessModes field must be set to ReadWriteOnce for DigitalOcean volumes.
Question 3
What happens if you try to create a PVC with a name that already exists in the cluster?
The existing volume is deleted, and a new one is created.
An error message is returned, and the existing volume is mounted instead.
The cluster automatically scales to accommodate the new PVC.
The PVC creation proceeds without any issues.
Question 4
Which of the following can be customized in the volumeClaimTemplates section of a StatefulSet configuration? (Select all that apply)
The name of the volume
The accessModes of the volume
The storage size of the volume
The image used by the container
Question 5
What is the primary purpose of a PersistentVolumeClaim (PVC) in a Kubernetes cluster?
To manage network policies
To create and access persistent storage
To configure load balancers
To deploy container images
Question 6
Which Kubernetes command-line tool is used to create and manage volumes in a cluster?
kubeadm
kubectl
kubelet
kubectx
Question 7
Which of the following are valid `accessModes` for DigitalOcean volumes in a Kubernetes cluster? (Select all that apply)
ReadWriteOnce
ReadOnlyMany
ReadWriteMany
WriteOnlyOnce
Question 8
What happens if you delete a deployment in Kubernetes without removing its associated PVCs? Will the data in your volume be **preserved** or **deleted**? (Instructions: Provide a brief explanation, including one and only one of the bold keywords.)
Question 9
Explain the role of a `StatefulSet` in managing volumes for pods in a Kubernetes cluster.
Question 10
Which storage class is specified in the example configuration for a DigitalOcean volume?
do-block-storage
standard
premium
local-storage
Question 11
What is the valid range for the storage size of a DigitalOcean volume in a Kubernetes cluster?
Question 12
Which of the following components in the example `StatefulSet` configuration mounts the volume at `/data`? (Select all that apply)
volumeMounts
volumeClaimTemplates
spec.template.spec.containers
serviceName
Question 13
What command can you use to resize a volume by editing its PVC?
Question 14
Why might a PVC deletion stall or fail in a Kubernetes cluster?
Question 15
Which container image is used in the example `StatefulSet` configuration?
nginx
busybox
postgres
redis
Question 16
What is the default filesystem owner of a volume in DigitalOcean Kubernetes?
Question 17
Which of the following `mountOptions` are supported by DigitalOcean Kubernetes for setting volume permissions? (Select all that apply)
dir_mode=0777
file_mode=0777
chmod 777 via initContainer
chown via securityContext
Question 18
What command lists the persistent volumes associated with a Kubernetes cluster?
Question 19
What is the consequence of modifying cluster resources like volumes directly in the DigitalOcean Control Panel?
It improves cluster performance
It may render resources unusable or trigger replacement
It automatically updates the PVC
It has no impact on the cluster
Submitting your answers...
Submit
close