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)’ ’
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.
kubectl get pods --all-namespaces -l env=development
upvoted 2 times
...
This section is not available anymore. Please use the main Exam Page.DCA Exam Questions
Log in to ExamTopics
Sign in:
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.
Brandontb12
1 week, 4 days agoLightfood
10 months, 2 weeks agobes_i
10 months, 3 weeks ago