ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 140 - DVA-C02 discussion

Report
Export

An online sales company is developing a serverless application that runs on AWS. The application uses an AWS Lambda function that calculates order success rates and stores the data in an Amazon DynamoDB table. A developer wants an efficient way to invoke the Lambda function every 15 minutes.

Which solution will meet this requirement with the LEAST development effort?

A.
Create an Amazon EventBridge rule that has a rate expression that will run the rule every 15 minutes. Add the Lambda function as the target of the EventBridge rule.
Answers
A.
Create an Amazon EventBridge rule that has a rate expression that will run the rule every 15 minutes. Add the Lambda function as the target of the EventBridge rule.
B.
Create an AWS Systems Manager document that has a script that will invoke the Lambda function on Amazon EC2. Use a Systems Manager Run Command task to run the shell script every 15 minutes.
Answers
B.
Create an AWS Systems Manager document that has a script that will invoke the Lambda function on Amazon EC2. Use a Systems Manager Run Command task to run the shell script every 15 minutes.
C.
Create an AWS Step Functions state machine. Configure the state machine to invoke the Lambda function execution role at a specified interval by using a Wait state. Set the interval to 15 minutes.
Answers
C.
Create an AWS Step Functions state machine. Configure the state machine to invoke the Lambda function execution role at a specified interval by using a Wait state. Set the interval to 15 minutes.
D.
Provision a small Amazon EC2 instance. Set up a cron job that invokes the Lambda function every 15 minutes.
Answers
D.
Provision a small Amazon EC2 instance. Set up a cron job that invokes the Lambda function every 15 minutes.
Suggested answer: A

Explanation:

The best solution for this requirement is option

A) Creating an Amazon EventBridge rule that has a rate expression that will run the rule every 15 minutes and adding the Lambda function as the target of the EventBridge rule is the most efficient way to invoke the Lambda function periodically.This solution does not require any additional resources or development effort, and it leverages the built-in scheduling capabilities of EventBridge1.

asked 16/09/2024
Harry Meijer
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first