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

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

A developer is designing a serverless application for an ecommerce website. An Amazon API Gateway API exposes AWS Lambda functions for billing, payment, and user operations. The website features shopping carts for the users. The shopping carts must be stored for extended periods of time and will be retrieved frequently by the front-end application.
The load on the application will vary significantly based on the time of day and the promotional sales that are offered on the website. The application must be able to scale automatically to meet these changing demands.
Which solution will meet these requirements?

  • A. Store the data objects on an Amazon RDS DB instance. Cache the data objects in memory by using Amazon ElastiCache.
  • B. Store the data objects on Amazon EC2 instances behind an Application Load Balancer. Use session affinity (sticky sessions) for each user's shopping cart.
  • C. Store the data objects in Amazon S3 buckets. Cache the data objects by using Amazon CloudFront with the maximum TTL.
  • D. Store the data objects in Amazon DynamoDB tables. Cache the data objects by using DynamoDB Accelerator (DAX).
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
Chhotu_DBA
Highly Voted 2 years, 5 months ago
Selected Answer: D
scale automatically to meet these changing demands. = means DynamoDB
upvoted 10 times
npn225
1 year, 4 months ago
Right Answer, Wrong Reason! As stated in the link below, AWS RDS does support auto-scaling! It's just that unlike with other services such as DynamoDB, RDS does not automatically do auto-scaling. The user has to go into AWS RDS and enable/configure auto-scaling in order for it to work! Link: https://blog.awsfundamentals.com/unlocking-the-benefits-of-aws-rds-scaling The real reason why D is correct is because of what KT_Yu has written - the question states that the developer is building a SERVERLESS application. DynamoDB is serverless! RDS is not!
upvoted 4 times
...
...
KT_Yu
Highly Voted 2 years ago
Selected Answer: D
keyword: serverless
upvoted 8 times
KapilChhatwani
10 months ago
Correct answer is D, But I think reason is not correct - While Creating RDS, We can choose Serverless option.
upvoted 1 times
...
...
sumanshu
Most Recent 1 month, 2 weeks ago
Selected Answer: D
D) Correct - DynamoDB more preferable than RDS in terms of scaling
upvoted 1 times
sumanshu
1 week, 5 days ago
A) Eliminated - RDS requires manual or automated scaling which might not handle unpredictable load spikes as efficiently as a serverless database like DynamoDB. C) Eliminated - CloudFront can cache objects, but it's optimized for static assets like images or files rather than dynamic data like shopping carts.
upvoted 1 times
...
...
rcaliandro
1 year, 7 months ago
Selected Answer: D
The chioce is between A and D (for sure B and C should not be considered). Since it is required serveless, highly availability and automatic scale, I will go for D
upvoted 1 times
...
ondrejc
1 year, 10 months ago
Selected Answer: D
Only S3 and DynamoDB are serverless so it must be Dynamo.
upvoted 1 times
...
Dr_Chomp
1 year, 10 months ago
A - Dynamo isn't really a good option for these kinds of relationship-based schemas... the key i think with this one its that you have users - they have shopping carts - they have orders, etc ... relationships. Dynamo good for column store and non-relational use cases... so RDS for me!
upvoted 1 times
ondrejc
1 year, 10 months ago
RDS is not Serverless.
upvoted 1 times
...
...
shahs10
1 year, 10 months ago
Selected Answer: D
Shopping carts data --> dynamoDB
upvoted 1 times
...
Bengi
1 year, 11 months ago
D Option D is the best option because it suggests storing the data objects in Amazon DynamoDB tables, which is a highly scalable and elastic NoSQL database service. Caching can be achieved by using DynamoDB Accelerator (DAX), which provides a highly available, in-memory cache for DynamoDB. This solution would allow the developer to focus on the application logic rather than managing infrastructure, and would provide high availability and automatic scaling for the application.
upvoted 2 times
Bengi
1 year, 11 months ago
Option A suggests storing the shopping cart data in an Amazon RDS DB instance, which is a good option for many applications, but may not be the best choice for an ecommerce website with highly variable traffic demands. Amazon RDS can auto-scale, but it is not as elastic as Amazon DynamoDB or Amazon S3. Also, caching data in Amazon ElastiCache would require additional management and could potentially slow down the application.
upvoted 2 times
Bengi
1 year, 11 months ago
Option B suggests storing the data on Amazon EC2 instances behind an Application Load Balancer with session affinity (sticky sessions). This solution would require the developer to manage the EC2 instances and would not be as elastic as a serverless solution like Amazon DynamoDB or Amazon S3. Additionally, the developer would need to handle the storage of session data, which can be difficult to scale and manage in a distributed system.
upvoted 2 times
Bengi
1 year, 11 months ago
Option C suggests storing the data objects in Amazon S3 buckets and caching them using Amazon CloudFront. This solution could work, but the developer would need to manage the retrieval and updating of the data objects, as well as the caching behavior of Amazon CloudFront. Additionally, Amazon S3 has eventual consistency, so the application may not always see the most up-to-date version of the data.
upvoted 2 times
...
...
...
...
whenthan
2 years ago
D Amazon DynamoDB Accelerator (DAX) is a fully managed, highly available, in-memory cache for Amazon DynamoDB that delivers up to a 10 times performance improvement—from milliseconds to microseconds—even at millions of requests per second.
upvoted 1 times
...
sichilam
2 years ago
D is correct
upvoted 1 times
...
tieyua
2 years, 1 month ago
When in doubt, go dynamo! Bozo trying to sell that sh1t hard because nobody want to touch it with a ten-foot pole in real life.
upvoted 2 times
...
fabriciollf
2 years, 1 month ago
Selected Answer: D
"A developer is designing a serverless application for an ecommerce website." DynamoDB is the best option to keep the servelress design.
upvoted 2 times
...
humble_developer
2 years, 2 months ago
Selected Answer: A
I go for A as I'm not sure about whether DAX can store session cache of the shopping cart in D. But I'm sure ElastiCache can cache user session and RDS can be auto-scaled from now
upvoted 2 times
...
IvanPetrovichPavlov
2 years, 2 months ago
Selected Answer: A
DAX only be used for "improving frequent reading capacity"
upvoted 1 times
...
G4Exams
2 years, 2 months ago
Selected Answer: D
Dynamo DB is the best database solution for these kind of shopping carts etc that need to scale automatically and DAX is for unexpected peaks in read demands.
upvoted 1 times
...
haazybanj
2 years, 4 months ago
Selected Answer: D
D is the correct answer
upvoted 2 times
...
david00
2 years, 4 months ago
Selected Answer: D
D because the app is being built to be "serverless", so this would be dynamodb
upvoted 3 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