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

A company's packaged application dynamically creates and returns single-use text files in response to user requests. The company is using Amazon CloudFront for distribution, but wants to further reduce data transfer costs. The company cannot modify the application's source code.
What should a solutions architect do to reduce costs?

  • A. Use Lambda@Edge to compress the files as they are sent to users.
  • B. Enable Amazon S3 Transfer Acceleration to reduce the response times.
  • C. Enable caching on the CloudFront distribution to store generated files at the edge.
  • D. Use Amazon S3 multipart uploads to move the files to Amazon S3 before returning them to users.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
QasimNaeem
Highly Voted 3 years, 7 months ago
Correct Ans is A: Use Lambda@Edge. See the question "single-use text file" will be sent in response. Single-use text file means that file will be used only one time so whats the benefit of the caching it on the cloudfront as it will not be abled to be used again. So what other thing can be done is to use Lambda@Edge to compress the file which will reduce the size of the file and hence less data will be transferred and less will be the transfer charges.
upvoted 127 times
gargaditya
3 years, 5 months ago
Thats correct, I think that cloudfront us being used to distribute content using S3/OAI instead of provisioning servers.
upvoted 1 times
gargaditya
3 years, 5 months ago
+just realised this-caching can be enabled/disabled
upvoted 1 times
...
...
bus_asdf
3 years, 7 months ago
I agree! Thanks
upvoted 4 times
...
ansarica
3 years, 6 months ago
Appreciate your explanation.
upvoted 4 times
...
SDikeman62
3 years, 1 month ago
It says 'Source code is not allowed to change". Without source code change, how can you compress the file.
upvoted 2 times
coolcrypto
2 years, 10 months ago
You do not access to application code to write a Lambda@Edge. Question only says "The firm is not permitted to edit the source code of the program."
upvoted 2 times
...
...
...
JohnnyS20
Highly Voted 3 years, 7 months ago
To reduce the transfer costs, content should be cached at the edges. To further reduce transfer costs, enable processing of the requests on the edges. By doing this, the Edge locations will have much fewer going back to the origin server to process the requests. The shorts requests can already be processed and then immediately returned to the user, while all being done at the Edge Locations. Correct answer: Lambda@Edge
upvoted 37 times
John_Frum
3 years, 7 months ago
But they say "single use" text files. Since files are different caching is pointless.
upvoted 4 times
Liongeek
3 years, 7 months ago
In this case, you're using Cloudfront to reduce the data transfer cost by sending and returning the data to the application and reducing the cost of provisioning EC2 instances by using LambdEdga which is a service available in the Cloudfront Edges.
upvoted 1 times
...
...
HMC_37
3 years, 6 months ago
By compressing the file using lambda@edge, ll also reduce the size and transfer costs.
upvoted 2 times
...
...
Uzbekistan
Most Recent 1 year, 1 month ago
Selected Answer: C
The right answer is C. Enabling caching on the CloudFront distribution allows CloudFront edge locations to store copies of frequently accessed files. This reduces the origin server's load and data transfer costs, as frequently requested files are served from the edge locations, closer to the users.
upvoted 1 times
...
gHALAINI
3 years, 3 months ago
Selected Answer: A
Ans. A https://aws.amazon.com/blogs/networking-and-content-delivery/dynamically-route-viewer-requests-to-any-origin-using-lambdaedge/
upvoted 1 times
...
mozahra
3 years, 5 months ago
A for sure
upvoted 1 times
...
anirban7172
3 years, 6 months ago
Agree A is the correct Answer.
upvoted 1 times
...
spydii
3 years, 6 months ago
Are these dumps worth in august 2021 or it is just a clickbait?
upvoted 2 times
...
karthisena
3 years, 6 months ago
Explanation: B seems more expensive; C does not seem right because they are single use files and will not be needed again from the cache; D multipart mainly for large files and will not reduce data and cost; A seems the best: change the application code to compress the files and reduce the amount of data transferred to save costs.
upvoted 1 times
...
nickname20212021
3 years, 6 months ago
Passed the exam on 26th June, this question was on my test.
upvoted 5 times
...
Maddy_aws2020
3 years, 6 months ago
Passed the exam on 19th June 2021. This question appeared in my exam. Marking it for future help
upvoted 11 times
jw1806
2 years, 7 months ago
can't you just not to make the fake acct more visible? don't use a date in the account name please.
upvoted 1 times
...
...
tinyshare
3 years, 6 months ago
Still the question is: CloudFront can compress file by itself, why Lambda@Edge is even needed?
upvoted 1 times
...
tinyshare
3 years, 6 months ago
unable to change the source code is not an issue because the compression happens at the edge, right before sending to the user. However, CloudFront can compress file by itself, why Lambda@Edge is even needed? https://docs.amazonaws.cn/en_us/AmazonCloudFront/latest/DeveloperGuide/ServingCompressedFiles.html
upvoted 1 times
...
Abdullah22
3 years, 6 months ago
A. this was in my exam today . passed.
upvoted 14 times
...
Kopa
3 years, 6 months ago
What should a solutions architect do to reduce costs? If we use Lambda it will consume some money, i dont know exactly how much money we reduce with Lambda, so im more to C for caching.
upvoted 2 times
sarah_t
3 years, 6 months ago
Caching is pointless here, it's explicitly mentioned in the text that the files are single-use.
upvoted 1 times
...
...
syu31svc
3 years, 6 months ago
https://aws.amazon.com/lambda/edge/: "Lambda@Edge is a feature of Amazon CloudFront that lets you run code closer to users of your application, which improves performance and reduces latency. With Lambda@Edge, you don't have to provision or manage infrastructure in multiple locations around the world. You pay only for the compute time you consume - there is no charge when your code is not running. With Lambda@Edge, you can enrich your web applications by making them globally distributed and improving their performance — all with zero server administration. Lambda@Edge runs your code in response to events generated by the Amazon CloudFront content delivery network (CDN). Just upload your code to AWS Lambda, which takes care of everything required to run and scale your code with high availability at an AWS location closest to your end user." Answer is A
upvoted 2 times
...
DarrylNg
3 years, 6 months ago
A. Process of elimination. "Single-Use Text-file"
upvoted 3 times
...
KK_uniq
3 years, 6 months ago
Should be Lambda edge
upvoted 2 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