0
0
Kubernetesdevops~20 mins

Service mesh vs library-based approach in Kubernetes - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Service Mesh Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Key difference between service mesh and library-based approach

Which statement best describes the main difference between a service mesh and a library-based approach for managing microservice communication?

AA service mesh operates as a separate infrastructure layer managing communication, while a library-based approach requires code changes inside each service.
BBoth service mesh and library-based approaches require no changes to application code and operate transparently.
CA service mesh requires modifying application code, but a library-based approach works externally without code changes.
DA library-based approach manages communication at the network level, while a service mesh is embedded inside each service.
Attempts:
2 left
💡 Hint

Think about where the communication logic lives: inside the app or outside it.

Best Practice
intermediate
2:00remaining
Choosing between service mesh and library-based approach

You want to add observability and traffic control to your microservices without changing their code. Which approach is best?

ARewrite all services to include communication libraries for better control.
BUse a library-based approach because it requires no infrastructure changes.
CUse a service mesh because it works without modifying service code.
DUse manual network policies to control traffic instead of either approach.
Attempts:
2 left
💡 Hint

Consider which approach allows adding features without touching service code.

💻 Command Output
advanced
2:00remaining
Output of checking sidecar proxy in a service mesh

What is the expected output of the following command in a Kubernetes cluster using Istio service mesh?

kubectl get pods -n default -l app=myservice -o jsonpath='{.items[0].spec.containers[*].name}'

Assuming Istio sidecar injection is enabled.

AError: no such label
Bmyservice
Cistio-proxy
Dmyservice istio-proxy
Attempts:
2 left
💡 Hint

Think about what containers run in a pod with Istio sidecar injection.

Troubleshoot
advanced
2:00remaining
Troubleshooting failed communication in library-based approach

You deployed a library-based communication approach in your microservices. Suddenly, services cannot communicate. Which is the most likely cause?

ANetwork policies block traffic between pods.
BThe communication library version is incompatible with the service runtime.
CThe service mesh sidecar proxy crashed.
DThe Kubernetes API server is down.
Attempts:
2 left
💡 Hint

Focus on what is unique to library-based approaches compared to service mesh.

🔀 Workflow
expert
3:00remaining
Correct order to enable service mesh on existing Kubernetes services

Arrange the steps in the correct order to enable a service mesh (e.g., Istio) on existing Kubernetes services.

A1,2,3,4
B2,1,3,4
C1,3,2,4
D3,1,2,4
Attempts:
2 left
💡 Hint

Think about installing first, then enabling injection, then redeploying.