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

A company is building a media sharing application and decides to use Amazon S3 for storage. When a media file is uploaded, the company starts a multi-step process to create thumbnails, identify objects in the images, transcode videos into standard formats and resolutions, and extract and store the metadata to an
Amazon DynamoDB table. The metadata is used for searching and navigation.
The amount of traffic is variable. The solution must be able to scale to handle spikes in load without unnecessary expenses.
What should a solutions architect recommend to support this workload?

  • A. Build the processing into the website or mobile app used to upload the content to Amazon S3. Save the required data to the DynamoDB table when the objects are uploaded.
  • B. Trigger AWS Step Functions when an object is stored in the S3 bucket. Have the Step Functions perform the steps needed to process the object and then write the metadata to the DynamoDB table.
  • C. Trigger an AWS Lambda function when an object is stored in the S3 bucket. Have the Lambda function start AWS Batch to perform the steps to process the object. Place the object data in the DynamoDB table when complete.
  • D. Trigger an AWS Lambda function to store an initial entry in the DynamoDB table when an object is uploaded to Amazon S3. Use a program running on an Amazon EC2 instance in an Auto Scaling group to poll the index for unprocessed items, and use the program to perform the processing.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
sctmp
Highly Voted 3 years, 7 months ago
A. This can't be an option since the traffic is variable, it's asking for unnecessary expenses. B. Step Functions are not really viable for processing, take a look: https://aws.amazon.com/getting-started/hands-on/process-video-jobs-with-aws-batch-on-aws-step-functions/ C. This sounds about right, we trigger a Lambda function when an object is stored, then we use AWS Batch (which on the previous link, is used for processing). And we place the object data in the DynamoDB. Take a look https://d2908q01vomqb2.cloudfront.net/1b6453892473a467d07372d45eb05abc2031647a/2019/12/17/Picture1.png D. It's using EC2 instances, nop, too expensive.
upvoted 42 times
mahdeo01
3 years, 6 months ago
NO, ANSWER IS NOT C BUT IT IS B ( i.e - STEP FUNCTION ) - Look for "Media Processing " under Use Cases left hand & then to the end of the page with title " Build a serverless video transcoding pipeline using Amazon MediaConvert" . In this amazon article has explained the exact steps with a Picture at the bottom of the page explaining how this all works. So final answer is ( B) : Just a note : It can be done with Soln C except that that is an old way of doing it.
upvoted 10 times
BhabaniSankar
3 years, 6 months ago
can S3 event notification reach to Step Function? supports only SQS/SNS/Lambda.
upvoted 2 times
...
mahdeo01
3 years, 6 months ago
REF : Link >>> https://aws.amazon.com/step-functions/use-cases/ ( For my point above )
upvoted 4 times
...
...
crazyaboutazure
3 years, 6 months ago
Has to be B as several tasks to be performed and serverless functionality is required to handle the spike at any time which Step Functions have as they are serverless workflows. I think this would be the most appropriate solution here.
upvoted 5 times
...
aguy9
3 years, 7 months ago
You say that step functions are not viable for processing and then direct us to a link that does not prove what you are saying at all. In fact Step functions integrate with a range of services for the specific purpose of data processing and can be used to orchestrate multiple lambda functions into a defined sequence of steps Eg run lambda function 1, then lambda function 2, then lambda function 3. Step functions also for instance allows you to specify options (if this object is identified in an image - run this lambda function. Clearly step functions are viable for processing data. https://m.youtube.com/watch?v=s0XFX3WHg0w Batch runs thousands of batch jobs. It spins up the optimal amount of computing resources required to process any given batch job submitted. AWS Batch is used when batch jobs might differ in the computing resources they need to process them. This job is the same one repeatedly and only requires scaling depending on demand. https://m.youtube.com/watch?v=T4aAWrGHmxQ I’m going with B. Step functions.
upvoted 79 times
viet1991
3 years, 7 months ago
Can not trigger Step Functions directly from S3 Events (Without using cloudwatch event)
upvoted 4 times
Ni_yot
3 years, 6 months ago
Yes you can Step functions can be triggered in 4 ways: api gateway, cloud watch events, s3 events and step functions api
upvoted 5 times
BhabaniSankar
3 years, 6 months ago
No Step Function can't
upvoted 1 times
...
...
bobsmith2000
3 years, 6 months ago
https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-cloudwatch-events-s3.html
upvoted 3 times
...
...
robertomartinez
3 years, 6 months ago
Very True step function is the de facto replacement for AWS batch which is not recommended anymore vs step functions, also another reason to vote for B is dynamo is very limited for media storage (400kb max size) hence it makes much more sense to store data in S3 and metadata in dynamo
upvoted 6 times
...
...
...
haroldhil220
Highly Voted 3 years, 7 months ago
B The first use case in this link: https://aws.amazon.com/step-functions/use-cases/
upvoted 29 times
kauls
3 years, 7 months ago
thannks for link
upvoted 2 times
...
Honeysingh
3 years, 7 months ago
thanks for the link B is the answere
upvoted 2 times
...
Kopa
3 years, 6 months ago
at the link it says its must be triggered to lambda before Step Functions, so maybe it should be C.
upvoted 2 times
...
...
Ramtex
Most Recent 2 years, 3 months ago
B. Trigger AWS Step Functions when an object is stored in the S3 bucket. Have the Step Functions perform the steps needed to process the object and then write the metadata to the DynamoDB table. This design is the best option as it allows the multi-step process to be broken down into smaller, manageable steps and easily orchestrated. AWS Step Functions allow you to coordinate multiple AWS services into serverless workflows so that you can build and update apps quickly. Each step can be implemented as an AWS Lambda function, which can automatically scale to handle spikes in load. Additionally, Step Functions allows you to track and audit each step in the process, which can be useful for troubleshooting and auditing.
upvoted 1 times
...
jw1806
2 years, 7 months ago
Selected Answer: D
using lambda to convert video files may not be possible, conversion could take over 15 minutes.
upvoted 1 times
...
rahularyan500
2 years, 8 months ago
Selected Answer: C
trigger a Lambda function when an object is stored, then we use AWS Batch (which on the previous link, is used for processing). And we place the object data in the DynamoDB.
upvoted 1 times
...
GripZA
2 years, 8 months ago
B - Step functions fit the use case well here. Although the answer doesn't specify Eventbridge. "For a practical application, you could launch a state machine that performs operations on files that you add to the bucket, such as creating thumbnails or running Amazon Rekognition analysis on image and video files." https://docs.aws.amazon.com/step-functions/latest/dg/tutorial-cloudwatch-events-s3.html. In addition, why would we want to store object data in DDB which has a 400kb limit? I would rule out C on this fact alone.
upvoted 1 times
...
rude7
2 years, 8 months ago
Selected Answer: C
For B, AWS step functions typically use lambda anyway but I think what is not addressed with this design is the scalability to accommodate traffic surges as required in the scenario. This makes C the best fit. Batch can handle workloads requests of any size, and scales automatically to your job queue.
upvoted 1 times
...
xr19970428
2 years, 9 months ago
c AWS Step Functions is a workflow automation service that can simplify orchestrating other AWS services. AWS Batch is a fully managed batch processing service that can dynamically scale to address computationally intensive workloads. Together, these services can orchestrate and run demanding HPC workloads.
upvoted 2 times
...
Moathov
2 years, 9 months ago
Selected Answer: C
Answer is C. Lambda for processing
upvoted 1 times
...
PARINSHAH
2 years, 10 months ago
Selected Answer: B
https://aws.amazon.com/step-functions/use-cases/
upvoted 1 times
...
envest
3 years, 3 months ago
IMO: B because of DynamoDB object limit & metadata use case (high performance, low-cost index that scales and remains highly available)> example 1: https://stackoverflow.com/questions/54073512/how-to-build-an-index-of-s3-objects-when-data-exceeds-object-metadata-limit; example2: https://blog.thundra.io/coordinate-complex-workflows-with-step-functions
upvoted 1 times
...
FF11
3 years, 4 months ago
Selected Answer: B
B is correct. Watch this video.
upvoted 1 times
...
muhsin
3 years, 4 months ago
definitely not B. because the step function can just orchestrate the process. you need to have additional processing services (EC2, EMR, Glue, etc) which are missing here that give much cost to the company.
upvoted 1 times
...
Spacer
3 years, 5 months ago
Compare B and C. B is better to store metadata in dab.
upvoted 1 times
...
AMEJack
3 years, 5 months ago
After reviewing the below URL, It should be B (Step Functions). I was assuming C before this URL. https://aws.amazon.com/step-functions/use-cases/
upvoted 1 times
...
Sunflyhome
3 years, 5 months ago
C. S3 can only trigger 3 services. C is good . https://docs.aws.amazon.com/AmazonS3/latest/userguide/notification-how-to-event-types-and-destinations.html Supported event destinations Amazon S3 can send event notification messages to the following destinations. You specify the Amazon Resource Name (ARN) value of these destinations in the notification configuration. Amazon Simple Notification Service (Amazon SNS) topics Amazon Simple Queue Service (Amazon SQS) queues AWS Lambda function
upvoted 3 times
...
Cabrera
3 years, 6 months ago
C seems to be correct. https://aws.amazon.com/pt/getting-started/hands-on/process-video-jobs-with-aws-batch-on-aws-step-functions/
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago