Lambda Invocation Flashcards
What does it mean to invoke a Lambda function?
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.
What are two ways to make a Lambda function run?
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.
What happens if a Lambda function has an error when it runs?
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.