exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional SAP-C02 exam

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 433 discussion

A company uses a mobile app on AWS to run online contests. The company selects a winner at random at the end of each contest. The contests run for variable lengths of time. The company does not need to retain any data from a contest after the contest is finished.

The company uses custom code that is hosted on Amazon EC2 instances to process the contest data and select a winner. The EC2 instances run behind an Application Load Balancer and store contest entries on Amazon RDS DB instances. The company must design a new architecture to reduce the cost of running the contests.

Which solution will meet these requirements MOST cost-effectively?

  • A. Migrate storage of the contest entries to Amazon DynamoDB. Create a DynamoDB Accelerator (DAX) cluster. Rewrite the code to run as Amazon Elastic Container Service (Amazon ECS) containers that use the Fargate launch type. At the end of the contest, delete the DynamoDB table.
  • B. Migrate the storage of the contest entries to Amazon Redshift. Rewrite the code as AWS Lambda functions. At the end of the contest, delete the Redshift cluster.
  • C. Add an Amazon ElastiCache for Redis cluster in front of the RDS DB instances to cache the contest entries. Rewrite the code to run as Amazon Elastic Container Service (Amazon ECS) containers that use the Fargate launch type. Set the ElastiCache TTL attribute on each entry to expire each entry at the end of the contest.
  • D. Migrate the storage of the contest entries to Amazon DynamoDB. Rewrite the code as AWS Lambda functions. Set the DynamoDB TTL attribute on each entry to expire each entry at the end of the contest.
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
m1xa
Highly Voted 9 months ago
Selected Answer: D
Lambda for choosing a winner (it's a short-term task) and TTL (known before the contest starts) make sense.
upvoted 6 times
...
tonytam1991
Most Recent 1 week, 2 days ago
Selected Answer: A
This is what I hate AWS keep using impractical examples or unclear assumptions on their exam, it just train a lot of people just know yelling: "lambda is cheap, lambda is efficiency".
upvoted 1 times
...
SIJUTHOMASP
1 month, 1 week ago
Selected Answer: D
Here cost is the only concern and not performance, option A can be ruled out because no DAX is required. Simply Dynamo DB in option D would be more than sufficient.
upvoted 1 times
...
AzureDP900
2 months, 3 weeks ago
Option D Migrate Storage: Migrating storage from RDS DB instances (which require a significant upfront cost) to DynamoDB (a fully managed NoSQL database service with low usage-based costs) will significantly reduce the company's expenses. Lambda Functions: Rewriting code as AWS Lambda functions (serverless computing for code execution) will eliminate the need for EC2 instances, reducing costs even further. Lambda functions are also ideal for tasks that run infrequently or have short durations. DynamoDB TTL Attribute: By using DynamoDB's TTL attribute to expire each entry at the end of the contest, the company can automatically clean up unused data without requiring manual deletion.
upvoted 1 times
...
Moghite
6 months, 3 weeks ago
Selected Answer: D
Option D is the most cost Efficient
upvoted 2 times
...
vip2
7 months ago
Selected Answer: A
remove entire DynamoDB and DAX is used for reduce RCU
upvoted 1 times
...
Training
7 months, 2 weeks ago
Should be A. With Variable lengths of time, Lambda is not the right choice.
upvoted 2 times
...
trungtd
7 months, 4 weeks ago
Selected Answer: D
"the contests run for variable lengths of time" does not mean that those time periods are not known. We do not need a fixed value for TTL but can use Lambda to change timestamp depending on each contest.
upvoted 3 times
...
9f02c8d
8 months, 1 week ago
Option D, The option A doesn't fulfill the requirement of cost effectiveness as there is no reason to use DAX
upvoted 2 times
...
red_panda
8 months, 3 weeks ago
Selected Answer: A
Correct option is A here. First of all, we don't know how much time the contest will last as per requirements, so fix the TTL it's a mistake. Second point, we can delete the entire table as we didn't the file after the end of the context, so no data to retain. Finally, for web contest, we don't know how much users will be online, and providing a cache layer might be a good solution.
upvoted 2 times
...
titi_r
9 months, 2 weeks ago
Selected Answer: D
D - correct.
upvoted 2 times
...
tushar321
9 months, 3 weeks ago
D. There is no in memory cache requirement here for DAX. So omitting A
upvoted 2 times
...
bjexamprep
9 months, 3 weeks ago
Selected Answer: A
The question is looking for “MOST cost-effectively”. I assume DAX + DynamoDB is cheaper than DynamoDB only. Cause DAX should be able to reduce the RCU cost and improve performance. This is an online contest, which means the RCU could be very high. "the contests run for variable lengths of time" means you can't set a fix TTL for the record entry. And even you can have a fix time, the record being submitted 1 min before the deadline will still be kept for the TTL and keep generating cost.
upvoted 3 times
...
pangchn
10 months ago
Selected Answer: A
Vote for A here reason as specified by zouwelaar
upvoted 4 times
...
zouwelaar
10 months, 1 week ago
Selected Answer: A
You are forgetting that the contests run for variable lengths of time. So Lambda and TTL are out.
upvoted 4 times
w3ap0nx
10 months ago
Assuming each contest still has a set time from the start, D is most cost efficient, TTL is set based on each contest time. Lambda is only used to add/fetch entries and select random winner, runtime is minimal. I go with D here
upvoted 2 times
...
...
career360guru
11 months ago
Selected Answer: D
Option D
upvoted 2 times
...
duriselvan
11 months, 1 week ago
Time To Live (TTL) for DynamoDB is a cost-effective method for deleting items that are no longer relevant. TTL allows you to define a per-item expiration timestamp that indicates when an item is no longer needed. DynamoDB automatically deletes expired items within a few days of their expiration time, without consuming write throughput.
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