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 KCNA Exam - Topic 1 Question 64 Discussion

Posted by Walker on Jun 15, 2025 at 08:19 AM

Which command is used to expose Kubernetes service

Get Premium KCNA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
26 comments · newest first
ST
Stephane 11 months ago
`kubectl expose` is the right one!
DE
Demetra 11 months ago
I thought it was `kubectl create`?
JO
Jordan 11 months ago
Wait, are you sure about that?
RE
Reena 11 months ago
Yeah, `kubectl run` is for creating pods, not services.
EL
Elza 11 months ago
It's definitely `kubectl expose`.
SA
Samira 12 months ago
I might be mixing things up, but I think `kubectl expose` is definitely the command we used in that lab exercise.
MA
Martin 12 months ago
I feel like `kubectl run` is related to creating pods, so it probably isn’t the right answer for exposing a service.
MI
Mitzie 1 year ago
I remember practicing with `kubectl create`, but that was more about creating resources, not specifically exposing them.
LA
Lavonda 1 year ago
I think the command to expose a service is `kubectl expose`, but I’m not entirely sure if it’s the only way to do it.
EL
Elena 1 year ago
Okay, let me think this through step-by-step. We use kubectl to interact with the Kubernetes cluster, and to expose a service, we need to use a specific command. I'm going to go with option A, kubectl expose, since that sounds like the most relevant command for this task.
DA
Dalene 1 year ago
Ah, this is a tricky one. I think it might be option B, kubectl create, since that's the general command for creating Kubernetes resources. But I'm not 100% confident on that.
DE
Deonna 1 year ago
Hmm, I'm a bit unsure about this one. I know we covered services in the Kubernetes unit, but I can't quite remember the exact command. I'll have to think this through carefully.
MA
Maricela 1 year ago
I'm pretty sure it's option A, kubectl expose. That's the command we used in class to create a service and expose a deployment.
CA
Candra 1 year ago
Haha, this is too easy. A, of course! I bet the other options are just there to confuse us.
NO
Novella 1 year ago
↳ replying to Candra
User 2: Yeah, that's the right one!
AM
Amira 1 year ago
↳ replying to Candra
User 1: A) kubectl expose
JO
Johanna 1 year ago
I'm not sure, but I think it might be B) kubectl create because it sounds like it could create a service.
CA
Casey 1 year ago
Hmm, I'm pretty sure it's A. I mean, why else would it be called 'expose'?
HY
Hyman 1 year ago
↳ replying to Casey
B) kubectl create
TA
Tabetha 1 year ago
↳ replying to Casey
You're right, 'expose' does make sense for that command.
AI
Aileen 1 year ago
↳ replying to Casey
A) kubectl expose
SA
Sabra 1 year ago
Definitely A. kubectl expose is the command to expose a Kubernetes service.
DO
Dorothy 1 year ago
↳ replying to Sabra
That's correct! kubectl expose is the command to expose a Kubernetes service.
TY
Ty 1 year ago
↳ replying to Sabra
A) kubectl expose
ZO
Zoila 1 year ago
I agree with Kristel, because the expose command is specifically used to expose Kubernetes services.
KR
Kristel 1 year ago
I think the answer is A) kubectl expose.
0/2000 characters

Save Cancel