AWS Lambda | General Flashcards

1
Q

What is AWS Lambda?

General

AWS Lambda | Compute

A

AWS Lambda lets you run code without provisioning or managing servers. You pay only for the compute time you consume - there is no charge when your code is not running. With Lambda, you can run code for virtually any type of application or backend service - all with zero administration. Just upload your code and Lambda takes care of everything required to run and scale your code with high availability. You can set up your code to automatically trigger from other AWS services or call it directly from any web or mobile app.

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

What is serverless computing?

General

AWS Lambda | Compute

A

Serverless computing allows you to build and run applications and services without thinking about servers. With serverless computing, your application still runs on servers, but all the server management is done by AWS. At the core of serverless computing is AWS Lambda, which lets you run your code without provisioning or managing servers. Learn more about serverless computing by visiting here.

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

What events can trigger an AWS Lambda function?

General

AWS Lambda | Compute

A

Please see our documentation for a complete list of event sources.

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

When should I use AWS Lambda versus Amazon EC2?

General

AWS Lambda | Compute

A

Amazon Web Services offers a set of compute services to meet a range of needs.

Amazon EC2 offers flexibility, with a wide range of instance types and the option to customize the operating system, network and security settings, and the entire software stack, allowing you to easily move existing applications to the cloud. With Amazon EC2 you are responsible for provisioning capacity, monitoring fleet health and performance, and designing for fault tolerance and scalability. AWS Elastic Beanstalk offers an easy-to-use service for deploying and scaling web applications in which you retain ownership and full control over the underlying EC2 instances. Amazon EC2 Container Service is a scalable management service that supports Docker containers and allows you to easily run distributed applications on a managed cluster of Amazon EC2 instances.

AWS Lambda makes it easy to execute code in response to events, such as changes to Amazon S3 buckets, updates to an Amazon DynamoDB table, or custom events generated by your applications or devices. With Lambda you do not have to provision your own instances; Lambda performs all the operational and administrative activities on your behalf, including capacity provisioning, monitoring fleet health, applying security patches to the underlying compute resources, deploying your code, running a web service front end, and monitoring and logging your code. AWS Lambda provides easy scaling and high availability to your code without additional effort on your part.

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

What kind of code can run on AWS Lambda?

General

AWS Lambda | Compute

A

AWS Lambda offers an easy way to accomplish many activities in the cloud. For example, you can use AWS Lambda to build mobile back-ends that retrieve and transform data from Amazon DynamoDB, handlers that compress or transform objects as they are uploaded to Amazon S3, auditing and reporting of API calls made to any Amazon Web Service, and server-less processing of streaming data using Amazon Kinesis.

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

What languages does AWS Lambda support?

General

AWS Lambda | Compute

A

AWS Lambda supports code written in Node.js (JavaScript), Python, Java (Java 8 compatible), and C# (.NET Core) and Go. Your code can include existing libraries, even native ones. Please read our documentation on using Node.js, Python, Java, C#, and Go.

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

Can I access the infrastructure that AWS Lambda runs on?

General

AWS Lambda | Compute

A

No. AWS Lambda operates the compute infrastructure on your behalf, allowing it to perform health checks, apply security patches, and do other routine maintenance.

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

How does AWS Lambda isolate my code?

General

AWS Lambda | Compute

A

Each AWS Lambda function runs in its own isolated environment, with its own resources and file system view. AWS Lambda uses the same techniques as Amazon EC2 to provide security and separation at the infrastructure and execution levels.

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

How does AWS Lambda secure my code?

General

AWS Lambda | Compute

A

AWS Lambda stores code in Amazon S3 and encrypts it at rest. AWS Lambda performs additional integrity checks while your code is in use.

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