exam questions

Exam AWS Certified Developer Associate All Questions

View all questions & answers for the AWS Certified Developer Associate exam

Exam AWS Certified Developer Associate topic 1 question 233 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 233
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer is writing a web application that allows users to sign in. The application will run on Amazon EC2 instances behind an Application Load Balancer (ALB). The instances will run in an Auto Scaling group across multiple Availability Zones.

How can the developer ensure that users stay signed in when the Auto Scaling group is scaled down?

  • A. Enable sticky sessions on the ALB target group.
  • B. Create an Amazon DynamoDB table. Configure the application to use the DynamoDB table to store session state such as login status.
  • C. Create an Amazon Elastic Block Store (Amazon EBS) volume. Use EBS Multi-Attach to attach the volume to all instances in the Auto Scaling group. Configure the application to use the volume to store session state such as login status.
  • D. Enable deregistration delay on the ALB target group.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hb0011
Highly Voted 2 years, 3 months ago
Selected Answer: B
It's B for sure. If the auto scaling group is scaled down the sticky session would be trying to send you to an instance that no longer exists. Storing the sessions in Dynamodb is definitely the best option here.
upvoted 9 times
tony554556
2 years, 2 months ago
Good point, thanks
upvoted 1 times
...
...
rcaliandro
Most Recent 1 year, 9 months ago
Selected Answer: B
I was thinking to A, enable sticky session. But it's not correct because when the application scale down (and it scales by requirements), all the user logged with the terminated instance will lose the session for sure. It is better for this scenarion to save the information into a DynamoDB. So, I'll go for B!
upvoted 2 times
...
pancman
2 years, 2 months ago
Selected Answer: B
The answer is B. For those who are distracted by the Sticky sessions option, please read. Sticky sessions ensure that all requests from the user during the session are sent to the same EC2 target. However, if that EC2 is scaled down and doesn't exist anymore, it won't help with keeping the user signed in. Instead, we need to track the login status in a database. The solution we are looking for is DynamoDB.
upvoted 3 times
...
vichy
2 years, 2 months ago
B - https://shlomoswidler.com/2010/04/elastic-load-balancing-with-sticky-sessions/
upvoted 2 times
...
fswklotto1
2 years, 4 months ago
Selected Answer: A
Vote for A
upvoted 1 times
...
fabriciollf
2 years, 4 months ago
Selected Answer: B
B. EBS is not a good fit for session storage.
upvoted 1 times
...
SBoksh
2 years, 4 months ago
Selected Answer: B
B, not sticky session, EBS is not for session storage
upvoted 3 times
...
k1kavi1
2 years, 4 months ago
Selected Answer: A
Choosing A
upvoted 1 times
k1kavi1
2 years, 4 months ago
When the Auto Scaling group is scaled down, sticky sessions wont work. B looks correct
upvoted 2 times
...
...
SoMaL69
2 years, 4 months ago
Selected Answer: B
I would stick with B. Auto Scaling group is scaled down
upvoted 1 times
...
ubuntu1234
2 years, 4 months ago
B https://www.examtopics.com/discussions/amazon/view/4249-exam-aws-certified-developer-associate-topic-1-question-130/
upvoted 2 times
...
michaldavid
2 years, 4 months ago
Selected Answer: A
Sticky session is the answer
upvoted 1 times
...
kapil206001
2 years, 4 months ago
A https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago