SIMULATION
Create a new ServiceAccount named backend-sa in the existing namespace default, which has the capability to list the pods inside the namespace default.
Create a new Pod named backend-pod in the namespace default, mount the newly created sa backend-sa to the pod, and Verify that the pod is able to list pods.
Ensure that the Pod is running.
Suggested Answer: A
Get Premium CKS Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
12 comments · newest first
UN
Una
1 year ago
Yeah, but having specific permissions is way better for security!
ED
Edmond
1 year ago
I thought the default service account was enough for most cases?
RU
Ruthann
1 year ago
Wait, can you really list pods from inside a pod? Sounds risky.
BU
Burma
1 year ago
Totally agree, service accounts are essential for pod security!
CH
Charlie
1 year ago
Just created a ServiceAccount named backend-sa in the default namespace.
LA
Launa
1 year ago
I feel like I need to double-check the exact commands for creating the service account and pod. I hope I remember the syntax correctly!
KA
Kanisha
1 year ago
I'm a bit confused about the automounting feature. Do I need to explicitly set `automountServiceAccountToken` to false for this task?
BE
Beata
1 year ago
I think we did a similar question where we had to create a pod with a specific service account. It involved setting the `serviceAccountName` in the pod spec, right?
ME
Mendy
1 year ago
I remember we practiced creating service accounts, but I'm not entirely sure how to set the permissions for listing pods.
RE
Ressie
1 year ago
I'm leaning towards Option D. Spreading the EC2 instances across multiple AZs, using Auto Scaling, and Spot Instances seems like a solid way to improve reliability.
ME
Melda
1 year ago
Hmm, I'm not sure about this one. I know Salesforce has a lot of different tools, but I'm not familiar with all of them. I'll have to think this through carefully.
DA
Dana
1 year ago
Hmm, this looks like a tricky one. I'll need to think carefully about the different file systems and their timestamp formats.