exam questions

Exam AWS Certified Solutions Architect - Associate SAA-C03 All Questions

View all questions & answers for the AWS Certified Solutions Architect - Associate SAA-C03 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
omarshaban
Highly Voted 11 months, 1 week ago
THIS WAS IN MY EXAM
upvoted 7 times
...
awsgeek75
Highly Voted 11 months, 1 week 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 6 times
...
Danilus
Most Recent 1 month, 2 weeks ago
Selected Answer: B
key -The company wants to optimize the costs to run the job. the answer is B because lambda provides the most cost-effective,easy to mange and scalable solution.it minimizes the need to manage infrastructure because you only pay for the compute time used during job execution
upvoted 2 times
...
noircesar25
9 months, 4 weeks 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 4 times
bujuman
8 months, 4 weeks 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
JA2018
1 month ago
you only need to pay for the compute resources consumed as and when each Lambda function is actually running (for the running duration)
upvoted 1 times
...
...
...
Murtadhaceit
1 year ago
Selected Answer: B
This question is intended for Lambda. Just searched for Lambda with Event bridge. I
upvoted 3 times
...
potomac
1 year, 1 month 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 2 times
...
Guru4Cloud
1 year, 4 months ago
Selected Answer: B
Remember - AWS Lambda function can go up to 10 GB of memory, instead of free tier only allow 512MB.
upvoted 5 times
...
james2033
1 year, 5 months 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 2 times
...
TariqKipkemei
1 year, 6 months ago
Selected Answer: B
10 seconds to run, optimize the costs, consumes 1 GB of memory = AWS Lambda function.
upvoted 2 times
...
alexandercamachop
1 year, 6 months 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 2 times
...
Yadav_Sanjay
1 year, 7 months ago
Selected Answer: B
B - Within 10 sec and 1 GB Memory (Lambda Memory 128MB to 10GB)
upvoted 3 times
Yadav_Sanjay
1 year, 7 months ago
https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html
upvoted 2 times
...
...
Efren
1 year, 7 months ago
Selected Answer: B
Agreed, B Lambda
upvoted 3 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