Cyber Monday 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
2 months 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
Georgiana
1 months ago
You can use the output of the command directly to write the final count to the file.
upvoted 0 times
...
Amira
1 months ago
It's better to dynamically write the final count to the file rather than hard-coding it.
upvoted 0 times
...
Miesha
1 months ago
Yes, you are right. We should write the final count to the file instead of hard-coding the numbers.
upvoted 0 times
...
...
William
2 months 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
1 months ago
Let's just focus on getting the right answer, no matter what they throw at us.
upvoted 0 times
...
Vashti
1 months ago
I know right, 'NoThanks' taint sounds more accurate!
upvoted 0 times
...
Elsa
2 months ago
Haha, yeah they're definitely trying to throw us off with that one.
upvoted 0 times
...
...
Frederic
2 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
2 months ago
I believe the correct answer is to write the number 3 to the specified file.
upvoted 0 times
...
Edwin
2 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
Adria
26 days ago
Agreed. Let's make sure to include that in our solution.
upvoted 0 times
...
Hubert
2 months ago
That's a good point. We should probably check for that as well.
upvoted 0 times
...
Cletus
2 months ago
But what if some nodes are tainted with 'NoSchedule'?
upvoted 0 times
...
Lorean
2 months ago
I think we should just count the ready nodes.
upvoted 0 times
...
...
Latonia
3 months ago
Yes, we need to count the nodes ready and exclude the ones tainted NoSchedule.
upvoted 0 times
...
Angella
3 months ago
I think the question is about checking nodes ready status.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77