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

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

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

A company runs a Java-based job on an Amazon EC2 instance. The job runs every hour and takes 10 seconds to run. The job runs on a scheduled interval and consumes 1 GB of memory. The CPU utilization of the instance is low except for short surges during which the job uses the maximum CPU available. The company wants to optimize the costs to run the job.

Which solution will meet these requirements?

  • A. Use AWS App2Container (A2C) to containerize the job. Run the job as an Amazon Elastic Container Service (Amazon ECS) task on AWS Fargate with 0.5 virtual CPU (vCPU) and 1 GB of memory.
  • B. Copy the code into an AWS Lambda function that has 1 GB of memory. Create an Amazon EventBridge scheduled rule to run the code each hour.
  • C. Use AWS App2Container (A2C) to containerize the job. Install the container in the existing Amazon Machine Image (AMI). Ensure that the schedule stops the container when the task finishes.
  • D. Configure the existing schedule to stop the EC2 instance at the completion of the job and restart the EC2 instance when the next job starts.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
noircesar25
4 months, 1 week ago
can someone explain what makes A wrong, im aware that C hasnt covered all the requirements but A seems good with fargate serverless and autoscaling functionalities, plus AWS app2container is for .NET and JAVA
upvoted 2 times
bujuman
3 months, 1 week ago
Statement: A company runs a Java-based job on an Amazon EC2 instance Requirement: The company wants to optimize the costs to run the job Regarding option A: App2Container is more likely for migratiing legacy application to conatiner based application. Which is not the main purpose of this use case. We are asked to reduce cost on a application that is already running under EC2 instance. So option B has the hight weight, cause lambda could perfectly do the job with the minimal cost
upvoted 4 times
...
...
awsgeek75
5 months, 2 weeks ago
Selected Answer: B
Never done it myself but apparently you can run Java in Lambda all the way to latest version https://docs.aws.amazon.com/lambda/latest/dg/lambda-java.html
upvoted 2 times
...
omarshaban
5 months, 3 weeks ago
THIS WAS IN MY EXAM
upvoted 4 times
...
Murtadhaceit
7 months ago
Selected Answer: B
This question is intended for Lambda. Just searched for Lambda with Event bridge. I
upvoted 2 times
...
potomac
8 months ago
Selected Answer: B
Lambda allows you to allocate memory for your functions in increments of 1 MB, ranging from a minimum of 128 MB to a maximum of 10,240 MB (10 GB).
upvoted 1 times
...
Guru4Cloud
10 months, 2 weeks ago
Selected Answer: B
Remember - AWS Lambda function can go up to 10 GB of memory, instead of free tier only allow 512MB.
upvoted 3 times
...
james2033
11 months, 2 weeks ago
Selected Answer: B
"AWS Batch jobs as EventBridge targets" at https://docs.aws.amazon.com/batch/latest/userguide/batch-cwe-target.html AWS Batch + Amazon EventBridge https://docs.aws.amazon.com/batch/latest/userguide/batch-cwe-target.html . AWS Lambda just for a point of time per period. Choose B.
upvoted 1 times
...
TariqKipkemei
1 year ago
Selected Answer: B
10 seconds to run, optimize the costs, consumes 1 GB of memory = AWS Lambda function.
upvoted 1 times
...
alexandercamachop
1 year, 1 month ago
Selected Answer: B
AWS Lambda automatically scales resources to handle the workload, so you don't have to worry about managing the underlying infrastructure. It provisions the necessary compute resources based on the configured memory size (1 GB in this case) and executes the job in a serverless environment. By using Amazon EventBridge, you can create a scheduled rule to trigger the Lambda function every hour, ensuring that the job runs on the desired interval.
upvoted 1 times
...
Yadav_Sanjay
1 year, 1 month ago
Selected Answer: B
B - Within 10 sec and 1 GB Memory (Lambda Memory 128MB to 10GB)
upvoted 2 times
Yadav_Sanjay
1 year, 1 month ago
https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html
upvoted 1 times
...
...
Efren
1 year, 1 month ago
Selected Answer: B
Agreed, B Lambda
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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in