0
0
HLDsystem_design~10 mins

Sticky sessions in HLD - Interactive Code Practice

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

Complete the code to identify the component responsible for maintaining sticky sessions.

HLD
The [1] ensures that a user's requests are always routed to the same server instance.
Drag options to blanks, or click blank then click option'
ACache
BDatabase
CLoad balancer
DFirewall
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing the database with the load balancer.
Thinking the cache manages session routing.
2fill in blank
medium

Complete the sentence to explain how sticky sessions are typically implemented.

HLD
Sticky sessions are often implemented by using [1] to track user sessions on the load balancer.
Drag options to blanks, or click blank then click option'
AIP hashing
BContent delivery network
CDatabase replication
DEncryption
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing sticky sessions with database replication.
Thinking encryption is used for routing decisions.
3fill in blank
hard

Fix the error in the explanation about sticky sessions.

HLD
Sticky sessions mean that the [1] stores all user session data locally.
Drag options to blanks, or click blank then click option'
Aload balancer
Bserver instance
Cdatabase
Dclient browser
Attempts:
3 left
💡 Hint
Common Mistakes
Assuming the load balancer stores session data.
Thinking the client browser manages session data.
4fill in blank
hard

Fill both blanks to complete the sticky session mechanism description.

HLD
The load balancer uses [1] to identify the user and [2] to route requests to the correct server.
Drag options to blanks, or click blank then click option'
Acookies
Bencryption
Csession ID
Dfirewall
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing encryption with session identification.
Confusing firewall with routing mechanism.
5fill in blank
hard

Fill all three blanks to complete the sticky session flow.

HLD
User sends a request with [1]; the [2] reads it and uses the [3] to forward the request to the same server.
Drag options to blanks, or click blank then click option'
Asession cookie
Bload balancer
Csession ID
Ddatabase
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing database with load balancer.
Mixing session cookie with session ID.