nerdexam
Amazon

SOA-C02 · Question #150

A company has a stateful web application that is hosted on Amazon EC2 instances in an Auto Scaling group. The instances run behind an Application Load Balancer (ALB) that has a single target group…

The correct answer is B. Configure cookie forwarding in the CloudFront distribution cache behavior. E. Enable sticky sessions on the ALB target group. Application Load Balancers support both duration-based cookies and application-based cookies. The key to managing sticky sessions is determining how long your load balancer should consistently route the user's request to the same target. Sticky sessions are enabled at the…

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

Question

A company has a stateful web application that is hosted on Amazon EC2 instances in an Auto Scaling group. The instances run behind an Application Load Balancer (ALB) that has a single target group. The ALB is configured as the origin in an Amazon CloudFront distribution. Users are reporting random logouts from the web application. Which combination of actions should a SysOps administrator take to resolve this problem? (Choose two.)

Options

  • AChange to the least outstanding requests algorithm on the ALB target group.
  • BConfigure cookie forwarding in the CloudFront distribution cache behavior.
  • CConfigure header forwarding in the CloudFront distribution cache behavior.
  • DEnable group-level stickiness on the ALB listener rule.
  • EEnable sticky sessions on the ALB target group.

How the community answered

(16 responses)
  • A
    6% (1)
  • B
    75% (12)
  • C
    13% (2)
  • D
    6% (1)

Explanation

Application Load Balancers support both duration-based cookies and application-based cookies. The key to managing sticky sessions is determining how long your load balancer should consistently route the user's request to the same target. Sticky sessions are enabled at the target group level. You can use a combination of duration-based stickiness, application-based stickiness, and no stickiness across all of your target groups. https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html

Topics

#sticky sessions#CloudFront cookie forwarding#ALB session persistence#stateful applications

Community Discussion

No community discussion yet for this question.

Full SOA-C02 Practice