exam questions

Exam DCA All Questions

View all questions & answers for the DCA exam

Exam DCA topic 1 question 58 discussion

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

Does this command display all the pods in the cluster that are labeled as ‘env: development’?
‘kubectl get pods --all-namespaces -l ‘env in (development)’ ’

  • A. Yes
  • B. No
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Brandontb12
1 week, 4 days ago
Selected Answer: A
This command will work. The correct answer is A since it is using --all-namespaces. The section "-l 'env in (development)' will return all pods with the label env=development. I just tested it on a kubernetes cluster.
upvoted 1 times
...
Lightfood
10 months, 2 weeks ago
Selected Answer: B
Correct answer is b
upvoted 2 times
...
bes_i
10 months, 3 weeks ago
Selected Answer: B
kubectl get pods --all-namespaces -l env=development
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...