ANS-C01 practice question 13 of 35
A company deploys a new web application on Amazon EC2 instances. The application runs in private subnets in three Availability Zones behind an…
Full set: 291 questionsThe issue described is a loss of session state because subsequent requests from the same user are being routed to different backend EC2 instances. To maintain session integrity for a stateful application, session persistence (stickiness) must be enabled. For an Application Load Balancer (ALB), this is configured on the target group. Enabling stickiness ensures that all requests from a user's session are directed to the same target instance. Using an application-based cookie is a common and effective method for the ALB to track the session.
A: Stickiness is an attribute of the target group, not the listener rule. The listener rule's function is to forward traffic based on conditions. B: Replacing an ALB with a Network Load Balancer is an unnecessary and less suitable change, as ALBs are designed for application-layer (HTTP/S) features like cookie-based stickiness. D: Removing the load balancer entirely and using DNS failover does not address the session persistence problem and removes the high availability and scaling benefits of a load balancer.
- AWS Documentation, "User Guide for Application Load Balancers", section "Sticky sessions". This section details how to enable stickiness on a target group to bind a user's session to a specific target.
- AWS Documentation, "Elastic Load Balancing User Guide", section "Target groups for your Application Load Balancers", subsection "Target group attributes". This document specifies that stickiness.enabled and stickiness.type are configurable attributes of a target group.
Keep practicing
Take the free ANS-C01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other ANS-C01 practice questions
- Question 1A company is planning to migrate to AWS and use multiple VPCs in multiple AWS Regions. A …
- Question 2A company wants to improve visibility into its AWS environment. The AWS environment consi…
- Question 3Your company runs an application for the US market in the us-east-1 AWS region. This appl…
- Question 4An IoT company sells hardware sensor modules that periodically send out temperature, humi…
- Question 5A company is deploying a non-web application on an AWS load balancer. All targets are ser…
- Question 6A company has created three VPCs: a production VPC, a nonproduction VPC, and a shared ser…
