Q44 — AWS SOA-C02 Ch.1
Question 44 of 100 | ← Chapter 1
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.)
- A. Change to the least outstanding requests algorithm on the ALB target group.
- B. Configure cookie forwarding in the CloudFront distribution cache behavior.
- C. Configure header forwarding in the CloudFront distribution cache behavior. ✓
- D. Enable group-level stickiness on the ALB listener rule.
- E. Enable sticky sessions on the ALB target group. ✓
Correct Answer: C. Configure header forwarding in the CloudFront distribution cache behavior., E. Enable sticky sessions on the ALB target group.
Explanation
用户会话中断通常与会话保持机制有关。AWS文档指出,有状态应用需确保请求路由的一致性。ALB的粘性会话(目标组级别)可将用户请求定向到同一实例,防止因负载均衡导致的会话丢失。CloudFront默认不转发特定头或Cookie,配置缓存行为中的Cookie转发确保会话信息传递至源站。选项B涉及CloudFront正确处理会话Cookie,选项E确保ALB维持会话粘性。其他选项未直接关联会话保持的核心配置。