Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam KCNA topic 1 question 71 discussion

Actual exam question from Linux Foundation's KCNA
Question #: 71
Topic #: 1
[All KCNA Questions]

Which command provides information about the field replicas within the spec resource of a deployment object?

  • A. kubectl get deployment.spec.replicas
  • B. kubectl explain deployment.spec.replicas
  • C. kubectl describe deployment.spec.replicas
  • D. kubectl explain deployment --spec.replicas
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
EzBL
1 week, 2 days ago
Selected Answer: B
A. kubectl get deployment.spec.replicas: This command attempts to retrieve the value of replicas directly from the deployment resource. However, it's not a standard way to access nested fields like spec.replicas. B. kubectl explain deployment.spec.replicas: This command is used to get documentation or information about a specific field within a Kubernetes resource definition. It will provide details about what the replicas field represents within the spec of a deployment. C. kubectl describe deployment.spec.replicas: This command describes an existing resource, such as a deployment, but it does not specifically explain the meaning or purpose of a field like replicas within the spec. D. kubectl explain deployment --spec.replicas: This command is close but not entirely correct. It attempts to explain a flag --spec.replicas for the kubectl explain command, rather than directly explaining the replicas field within the spec of a deployment.
upvoted 1 times
...
alex78
2 months ago
Selected Answer: B
https://kubernetes.io/docs/reference/kubectl/generated/kubectl_explain/
upvoted 1 times
...
hovnival
2 months ago
Selected Answer: B
guys this one is totally B. kubectl explain deployment.spec.replicas kubectl explain deployment => info about deployment kubectl explain deployment.spec => info about spec in deployment kubectl explain deployment.spec.replicas => info aout replicas in spec in deployment
upvoted 1 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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in