nerdexam
Amazon

SOA-C02 · Question #529

A company deployed a new web application on multiple Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances run in an Auto Scaling group. Users report that they are…

The correct answer is B. Enable sticky sessions (session affinity) for the target group of EC2 instances. When users are frequently prompted to log in, it might indicate that their requests are being directed to different instances, leading to a loss of session state. Enabling sticky sessions (session affinity) ensures that requests from the same client are consistently directed to…

Submitted by daniela_cl· Mar 30, 2026Networking and Content Delivery

Question

A company deployed a new web application on multiple Amazon EC2 instances behind an Application Load Balancer (ALB). The EC2 instances run in an Auto Scaling group. Users report that they are frequently being prompted to log in. What should a SysOps administrator do to resolve this issue?

Options

  • AConfigure an Amazon CloudFront distribution with the ALB as the origin.
  • BEnable sticky sessions (session affinity) for the target group of EC2 instances.
  • CRedeploy the EC2 instances in a spread placement group.
  • DReplace the ALB with a Network Load Balancer.

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    79% (23)
  • C
    3% (1)
  • D
    10% (3)

Explanation

When users are frequently prompted to log in, it might indicate that their requests are being directed to different instances, leading to a loss of session state. Enabling sticky sessions (session affinity) ensures that requests from the same client are consistently directed to the same EC2 instance. This is important for applications that rely on maintaining session state.

Topics

#Application Load Balancer#sticky sessions#session affinity#Auto Scaling

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice