Which command lists all resources across all namespaces in a single view?

Study for the Kubernetes Cloud Native Associate (KCNA) Certification 1 Test. Master the core concepts of Kubernetes with multiple-choice questions and detailed explanations. Prepare and boost your confidence for the KCNA certification exam!

Multiple Choice

Which command lists all resources across all namespaces in a single view?

Explanation:
To see resources from every namespace in one view, tell kubectl to operate across all namespaces. The shorthand for that is -A (or --all-namespaces). So kubectl get all -A queries the common resource types across every namespace and combines them into a single view. Using -n with all isn’t valid because -n expects a single, specific namespace name, not a broad keyword like all. And kubectl list isn’t a valid command—you fetch resources with kubectl get, not kubectl list. Remember that "all" covers the usual resource kinds shown by kubectl get, and -A is the right way to span all namespaces in the output.

To see resources from every namespace in one view, tell kubectl to operate across all namespaces. The shorthand for that is -A (or --all-namespaces). So kubectl get all -A queries the common resource types across every namespace and combines them into a single view.

Using -n with all isn’t valid because -n expects a single, specific namespace name, not a broad keyword like all. And kubectl list isn’t a valid command—you fetch resources with kubectl get, not kubectl list.

Remember that "all" covers the usual resource kinds shown by kubectl get, and -A is the right way to span all namespaces in the output.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy