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 111 discussion

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

A developer has a stateful web server on-premises that is being migrated to AWS. The developer must have greater elasticity in the new design.
How should the developer re-factor the application to make it more elastic? (Choose two.)

  • A. Use pessimistic concurrency on Amazon DynamoDB.
  • B. Use Amazon CloudFront with an Auto Scaling group.
  • C. Use Amazon CloudFront with an AWS Web Application Firewall.
  • D. Store session state data in an Amazon DynamoDB table.
  • E. Use an ELB with an Auto Scaling group.
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

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
newbie2019
Highly Voted 3 years, 9 months ago
Correct, D+E
upvoted 25 times
...
GenePoole
Highly Voted 2 years, 8 months ago
Selected Answer: DE
A - Not really relevant B - Stateful suggests non static requests, so does this really help? C - WAF is for security not elasticity D - As the app is stateful the sessions need to go somewhere, so this makes sense. E - Allows the app running on EC2 to scale, this is your elasticity. elasticity 1. the ability of an object or material to resume its normal shape after being stretched or compressed; stretchiness. 2.ability to change and adapt; adaptability.
upvoted 19 times
pancman
2 years, 3 months ago
Great answer, helped clarify things for me. Thank you!
upvoted 1 times
...
tony554556
2 years, 4 months ago
It get confused and your post help a lot, especially with the B incorrect
upvoted 1 times
...
...
rcaliandro
Most Recent 1 year, 11 months ago
Selected Answer: DE
I will vote D and E. In order to store user session data we can use DynamoDB (D is correct). To guarantee elasticity ELB+AutoScaling Group is the best option (also E is correct).
upvoted 1 times
...
Bengi
2 years, 4 months ago
DE The most elastic and scalable solution for storing session state data in a web application is to use an Amazon DynamoDB table. This is because DynamoDB is a highly scalable and managed NoSQL database that can handle large amounts of read and write requests, making it well-suited for storing session state data. Using an ELB with an Auto Scaling group is another way to make the application more elastic. An ELB (Elastic Load Balancer) is a managed load balancing service that can automatically distribute incoming application traffic across multiple Amazon EC2 instances in an Auto Scaling group, improving the application's availability and scalability.
upvoted 1 times
...
sichilam
2 years, 5 months ago
D and E
upvoted 1 times
...
sivsg
2 years, 11 months ago
I will go with B & E - If you read the question carefully - 'increase its elasticity'. B & E is a way to increase its elasticity.
upvoted 1 times
ahmed308
2 years, 9 months ago
To me, for a stateful web server, Cloudfornt has nothing to do. So B and C is not the right option
upvoted 1 times
...
...
skb1996
3 years, 2 months ago
Should we not use ELB as an origin for Cloudfront? Cache management can be done nicely, also Cloudfront can serve dynamic content, not sure why we are not considering it. As for me B, E is the answer. D is correct, but the B, E can also handle this, as better pair up
upvoted 1 times
skb1996
3 years, 2 months ago
Also found this in docs , "Some advantages with utilizing sticky sessions are that it’s cost effective due to the fact you are storing sessions on the same web servers running your applications and that retrieval of those sessions is generally fast because it eliminates network latency. A drawback for using storing sessions on an individual node is that in the event of a failure, you are likely to lose the sessions that were resident on the failed node. In addition, in the event the number of your web servers change, for example a scale-up scenario, it’s possible that the traffic may be unequally spread across the web servers as active sessions may exist on particular servers. If not mitigated properly, this can hinder the scalability of your application"
upvoted 1 times
...
...
valour
3 years, 7 months ago
How come nobody is talking about the "stateful" keyword of the question. The answer is actually C and E
upvoted 1 times
petervu
3 years, 6 months ago
Stateful indicates D option. C has nothing to do with "flexibility in the new design". So E should be the next answer.
upvoted 4 times
...
...
VAG1595
3 years, 7 months ago
Answer: D,E
upvoted 1 times
...
saeidp
3 years, 7 months ago
D and E are correct
upvoted 1 times
...
WilsonNF
3 years, 8 months ago
D & E are correct
upvoted 1 times
...
Scarback
3 years, 8 months ago
Resp: D E
upvoted 2 times
...
ginfizzbear
3 years, 8 months ago
It is B an D. B) https://linuxacademy.com/community/show/6241-why-use-autoscaling-and-cdn-cloudfront-at-the-same-time/ D) https://acloud.guru/forums/aws-certified-solutions-architect-associate/discussion/-KGu3LN1mb6yGbg5Dh26/stateless-application-services
upvoted 1 times
ginfizzbear
3 years, 8 months ago
Sorry, it's B (see link) and E https://docs.aws.amazon.com/autoscaling/ec2/userguide/autoscaling-load-balancer.html
upvoted 1 times
CodeSlinger777
3 years, 8 months ago
B is wrong. Cloudfront is for static files, not a webserver app!
upvoted 7 times
Maicon
3 years, 7 months ago
You can use ELB as a origin for Cloudfront and have a webserver behind ELB. But I'd go with D/E for the exam
upvoted 4 times
alexaws1232312321_
2 years, 10 months ago
You can do all that but that it's not mentioned about what's behind the alb and the best solution is one which is more flexible here, dynamodb is made for scaling
upvoted 2 times
...
...
...
...
...
kinetic1g
3 years, 8 months ago
D. Store session state data in an Amazon DynamoDB table E. Use an ELB with an Auto Scaling group
upvoted 5 times
...
awscertified
3 years, 8 months ago
D. Store session state data in an Amazon DynamoDB table E. Use an ELB with an Auto Scaling group
upvoted 2 times
...
aws_Tamilan
3 years, 9 months ago
DE D. Store session state data in an Amazon DynamoDB table E. Use an ELB with an Auto Scaling group
upvoted 5 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 ...