Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

Exam AWS Certified Solutions Architect - Associate SAA-C03 topic 1 question 18 discussion

An application development team is designing a microservice that will convert large images to smaller, compressed images. When a user uploads an image through the web interface, the microservice should store the image in an Amazon S3 bucket, process and compress the image with an AWS Lambda function, and store the image in its compressed form in a different S3 bucket.
A solutions architect needs to design a solution that uses durable, stateless components to process the images automatically.
Which combination of actions will meet these requirements? (Choose two.)

  • A. Create an Amazon Simple Queue Service (Amazon SQS) queue. Configure the S3 bucket to send a notification to the SQS queue when an image is uploaded to the S3 bucket.
  • B. Configure the Lambda function to use the Amazon Simple Queue Service (Amazon SQS) queue as the invocation source. When the SQS message is successfully processed, delete the message in the queue.
  • C. Configure the Lambda function to monitor the S3 bucket for new uploads. When an uploaded image is detected, write the file name to a text file in memory and use the text file to keep track of the images that were processed.
  • D. Launch an Amazon EC2 instance to monitor an Amazon Simple Queue Service (Amazon SQS) queue. When items are added to the queue, log the file name in a text file on the EC2 instance and invoke the Lambda function.
  • E. Configure an Amazon EventBridge (Amazon CloudWatch Events) event to monitor the S3 bucket. When an image is uploaded, send an alert to an Amazon ample Notification Service (Amazon SNS) topic with the application owner's email address for further processing.
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Buruguduystunstugudunstuy
Highly Voted 1 year, 10 months ago
Selected Answer: AB
To design a solution that uses durable, stateless components to process images automatically, a solutions architect could consider the following actions: Option A involves creating an SQS queue and configuring the S3 bucket to send a notification to the queue when an image is uploaded. This allows the application to decouple the image upload process from the image processing process and ensures that the image processing process is triggered automatically when a new image is uploaded. Option B involves configuring the Lambda function to use the SQS queue as the invocation source. When the SQS message is successfully processed, the message is deleted from the queue. This ensures that the Lambda function is invoked only once per image and that the image is not processed multiple times.
upvoted 35 times
Buruguduystunstugudunstuy
1 year, 10 months ago
Option C is incorrect because it involves storing state (the file name) in memory, which is not a durable or scalable solution. Option D is incorrect because it involves launching an EC2 instance to monitor the SQS queue, which is not a stateless solution. Option E is incorrect because it involves using Amazon EventBridge (formerly Amazon CloudWatch Events) to send an alert to an Amazon Simple Notification Service (Amazon SNS) topic, which is not related to the image processing process.
upvoted 23 times
hsinchang
1 year, 3 months ago
So storing states invokes the stateless principle, nice understanding!
upvoted 2 times
op22233
1 year, 1 month ago
A stateless system sends a request to the server and relays the response (or the state) back without storing any information. On the other hand, stateful systems expect a response, track information, and resend the request if no response is received
upvoted 3 times
...
...
...
...
sba21
Highly Voted 2 years, 1 month ago
Selected Answer: AB
It looks like A-B
upvoted 15 times
...
EzKkk
Most Recent 6 days, 23 hours ago
Selected Answer: AB
High level flow: Web (1) -> Internet (2) -> Uploaded image bucket (3) -> Compressed image bucket (4) Let's break this down. Image uploading (1)(2)(3): If the image's size is big, multi upload is a MUST. If you want to accelerate the process, you can also use Acceleration Transfer with additional fee. Image compressing (3)(4): SQS Simple Queue can directly integrate with S3 events. For every image uploaded, S3 event will create a message in SQS queue. After that, Lambda can be invoked to compress the image and then upload the image to destination bucket.
upvoted 1 times
...
PhucVuu
2 months ago
Selected Answer: AB
Keywords: - Store the image in an Amazon S3 bucket, process and compress the image with an AWS Lambda function. - Durable, stateless components to process the images automatically A,B: Correct - SQS has message retention function(store message) default 4 days(can increate update 14 days) so that you can re-run lambda if there are any errors when processing the images. C: Incorrect - Lambda function just run the request then stop, the max tmeout is 15 mins. So we cannot store data in the ram of Lambda function. D: Incorrect - we can trigger Lambda dirrectly from SQS no need EC2 instance in this case E: Incorrect - It kinds of manually step -> the owner has to read email then process it :))
upvoted 8 times
...
Guru4Cloud
2 months ago
Selected Answer: AB
Explanation: Option A: By creating an Amazon SQS queue and configuring the S3 bucket to send a notification to the SQS queue when an image is uploaded, the system establishes a durable and scalable way to handle incoming image processing tasks. Option B: Configuring the Lambda function to use the SQS queue as the invocation source allows it to retrieve messages from the queue and process them in a stateless manner. After successfully processing the image, the Lambda function can delete the message from the queue to avoid duplicate processing.
upvoted 2 times
...
DigitalDanny
2 months ago
Selected Answer: AB
A. Create an Amazon Simple Queue Service (Amazon SQS) queue. Configure the S3 bucket to send a notification to the SQS queue when an image is uploaded to the S3 bucket. B. Configure the Lambda function to use the Amazon Simple Queue Service (Amazon SQS) queue as the invocation source. When the SQS message is successfully processed, delete the message in the queue. Explanation: A (SQS Queue): Using SQS to decouple the S3 bucket from the processing components provides durability and scalability. When an image is uploaded, a notification is sent to the SQS queue. B (Lambda with SQS Trigger): Configuring the Lambda function to use the SQS queue as the invocation source allows for stateless and scalable image processing. Lambda can be triggered by messages in the SQS queue, and upon successful processing, the message can be deleted, ensuring that each message (image) is processed once. This combination ensures a durable, stateless, and scalable architecture for processing images automatically in response to user uploads.
upvoted 3 times
...
cookieMr
2 months ago
Selected Answer: AB
Option A is a correct because it allows for decoupling between the image upload process and image processing. By configuring S3 to send a notification to SQS, image upload event is recorded and can be processed independently by microservice. Option B is also a correct because it ensures that Lambda is triggered by messages in SQS. Lambda can retrieve image information from SQS, process and compress image, and store compressed image in a different S3. Once processing is successful, Lambda can delete processed message from SQS, indicating that image has been processed. Option C is not recommended because it introduces a stateful approach by using a text file to keep track of processed images. Option D is not optimal solution as it introduces unnecessary complexity by involving an EC2 to monitor SQS and maintain a text file. Option E is not directly related to requirement of processing images automatically. Although EventBridge and SNS can be useful for event notifications and further processing, they don't provide the same level of durability and scalability as SQS.
upvoted 6 times
...
PaulGa
3 months, 1 week ago
Selected Answer: AB
Ans A,B - as per Buruguduystunstugudunstuy's response: stateless, robust
upvoted 1 times
...
soufiyane
7 months, 2 weeks ago
Selected Answer: AB
whenever we talk about microservices we should mention SQS, so A and B are the right answers
upvoted 4 times
...
han_ds
9 months ago
Selected Answer: AB
A/B make the most sense and in practice this works, I've done it.
upvoted 3 times
...
A_jaa
10 months, 1 week ago
Selected Answer: AB
Answer- A,B
upvoted 1 times
...
mohamedsambo
10 months, 2 weeks ago
I can not understand why it is not as simple like s3-1 event destination to notify the lambda function to process and upload to s3-2
upvoted 2 times
...
miki111
1 year, 4 months ago
Option AB MET THE REQUIREMENT
upvoted 1 times
...
RupeC
1 year, 4 months ago
Selected Answer: AB
D and E are distractions. C seems a valid solution. However, as you have to select two, A and B are the only two that work in conjunction with each other.
upvoted 2 times
...
tester0071
1 year, 4 months ago
Selected Answer: AB
A and B are optimal solutions
upvoted 1 times
...
beginnercloud
1 year, 6 months ago
Selected Answer: AB
Option A nad B
upvoted 1 times
...
cheese929
1 year, 6 months ago
Selected Answer: AB
A and B
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 ...