• Skip to main content
  • Skip to primary sidebar

Sample Questions

The Most Recent Exam & Test Questions

  • How It Works?
  • Browse Questions
  • Contribute
Home / Amazon / AWS SysOps Administrator / A company is migrating a legacy web app from a single server to multiple EC2 instances behind an ALB

A company is migrating a legacy web app from a single server to multiple EC2 instances behind an ALB

1 answer

A company is migrating a legacy web application from a single server to multiple Amazon EC2 instances behind an Application Load Balancer (ALB). After the migration, users report that they are frequently losing their sessions and are being prompted to log in again.

Which action should be taken to resolve the issue reported by users?

  1. Confirm that the ALB is not in a Multi-AZ configuration.
  2. Configure an Amazon CloudFront distribution with the ALB as the origin.
  3. Deploy a Network Load Balancer in front of the ALB.
  4. Enable sticky sessions for the target group of EC2 instances.

Find more questions from AWS SysOps Administrator

Reader Interactions

Discussion

  1. admin

    22 August 2020 at 5:20 AM

    Legacy applications designed to run on a single server frequently store session data locally. When these applications are deployed on multiple instances behind a load balancer, user requests are routed to instances using the round robin routing algorithm. Session data stored on one instance would not be present on the others. By enabling sticky sessions [1], cookies are used to track user requests and keep subsequent requests going to the same instance.

    [1] https://docs.aws.amazon.com/elasticloadbalancing/latest/application/load-balancer-target-groups.html#sticky-sessions

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

  • Email
  • Facebook
  • Instagram
  • Pinterest
  • Twitter
  • YouTube

Other Tests & Exams

  • Amazon
    • AWS Solutions Architect
    • AWS SysOps Administrator
  • Freelancer
    • Analog Electronics Level 1
    • Java Level 1
    • US English Level 1
  • Google
    • Google Analytics Individual Qualification
  • TOEFL
    • Reading Comprehension
  • Facebook
  • Twitter
  • YouTube
  • Instagram
  • Pinterest

Copyright © 2021 SampleQuestions.info · Hyderabad, India

Go to mobile version