0
0
Microservicessystem_design~10 mins

Why service mesh manages inter-service traffic in Microservices - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to define a service mesh component that handles {{BLANK_1}} between microservices.

Microservices
service_mesh = ServiceMesh(manages='[1]')
Drag options to blanks, or click blank then click option'
Ainter-service traffic
Bdatabase connections
Cuser authentication
Dstatic content delivery
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing inter-service traffic with user authentication.
Thinking service mesh manages databases.
2fill in blank
medium

Complete the code to create a proxy that {{BLANK_1}} requests between microservices in a service mesh.

Microservices
proxy = Proxy()  # This proxy [1] requests
Drag options to blanks, or click blank then click option'
Aroutes
Bblocks
Cignores
Dduplicates
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'blocks' which would stop communication.
Choosing 'duplicates' which is not a typical proxy behavior.
3fill in blank
hard

Fix the error in the code to enable the service mesh to {{BLANK_1}} traffic securely.

Microservices
service_mesh.enable_tls = [1]
Drag options to blanks, or click blank then click option'
AFalse
BTrue
CNone
D0
Attempts:
3 left
💡 Hint
Common Mistakes
Setting enable_tls to False disables security.
Using None or 0 does not enable TLS.
4fill in blank
hard

Fill both blanks to create a service mesh rule that {{BLANK_1}} traffic and {{BLANK_2}} retries on failure.

Microservices
rule = ServiceMeshRule(traffic_policy='[1]', retry_policy='[2]')
Drag options to blanks, or click blank then click option'
Acontrols
Bignores
Cenables
Ddisables
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'ignores' for traffic policy which would stop managing traffic.
Using 'disables' for retry policy which would prevent retries.
5fill in blank
hard

Fill all three blanks to define a service mesh configuration that {{BLANK_1}} traffic, {{BLANK_2}} load balancing, and {{BLANK_3}} observability.

Microservices
config = ServiceMeshConfig(traffic_management='[1]', load_balancing='[2]', observability='[3]')
Drag options to blanks, or click blank then click option'
Amanages
Bsupports
Cprovides
Dignores
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing 'ignores' which means the mesh does not handle that feature.
Mixing up 'supports' and 'provides' for different features.