0
0
Microservicessystem_design~20 mins

Service mesh concept in Microservices - Practice Problems & Coding Challenges

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
1:30remaining
What is the primary role of a service mesh in microservices?

Imagine you have many small services talking to each other in an app. What main job does a service mesh do?

AIt stores all the data used by the microservices in a central database.
BIt compiles the code of all microservices into a single executable.
CIt replaces the need for containers by running services directly on hardware.
DIt manages communication between services, handling security, routing, and monitoring.
Attempts:
2 left
💡 Hint

Think about how services talk and stay safe and visible.

💻 Command Output
intermediate
1:30remaining
What output does this Istio command produce?

Run the command istioctl proxy-status in a Kubernetes cluster with Istio installed. What does it show?

Microservices
istioctl proxy-status
AA list of all Envoy proxies connected to the Istio control plane with their sync status.
BThe current CPU and memory usage of the Istio control plane pods.
CA list of all Kubernetes nodes and their IP addresses.
DThe version of Istio installed on the cluster.
Attempts:
2 left
💡 Hint

Think about what 'proxy-status' might mean in Istio.

🔀 Workflow
advanced
2:00remaining
Order the steps to enable mutual TLS (mTLS) in a service mesh

Put these steps in the correct order to enable mutual TLS between services in a service mesh.

A1,3,2,4
B1,2,3,4
C3,1,2,4
D2,1,3,4
Attempts:
2 left
💡 Hint

Think about preparing the namespace, deploying services, then enforcing policies.

Troubleshoot
advanced
1:30remaining
Why might a service mesh cause increased latency between microservices?

You notice that calls between microservices are slower after adding a service mesh. What is a likely cause?

AThe service mesh merges all services into one, causing bottlenecks.
BThe sidecar proxies add extra network hops and encryption overhead.
CThe service mesh disables caching in the microservices.
DThe microservices are running on slower hardware than before.
Attempts:
2 left
💡 Hint

Think about what sidecars do to network traffic.

Best Practice
expert
2:00remaining
Which practice best improves observability in a service mesh?

To understand how your microservices behave in a service mesh, which practice is best?

AOnly monitor the main application containers, ignoring sidecars.
BDisable all logging to reduce noise and improve performance.
CEnable distributed tracing and collect metrics from sidecar proxies.
DUse manual log parsing instead of automated tools.
Attempts:
2 left
💡 Hint

Think about how to get detailed info from all parts of the mesh.