CCA Sample Practice Questions¶
Practice Resources¶
Network Policy (20%)¶
Question 1¶
Create a CiliumNetworkPolicy that allows only HTTP traffic from pods with label app=frontend to pods with label app=backend.
Show Solution
Question 2¶
Create a policy that denies all egress traffic except DNS.
Show Solution
Question 3¶
Create an L7 policy that only allows GET requests to /api/v1/*.
Show Solution
Hubble & Observability (15%)¶
Question 4¶
How do you enable Hubble in a Cilium installation?
Show Solution
Question 5¶
Use Hubble CLI to observe flows from namespace "production".
Show Solution
Question 6¶
How do you view the service dependency map?
Show Solution
Cilium CLI (15%)¶
Question 7¶
Check the status of Cilium in the cluster.
Question 8¶
Run connectivity tests to verify Cilium is working correctly.
Question 9¶
List all Cilium endpoints in the cluster.
eBPF (10%)¶
Question 10¶
What is eBPF and why does Cilium use it?
Show Solution
**eBPF (extended Berkeley Packet Filter)** is a technology that allows running sandboxed programs in the Linux kernel without changing kernel source code. Cilium uses eBPF for: - High-performance packet processing - Network policy enforcement at kernel level - Load balancing without kube-proxy - Deep observability without overhead - Security enforcementQuestion 11¶
How does Cilium replace kube-proxy?
Show Solution
Cilium uses eBPF to implement: - ClusterIP services - NodePort services - LoadBalancer services - ExternalIPsCluster Mesh (10%)¶
Question 12¶
What is Cilium Cluster Mesh used for?
Show Solution
Cilium Cluster Mesh enables: - Multi-cluster connectivity - Cross-cluster service discovery - Global network policies - Shared services across clusters - High availability across clustersQuestion 13¶
Enable Cluster Mesh on a Cilium installation.
Show Solution
BGP & External Networking (10%)¶
Question 14¶
Configure Cilium BGP peering.
Show Solution
Architecture (10%)¶
Question 15¶
What are the main components of Cilium?
Show Solution
1. **Cilium Agent** - Runs on each node, manages eBPF programs 2. **Cilium Operator** - Manages cluster-wide operations 3. **Cilium CNI** - Container Network Interface plugin 4. **Hubble** - Observability platform 5. **Cilium CLI** - Command-line toolExam Tips¶
- Know CiliumNetworkPolicy syntax - L3/L4 and L7 policies
- Practice with Hubble - Observing flows and troubleshooting
- Understand eBPF basics - Why it's used, benefits
- Know cilium CLI commands - status, connectivity test, endpoint list
- Understand identity-based security - How Cilium identifies pods