0
0
Kubernetesdevops~20 mins

Sidecar proxy concept (Envoy) in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Envoy Sidecar Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the primary role of an Envoy sidecar proxy in Kubernetes?

In a Kubernetes pod, Envoy is often deployed as a sidecar proxy. What is its main function?

ATo handle network traffic between microservices, providing features like load balancing and security.
BTo store persistent data for the application running in the pod.
CTo schedule pods across different nodes in the cluster.
DTo monitor CPU and memory usage of the pod.
Attempts:
2 left
💡 Hint

Think about what a proxy does in networking and how Envoy fits into microservice communication.

💻 Command Output
intermediate
2:00remaining
Output of Envoy sidecar proxy logs in Kubernetes

You run kubectl logs -c envoy to check the Envoy sidecar logs. What kind of information will you most likely see?

AKubernetes scheduler decisions and pod placement logs.
BApplication business logic errors and stack traces.
CDetails about incoming and outgoing HTTP requests, connection status, and errors.
DDatabase query results and cache hits.
Attempts:
2 left
💡 Hint

Envoy is a proxy; what kind of logs would a proxy generate?

Configuration
advanced
3:00remaining
Correct Envoy sidecar container configuration snippet in a Kubernetes pod spec

Which container spec snippet correctly configures Envoy as a sidecar proxy in a Kubernetes pod?

A
containers:
  - name: envoy
    image: envoyproxy/envoy:v1.22.0
    ports:
      - containerPort: 15001
    args: ["-c", "/etc/envoy/envoy.yaml"]
B
containers:
  - name: envoy
    image: envoyproxy/envoy
    ports:
      - containerPort: 8080
    command: ["/bin/bash"]
C
containers:
  - name: envoy
    image: envoyproxy/envoy:v1.22.0
    ports:
      - containerPort: 80
    args: ["--help"]
D
containers:
  - name: envoy
    image: envoyproxy/envoy:v1.22.0
    ports:
      - containerPort: 443
    args: ["-c", "/etc/envoy/config.yaml"]
Attempts:
2 left
💡 Hint

Look for the correct image tag, port, and config file argument.

Troubleshoot
advanced
3:00remaining
Troubleshooting Envoy sidecar proxy failing to route traffic

You notice that traffic is not reaching your microservice through the Envoy sidecar proxy. Which of the following is the most likely cause?

AThe pod's CPU limit is too low, causing Envoy to crash.
BEnvoy configuration file has incorrect cluster or listener settings causing routing failure.
CKubernetes node is out of disk space, preventing pod scheduling.
DThe microservice container image tag is outdated.
Attempts:
2 left
💡 Hint

Think about what controls Envoy's routing behavior.

🔀 Workflow
expert
4:00remaining
Order the steps to deploy Envoy as a sidecar proxy in a Kubernetes pod

Arrange the following steps in the correct order to deploy Envoy as a sidecar proxy in a Kubernetes pod.

A2,1,3,4
B3,2,1,4
C1,3,2,4
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about preparing config first, then pod spec, then deployment, then verification.