exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C02 exam

Exam AWS Certified Solutions Architect - Associate SAA-C02 topic 1 question 315 discussion

A solutions architect is designing the architecture of a new application being deployed to the AWS Cloud. The application will run on Amazon EC2 On-Demand
Instances and will automatically scale across multiple Availability Zones. The EC2 instances will scale up and down frequently throughout the day. An Application
Load Balancer (ALB) will handle the load distribution. The architecture needs to support distributed session data management. The company is willing to make changes to code if needed.
What should the solutions architect do to ensure that the architecture supports distributed session data management?

  • A. Use Amazon ElastiCache to manage and store session data.
  • B. Use session affinity (sticky sessions) of the ALB to manage session data.
  • C. Use Session Manager from AWS Systems Manager to manage the session.
  • D. Use the GetSessionToken API operation in AWS Security Token Service (AWS STS) to manage the session.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
syu31svc
Highly Voted 3 years, 7 months ago
https://aws.amazon.com/caching/session-management/: "Distributed Session Management In order to address scalability and to provide a shared data storage for sessions that can be accessible from any individual web server, you can abstract the HTTP sessions from the web servers themselves. A common solution to for this is to leverage an In-Memory Key/Value store such as Redis and Memcached." Answer is A
upvoted 29 times
...
weilun_tann
Highly Voted 3 years, 5 months ago
Selected Answer: A
A A. Use Amazon ElastiCache to manage and store session data. - Correct. - Session data is managed at the application-layer, and a distributed cache should be used B. Use session affinity (sticky sessions) of the ALB to manage session data. - Wrong. This tightly couples the individual EC2 instances to the session data, and requires additional logic in the ALB. When scale-in happens, the session data stored on individual EC2 instances is destroyed C. Use Session Manager from AWS Systems Manager to manage the session. - Wrong. Session Manager is to manage EC2 instances and other devices, servers, and VMs you operate (https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html), NOT for storing (application) session info D. Use the GetSessionToken API operation in AWS Security Token Service (AWS STS) to manage the session - Wrong. STS is to request temporary credentials for IAM users - https://docs.aws.amazon.com/STS/latest/APIReference/welcome.html
upvoted 25 times
...
slcheng
Most Recent 2 years, 10 months ago
Selected Answer: A
Agreed with A
upvoted 2 times
...
prex
3 years, 5 months ago
Selected Answer: A
answer is A confirm elasticache mantain the session cache
upvoted 2 times
...
Osemk
3 years, 6 months ago
B looks easy and tempting, but the answer is A. Reason is the session data will be lost during scale down. ElastiCache manages and store session data, hence its not lost during Ec2 scale down.
upvoted 6 times
...
KK_uniq
3 years, 7 months ago
A for sure
upvoted 6 times
...
bogudan
3 years, 7 months ago
A. Use Amazon ElastiCache to manage and store session data.
upvoted 5 times
...
theEngineer
3 years, 7 months ago
A seems correct. In order to address scalability and to provide a shared data storage for sessions that can be accessible from any individual web server, you can abstract the HTTP sessions from the web servers themselves. A common solution to for this is to leverage an In-Memory Key/Value store such as Redis and Memcached. ElastiCache offerings for In-Memory key/value stores include ElastiCache for Redis, which can support replication, and ElastiCache for Memcached which does not support replication. https://aws.amazon.com/caching/session-management/
upvoted 5 times
...
admin1
3 years, 7 months ago
A https://aws.amazon.com/vi/caching/session-management/
upvoted 9 times
...
dmscountera
3 years, 8 months ago
A. Use Amazon ElastiCache to manage and store session data.
upvoted 3 times
...
tamntse61384
3 years, 8 months ago
Ans: B
upvoted 5 times
93madox
3 years, 8 months ago
Sticky sessions will lose data in case of scaling down.
upvoted 7 times
...
...
waqas
3 years, 8 months ago
A for sure.
upvoted 4 times
tamntse61384
3 years, 8 months ago
https://docs.aws.amazon.com/elasticloadbalancing/latest/application/sticky-sessions.html
upvoted 2 times
noahsark
3 years, 7 months ago
Distributed Session Management In order to address scalability and to provide a shared data storage for sessions that can be accessible from any individual web server, you can abstract the HTTP sessions from the web servers themselves. A common solution to for this is to leverage an In-Memory Key/Value store such as Redis and Memcached. https://aws.amazon.com/caching/session-management/
upvoted 4 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 ...