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

A solutions architect is designing a solution to access a catalog of images and provide users with the ability to submit requests to customize images. Image customization parameters will be in any request sent to an AWS API Gateway API. The customized image will be generated on demand, and users will receive a link they can click to view or download their customized image. The solution must be highly available for viewing and customizing images.
What is the MOST cost-effective solution to meet these requirements?

  • A. Use Amazon EC2 instances to manipulate the original image into the requested customizations. Store the original and manipulated images in Amazon S3. Configure an Elastic Load Balancer in front of the EC2 instances.
  • B. Use AWS Lambda to manipulate the original image to the requested customizations. Store the original and manipulated images in Amazon S3. Configure an Amazon CloudFront distribution with the S3 bucket as the origin.
  • C. Use AWS Lambda to manipulate the original image to the requested customizations. Store the original images in Amazon S3 and the manipulated images in Amazon DynamoDB. Configure an Elastic Load Balancer in front of the Amazon EC2 instances.
  • D. Use Amazon EC2 instances to manipulate the original image into the requested customizations. Store the original images in Amazon S3 and the manipulated images in Amazon DynamoDB. Configure an Amazon CloudFront distribution with the S3 bucket as the origin.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️
AWS Lambda is a compute service that lets you run code without provisioning or managing servers. AWS Lambda executes your code only when needed and scales automatically, from a few requests per day to thousands per second. You pay only for the compute time you consume ג€" there is no charge when your code is not running. With AWS Lambda, you can run code for virtually any type of application or backend service ג€" all with zero administration. AWS Lambda runs your code on a high-availability compute infrastructure and performs all of the administration of the compute resources, including server and operating system maintenance, capacity provisioning and automatic scaling, code monitoring and logging. All you need to do is supply your code in one of the languages that AWS
Lambda supports.
Storing your static content with S3 provides a lot of advantages. But to help optimize your application's performance and security while effectively managing cost, we recommend that you also set up Amazon CloudFront to work with your S3 bucket to serve and protect the content. CloudFront is a content delivery network
(CDN) service that delivers static and dynamic web content, video streams, and APIs around the world, securely and at scale. By design, delivering data out of
CloudFront can be more cost effective than delivering it from S3 directly to your users.
CloudFront serves content through a worldwide network of data centers called Edge Locations. Using edge servers to cache and serve content improves performance by providing content closer to where viewers are located. CloudFront has edge servers in locations all around the world.
Reference:
https://docs.aws.amazon.com/lambda/latest/dg/welcome.html
https://aws.amazon.com/blogs/networking-and-content-delivery/amazon-s3-amazon-cloudfront-a-match-made-in-the-cloud/

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
JohnnyS20
Highly Voted 3 years, 8 months ago
ELIMINATING THE ANSWERS So the important parts in the question is: - there's a need for a service which can do image the manipulation - original and processe dimage should be stored somewhere - solution must be highly-available and cost-effective When we see cost-effective, this would immediately rule out any option that has EC2 instances as instances incur much higher cost. So rule out A and D, which leaves us with B and C. Now if you'll read closely, option C has an EC2 instance and an ELB as well, which makes it more pricey. So this option can be eliminated too. Now to verify if option does solve the requirement: Lambda can do the manipulation. It is also cost-effective as you only pay when your function is running. It also scales well as demand increases/decreases. Both the original and processed images can be stored in S3, but in different buckets. This is a highly-available service and also scalable. CloudFront makes it easy to deliver the images to the user through the use of it's multiple Edge locations. Correct answer: B
upvoted 96 times
gargaditya
3 years, 7 months ago
+Dynamo DB has limitation of 400 KB per item(row).Another reason to elimate Dynamo DB. I dint understand why CLoudfront though, caching will not help as these are customised images?
upvoted 3 times
gargaditya
3 years, 7 months ago
Ok, using it as origin to distribute as there are no EC2s/LB.
upvoted 1 times
...
...
...
DK2
Highly Voted 3 years, 9 months ago
B looks right. C has option of storing images in DynamoDB which doesn't make any sense. Since it is an demand process, lambda fits better.
upvoted 57 times
aguy9
3 years, 8 months ago
I agree, B is the answer
upvoted 2 times
...
...
48cd959
Most Recent 1 year, 3 months ago
Selected Answer: B
Answer -b Clue - Image will be generated on demand, It means Lambda. both type of images (Original and Manipulated) can be stored in S3. There is no use case to store separately in S3. EC2 and ELb are ruled out because of cost factor.
upvoted 1 times
...
joe2211
3 years, 6 months ago
Selected Answer: B
vote B
upvoted 1 times
...
ecastilla
3 years, 8 months ago
In my opinion: C is out because states to use Lambda and maintain EC2 instance D is out because it has no sense to use DynamoDB to store transformed images that will not be served by the CloudFront bistro So solution is A or B. Lambda seems cheaper than EC2 because with lambda you incur in cost when transforming an image. Ans is B
upvoted 2 times
...
karthisena
3 years, 8 months ago
Explanation: All solutions presented are highly available. The key requirement that must be satisfied is that the solution should be cost-effective and you must choose the most cost-effective option. Therefore, it's best to eliminate services such as Amazon EC2 and ELB as these require ongoing costs even when they're not used. Instead, a fully serverless solution should be used. AWS Lambda, Amazon S3 and CloudFront are the best services to use for these requirements. CORRECT: "Use AWS Lambda to manipulate the original images to the requested customization.
upvoted 1 times
...
woke
3 years, 8 months ago
B. Use AWS Lambda to manipulate the original image to the requested customization. Store the original and manipulated images in Amazon S3. Configure an Amazon CloudFront distribution with the S3 bucket as the origin.
upvoted 1 times
...
Abdullah777
3 years, 8 months ago
B as it is the most Cost Effective. it is in Neal too.
upvoted 2 times
...
KK_uniq
3 years, 8 months ago
B for sure
upvoted 1 times
...
syu31svc
3 years, 8 months ago
Correct answer is B as AWS Lambda with API Gateway provides a serverless, cost-effective, highly available solution for processing images. S3 with CloudFront provide a cost-effective, highly available solution for accessing images.
upvoted 1 times
...
mryala
3 years, 8 months ago
it's B
upvoted 1 times
...
Yogi
3 years, 8 months ago
Ans is B
upvoted 1 times
...
Ankitrathi85
3 years, 8 months ago
B rigjt
upvoted 1 times
...
piyush28
3 years, 8 months ago
Lambda seems fine, as it really means pay per use. However, is CF really needed? Most images (original and customized) will be new/unique, so cache will hardly be used.
upvoted 2 times
SFXY
3 years, 8 months ago
I had the same doubt why CF was needed as images would be manipulated?
upvoted 1 times
...
...
myutran
3 years, 8 months ago
Answer : B
upvoted 1 times
...
nicksenap
3 years, 8 months ago
Ans is B, Long live serverless (SAM) stack.
upvoted 1 times
...
AEN
3 years, 8 months ago
Ans C. On demand lambda
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 ...