VMware Carbon Black Cloud Enterprise EDR (2020) — Question 20
Which command should be used by a developer to log in to the vSphere with Tanzu Supervisor Cluster?
Answer options
- A. vmwarectl login –server=<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> --vsphere-username <VCENTER-SSO-USER>
- B. kubectl vsphere login --server=<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> --vsphere-username <VCENTER-SSO-USER>
- C. vmwarectl vsphere login --server-<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> --vsphere-username <VCENTER-SSO-USER>
- D. kubectl login --server=<KUBERNETES-CONTROL-PLANE-IP-ADDRESS> --vsphere-username <VCENTER-SSO-USER>
Correct answer: B
Explanation
The correct command is B, as it uses 'kubectl vsphere login', which is the proper command to log into the vSphere with Tanzu Supervisor Cluster. Option A uses 'vmwarectl', which is not the correct command for this action. Option C has a syntax error with '--server-' instead of '--server', and option D uses 'kubectl login', which does not specifically cater to vSphere authentication.