exam questions

Exam AWS Certified Solutions Architect - Professional SAP-C02 All Questions

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

Exam AWS Certified Solutions Architect - Professional SAP-C02 topic 1 question 134 discussion

A company runs a proprietary stateless ETL application on an Amazon EC2 Linux instances. The application is a Linux binary, and the source code cannot be modified. The application is single-threaded, uses 2 GB of RAM, and is highly CPU intensive. The application is scheduled to run every 4 hours and runs for up to 20 minutes. A solutions architect wants to revise the architecture for the solution.

Which strategy should the solutions architect use?

  • A. Use AWS Lambda to run the application. Use Amazon CloudWatch Logs to invoke the Lambda function every 4 hours.
  • B. Use AWS Batch to run the application. Use an AWS Step Functions state machine to invoke the AWS Batch job every 4 hours.
  • C. Use AWS Fargate to run the application. Use Amazon EventBridge (Amazon CloudWatch Events) to invoke the Fargate task every 4 hours.
  • D. Use Amazon EC2 Spot Instances to run the application. Use AWS CodeDeploy to deploy and run the application every 4 hours.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
zhangyu20000
Highly Voted 1 year, 9 months ago
C is correct. only eventbridge can run scheduled task
upvoted 16 times
...
Maria2023
Highly Voted 1 year, 4 months ago
Selected Answer: C
If there wasn't a schedule element I would choose AWS Batch because it pretty much loads a container and does the job, especially since it's like a 20-minute job. However the step functions part doesn't help with the scheduling part, hence I go for C
upvoted 6 times
...
eesa
Most Recent 1 week ago
Selected Answer: C
AWS Fargate is ideal for running containerized workloads without managing underlying EC2 instances. Even though the application is a binary and its source code cannot be modified, it can be easily packaged into a Docker container without changing the binary itself. Since the application runs periodically (every 4 hours) and for a short duration (up to 20 minutes), Fargate provides a cost-effective, serverless execution environment. Amazon EventBridge (CloudWatch Events) can be scheduled to invoke Fargate tasks precisely at defined intervals.
upvoted 1 times
...
Longc
1 month, 3 weeks ago
Selected Answer: C
Option C clearly includes EventBridge for scheduling, aligning with the requirement to run tasks every 4 hours. While AWS Batch is technically better for CPU-intensive workloads, the lack of explicit EventBridge integration in Option B makes C the correct answer under AWS’s service design principles.
upvoted 1 times
...
albert_kuo
1 month, 3 weeks ago
Selected Answer: B
B. Use AWS Batch to run the application. Use an AWS Step Functions state machine to invoke the AWS Batch job every 4 hours.
upvoted 1 times
...
9d7a975
2 months, 1 week ago
Selected Answer: B
B: Usa uma máquina de estado do AWS Step Functions para invocar o trabalho do AWS Batch a cada 4 horas. Por que não é a letra C : Embora possa executar containers, é mais adequado para aplicações de longa duração
upvoted 2 times
...
TonytheTiger
6 months, 3 weeks ago
Option C : https://docs.aws.amazon.com/prescriptive-guidance/latest/patterns/run-event-driven-and-scheduled-workloads-at-scale-with-aws-fargate.html
upvoted 1 times
...
ninomfr64
9 months, 1 week ago
A = CW Log cannot invoke lambda every 4 hours B = Step Function cannot invoke batch job every 4 hour (unless you use an EventBridhe scheduled event) C = correct (but I do not like when Fargate is mentioned as a standalone service, as it is a serverless compute option for some some services) D = CodeDeploy cannot run an application every 4 hours
upvoted 2 times
...
cox1960
9 months, 2 weeks ago
none. "highly CPU intensive" means no Fargate. scheduling means eventbridge.
upvoted 2 times
...
holymancolin
9 months, 3 weeks ago
https://aws.amazon.com/about-aws/whats-new/2018/10/aws-lambda-supports-functions-that-can-run-up-to-15-minutes/ Lambda's max running time is 15 mins, cannot support up to 20mins application.
upvoted 1 times
...
haha001
10 months ago
https://aws.amazon.com/tutorials/scheduling-a-serverless-workflow-step-functions-amazon-eventbridge-scheduler/ Step Function cannot schedule a job. Step Function needs EventBridge as the scheduler.
upvoted 1 times
...
career360guru
10 months, 1 week ago
Selected Answer: C
B is not possible as Step Function can not be used to run scheduled a job every 4 hour
upvoted 1 times
...
task_7
1 year, 1 month ago
Selected Answer: D
containers are well-suited for applications that are built in microservices architecture, where each service is a self-contained unit that performs a specific task. These types of applications are typically designed to be scalable and easy to deploy, making them a good fit for containerization. I feel D is the best option
upvoted 2 times
teo2157
8 months ago
you can´t garantee with spot instances that they're available every 4 hours, C is the answer
upvoted 3 times
...
...
uC6rW1aB
1 year, 1 month ago
Selected Answer: C
I think Both B 、C is missing some key point Option B does not explain how to AWS Step Functions to trigger an AWS Batch job regually, in this case 4 hours per run. Option C does not explain how to use EventBridge to call the Fargate task, which is not native support, it might involved lambda to achive.
upvoted 1 times
...
NikkyDicky
1 year, 3 months ago
Selected Answer: C
C. schedule -> eventbridge
upvoted 1 times
...
rbm2023
1 year, 5 months ago
Selected Answer: C
The application is a Linux binary which can be packaged into a container, then run on AWS Fargate and scheduled using Event Bridge. # Use a base image that matches your application's runtime environment FROM ubuntu:latest # Copy the Linux binary into the container COPY myapp /usr/local/bin/myapp # Set the entry point to execute the binary ENTRYPOINT ["/usr/local/bin/myapp"]
upvoted 3 times
...
mfsec
1 year, 7 months ago
Selected Answer: C
C - Fargate is the best choice here
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