AWS - Elastic Load BalancingHow can you ensure sticky sessions (session affinity) with an ALB when routing to multiple targets in a target group?ADisable health checks on targetsBConfigure DNS round-robin for targetsCUse Network Load Balancer instead of ALBDEnable ALB cookie-based stickiness on the target groupCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify session stickiness methodALB supports sticky sessions using cookie-based stickiness configured on target groups.Step 2: Enable cookie stickinessEnable this feature to bind user sessions to specific targets.Final Answer:Enable ALB cookie-based stickiness on the target group -> Option DQuick Check:Sticky sessions = ALB cookie stickiness enabled [OK]Quick Trick: Enable cookie stickiness on ALB target group for session affinity [OK]Common Mistakes:Using DNS round-robin which lacks session affinityDisabling health checks mistakenly
Master "Elastic Load Balancing" in AWS9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More AWS Quizzes API Gateway - API keys and usage plans - Quiz 8hard AWS Lambda - Event triggers for Lambda - Quiz 9hard AWS Lambda - Lambda handler function structure - Quiz 1easy Auto Scaling - Auto Scaling groups - Quiz 15hard DynamoDB - DynamoDB Streams overview - Quiz 1easy DynamoDB - Partition key and sort key - Quiz 4medium Elastic Load Balancing - SSL/TLS termination - Quiz 6medium Elastic Load Balancing - Why load balancing matters - Quiz 4medium Elastic Load Balancing - Listener rules and routing - Quiz 4medium SNS and SQS - SNS notification types (email, SMS, Lambda) - Quiz 8hard