Complete the command to list pods with the label app=nginx.
kubectl get pods -l [1]The correct label selector syntax is key=value. So app=nginx selects pods with label app equal to nginx.
Complete the command to list services with the label tier=backend.
kubectl get services --selector=[1]The --selector flag uses the same label selector syntax as -l. Use tier=backend to filter services with that label.
Fix the error in the command to list pods with label environment=prod.
kubectl get pods -l [1]The correct label selector format is key=value. Using dashes or colons causes errors.
Fill both blanks to list pods with label app=web and tier=frontend.
kubectl get pods -l [1],[2]
Multiple labels are separated by commas. Each label uses key=value format.
Fill all three blanks to list pods with label app=api, environment=staging, and version=v1.
kubectl get pods -l [1],[2],[3]
Use commas to separate multiple labels. Each label must be in key=value format.