Lambda Invocation Flashcards

1
Q

What does it mean to invoke a Lambda function?

A

Invoking a Lambda function means telling the function to run or do its job.

Example: Invoking a Lambda function to process a new file upload.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are two ways to make a Lambda function run?

A

Direct Call: You ask the function to run and wait to see what it does right away.
Wait for Event: The function runs automatically when something happens, like a new file is uploaded, without you telling it each time.

Example: Using a direct call to trigger a Lambda function manually.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What happens if a Lambda function has an error when it runs?

A

If you’re waiting (Direct Call): You find out about the error immediately.
If it runs automatically (Wait for Event): AWS tries to run it again a few times to see if it works later.

Additional Information: AWS provides error handling mechanisms for Lambda functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly