0
0
Kubernetesdevops~20 mins

Traffic management with Istio in Kubernetes - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Istio Traffic Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1:30remaining
What is the output of this Istio VirtualService configuration?
Given this VirtualService YAML snippet, what will be the percentage of traffic routed to version v2 of the service?
Kubernetes
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
  name: reviews
spec:
  hosts:
  - reviews
  http:
  - route:
    - destination:
        host: reviews
        subset: v1
      weight: 80
    - destination:
        host: reviews
        subset: v2
      weight: 20
A20%
B80%
C50%
D0%
Attempts:
2 left
💡 Hint
Look at the weights assigned to each subset in the route section.
🧠 Conceptual
intermediate
1:00remaining
Which Istio resource controls the routing rules for traffic splitting?
In Istio, which resource is responsible for defining how traffic is split between different versions of a service?
ADestinationRule
BGateway
CServiceEntry
DVirtualService
Attempts:
2 left
💡 Hint
This resource defines HTTP routing rules and traffic distribution.
Troubleshoot
advanced
2:00remaining
Why does traffic not split as expected despite correct VirtualService weights?
You configured a VirtualService to split traffic 50-50 between v1 and v2 subsets. However, all traffic goes to v1. What is the most likely cause?
ADestinationRule does not define subsets v1 and v2
BGateway resource is missing
CServiceEntry is blocking traffic to v2
DSidecar proxy is not installed
Attempts:
2 left
💡 Hint
Check if subsets used in VirtualService are defined elsewhere.
🔀 Workflow
advanced
2:30remaining
Order the steps to implement canary deployment with Istio traffic shifting
Arrange these steps in the correct order to perform a canary deployment using Istio traffic management.
A1,3,2,4
B1,2,3,4
C2,1,3,4
D2,3,1,4
Attempts:
2 left
💡 Hint
Think about deploying first, then defining subsets, then routing, then shifting traffic.
Best Practice
expert
2:00remaining
What is the best practice to avoid downtime during Istio traffic shifting?
When shifting traffic between service versions in Istio, what practice helps avoid downtime and errors?
ADisable sidecar proxies during deployment
BDelete old version before shifting traffic
CUse gradual traffic shifting with monitoring and rollback
DShift 100% traffic immediately to new version
Attempts:
2 left
💡 Hint
Think about minimizing risk and detecting issues early.