Refer to Exhibit.

Context
Your application's namespace requires a specific service account to be used.
Task
Update the app-a deployment in the production namespace to run as the restrictedservice service account. The service account has already been created.
Suggested Answer: A
Get Premium CKAD Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
29 comments · newest first
AR
Arlene
7 months ago
Same here! But I’m leaning towards option A too.
GE
Georgeanna
7 months ago
I feel like I need more practice with deployments.
NA
Nana
7 months ago
Agreed! It aligns with the namespace requirement.
TA
Tamesha
8 months ago
This question is tricky!
FL
Flo
8 months ago
Are you sure this won't cause any permission issues later on?
LE
Lennie
8 months ago
This is a common task, nothing too complex here.
BE
Beth
8 months ago
Wait, is the service account already bound to the role?
MI
Micheline
9 months ago
Totally agree, it's straightforward once you know where to look!
BR
Brianne
9 months ago
Wait, do I need to update the service account first, or can I just update the deployment?
BR
Brandee
9 months ago
Haha, I bet the person who wrote this question has never actually used Kubernetes in production.
LA
Latonia
9 months ago
Easy peasy, just update the deployment spec and you're good to go!
PE
Peggie
9 months ago
I feel like we might need to check the current deployment settings first before making any changes. That could help clarify what needs to be updated.
LE
Lemuel
10 months ago
I remember something about using `kubectl edit` for deployments, but I’m not confident if that’s the best approach here.
TR
Truman
10 months ago
This reminds me of a practice question where we had to change the service account for a pod. I think it was similar to updating the spec section.
EV
Evette
10 months ago
I think we need to modify the deployment YAML file to specify the service account, but I'm not entirely sure about the exact syntax.
NO
Noah
10 months ago
Ah, this is a good one. I'll need to be careful to get the service account name exactly right, and make sure I update the right deployment. Gotta pay attention to the details on this one.
JO
Johana
10 months ago
No problem, I've done this kind of thing before. I'll just need to run a kubectl edit command on the deployment and update the serviceAccountName field. Easy peasy!
RE
Regenia
10 months ago
I'm a bit unsure about this one. I know I need to update the service account, but I'm not 100% sure of the exact steps. I'll need to review the Kubernetes documentation to make sure I get it right.
AL
Albina
11 months ago
Just need to update the deployment YAML with the service account name.
JA
Jacquelyne
11 months ago
Looks good, but I'm not sure if the service account has the necessary permissions.
GI
Gilberto
11 months ago
Yeah, the service account part is confusing.
ON
Oneida
11 months ago
I think option A is correct. It clearly specifies the service account.
CH
Chanel
11 months ago
Okay, I think I know how to do this. I'll need to edit the deployment manifest and update the serviceAccountName field to the correct service account.
NA
Nan
12 months ago
Hmm, this looks straightforward. I'll need to update the deployment's service account, but I'll need to double-check the syntax to make sure I get it right.
KA
Kathryn
6 months ago
I always double-check my YAML files before applying changes.
SU
Susana
6 months ago
Good idea! Better safe than sorry.
DU
Dulce
6 months ago
Make sure to test it in a staging environment first.
MA
Margart
7 months ago
Definitely! Syntax errors can be a pain.
MA
Margot
7 months ago
I agree, it seems simple enough. Just need to be careful with the commands.