Study. uk . com
  1. Home
  2. All questions
  3. Question 26

CKA study material · question 26 of 1000

A Role restricts list on configmaps by resourceNames. What must a client include for the request to be authorized?

  1. An impersonation header
  2. A label selector matching the ConfigMap
  3. The --all-namespaces flag
  4. A metadata.name field selector matching the named resource
Show the answer

Answer: D. A metadata.name field selector matching the named resource

Restricting list or watch by resourceNames requires the client to send a matching metadata.name field selector.

Source: Using RBAC Authorization (Kubernetes) — Referring to resources

Challenge yourself on this topic → Study as cards