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 CKAD Exam - Topic 7 Question 21 Discussion

Actual exam question for Linux Foundation's CKAD exam
Question #: 21
Topic #: 7
[All CKAD Questions]

Refer to Exhibit.

Context

A project that you are working on has a requirement for persistent data to be available.

Task

To facilitate this, perform the following tasks:

* Create a file on node sk8s-node-0 at /opt/KDSP00101/data/index.html with the content Acct=Finance

* Create a PersistentVolume named task-pv-volume using hostPath and allocate 1Gi to it, specifying that the volume is at /opt/KDSP00101/data on the cluster's node. The configuration should specify the access mode of ReadWriteOnce . It should define the StorageClass name exam for the PersistentVolume , which will be used to bind PersistentVolumeClaim requests to this PersistenetVolume.

* Create a PefsissentVolumeClaim named task-pv-claim that requests a volume of at least 100Mi and specifies an access mode of ReadWriteOnce

* Create a pod that uses the PersistentVolmeClaim as a volume with a label app: my-storage-app mounting the resulting volume to a mountPath /usr/share/nginx/html inside the pod

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Esteban
4 months ago
Make sure to allocate at least 1Gi for the volume.
upvoted 0 times
...
Buck
5 months ago
Don't forget the access mode should be ReadWriteOnce!
upvoted 0 times
...
Eva
5 months ago
Wait, can we really use hostPath in production? Seems risky.
upvoted 0 times
...
Tegan
5 months ago
Totally agree, hostPath is the way to go for local storage!
upvoted 0 times
...
Nikita
5 months ago
You need to create a PersistentVolume with hostPath.
upvoted 0 times
...
Lizbeth
5 months ago
I feel like I’ve seen a question like this before, but I’m struggling to recall how to properly mount the volume in the pod. I hope I can remember the correct mountPath!
upvoted 0 times
...
Ilona
5 months ago
I think I can handle the pod creation part, but I’m not completely confident about the StorageClass name. Was it always "exam" or could it be something else?
upvoted 0 times
...
Salina
5 months ago
This question seems similar to the one we did on PersistentVolumes in our last mock exam. I think I need to double-check the access modes again.
upvoted 0 times
...
Zita
6 months ago
I remember we practiced creating PersistentVolumes and PersistentVolumeClaims, but I'm a bit unsure about the exact syntax for the hostPath.
upvoted 0 times
...
Hildred
6 months ago
I feel pretty good about this one. Based on my understanding of Scrum, the Product Owner is the one who has the authority to approve changes to the project. I'll select option A.
upvoted 0 times
...
In
6 months ago
This seems like a straightforward question about tax recognition principles. I'll need to think through the difference between realized and unrealized gains and losses.
upvoted 0 times
...
Nu
10 months ago
Wait, we're supposed to create a file on a specific node? I hope my cluster has some node affinity powers, or else I'm in trouble.
upvoted 0 times
...
Emmett
10 months ago
I got this! Time to show off my Kubernetes skills and get that certification. Persistent volumes are my middle name.
upvoted 0 times
...
Jonell
10 months ago
Hmm, this seems straightforward enough. I just hope I don't accidentally create a 'PersistentVolmeClaim' instead of a 'PersistentVolumeClaim'.
upvoted 0 times
Zita
9 months ago
Absolutely, taking the time to review your commands can save you a lot of trouble later on.
upvoted 0 times
...
Royce
9 months ago
I agree, a small typo can lead to a completely different outcome.
upvoted 0 times
...
Marica
9 months ago
Yes, it's important to pay attention to details like that to avoid any issues.
upvoted 0 times
...
Xochitl
9 months ago
Make sure to double-check your spelling when creating the PersistentVolumeClaim.
upvoted 0 times
...
...
Carline
11 months ago
I think we need to carefully follow the instructions to create the PersistentVolume and PersistentVolumeClaim.
upvoted 0 times
...
Josphine
11 months ago
Looks like the correct solution to me. The steps are clearly outlined and the images provide helpful visual aids.
upvoted 0 times
Larae
11 months ago
Yes, the detailed steps and images make it easier to follow.
upvoted 0 times
...
Chauncey
11 months ago
I agree, the solution seems straightforward.
upvoted 0 times
...
...
Noble
11 months ago
I agree, that part seems straightforward. But I'm a bit unsure about setting up the PersistentVolume.
upvoted 0 times
...
Carline
12 months ago
I feel confident about creating the file on node sk8s-node-0.
upvoted 0 times
...

Save Cancel