ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 98 - DVA-C02 discussion

Report
Export

A developer is writing a serverless application that requires an AWS Lambda function to be invoked every 10 minutes.

What is an automated and serverless way to invoke the function?

A.
Deploy an Amazon EC2 instance based on Linux, and edit its /etc/confab file by adding a command to periodically invoke the lambda function
Answers
A.
Deploy an Amazon EC2 instance based on Linux, and edit its /etc/confab file by adding a command to periodically invoke the lambda function
B.
Configure an environment variable named PERIOD for the Lambda function. Set the value to 600.
Answers
B.
Configure an environment variable named PERIOD for the Lambda function. Set the value to 600.
C.
Create an Amazon EventBridge rule that runs on a regular schedule to invoke the Lambda function.
Answers
C.
Create an Amazon EventBridge rule that runs on a regular schedule to invoke the Lambda function.
D.
Create an Amazon Simple Notification Service (Amazon SNS) topic that has a subscription to the Lambda function with a 600-second timer.
Answers
D.
Create an Amazon Simple Notification Service (Amazon SNS) topic that has a subscription to the Lambda function with a 600-second timer.
Suggested answer: C

Explanation:

The solution that will meet the requirements is to create an Amazon EventBridge rule that runs on a regular schedule to invoke the Lambda function. This way, the developer can use an automated and serverless way to invoke the function every 10 minutes. The developer can also use a cron expression or a rate expression to specify the schedule for the rule. The other options either involve using an Amazon EC2 instance, which is not serverless, or using environment variables or query parameters, which do not trigger the function.

Reference: Schedule AWS Lambda functions using EventBridge

asked 16/09/2024
Dmitry Balikhin
24 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first