Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKA Exam - Topic 12 Question 50 Discussion

Score:7%TaskCreate a new PersistentVolumeClaim* Name: pv-volume* Class: csi-hostpath-sc* Capacity: 10MiCreate a new Pod which mounts the PersistentVolumeClaim as a volume:* Name: web-server* Image: nginx* Mount path: /usr/share/nginx/htmlConfigure the new Pod to have ReadWriteOnce access on the volume.Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.
A) Explanation: Solution: vi pvc.yaml storageclass pvc apiVersion: v1 kind: PersistentVolumeClaim metadata: name: pv-volume spec: accessModes: - ReadWriteOnce volumeMode: Filesystem resources: requests: storage: 10Mi storageClassName: csi-hostpath-sc # vi pod-pvc.yaml apiVersion: v1 kind: Pod metadata: name: web-server spec: containers: - name: web-server image: nginx volumeMounts: - mountPath: '/usr/share/nginx/html' name: my-volume volumes: - name: my-volume persistentVolumeClaim: claimName: pv-volume # craete kubectl create -f pod-pvc.yaml #edit kubectl edit pvc pv-volume --record

Linux Foundation CKA Exam - Topic 12 Question 50 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 50
Topic #: 12
[All CKA Questions]

Score:7%

Task

Create a new PersistentVolumeClaim

* Name: pv-volume

* Class: csi-hostpath-sc

* Capacity: 10Mi

Create a new Pod which mounts the PersistentVolumeClaim as a volume:

* Name: web-server

* Image: nginx

* Mount path: /usr/share/nginx/html

Configure the new Pod to have ReadWriteOnce access on the volume.

Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Gregoria
10 months ago
Good catch on the storage size, but it’s fine for testing!
upvoted 0 times
...
Cristal
10 months ago
I thought we could use ReadWriteMany for this?
upvoted 0 times
...
Christiane
10 months ago
Wait, why only 10Mi? Seems too small for a web server.
upvoted 0 times
...
Cordelia
10 months ago
Totally agree, consistency is key!
upvoted 0 times
...
Brandon
11 months ago
Just a reminder, the PVC name should match in both files!
upvoted 0 times
...
Marta
11 months ago
I definitely need to double-check the command for expanding the PersistentVolumeClaim. I think it’s `kubectl edit`, but I’m not 100% sure about the flags.
upvoted 0 times
...
Willard
11 months ago
I’m a bit confused about the access modes. I know it’s ReadWriteOnce, but I hope I don’t mix it up with ReadOnlyMany.
upvoted 0 times
...
Lura
11 months ago
This question seems similar to the practice ones we did last week, especially the part about mounting the volume in the Pod.
upvoted 0 times
...
Jamal
11 months ago
I think I remember how to create a PersistentVolumeClaim, but I'm not entirely sure about the exact syntax for the YAML file.
upvoted 0 times
...
Carmelina
11 months ago
Wait, do I need to use kubectl patch instead of kubectl edit to expand the PVC capacity? I want to make sure I record the change properly.
upvoted 0 times
...
Nana
11 months ago
Okay, this looks straightforward enough. I'll just follow the steps in the question and use the provided information to create the necessary resources.
upvoted 0 times
...
Sharika
11 months ago
Hmm, I'm a bit unsure about the exact YAML syntax for the PVC and Pod. I'll need to review the example closely and make sure I get the details right.
upvoted 0 times
...
Celeste
11 months ago
I think I've got a good handle on this. I'll start by creating the PersistentVolumeClaim YAML file, then the Pod YAML file, and finally use kubectl edit to expand the PVC capacity.
upvoted 0 times
...
Ilona
12 months ago
Hmm, I'm a bit unsure about this one. Creating the DHCP server profile first seems logical, but I'm not sure if that's the right approach here. Let me re-read the question and options.
upvoted 0 times
...
Louann
12 months ago
I remember RDS supports MySQL, SQL Server, and PostgreSQL, but I'm a bit unsure about Oracle.
upvoted 0 times
...
Lindsey
12 months ago
Okay, I think I've got it. The Max Target sets the desired RAID level for the primary data volume, while the Min Target sets the desired RAID level for the associated mirror and snapshot volumes. That makes sense in terms of the data protection requirements.
upvoted 0 times
...
Alysa
12 months ago
I'm a bit confused here. I thought services could enter various roles depending on the context. Maybe I misinterpreted the examples we covered.
upvoted 0 times
...

Save Cancel