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

A company that provides image storage services wants to deploy a customer-facing solution to AWS. Millions of individual customers will use the solution. The solution will receive batches of large image files, resize the files, and store the files in an Amazon S3 bucket for up to 6 months.

The solution must handle significant variance in demand. The solution must also be reliable at enterprise scale and have the ability to rerun processing jobs in the event of failure.

Which solution will meet these requirements MOST cost-effectively?

  • A. Use AWS Step Functions to process the S3 event that occurs when a user stores an image. Run an AWS Lambda function that resizes the image in place and replaces the original file in the S3 bucket. Create an S3 Lifecycle expiration policy to expire all stored images after 6 months.
  • B. Use Amazon EventBridge to process the S3 event that occurs when a user uploads an image. Run an AWS Lambda function that resizes the image in place and replaces the original file in the S3 bucket. Create an S3 Lifecycle expiration policy to expire all stored images after 6 months.
  • C. Use S3 Event Notifications to invoke an AWS Lambda function when a user stores an image. Use the Lambda function to resize the image in place and to store the original file in the S3 bucket. Create an S3 Lifecycle policy to move all stored images to S3 Standard-Infrequent Access (S3 Standard-IA) after 6 months.
  • D. Use Amazon Simple Queue Service (Amazon SQS) to process the S3 event that occurs when a user stores an image. Run an AWS Lambda function that resizes the image and stores the resized file in an S3 bucket that uses S3 Standard-Infrequent Access (S3 Standard-IA). Create an S3 Lifecycle policy to move all stored images to S3 Glacier Deep Archive after 6 months.
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
thala
Highly Voted 2 years ago
Selected Answer: B
Considering the requirements, Option B (Amazon EventBridge with AWS Lambda and S3 Lifecycle Expiration Policy) seems to be the most cost-effective and appropriate solution. It combines the scalability and flexibility of AWS Lambda for image processing with the straightforward event handling of Amazon EventBridge, and appropriately manages the image lifecycle with an S3 expiration policy. While Option C is also a strong contender, the misalignment of the lifecycle policy with the requirement makes Option B a better fit. Option A might be more suitable for complex workflows but is likely not needed for this scenario, and Option D includes unnecessary long-term archival steps.
upvoted 16 times
AzureDP900
1 year ago
Agreed with B using Amazon EventBridge, you can meet the company's requirements most cost-effectively: handle significant variance in demand Be reliable at enterprise scale Rerun processing jobs in the event of failure (not explicitly required but ensures reliability) Move stored images to a colder storage class after 6 months to reduce costs.
upvoted 1 times
...
kgpoj
1 year, 3 months ago
How do you rerun for failure with option B? SQS can handle "rerun", hence D
upvoted 4 times
...
...
yuliaqwerty
Highly Voted 1 year, 11 months ago
B is for sure A no because Step Function is not in list of s3 event destinations https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html C and D has option for storing data longer than 6 months which is not required
upvoted 12 times
AloraCloud
1 year, 1 month ago
Yes it is .... https://docs.aws.amazon.com/AmazonS3/latest/userguide/EventBridge.html
upvoted 4 times
...
...
aka1177
Most Recent 2 hours, 42 minutes ago
Selected Answer: B
Option B is the best answer. Answer D is not, since it includes to keep files in deep archive which is not cost effective.
upvoted 1 times
...
vinalt
3 days, 19 hours ago
Selected Answer: B
why store data after 6 months also there is no mention of using any preferred or required s3 storage tier. cannot simply associate cost-effect to S3-IA
upvoted 1 times
...
Curious76
4 months, 4 weeks ago
Selected Answer: D
The solution will receive batches of large image files, resize the files, and store the files in an Amazon S3 bucket for up to 6 months. It dosent mean delete after 6 months. Option D preserves this logic: Receives the original image and stores it in S3. Lambda resizes it and stores another copy (the resized one). You now have both files. S3 lifecycle rules manage cost: Store in Standard-IA initially, then move to Glacier Deep Archive if needed, or delete after 6 months.
upvoted 2 times
aka1177
2 hours, 40 minutes ago
it means that after 6 moths files are not needed anymore. so why keep them and increase cost ?
upvoted 1 times
...
...
0dc6cac
5 months, 1 week ago
Selected Answer: B
it's definitely not D, there's no point in archiving the data past 6 months.
upvoted 1 times
...
Chakanetsa
10 months, 4 weeks ago
Selected Answer: B
Option B (Amazon EventBridge with AWS Lambda and S3 Lifecycle Expiration Policy) seems to be the most cost-effective and appropriate solution. It combines the scalability and flexibility of AWS Lambda for image processing with the straightforward event handling of Amazon EventBridge, and appropriately manages the image lifecycle with an S3 expiration policy.
upvoted 1 times
...
SIJUTHOMASP
11 months ago
Selected Answer: D
Invoking Lambda directly won't give any resiliency - so C is not a choice. Since the Event Bridge solution tries to replace original file - its rule out. Step function can't be destined from S3 - A is out. Hence the right answer is D through SQS meeting the need for re-run.
upvoted 3 times
aka1177
2 hours, 36 minutes ago
There is no requirement stating that you cannot replace the image. In the end, you only need the resized image, so B is the right choice
upvoted 1 times
...
...
henrikhmkhitaryan59
11 months, 2 weeks ago
Selected Answer: D
Options A and B imply replacing the original image, which will cause an execution loop. Option C doesn't allow rerunning failed jobs. Therefore, only option D meets all the requirements.
upvoted 2 times
...
Spike2020
11 months, 3 weeks ago
Selected Answer: D
This is a very malformed question. It should be D because SQS can handle failure. But then the archiving policy is not requested. So all options are not optimal in my opinion.
upvoted 3 times
...
nimbus_00
11 months, 3 weeks ago
Selected Answer: B
Archiving and replaying events with Amazon EventBridge https://aws.amazon.com/blogs/compute/archiving-and-replaying-events-with-amazon-eventbridge/
upvoted 1 times
...
TomTom
12 months ago
Selected Answer: D
Option D is most cost effective
upvoted 2 times
...
youonebe
12 months ago
Selected Answer: D
need to rerun failed jobs, so D
upvoted 2 times
...
0b43291
1 year ago
Selected Answer: D
Difficult one. Both options B and D meet the specific requirement of storing the files in an Amazon S3 bucket for up to 6 months. However, when considering the additional requirements of being reliable at enterprise scale, having the ability to rerun processing jobs in the event of failure, and being the most cost-effective solution, option D with Amazon SQS, AWS Lambda, and the S3 Lifecycle policy to transition to Glacier Deep Archive is still the better choice. No Rerun of jobs with B. Only D
upvoted 2 times
...
Halliphax
1 year ago
Selected Answer: B
"Store the images in S3 for six months" - leaves only option B. Options C & D mean keeping the images in S3 forever and that's not the more cost effective option compared to just deleting the files as the question implies is a requirement.
upvoted 1 times
...
nimbus_00
1 year ago
Selected Answer: D
You’ve got to have a buffer for reruns! For those concerned about the 6 months TTL in S3 remember glacier isn’t S3.
upvoted 3 times
...
Daniel76
1 year ago
Selected Answer: B
C and D are out, for keeping data more than 6 months. A is out, due to S3 event destination does not include step function, which is anyway seldom use for one step action. Eventbridge does support retry if event fail to go off:
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 ...