exam questions

Exam AWS Certified Solutions Architect - Professional All Questions

View all questions & answers for the AWS Certified Solutions Architect - Professional exam

Exam AWS Certified Solutions Architect - Professional topic 1 question 861 discussion

A company has an application. Once a month, the application creates a compressed file that contains every object within an Amazon S3 bucket. The total size of the objects before compression is 1 TB.
The application runs by using a scheduled cron job on an Amazon EC2 instance that has a 5 TB Amazon Elastic Block Store (Amazon EBS) volume attached. The application downloads all the files from the source S3 bucket to the EBS volume, compresses the file, and uploads the file to a target S3 bucket. Every invocation of the application takes 2 hours from start to finish.
Which combination of actions should a solutions architect take to OPTIMIZE costs for this application? (Choose two.)

  • A. Migrate the application to run an AWS Lambda function. Use Amazon EventBridge (Amazon CloudWatch Events) to schedule the Lambda function to run once each month.
  • B. Configure the application to download the source files by using streams. Direct the streams into a compression library. Direct the output of the compression library into a target object in Amazon S3.
  • C. Configure the application to download the source files from Amazon S3 and save the files to local storage. Compress the files and upload them to Amazon S3.
  • D. Configure the application to run as a container in AWS Fargate. Use Amazon EventBridge (Amazon CloudWatch Events) to schedule the task to run once each month.
  • E. Provision an Amazon Elastic File System (Amazon EFS) file system. Attach the file system to the AWS Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: BD 🗳️

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
snakecharmer2
Highly Voted 3 years, 1 month ago
Selected Answer: BD
B & D You can write S3 streams in mutliple languages using its SDK, there is no need to download the files. You should use Fargate and not Lambda becuase the proccesing time is bigger than 15 minutes. In Fargate you only pay for the resources you consume while your container is running instead of running the EC2 instance the all month.
upvoted 12 times
...
mrgreatness
Most Recent 2 years, 7 months ago
B and D for me
upvoted 1 times
...
asfsdfsdf
2 years, 9 months ago
Selected Answer: BD
Looks like B and D. Lambda cant be used as the process is 2 hours - So A and E are out Regarding C - It will do a full download of the files - need to split it B - use stream (passthrough) so only the size of the stream is needed. D - Not need to pay for an instance just create a task once a month
upvoted 2 times
...
Yamchi
3 years, 1 month ago
BD is for me
upvoted 1 times
...
hfeng95
3 years, 1 month ago
It is B & C. The key is to avoid the network traffic during the compression. Streaming compression and local disk compression fit into this requirement.
upvoted 2 times
...
Bigbearcn
3 years, 1 month ago
Selected Answer: CD
It's C and D. use Fargate instead of EC2 to optimize cost. Lambda has 15 min limits, It may not be enough to download the file, compress it and upload to S3. So A and E is rule out. For C, I am not sure Fargate local storage can store such large files because Fargate local storage max size is 200GB.
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 ...