BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKA Topic 1 Question 70 Discussion

Actual exam question for Linux Foundation's CKA exam
Question #: 70
Topic #: 1
[All CKA Questions]

Score: 4%

Task

Check to see how many nodes are ready (not including nodes tainted NoSchedule ) and write the number to /opt/KUSC00402/kusc00402.txt.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Tony
22 days ago
I'm a bit confused about the echo part at the end. Shouldn't we just write the final count to the file instead of hard-coding the numbers?
upvoted 0 times
Amira
3 days ago
It's better to dynamically write the final count to the file rather than hard-coding it.
upvoted 0 times
...
Miesha
4 days ago
Yes, you are right. We should write the final count to the file instead of hard-coding the numbers.
upvoted 0 times
...
...
William
25 days ago
Ha! I bet the exam writer is trying to trick us with this one. 'NoSchedule' taint? More like 'NoThanks' taint, am I right?
upvoted 0 times
Lyndia
5 days ago
Let's just focus on getting the right answer, no matter what they throw at us.
upvoted 0 times
...
Vashti
10 days ago
I know right, 'NoThanks' taint sounds more accurate!
upvoted 0 times
...
Elsa
12 days ago
Haha, yeah they're definitely trying to throw us off with that one.
upvoted 0 times
...
...
Frederic
1 months ago
Hmm, I think the second part of the solution is correct, but the first part seems a bit convoluted. Couldn't we just use 'kubectl get nodes --no-headers | wc -l' to get the total number of ready nodes?
upvoted 0 times
...
Angella
1 months ago
I believe the correct answer is to write the number 3 to the specified file.
upvoted 0 times
...
Edwin
1 months ago
The solution looks good, but I'm not sure about the need to check for nodes tainted with 'NoSchedule'. Shouldn't we just count the ready nodes regardless of their taints?
upvoted 0 times
Hubert
11 days ago
That's a good point. We should probably check for that as well.
upvoted 0 times
...
Cletus
12 days ago
But what if some nodes are tainted with 'NoSchedule'?
upvoted 0 times
...
Lorean
25 days ago
I think we should just count the ready nodes.
upvoted 0 times
...
...
Latonia
1 months ago
Yes, we need to count the nodes ready and exclude the ones tainted NoSchedule.
upvoted 0 times
...
Angella
1 months ago
I think the question is about checking nodes ready status.
upvoted 0 times
...

Save Cancel