exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 177 discussion

A company is expanding the compatibility of its photo-sharing mobile app to hundreds of additional devices with unique screen dimensions and resolutions. Photos are stored in Amazon S3 in their original format and resolution. The company uses an Amazon CloudFront distribution to serve the photos. The app includes the dimension and resolution of the display as GET parameters with every request.

A developer needs to implement a solution that optimizes the photos that are served to each device to reduce load time and increase photo quality.

Which solution will meet these requirements MOST cost-effectively?

  • A. Use S3 Batch Operations to invoke an AWS Lambda function to create new variants of the photos with the required dimensions and resolutions. Create a dynamic CloudFront origin that automatically maps the request of each device to the corresponding photo variant.
  • B. Use S3 Batch Operations to invoke an AWS Lambda function to create new variants of the photos with the required dimensions and resolutions. Create a Lambda@Edge function to route requests to the corresponding photo variant by using request headers.
  • C. Create a Lambda@Edge function that optimizes the photos upon request and returns the photos as a response. Change the CloudFront TTL cache policy to the maximum value possible.
  • D. Create a Lambda@Edge function that optimizes the photos upon request and returns the photos as a response. In the same function, store a copy of the processed photos on Amazon S3 for subsequent requests.
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
tsangckl
10 months, 3 weeks ago
This appear at 17 Jun exam
upvoted 1 times
...
65703c1
11 months, 2 weeks ago
Selected Answer: D
D is the correct answer.
upvoted 2 times
...
Melisa202401
1 year ago
C I dont see any aws docs about Cloutfront cache=> so maybe it is cost-effective
upvoted 1 times
...
joshnort
1 year, 3 months ago
Selected Answer: D
https://aws.amazon.com/blogs/networking-and-content-delivery/resizing-images-with-amazon-cloudfront-lambdaedge-aws-cdn-blog/
upvoted 3 times
...
SerialiDr
1 year, 3 months ago
Selected Answer: D
This solution is the most cost-effective. Lambda@Edge processes the photos dynamically based on the device's requirements, which means no pre-generation of multiple variants is required. Processed photos are stored on S3, ensuring that subsequent requests for the same photo variant are served directly from S3, reducing Lambda@Edge invocations and further optimizing costs.
upvoted 4 times
...
Mimi666
1 year, 4 months ago
Selected Answer: D
https://aws.amazon.com/es/blogs/networking-and-content-delivery/image-optimization-using-amazon-cloudfront-and-aws-lambda/
upvoted 4 times
...
jingle4944
1 year, 5 months ago
According to https://aws.amazon.com/blogs/networking-and-content-delivery/resizing-images-with-amazon-cloudfront-lambdaedge-aws-cdn-blog/, "static resources like images should have a long Time to Live (TTL) as possible to improve cache-hit ratios.". The photo cache here is likely to be static and should be preserved forever.
upvoted 1 times
BrainFried
9 months, 2 weeks ago
CloudFront has a Maximum TTL of 365 days. Would it not be cheaper to store the images in the CloudFront cache, instead of storing it in S3 which would incur costs? We may need to assume it would be unlikely the users would access the same photo more than a year after the initial access.
upvoted 1 times
...
...
ut18
1 year, 6 months ago
Why not B? The developer can use S3 Batch Operations to create new variants of the photos with the required dimensions and resolutions.
upvoted 1 times
...
TallManDan
1 year, 6 months ago
Selected Answer: D
You only want to convert the pictures that get requests. If you convert them all through batch processing, you have wasted time and expense on any possible photo that never gets viewed. The Minimum TTL is set to 60 seconds, the Default TTL is set to 300 seconds, and the Maximum TTL is set to 3600 seconds. S3 is the way to go.
upvoted 2 times
BrainFried
9 months, 2 weeks ago
CloudFront cache has a Maximum TTL of 365 days. Would it not be cheaper to store the images in the CloudFront cache, instead of storing it in S3 which would incur costs? We may need to assume it would be unlikely the users would access the same photo more than a year after the initial access.
upvoted 1 times
...
...
dilleman
1 year, 6 months ago
Selected Answer: D
D is correct
upvoted 1 times
...
Digo30sp
1 year, 7 months ago
Selected Answer: D
D) https://www.examtopics.com/discussions/amazon/view/89564-exam-aws-certified-developer-associate-topic-1-question-320/
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