# Which Hubble command shows which CiliumNetworkPolicy allowed or denied the connections in a namespace?

Cilium, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/which-hubble-command-shows-which-ciliumnetworkpolicy-allowed-or-denied-the-connections-in-a-namespace

- A. hubble observe -n shop --verdict DROPPED --print-policy-names
- B. hubble observe -n shop --protocol policy --last 20
- C. hubble observe -n shop -t policy-verdict --print-policy-names
- D. hubble list policies -n shop --show-verdicts

**Answer:** hubble observe -n shop -t policy-verdict --print-policy-names

**Explanation:** Policy verdict events record the policy decision for a connection. With --print-policy-names, Hubble adds the matched policies to the verdict, such as "DENIED BY name (CiliumNetworkPolicy)", using the network policy correlation that is on by default. On plain drop events the flag adds nothing, because Hubble only attaches policy names to policy verdict events.
