AWS Certified Developer – Associate (DVA-C02) — Question 164
A developer at a company needs to create a small application that makes the same API call once each day at a designated time. The company does not have infrastructure in the AWS Cloud yet, but the company wants to implement this functionality on AWS.
Which solution meets these requirements in the MOST operationally efficient manner?
Answer options
- A. Use a Kubernetes cron job that runs on Amazon Elastic Kubernetes Service (Amazon EKS).
- B. Use an Amazon Linux crontab scheduled job that runs on Amazon EC2.
- C. Use an AWS Lambda function that is invoked by an Amazon EventBridge scheduled event.
- D. Use an AWS Batch job that is submitted to an AWS Batch job queue.
Correct answer: C
Explanation
The correct answer is C because AWS Lambda functions are ideal for running code in response to events, and using Amazon EventBridge allows for easy scheduling without needing to manage servers. Options A and B involve more operational overhead due to the need to manage Kubernetes or EC2 instances, while option D is more suited for batch processing rather than simple scheduled tasks.