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

Docker DCA Exam - Topic 2 Question 59 Discussion

Posted by Lucina on Oct 14, 2022 at 08:00 PM

Does this command display all the pods in the cluster that are labeled as 'env: development'?

Solution: 'kubectl get pods --all-namespaces -label env=development'

Suggested Answer: B

Get Premium DCA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
12 comments · newest first
FR
Francoise 11 months ago
Wait, really? I thought -label was a valid option!
DO
Dorothy 11 months ago
No way, that command won't display anything!
NA
Nancey 12 months ago
I thought it was correct at first, but now I see the mistake.
MA
Matilda 12 months ago
Definitely not, it won't work as is.
LA
Lakeesha 12 months ago
That command has a typo, it should be --selector instead of -label.
AM
Amber 1 year ago
I remember that `kubectl get pods` can filter by labels, but I can't recall if the syntax is exactly right here.
KR
Kristofer 1 year ago
I'm not entirely sure, but I feel like the command might not work as expected because of the label syntax.
DE
Derick 1 year ago
I practiced a similar question, and I believe the correct flag should be `--selector` instead of `-label`.
CE
Cecil 1 year ago
I think the command is close, but I remember something about the syntax for labels needing a different flag.
FA
Fannie 1 year ago
I'm a little confused by this question. Are we supposed to just choose one tool, or is there a combination of tools that would work best? I'm leaning towards the static analysis tool, but I'm not 100% sure that's the right answer.
CA
Callie 1 year ago
The part about the 10GbE converged ports is tripping me up. I'll need to make sure I understand that requirement.
TH
Theola 1 year ago
Hmm, this looks like a tricky one. I'll need to carefully read through each option and think about what I know about Financial Reporting.
0/2000 characters

Save Cancel