Lambda Flashcards
Lambda
A serverless compute service that executes your code only when needed and scales automatically.
True/False. Lambda functions are stateful.
False. Lambda functions are stateless – no affinity to the underlying infrastructure.
How are resources assigned to Lambda?
You choose the amount of memory you want to allocate to your functions and AWS Lambda allocates proportional CPU power, network bandwidth, and disk I/O.
What compliance frameworks does Lambda support?
AWS Lambda is SOC, HIPAA, PCI, ISO compliant.
What languages are support by Lambda?
Node.js
Java
C#
Go
Python
Ruby
PowerShell
True/False. You can also provide your own custom runtime.
True.
What is a function?
a script or program that runs in Lambda. Lambda passes invocation events to your function. The function processes an event and returns a response.
What are Execution Environments?
a secure, isolated micro virtual machine where a Lambda function is executed.
What are Runtimes?
Lambda runtimes allow functions in different languages to run in the same base execution environment. The runtime sits in-between the Lambda service and your function code, relaying invocation events, context information, and responses between the two.
What are Environment Variables?
key-value pairs that you can use to store configuration settings for your function. They can be used to pass dynamic parameters to your function at runtime, such as database connection strings, API keys, and other sensitive information.
What are Layers?
Lambda layers are a distribution mechanism for libraries, custom runtimes, and other function dependencies. Layers let you manage your in-development function code independently from the unchanging code and resources that it uses.
What is Event Source?
an AWS service or a custom service that triggers your function and executes its logic.
What is Downstream resources?
an AWS service that your Lambda function calls once it is triggered.
What are Log Streams?
While Lambda automatically monitors your function invocations and reports metrics to CloudWatch, you can annotate your function code with custom logging statements that allow you to analyze the execution flow and performance of your Lambda function.
AWS Serverless Application Model
How can you upload your application code?
as a ZIP file or a container image hosted on Amazon Elastic Container Registry (Amazon ECR).
How do you create a Lambda?
To create a Lambda function, you first package your code and dependencies in a deployment package. Then, you upload the deployment package to create your Lambda function.
What happens with production Lambdas by default?
After your Lambda function is in production, Lambda automatically monitors functions on your behalf, reporting metrics through Amazon CloudWatch.
What are basic function settings?
A description, memory usage, storage (512MB-10GB), execution timeout (15 minutes max), and the role that the function will use to execute your code.
How are Environment variables secured?
are always encrypted at rest and can be encrypted in transit as well.
What are Versions?
a snapshot of your function’s state at a given time. When you publish a new version, a :version-number is appended to your function’s ARN:
arn:aws:lambda:us-east-2:123456789123:function:my-function:1
What are Aliases?
serves as a pointer to a Lambda function version. Aliases create a human-readable version of the function’s name, making it easier to remember and understand what the function does. An alias follows the following format:
arn:aws:lambda:us-east-2:123456789123:function:my-function:MyAlias
What is a Layer?
A layer is a ZIP archive that contains libraries, a custom runtime, or other dependencies. Use layers to manage your function’s dependencies independently and keep your deployment package small.
True/False. You can configure a function to mount an Amazon EFS file system to a local directory. With Amazon EFS, your function code can access and modify shared resources securely and at high concurrency.
True.
What innovations are supported by a Lambda Function?
Lambda supports synchronous and asynchronous invocation of a Lambda function.