# Cilium quiz questions

> 68 multiple-choice questions on eBPF networking, network policies, Hubble, ClusterMesh, encryption and kube-proxy replacement, with answers and explanations.

Quiz page: https://k8wiz.com/cilium/difficulty

## Beginner (Easy): 22 questions

Interactive quiz: https://k8wiz.com/cilium/quiz/easy

### What is Cilium?

Cilium, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-cilium

- A. A Kubernetes monitoring solution
- B. A container runtime interface
- C. An eBPF-based networking, observability, and security solution for Kubernetes
- D. A service mesh control plane

**Answer:** An eBPF-based networking, observability, and security solution for Kubernetes

**Explanation:** Cilium is an open source project that provides networking, security, and observability for cloud native environments using eBPF technology. It can replace traditional Linux networking components with more efficient and powerful eBPF-based implementations.

### What technology does Cilium use at its core?

Cilium, Easy (Beginner), Architecture. https://k8wiz.com/uquiz/what-technology-does-cilium-use-at-its-core

- A. iptables
- B. eBPF
- C. IPVS
- D. OpenFlow

**Answer:** eBPF

**Explanation:** Cilium uses eBPF (extended Berkeley Packet Filter) technology at its core. eBPF allows programs to run in the Linux kernel without changing kernel source code or loading kernel modules, providing high-performance networking, observability, and security capabilities.

### Which of the following is NOT a feature of Cilium?

Cilium, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-feature-of-cilium

- A. Network policy enforcement
- B. Load balancing
- C. Virtual machine orchestration
- D. Service mesh capabilities

**Answer:** Virtual machine orchestration

**Explanation:** While Cilium provides network policy enforcement, load balancing, and service mesh capabilities, it does not provide virtual machine orchestration. Cilium focuses on container networking, security, and observability rather than VM management.

### What is Hubble in the context of Cilium?

Cilium, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-hubble-in-the-context-of-cilium

- A. A CLI tool for managing Cilium
- B. The observability component of Cilium
- C. A Kubernetes operator for Cilium
- D. The control plane for Cilium's service mesh

**Answer:** The observability component of Cilium

**Explanation:** Hubble is the observability component of Cilium. It provides visibility into network flows, application behavior, and security events by leveraging eBPF to collect and process data. Hubble includes a UI, CLI, and API for accessing this observability data.

### Which command would you use to install Cilium using the CLI?

Cilium, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-install-cilium-using-the-cli

- A. kubectl apply -f cilium.yaml
- B. helm install cilium
- C. cilium install
- D. kubectl cilium install

**Answer:** cilium install

**Explanation:** The 'cilium install' command is used to install Cilium using the Cilium CLI. This command simplifies the installation process by automatically applying the necessary Kubernetes manifests with appropriate configuration.

### What is the purpose of Cilium's Network Policy feature?

Cilium, Easy (Beginner), Networking. https://k8wiz.com/uquiz/what-is-the-purpose-of-ciliums-network-policy-feature

- A. To optimize network performance
- B. To enforce security rules for communication between pods
- C. To provide load balancing for services
- D. To monitor network traffic

**Answer:** To enforce security rules for communication between pods

**Explanation:** Cilium's Network Policy feature enforces security rules that control the communication between pods. It allows you to define which pods can communicate with each other and what protocols and ports they can use, providing fine-grained network security for Kubernetes applications.

### What command would you use to check the status of Cilium in your cluster?

Cilium, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-command-would-you-use-to-check-the-status-of-cilium-in-your-cluster

- A. kubectl get cilium
- B. cilium status
- C. kubectl describe cilium
- D. cilium-health status

**Answer:** cilium status

**Explanation:** The 'cilium status' command is used to check the status of Cilium in your cluster. It provides information about the Cilium agents, controllers, and other components, helping you verify that Cilium is running correctly.

### Which command would you use to list all Cilium endpoints?

Cilium, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-list-all-cilium-endpoints

- A. kubectl get endpoints
- B. cilium endpoint list
- C. cilium get endpoints
- D. kubectl get cilium-endpoints

**Answer:** cilium endpoint list

**Explanation:** The 'cilium endpoint list' command is used to list all Cilium endpoints in the cluster. This command shows details about each endpoint, including its ID, identity, state, and associated pod.

### What is Cilium's Hubble UI used for?

Cilium, Easy (Beginner), Concepts. https://k8wiz.com/uquiz/what-is-ciliums-hubble-ui-used-for

- A. Managing Cilium configuration
- B. Visualizing network flows and security events
- C. Editing network policies graphically
- D. Monitoring Cilium agent performance

**Answer:** Visualizing network flows and security events

**Explanation:** Cilium's Hubble UI is a web interface that visualizes network flows and security events collected by Hubble. It provides a graphical representation of communication between pods, services, and external endpoints, helping users understand their application connectivity and identify potential security issues.

### Which command would you use to enable Hubble in a Cilium installation?

Cilium, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-enable-hubble-in-a-cilium-installation

- A. kubectl apply -f hubble.yaml
- B. cilium hubble enable
- C. helm upgrade cilium --set hubble.enabled=true
- D. kubectl patch cilium --type merge -p '{"spec":{"hubble":{"enabled":true}}}'

**Answer:** cilium hubble enable

**Explanation:** The 'cilium hubble enable' command is used to enable Hubble in a Cilium installation. This command configures the necessary components to collect and expose observability data through Hubble, including the Hubble Relay for accessing this data from outside the cluster.

### Which field in a CiliumNetworkPolicy egress rule allows traffic to the IPs behind a domain name?

Cilium, Easy (Beginner), Policies. https://k8wiz.com/uquiz/which-field-in-a-ciliumnetworkpolicy-egress-rule-allows-traffic-to-the-ips-behind-a-domain-name

- A. toServices
- B. toCIDRSet
- C. toFQDNs
- D. toEntities

**Answer:** toFQDNs

**Explanation:** toFQDNs takes matchName or matchPattern entries, and Cilium fills in the matching IPs from the DNS answers its proxy sees. That keeps the policy correct when a provider's IPs change. toCIDRSet needs the IP ranges written out, and toEntities selects groups such as world or cluster.

### Which command, run in a Cilium agent pod, lists the domain names and IPs that toFQDNs policies have learned?

Cilium, Easy (Beginner), Commands. https://k8wiz.com/uquiz/which-command-run-in-a-cilium-agent-pod-lists-the-domain-names-and-ips-that-tofqdns-policies-have-learned

- A. cilium-dbg fqdn cache list
- B. cilium-dbg dns lookup list
- C. cilium-dbg policy fqdn get
- D. cilium-dbg endpoint dns list

**Answer:** cilium-dbg fqdn cache list

**Explanation:** cilium-dbg fqdn cache list shows each endpoint's DNS lookups with the name, TTL, expiry time and IPs. Run it in the agent on the same node as the pod, since each agent only sees the DNS traffic of its own node. A missing name means the DNS proxy never saw the lookup.

### Which domain does the Cilium toFQDNs pattern *.example.com match?

Cilium, Easy (Beginner), Policies. https://k8wiz.com/uquiz/which-domain-does-the-cilium-tofqdns-pattern-examplecom-match

- A. example.com
- B. a.b.example.com
- C. example.com.evil.io
- D. api.example.com

**Answer:** api.example.com

**Explanation:** In a Cilium matchPattern, * matches any characters except a dot, so *.example.com covers exactly one extra label. It doesn't match the bare example.com or a.b.example.com. The **. prefix, as in **.example.com, matches subdomains at any depth.

### Which Cilium resource tells nodes to answer ARP requests for LoadBalancer Service IPs on the local network?

Cilium, Easy (Beginner), Networking. https://k8wiz.com/uquiz/which-cilium-resource-tells-nodes-to-answer-arp-requests-for-loadbalancer-service-ips-on-the-local-network

- A. CiliumLoadBalancerIPPool
- B. CiliumL2AnnouncementPolicy
- C. CiliumBGPAdvertisement
- D. CiliumNodeConfig

**Answer:** CiliumL2AnnouncementPolicy

**Explanation:** A CiliumL2AnnouncementPolicy selects which Services are announced, from which nodes and on which interfaces, and the elected node answers ARP (or NDP) for their IPs. A CiliumLoadBalancerIPPool only allocates the addresses; without an announcement policy, nothing on the LAN can reach them.

### Which annotation lets two LoadBalancer Services get the same IP from Cilium LB IPAM?

Cilium, Easy (Beginner), Networking. https://k8wiz.com/uquiz/which-annotation-lets-two-loadbalancer-services-get-the-same-ip-from-cilium-lb-ipam

- A. lbipam.cilium.io/ips
- B. io.cilium/shared-service
- C. lbipam.cilium.io/pool-name
- D. lbipam.cilium.io/sharing-key

**Answer:** lbipam.cilium.io/sharing-key

**Explanation:** Services with the same lbipam.cilium.io/sharing-key value share an IP as long as their ports don't conflict. The lbipam.cilium.io/ips annotation requests specific addresses but doesn't make Services share one. Sharing across namespaces also needs the lbipam.cilium.io/sharing-cross-namespace annotation on both Services.

### How can you see which node currently announces a Service IP with Cilium L2 announcements?

Cilium, Easy (Beginner), Commands. https://k8wiz.com/uquiz/how-can-you-see-which-node-currently-announces-a-service-ip-with-cilium-l2-announcements

- A. Check the holder of the cilium-l2announce Lease for that Service
- B. Read the nodeName field in the Service's status conditions
- C. Look at the CiliumL2AnnouncementPolicy status for that Service
- D. Run cilium status --verbose on any node and find the Service

**Answer:** Check the holder of the cilium-l2announce Lease for that Service

**Explanation:** Each announced Service gets a Lease named cilium-l2announce-<namespace>-<service> in Cilium's namespace, usually kube-system. Its holder is the node that answers ARP for the Service IP. The policy status only reports errors in the policy itself, such as an invalid selector.

### Which hubble observe flag shows only the flows that Cilium dropped for one specific reason, such as POLICY_DENIED?

Cilium, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/which-hubble-observe-flag-shows-only-the-flows-that-cilium-dropped-for-one-specific-reason-such-as-policy_denied

- A. --verdict-reason
- B. --drop-reason-desc
- C. --drop-type
- D. --drop-reason-code

**Answer:** --drop-reason-desc

**Explanation:** The --drop-reason-desc filter matches the drop_reason_desc field of a flow, which holds enum names such as POLICY_DENIED or SERVICE_BACKEND_NOT_FOUND. It is often combined with --namespace or --pod. The other flags don't exist in the Hubble CLI.

### What does the -P flag do when you run hubble status -P or hubble observe -P from your laptop?

Cilium, Easy (Beginner), Commands. https://k8wiz.com/uquiz/what-does-the-p-flag-do-when-you-run-hubble-status-p-or-hubble-observe-p-from-your-laptop

- A. It prints the policy names next to each flow
- B. It pauses the stream until you press a key
- C. It limits the output to flows from one pod
- D. It port-forwards to Hubble Relay for you

**Answer:** It port-forwards to Hubble Relay for you

**Explanation:** -P is short for --port-forward. The Hubble CLI opens a port-forward to the Hubble Relay service, the same as running cilium hubble port-forward, and connects to it on localhost:4245. Printing policy names is a separate flag, --print-policy-names.

### Hubble shows a client's request to a ClusterIP dropped with the reason "Service backend not found". What is the most likely cause?

Cilium, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/hubble-shows-a-clients-request-to-a-clusterip-dropped-with-the-reason-service-backend-not-found-what-is-the-most-likely-cause

- A. The Service has no usable backend for that traffic
- B. A network policy blocks the client from the Service
- C. The client's DNS lookup for the Service name failed
- D. The connection tracking table on the node is full

**Answer:** The Service has no usable backend for that traffic

**Explanation:** Cilium's load balancer drops traffic with SERVICE_BACKEND_NOT_FOUND (code 158) when the Service address has no backend to send it to, for example an empty EndpointSlice or a traffic policy of Local with no backend on that node. A policy block shows up as "Policy denied" instead, and a full conntrack map as "CT: Map insertion failed".

### Which UDP port must be open between nodes for Cilium's WireGuard encryption?

Cilium, Easy (Beginner), Networking. https://k8wiz.com/uquiz/which-udp-port-must-be-open-between-nodes-for-ciliums-wireguard-encryption

- A. 51820
- B. 51871
- C. 4789
- D. 8472

**Answer:** 51871

**Explanation:** Cilium's WireGuard tunnel endpoint listens on UDP port 51871 on every node, so firewalls and security groups must allow it between all nodes, and between clusters in Cluster Mesh. 51820 is the port people know from standalone WireGuard setups, while 4789 and 8472 are VXLAN ports.

### Besides encryption.enabled=true, which Helm value makes Cilium encrypt pod traffic with WireGuard?

Cilium, Easy (Beginner), Security. https://k8wiz.com/uquiz/besides-encryptionenabledtrue-which-helm-value-makes-cilium-encrypt-pod-traffic-with-wireguard

- A. encryption.wireguard.enabled=true
- B. encryption.mode=wireguard
- C. encryption.type=wireguard
- D. wireguard.enabled=true

**Answer:** encryption.type=wireguard

**Explanation:** encryption.type picks the method and accepts ipsec, wireguard or ztunnel. Its default is ipsec, so encryption.enabled=true on its own selects IPsec. The chart renders the WireGuard choice as enable-wireguard in the cilium-config ConfigMap.

### On which interface do you run tcpdump to see pod traffic entering Cilium's WireGuard tunnel?

Cilium, Easy (Beginner), Troubleshooting. https://k8wiz.com/uquiz/on-which-interface-do-you-run-tcpdump-to-see-pod-traffic-entering-ciliums-wireguard-tunnel

- A. cilium_wg0
- B. cilium_host
- C. cilium_vxlan
- D. wg0

**Answer:** cilium_wg0

**Explanation:** The Cilium agent creates a WireGuard device named cilium_wg0, and the upstream guide checks encryption by running tcpdump on it while pods on different nodes talk. Packets there still show pod IPs in clear text, since the kernel encrypts them as they leave the device. cilium_vxlan carries overlay traffic, not WireGuard traffic.

## Advanced (Medium): 22 questions

Interactive quiz: https://k8wiz.com/cilium/quiz/medium

### Which of the following is a unique capability of Cilium compared to traditional CNI plugins?

Cilium, Medium (Advanced), Networking. https://k8wiz.com/uquiz/which-of-the-following-is-a-unique-capability-of-cilium-compared-to-traditional-cni-plugins

- A. Basic pod-to-pod connectivity
- B. Support for Kubernetes services
- C. Application protocol awareness (L7 policies)
- D. IP address management

**Answer:** Application protocol awareness (L7 policies)

**Explanation:** While most CNI plugins provide basic connectivity, service support, and IP management, Cilium's ability to understand and filter traffic based on application protocols (L7) is a distinguishing feature. This allows for more fine-grained security policies based on HTTP methods, paths, DNS queries, and other application-layer attributes.

### What is a Cilium Endpoint?

Cilium, Medium (Advanced), Concepts. https://k8wiz.com/uquiz/what-is-a-cilium-endpoint

- A. A Kubernetes service exposed by Cilium
- B. A network interface managed by Cilium
- C. A representation of a networked workload (like a pod) in Cilium
- D. A Cilium agent running on a node

**Answer:** A representation of a networked workload (like a pod) in Cilium

**Explanation:** In Cilium, an Endpoint represents a networked workload, typically a Kubernetes pod. Each endpoint has its own security identity and policy enforcement. Cilium creates and manages these endpoints to provide networking and security features for workloads.

### What is Cilium's ClusterMesh feature used for?

Cilium, Medium (Advanced), Networking. https://k8wiz.com/uquiz/what-is-ciliums-clustermesh-feature-used-for

- A. Connecting multiple Kubernetes clusters with a service mesh
- B. Creating a mesh network within a single cluster
- C. Implementing a service mesh control plane
- D. Connecting Cilium to external mesh networks

**Answer:** Connecting multiple Kubernetes clusters with a service mesh

**Explanation:** Cilium's ClusterMesh feature allows you to connect multiple Kubernetes clusters together, enabling pod-to-pod connectivity, network policy enforcement, and service discovery across cluster boundaries. This creates a unified network across multiple clusters without requiring a central control plane.

### What is the purpose of the 'cilium connectivity test' command?

Cilium, Medium (Advanced), Commands. https://k8wiz.com/uquiz/what-is-the-purpose-of-the-cilium-connectivity-test-command

- A. To test internet connectivity from the Cilium agents
- B. To verify that Cilium's datapath is functioning correctly
- C. To check if Cilium can connect to external services
- D. To test connectivity between specific pods

**Answer:** To verify that Cilium's datapath is functioning correctly

**Explanation:** The 'cilium connectivity test' command runs a series of tests to verify that Cilium's datapath is functioning correctly. It tests various aspects of connectivity, including pod-to-pod communication, service resolution, and policy enforcement, helping to identify any issues with Cilium's networking functionality.

### Which component of Cilium is responsible for distributing security identities across the cluster?

Cilium, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-component-of-cilium-is-responsible-for-distributing-security-identities-across-the-cluster

- A. Hubble
- B. Cilium agent
- C. kvstore
- D. Cilium Operator

**Answer:** kvstore

**Explanation:** Cilium uses a key-value store (kvstore) to distribute security identities and other cluster-wide information across all nodes. This can be etcd or Kubernetes CRDs, depending on the configuration. The kvstore ensures that all Cilium agents have a consistent view of identities, which is crucial for policy enforcement.

### What is a Cilium Network Policy CRD?

Cilium, Medium (Advanced), Policies. https://k8wiz.com/uquiz/what-is-a-cilium-network-policy-crd

- A. A standard Kubernetes NetworkPolicy resource
- B. A Custom Resource Definition that extends Kubernetes NetworkPolicy with Cilium-specific features
- C. A policy that applies only to Cilium-managed endpoints
- D. A policy that defines how Cilium agents communicate with each other

**Answer:** A Custom Resource Definition that extends Kubernetes NetworkPolicy with Cilium-specific features

**Explanation:** Cilium Network Policy CRDs (CiliumNetworkPolicy) extend the standard Kubernetes NetworkPolicy resource with Cilium-specific features. These include the ability to filter traffic based on DNS names, HTTP headers, and other application-layer attributes, providing more fine-grained control over network traffic.

### Which command would you use to get detailed information about a specific Cilium endpoint?

Cilium, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-get-detailed-information-about-a-specific-cilium-endpoint

- A. kubectl describe cilium-endpoint <id>
- B. cilium endpoint get <id>
- C. cilium endpoint inspect <id>
- D. kubectl get cilium-endpoint <id> -o yaml

**Answer:** cilium endpoint inspect <id>

**Explanation:** The 'cilium endpoint inspect <id>' command is used to get detailed information about a specific Cilium endpoint. This includes its configuration, status, identity, labels, and policy information, which is useful for troubleshooting issues with specific pods.

### What is Cilium's BPF-based kube-proxy replacement?

Cilium, Medium (Advanced), Networking. https://k8wiz.com/uquiz/what-is-ciliums-bpf-based-kube-proxy-replacement

- A. A feature that uses eBPF to implement Kubernetes services more efficiently
- B. A replacement for the entire Kubernetes control plane
- C. A proxy that intercepts all pod traffic
- D. A load balancer for external traffic

**Answer:** A feature that uses eBPF to implement Kubernetes services more efficiently

**Explanation:** Cilium's kube-proxy replacement is a feature that uses eBPF to implement Kubernetes services more efficiently than the standard kube-proxy. It provides the same functionality (ClusterIP, NodePort, ExternalIPs, LoadBalancer) but with better performance and additional features like direct server return and socket-based load balancing.

### What is the purpose of Cilium's identity-based security?

Cilium, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-is-the-purpose-of-ciliums-identity-based-security

- A. To authenticate users accessing the Kubernetes API
- B. To secure communication between Cilium components
- C. To assign unique identities to workloads for policy enforcement
- D. To verify the identity of container images

**Answer:** To assign unique identities to workloads for policy enforcement

**Explanation:** Cilium's identity-based security assigns unique identities to workloads (like pods) based on their labels. These identities are used for policy enforcement, allowing Cilium to control which workloads can communicate with each other based on their identities rather than IP addresses, which can change frequently in Kubernetes environments.

### Which command would you use to view Cilium network policies in a namespace?

Cilium, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-view-cilium-network-policies-in-a-namespace

- A. kubectl get networkpolicies -n <namespace>
- B. cilium policy get -n <namespace>
- C. kubectl get ciliumnetworkpolicies -n <namespace>
- D. cilium get policies -n <namespace>

**Answer:** kubectl get ciliumnetworkpolicies -n <namespace>

**Explanation:** The 'kubectl get ciliumnetworkpolicies -n <namespace>' command is used to view Cilium network policies (CiliumNetworkPolicy resources) in a specific namespace. This shows all the Cilium-specific network policies that have been defined in that namespace.

### What is the purpose of Cilium's transparent encryption feature?

Cilium, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-is-the-purpose-of-ciliums-transparent-encryption-feature

- A. To encrypt data stored by pods
- B. To encrypt network traffic between pods across nodes
- C. To encrypt Kubernetes secrets
- D. To encrypt communication between Cilium components

**Answer:** To encrypt network traffic between pods across nodes

**Explanation:** Cilium's transparent encryption feature encrypts network traffic between pods across different nodes. It uses IPsec or WireGuard to provide this encryption without requiring any changes to the application code, ensuring that sensitive data remains protected as it traverses the network between nodes.

### Which of the following is NOT a valid Cilium datapath mode?

Cilium, Medium (Advanced), Networking. https://k8wiz.com/uquiz/which-of-the-following-is-not-a-valid-cilium-datapath-mode

- A. tunnel
- B. direct
- C. routing
- D. mesh

**Answer:** mesh

**Explanation:** Cilium supports three main datapath modes: 'tunnel' (using VXLAN or Geneve encapsulation), 'direct' (native routing without encapsulation), and 'routing' (using the host's routing table). 'Mesh' is not a valid Cilium datapath mode, although Cilium does support mesh-like connectivity through its ClusterMesh feature.

### What is the purpose of Cilium's DNS-based policies?

Cilium, Medium (Advanced), Policies. https://k8wiz.com/uquiz/what-is-the-purpose-of-ciliums-dns-based-policies

- A. To control which DNS servers pods can use
- B. To filter traffic based on domain names rather than IP addresses
- C. To implement DNS-based service discovery
- D. To secure the Kubernetes DNS service

**Answer:** To filter traffic based on domain names rather than IP addresses

**Explanation:** Cilium's DNS-based policies allow you to filter traffic based on domain names rather than IP addresses. This means you can create policies that allow or deny access to specific domains (like 'example.com') regardless of their IP addresses, which can change over time. This is particularly useful for controlling access to external services.

### Which command would you use to view the Cilium agent logs on a specific node?

Cilium, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-view-the-cilium-agent-logs-on-a-specific-node

- A. kubectl logs -n kube-system -l k8s-app=cilium -o <node-name>
- B. cilium logs <node-name>
- C. kubectl logs -n kube-system <cilium-pod-name>
- D. cilium node logs <node-name>

**Answer:** kubectl logs -n kube-system <cilium-pod-name>

**Explanation:** To view the Cilium agent logs on a specific node, you would use 'kubectl logs -n kube-system <cilium-pod-name>', where <cilium-pod-name> is the name of the Cilium pod running on that node. Cilium runs as a DaemonSet, so there's one pod per node, and the pod name typically includes the node name.

### What is a Cilium 'identity'?

Cilium, Medium (Advanced), Security. https://k8wiz.com/uquiz/what-is-a-cilium-identity

- A. A unique identifier for a Cilium agent
- B. A security concept representing a set of labels assigned to endpoints
- C. A credential used to authenticate with the Kubernetes API
- D. A unique identifier for a Cilium network policy

**Answer:** A security concept representing a set of labels assigned to endpoints

**Explanation:** In Cilium, an 'identity' is a security concept that represents a set of labels assigned to endpoints (like pods). Each unique set of labels gets a numeric identity, and these identities are used in policy enforcement. This allows Cilium to efficiently enforce policies based on high-level labels rather than low-level network attributes.

### Which of the following is a benefit of Cilium's eBPF-based implementation compared to iptables?

Cilium, Medium (Advanced), Architecture. https://k8wiz.com/uquiz/which-of-the-following-is-a-benefit-of-ciliums-ebpf-based-implementation-compared-to-iptables

- A. Wider compatibility with older Linux kernels
- B. Simpler configuration and management
- C. Better performance and scalability
- D. Native integration with Docker

**Answer:** Better performance and scalability

**Explanation:** A key benefit of Cilium's eBPF-based implementation compared to iptables is better performance and scalability. eBPF programs can make forwarding decisions more efficiently than iptables chains, especially as the number of rules grows. This results in lower latency and better throughput, particularly in large clusters with many services and network policies.

### What is Cilium's 'host-reachable services' feature?

Cilium, Medium (Advanced), Networking. https://k8wiz.com/uquiz/what-is-ciliums-host-reachable-services-feature

- A. A way to make Kubernetes services accessible from outside the cluster
- B. A feature that allows pods to access services on the host
- C. A feature that makes Kubernetes services accessible from the host itself
- D. A way to check if services are reachable from all hosts

**Answer:** A feature that makes Kubernetes services accessible from the host itself

**Explanation:** Cilium's 'host-reachable services' feature makes Kubernetes services accessible from the host itself. By default, when using Cilium's kube-proxy replacement, services are only accessible from pods. This feature extends service access to processes running directly on the host, which can be useful for monitoring tools or other host-level services.

### Which command would you use to restart the Cilium agent on a specific node?

Cilium, Medium (Advanced), Commands. https://k8wiz.com/uquiz/which-command-would-you-use-to-restart-the-cilium-agent-on-a-specific-node

- A. cilium restart <node-name>
- B. kubectl delete pod -n kube-system <cilium-pod-name>
- C. kubectl rollout restart -n kube-system ds/cilium --field-selector spec.nodeName=<node-name>
- D. cilium node restart <node-name>

**Answer:** kubectl delete pod -n kube-system <cilium-pod-name>

**Explanation:** To restart the Cilium agent on a specific node, you would use 'kubectl delete pod -n kube-system <cilium-pod-name>', where <cilium-pod-name> is the name of the Cilium pod running on that node. Since Cilium runs as a DaemonSet, Kubernetes will automatically create a new pod to replace the deleted one, effectively restarting the agent.

### Alpine-based pods fail DNS lookups after a Cilium DNS rule is narrowed to a few names. Which Helm value makes the DNS proxy reject queries in a way their resolver handles?

Cilium, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/alpine-based-pods-fail-dns-lookups-after-a-cilium-dns-rule-is-narrowed-to-a-few-names-which-helm-value-makes-the-dns-proxy-rejec

- A. dnsProxy.enableDnsCompression=false
- B. dnsProxy.dnsRejectResponseCode=nameError
- C. dnsProxy.minTtl=3600
- D. dnsProxy.proxyResponseMaxDelay=0s

**Answer:** dnsProxy.dnsRejectResponseCode=nameError

**Explanation:** By default the proxy answers a disallowed query with REFUSED. Some resolvers, such as musl in Alpine, treat that as a hard failure and stop walking the search list, so the real name is never tried. Answering with NXDOMAIN (nameError) lets them move on; lowering ndots in the pod's dnsConfig also works.

### A CiliumL2AnnouncementPolicy with only a nodeSelector and interfaces applies cleanly, yet no Service IP is announced. Why?

Cilium, Medium (Advanced), Troubleshooting. https://k8wiz.com/uquiz/a-ciliuml2announcementpolicy-with-only-a-nodeselector-and-interfaces-applies-cleanly-yet-no-service-ip-is-announced-why

- A. The policy also needs a serviceSelector, or it matches no Services
- B. The policy must live in the same namespace as the Services
- C. loadBalancerIPs and externalIPs both default to false
- D. The interfaces field only accepts exact names, not patterns

**Answer:** loadBalancerIPs and externalIPs both default to false

**Explanation:** The loadBalancerIPs and externalIPs fields decide which kinds of IPs get announced, and both are false by default, so the policy announces nothing. Set loadBalancerIPs: true to announce addresses from LB IPAM. Leaving out serviceSelector is fine, because it then selects every eligible Service.

### 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.

### With encryption.nodeEncryption=true, which nodes does Cilium leave out of node-to-node WireGuard encryption by default?

Cilium, Medium (Advanced), Security. https://k8wiz.com/uquiz/with-encryptionnodeencryptiontrue-which-nodes-does-cilium-leave-out-of-node-to-node-wireguard-encryption-by-default

- A. Nodes running host-network pods
- B. Nodes in a different availability zone
- C. Nodes without a CiliumNode resource
- D. Nodes with the control-plane role label

**Answer:** Nodes with the control-plane role label

**Explanation:** The node-encryption-opt-out-labels option defaults to node-role.kubernetes.io/control-plane, so those nodes skip node-to-node encryption. Otherwise a worker whose key changed would have to update its CiliumNode over a connection encrypted with its old key and could lock itself out. Pod-to-pod traffic on those nodes is still encrypted.

## Expert (Hard): 24 questions

Interactive quiz: https://k8wiz.com/cilium/quiz/hard

### What is the purpose of Cilium's egress gateway feature?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/what-is-the-purpose-of-ciliums-egress-gateway-feature

- A. To provide a default route for all outgoing traffic
- B. To encrypt traffic leaving the cluster
- C. To allow pods to reach external services with a specific source IP address
- D. To implement a gateway API for external access to services

**Answer:** To allow pods to reach external services with a specific source IP address

**Explanation:** Cilium's egress gateway feature allows pods to reach external services with a specific source IP address. This is useful when external services whitelist specific IP addresses for security reasons, as it allows you to control the source IP of traffic leaving your cluster, even as pods are created and destroyed.

### What is the purpose of Cilium's 'prefilter' feature?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/what-is-the-purpose-of-ciliums-prefilter-feature

- A. To filter traffic before it reaches the main Cilium datapath
- B. To preprocess network policies before applying them
- C. To filter pod creation requests based on security criteria
- D. To implement pre-connection checks for services

**Answer:** To filter traffic before it reaches the main Cilium datapath

**Explanation:** Cilium's 'prefilter' feature filters traffic before it reaches the main Cilium datapath. It allows you to define rules to drop traffic based on IP addresses and ports at an early stage in packet processing, which can improve performance by reducing the load on the main datapath. This is particularly useful for blocking known malicious sources or implementing simple firewall rules.

### In Cilium's tunnel mode (VXLAN or Geneve), how does the receiving node learn the security identity of a packet sent by a pod on another node?

Cilium, Hard (Expert), Architecture. https://k8wiz.com/uquiz/in-ciliums-tunnel-mode-vxlan-or-geneve-how-does-the-receiving-node-learn-the-security-identity-of-a-packet-sent-by-a-pod-on-anot

- A. The receiving node asks the Kubernetes API server for the source pod's labels
- B. Hubble Relay sends the identity along with each flow
- C. The identity is written into the TCP options of each packet
- D. The sending node puts the source identity in the encapsulation header

**Answer:** The sending node puts the source identity in the encapsulation header

**Explanation:** Encapsulation protocols can carry metadata with each packet. Cilium uses this to send the source security identity, in the VXLAN VNI or the Geneve header, so the destination node can enforce policy without a lookup. In native routing mode there's no tunnel header, so Cilium maps the source IP to an identity through its ipcache instead.

### A CiliumNetworkPolicy contains HTTP rules, such as allowing only GET requests to /api. Which component enforces those rules?

Cilium, Hard (Expert), Policies. https://k8wiz.com/uquiz/a-ciliumnetworkpolicy-contains-http-rules-such-as-allowing-only-get-requests-to-api-which-component-enforces-those-rules

- A. The eBPF program attached to the pod's network interface
- B. An Envoy proxy that Cilium redirects the matching traffic to
- C. kube-proxy
- D. The Hubble server on each node

**Answer:** An Envoy proxy that Cilium redirects the matching traffic to

**Explanation:** eBPF programs enforce L3 and L4 rules in the kernel. When a rule has an L7 section, the datapath redirects that traffic to Envoy, which parses the HTTP or gRPC requests and applies the rule. Envoy runs inside the agent or as a separate cilium-envoy DaemonSet. Only traffic selected by L7 rules goes through the proxy.

### How does a client experience a request blocked by an L3/L4 Cilium policy, compared with one blocked by an L7 HTTP rule?

Cilium, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/how-does-a-client-experience-a-request-blocked-by-an-l3l4-cilium-policy-compared-with-one-blocked-by-an-l7-http-rule

- A. Both get an HTTP 403 response from the Cilium agent
- B. L3/L4: the connection times out. L7: an HTTP 403 response
- C. Both get a TCP reset as soon as the policy matches
- D. L3/L4: an ICMP unreachable reply. L7: the connection times out

**Answer:** L3/L4: the connection times out. L7: an HTTP 403 response

**Explanation:** At L3/L4 the eBPF datapath drops the packets, so a TCP client usually retries its SYN until it times out. An L7 denial happens in Envoy after the connection is set up, and Envoy answers with '403 Access denied'. The symptom tells you which layer to look at. 'hubble observe --verdict DROPPED' lists the L3/L4 drops.

### With Cilium's default policy enforcement mode, when does a pod go from allowing all ingress traffic to denying everything that isn't explicitly allowed?

Cilium, Hard (Expert), Policies. https://k8wiz.com/uquiz/with-ciliums-default-policy-enforcement-mode-when-does-a-pod-go-from-allowing-all-ingress-traffic-to-denying-everything-that-isn

- A. When a CiliumClusterwideNetworkPolicy exists anywhere in the cluster
- B. Only after you set the enforcement mode to always
- C. As soon as any policy with an ingress section selects the pod
- D. When the pod's namespace has the label cilium.io/enforce=true

**Answer:** As soon as any policy with an ingress section selects the pod

**Explanation:** In the default mode, an endpoint that no policy selects allows all traffic. Once a policy with ingress rules selects it, ingress becomes default-deny and only the listed peers get through. Egress is handled separately in the same way. The 'always' mode makes every endpoint default-deny even without a policy, and 'never' turns enforcement off.

### In a CiliumNetworkPolicy, what does the entity 'world' match?

Cilium, Hard (Expert), Policies. https://k8wiz.com/uquiz/in-a-ciliumnetworkpolicy-what-does-the-entity-world-match

- A. Every pod in every namespace of the cluster, but not the nodes
- B. The local node and any pods running with hostNetwork: true
- C. All endpoints inside and outside the cluster, including nodes
- D. Everything outside the cluster, the same as allowing 0.0.0.0/0

**Answer:** Everything outside the cluster, the same as allowing 0.0.0.0/0

**Explanation:** Entities name groups that labels can't describe. 'world' covers all endpoints outside the cluster, and allowing it is the same as allowing CIDR 0.0.0.0/0. Other entities include 'host' for the local node, 'remote-node' for the other nodes, 'cluster' for everything inside the cluster, 'kube-apiserver' and 'all'.

### An egress CiliumNetworkPolicy allows toFQDNs with matchName: api.example.com, but connections to that host are still dropped. The policy has no other rules. What is missing?

Cilium, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/an-egress-ciliumnetworkpolicy-allows-tofqdns-with-matchname-apiexamplecom-but-connections-to-that-host-are-still-dropped-the-pol

- A. An egress rule allowing DNS to kube-dns with an L7 dns rule
- B. A ServiceEntry that registers api.example.com with the mesh
- C. Hubble Relay, which resolves FQDNs for the policy engine
- D. A trailing dot after the domain name in matchName

**Answer:** An egress rule allowing DNS to kube-dns with an L7 dns rule

**Explanation:** toFQDNs works by watching DNS answers. Cilium's DNS proxy reads the responses and adds the returned IPs to the policy. That only happens if the pod's DNS traffic to kube-dns is allowed and sent through the proxy with a rule such as 'rules: dns: - matchPattern: "*"'. Without it the policy never learns the IPs, and because the policy makes egress default-deny, the DNS queries themselves are blocked too.

### What does enabling Maglev consistent hashing in Cilium's kube-proxy replacement give you?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/what-does-enabling-maglev-consistent-hashing-in-ciliums-kube-proxy-replacement-give-you

- A. Session affinity for HTTP clients based on a cookie it sets
- B. Backends chosen by their measured response latency
- C. Encryption of traffic between load balancer and backends
- D. All nodes pick the same backend for a connection, with little churn

**Answer:** All nodes pick the same backend for a connection, with little churn

**Explanation:** By default each node picks backends on its own, so if a connection's packets start arriving at a different node, for example after an upstream ECMP change, they can land on another backend. With Maglev every node computes the same lookup table from the backend list. Any node then maps a connection to the same backend without syncing state, and adding or removing a backend moves few existing connections.

### What does Direct Server Return (DSR) mode change in Cilium's NodePort and LoadBalancer handling?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/what-does-direct-server-return-dsr-mode-change-in-ciliums-nodeport-and-loadbalancer-handling

- A. Backends reply to the client directly, not via the ingress node
- B. Clients connect straight to the pod IP and skip the Service
- C. Replies are encrypted with WireGuard on the way back
- D. Health checks go straight to pods instead of through nodes

**Answer:** Backends reply to the client directly, not via the ingress node

**Explanation:** In the default SNAT mode, a node that forwards a request to a backend on another node rewrites the source address, so the reply has to come back through it. In DSR mode the forwarding node keeps the client address and passes the service address along with the packet, so the backend can reply to the client directly. That saves a hop and lets the backend see the client IP.

### How are encryption keys distributed when Cilium's transparent encryption uses WireGuard, compared with IPsec?

Cilium, Hard (Expert), Security. https://k8wiz.com/uquiz/how-are-encryption-keys-distributed-when-ciliums-transparent-encryption-uses-wireguard-compared-with-ipsec

- A. WireGuard: per-node keys shared via CiliumNode. IPsec: a key in a Secret
- B. Both modes use one pre-shared key stored in a Kubernetes Secret
- C. cert-manager issues a certificate to every node in both modes
- D. The operator generates all keys and distributes them through Hubble

**Answer:** WireGuard: per-node keys shared via CiliumNode. IPsec: a key in a Secret

**Explanation:** For WireGuard, each node creates a key pair and announces its public key in the network.cilium.io/wg-pub-key annotation on its CiliumNode resource. Peers read it from there, so there's no shared secret to manage. IPsec mode reads its keys from a Secret, usually cilium-ipsec-keys, which you create and rotate yourself.

### Which command lists only the flows that Cilium dropped, for example because of a network policy?

Cilium, Hard (Expert), Troubleshooting. https://k8wiz.com/uquiz/which-command-lists-only-the-flows-that-cilium-dropped-for-example-because-of-a-network-policy

- A. hubble observe --verdict DENIED
- B. cilium status --drops
- C. hubble observe --verdict DROPPED
- D. kubectl get ciliumnetworkpolicies --dropped

**Answer:** hubble observe --verdict DROPPED

**Explanation:** Hubble gives every flow a verdict such as FORWARDED, DROPPED, AUDIT or REDIRECTED. There is no DENIED verdict. Filtering on DROPPED shows the dropped flows with a reason such as 'Policy denied'. Add --namespace or --pod to narrow the output to the workload you're debugging.

### How can you roll out a new Cilium network policy without risking dropped traffic?

Cilium, Hard (Expert), Policies. https://k8wiz.com/uquiz/how-can-you-roll-out-a-new-cilium-network-policy-without-risking-dropped-traffic

- A. Create the policy with spec.action: DryRun and watch the logs
- B. Apply it as a Kubernetes NetworkPolicy, which Cilium only logs
- C. Give it an empty endpointSelector so it selects nothing yet
- D. Turn on policy audit mode and watch for AUDIT verdicts

**Answer:** Turn on policy audit mode and watch for AUDIT verdicts

**Explanation:** Policy audit mode, set cluster-wide with policyAuditMode or per endpoint, makes Cilium allow traffic it would otherwise drop and report those flows with the AUDIT verdict. Watch them with 'hubble observe --verdict AUDIT', adjust the policy until nothing unexpected shows up, then turn audit mode off. Note that Cilium does enforce standard Kubernetes NetworkPolicies.

### You want a Cilium policy that limits which traffic can reach the Kubernetes nodes themselves. Which resource and selector do you use?

Cilium, Hard (Expert), Security. https://k8wiz.com/uquiz/you-want-a-cilium-policy-that-limits-which-traffic-can-reach-the-kubernetes-nodes-themselves-which-resource-and-selector-do-you

- A. A CiliumNetworkPolicy in kube-system with an endpointSelector
- B. A Kubernetes NetworkPolicy that selects hostNetwork pods
- C. A CiliumClusterwideNetworkPolicy with a nodeSelector, with the host firewall enabled
- D. A CiliumNetworkPolicy with a nodeSelector in the default namespace

**Answer:** A CiliumClusterwideNetworkPolicy with a nodeSelector, with the host firewall enabled

**Explanation:** Host policies protect the node, not pods. They must be CiliumClusterwideNetworkPolicies that use nodeSelector instead of endpointSelector, and the host firewall must be enabled (hostFirewall.enabled=true). Start with audit mode on the host endpoint, because a mistake can cut off SSH or kubelet traffic.

### Which of these is required to connect two clusters with Cilium ClusterMesh?

Cilium, Hard (Expert), Architecture. https://k8wiz.com/uquiz/which-of-these-is-required-to-connect-two-clusters-with-cilium-clustermesh

- A. Unique cluster names and IDs, distinct pod CIDRs, node-to-node reachability
- B. A single etcd cluster shared by both Kubernetes control planes
- C. Identical Kubernetes versions and the same node count in both clusters
- D. Istio installed in both clusters to carry cross-cluster traffic

**Answer:** Unique cluster names and IDs, distinct pod CIDRs, node-to-node reachability

**Explanation:** Pods talk across clusters with their real IPs, so pod CIDRs must not overlap and nodes have to reach each other. Each cluster needs a unique cluster.name and cluster.id, which Cilium uses to keep identities apart. Each cluster runs its own clustermesh-apiserver, and the Kubernetes control planes share nothing.

### How do you make a Service load-balance across all clusters in a Cilium ClusterMesh?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/how-do-you-make-a-service-load-balance-across-all-clusters-in-a-cilium-clustermesh

- A. Label the namespace with cilium.io/global=true in one of the clusters
- B. Same name and namespace in each cluster, plus service.cilium.io/global: "true"
- C. Set the Service type to ClusterMesh in the cluster that owns it
- D. Add every cluster's pod CIDR to the Service's externalIPs list

**Answer:** Same name and namespace in each cluster, plus service.cilium.io/global: "true"

**Explanation:** Cilium merges Services that share a name and namespace and carry the global annotation, so backends in every cluster receive traffic. Older releases used the io.cilium/global-service annotation. Adding service.cilium.io/shared: "false" in a cluster keeps that cluster's backends out of the shared pool.

### How does Cilium's Bandwidth Manager enforce the kubernetes.io/egress-bandwidth annotation on a pod?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/how-does-ciliums-bandwidth-manager-enforce-the-kubernetesioegress-bandwidth-annotation-on-a-pod

- A. A token bucket filter set up by the bandwidth CNI plugin
- B. eBPF Earliest Departure Time pacing with the fq qdisc
- C. iptables hashlimit rules on the pod's veth interface
- D. Envoy rate-limit filters on the node's egress proxy

**Answer:** eBPF Earliest Departure Time pacing with the fq qdisc

**Explanation:** The bandwidth CNI plugin uses a token bucket filter, which scales poorly and adds latency. Cilium sets a departure timestamp on each packet in eBPF and lets the fq qdisc on the node's network device release packets at that time. The result is smoother rate limiting with less queueing delay.

### Which Cilium resource defines the IP ranges that Cilium hands out to Services of type LoadBalancer?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/which-cilium-resource-defines-the-ip-ranges-that-cilium-hands-out-to-services-of-type-loadbalancer

- A. CiliumNode
- B. CiliumLoadBalancerIPPool
- C. CiliumEndpointSlice
- D. CiliumEgressGatewayPolicy

**Answer:** CiliumLoadBalancerIPPool

**Explanation:** LB IPAM assigns external IPs to LoadBalancer Services from the CiliumLoadBalancerIPPool resources you create, and a pool can be limited to certain Services with a serviceSelector. Assigning an IP doesn't make it reachable. Cilium announces it with the BGP control plane or with L2 announcements over ARP and NDP.

### You install Cilium with kubeProxyReplacement=true on a cluster without kube-proxy. Why do you have to set k8sServiceHost and k8sServicePort?

Cilium, Hard (Expert), Architecture. https://k8wiz.com/uquiz/you-install-cilium-with-kubeproxyreplacementtrue-on-a-cluster-without-kube-proxy-why-do-you-have-to-set-k8sservicehost-and-k8sse

- A. They set the address and port that Hubble Relay listens on
- B. They are only needed when ClusterMesh connects other clusters
- C. They tell the agents which node runs the Cilium operator
- D. Without kube-proxy, the agent can't reach the API server via its ClusterIP

**Answer:** Without kube-proxy, the agent can't reach the API server via its ClusterIP

**Explanation:** Pods normally reach the API server through the kubernetes Service ClusterIP, which kube-proxy translates. Without kube-proxy, Cilium does that translation itself, but the agent has to talk to the API server before its datapath is ready. Pointing it at the real API server address or load balancer solves this bootstrap problem.

### In Cilium's default cluster-pool IPAM mode, what assigns each node its pod CIDR?

Cilium, Hard (Expert), Architecture. https://k8wiz.com/uquiz/in-ciliums-default-cluster-pool-ipam-mode-what-assigns-each-node-its-pod-cidr

- A. kube-controller-manager, through the Node object's spec.podCIDR
- B. The cloud provider's VPC
- C. The Cilium operator, which records it in the node's CiliumNode resource
- D. Each agent picks a random free range at startup

**Answer:** The Cilium operator, which records it in the node's CiliumNode resource

**Explanation:** In cluster-pool mode the operator splits clusterPoolIPv4PodCIDRList into per-node blocks and writes them to each CiliumNode. The agent then hands out pod IPs from its block. The 'kubernetes' IPAM mode uses spec.podCIDR from kube-controller-manager instead, and cloud modes such as ENI or Azure take IPs from the provider.

### What is wrong with a Cilium egress rule that lists both toFQDNs and toEndpoints?

Cilium, Hard (Expert), Policies. https://k8wiz.com/uquiz/what-is-wrong-with-a-cilium-egress-rule-that-lists-both-tofqdns-and-toendpoints

- A. Both selectors are combined with AND, so traffic must match both
- B. toEndpoints needs its own DNS rules block when paired with toFQDNs
- C. A toFQDNs rule can't contain other L3 selectors such as toEndpoints
- D. Cilium silently ignores toFQDNs when toEndpoints is in the same rule

**Answer:** A toFQDNs rule can't contain other L3 selectors such as toEndpoints

**Explanation:** Cilium's documentation states that toFQDNs egress rules can't contain other L3 rules such as toEndpoints or toCIDR. They may contain toPorts with L4 and L7 rules. Put the DNS rule to kube-dns and the toFQDNs rule in separate entries of the same egress list.

### Why do Cilium L2-announced Services with externalTrafficPolicy: Local sometimes drop traffic?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/why-do-cilium-l2-announced-services-with-externaltrafficpolicy-local-sometimes-drop-traffic

- A. Cilium sends no gratuitous ARP for Local Services after failover
- B. The IP may be announced by a node with no local backend pod
- C. LB IPAM gives Local Services an IP from a different pool
- D. Local makes Cilium answer ARP from every node at the same time

**Answer:** The IP may be announced by a node with no local backend pod

**Explanation:** L2 announcements doesn't take externalTrafficPolicy into account, so the Lease can go to any node the policy selects. With Local, that node must not forward to pods on other nodes, so it drops the traffic when it has no backend. The Cilium docs recommend externalTrafficPolicy: Cluster for announced Services.

### Hubble reports some drops as POLICY_DENIED and others as POLICY_DENY. What is the difference?

Cilium, Hard (Expert), Policies. https://k8wiz.com/uquiz/hubble-reports-some-drops-as-policy_denied-and-others-as-policy_deny-what-is-the-difference

- A. POLICY_DENIED is for ingress traffic, POLICY_DENY for egress
- B. POLICY_DENIED: no rule allows it. POLICY_DENY: deny rule matched
- C. POLICY_DENIED comes from L7 rules, POLICY_DENY from L3 and L4 rules
- D. POLICY_DENIED is audit mode only, POLICY_DENY is enforced

**Answer:** POLICY_DENIED: no rule allows it. POLICY_DENY: deny rule matched

**Explanation:** POLICY_DENIED (code 133, "Policy denied") means the endpoint is in default-deny and no allow rule matched. POLICY_DENY (code 181, "Policy denied by denylist") means an explicit ingressDeny or egressDeny rule matched, and since deny rules take precedence over allow rules, adding an allow rule won't fix it.

### Cilium runs VXLAN tunnel mode over IPv4 with WireGuard on 1500-byte NICs. What route MTU does it give pod traffic?

Cilium, Hard (Expert), Networking. https://k8wiz.com/uquiz/cilium-runs-vxlan-tunnel-mode-over-ipv4-with-wireguard-on-1500-byte-nics-what-route-mtu-does-it-give-pod-traffic

- A. 1450
- B. 1405
- C. 1420
- D. 1355

**Answer:** 1355

**Explanation:** Cilium reserves 95 bytes for WireGuard and, in tunnel mode, another 50 bytes for VXLAN or Geneve over IPv4, because the packet is encapsulated twice. 1500 minus 145 gives 1355. 1405 is the value with native routing, where only the WireGuard overhead applies.
