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 1 Question 58 Discussion

Actual exam question for Docker's DCA exam
Question #: 58
Topic #: 1
[All DCA Questions]

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

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Pearlie
4 months ago
I thought it was just for the current namespace.
upvoted 0 times
...
Terrilyn
5 months ago
Wait, are you sure about the syntax?
upvoted 0 times
...
Natalie
5 months ago
Totally agree, that command looks correct!
upvoted 0 times
...
Annita
5 months ago
I think it should be --selector instead of -I.
upvoted 0 times
...
Kelvin
5 months ago
Yes, it shows all pods with that label.
upvoted 0 times
...
Adria
5 months ago
I feel like I’ve seen this before, and I think the answer is No because of the label syntax issue.
upvoted 0 times
...
Francine
5 months ago
I’m pretty confident that it should display the pods, but I can't recall if it includes all namespaces correctly.
upvoted 0 times
...
Jesus
5 months ago
I remember practicing a similar question, and I think it should be `-l` instead of `-I` for labels.
upvoted 0 times
...
Bettina
6 months ago
I think the command is close, but I’m not sure if the syntax for the label selector is correct.
upvoted 0 times
...
Yen
6 months ago
I'm a bit confused. Using a batch file to rename the files doesn't seem like the right approach to me. I'll have to double-check the options.
upvoted 0 times
...
Freida
6 months ago
Hmm, I'm not entirely confident this is the right solution. The question mentions that some questions might not have a correct solution, so I'll need to carefully consider all the details before selecting an answer.
upvoted 0 times
...

Save Cancel