Lambda Functions Flashcards

1
Q

How are you billed in Lambda?

A

1-millisecond increments

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

High availability and Fault tolerance are two benefits of Lambda

A

True

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

How does Lambda scale?

A

In response to events.

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

What is an event driven Arc?

A

uses events to initiate actions and communication between decoupled services

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

T/F Consumers know who the producer is?

A

False: they are only aware of the router.

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

Who recieves events?

A

Those who subscirbe to them.

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

Are Lamda functions stateful?

A

No,

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

Synchronous Function

A

Synchronous events expect an immediate response from the function invocation

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

What services invoke a synchronous function?

A

Amazon API Gateway
Amazon Cognito
AWS CloudFormation
Amazon Alexa
Amazon Lex
Amazon CloudFront

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

asynchronous invocation

A

events are queued and the requestor doesn’t wait for the function to complete.

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

What services invoke an asynchronous function?

A

Amazon SNS

Amazon S3

Amazon EventBridge

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

Polling Invocation

A

poll (or watch) these services, retrieve any matching events, and invoke your functions

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

What services invoke an polling function?

A

Amazon Kinesis
Amazon SQS
Amazon DynamoDB Streams

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

What services can Lamda read for polling event source mapping?

A

Amazon DynamoDB

Amazon Kinesis

Amazon MQ

Amazon Managed Streaming for Apache Kafka (MSK)

self-managed Apache Kafka

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

Cold Start

A

a new execution environment is required to run a Lambda function.

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

Warm Start

A

the Lambda service retains the environment instead of destroying it immediately

16
Q

Provisioned concurrency

A

is a Lambda feature that prepares concurrent execution environments before invocations, ensuring the lowest possible latency.

17
Q

Permissions to invoke a lamda function are controlled how?

A

using an IAM resource-based policy

18
Q

Permission to control what the function can to do within the other AWS services how?

A

using an IAM execution role

19
Q

Trust Policy

A

A trust policy defines what actions your role can assume

20
Q

What is needed for Lamda to access a VPC?

A

subnet IDs and security group IDs, and execution role permissions

21
Q

How is PrivateLink used in Lamda Functions?

A

To establish a private connection between your VPC and Lambda, create an interface VPC endpoint

22
Q

Ways to build Lamda Functions

A

You can author functions within the Lambda console, with an IDE toolkit, using command line tools, or using the AWS SDK

23
Q

what is the Lamdba Console based on benefit?

A

Cloud9ide write, deploy, test

24
Q

AWS SAM

A

open-source framework for building serverless applications (a fully detailed CloudFormation template)

25
Q

AWS SAM CLI

A

launches a Docker container that you can interact with to test and debug your Lambda functions.

26
Q

three configurations for Lamda functions

A

memory (up to 10g), timeout max is 900sec, and concurrency

27
Q

Lambda Power Tuning

A

Powered by Step functions
find the best configuration for a function
supports three optimization strategies: cost, speed, and balanced

28
Q

Lambda Concurrency types

A

UnReserved: (min 100) \
reserved
provisioned (high perf low latency..ready to go

29
Q

How do bursts scale

A

after initial burst (location dependent) by 500 every minute or until reached

30
Q

Types of Code Deply Shifting Patterns

A

Canary
Linear
all at once

31
Q

What does CloudWatch monitor by default for Lamda functions?

A

Number of requests
Invocation duration per request
Number of requests that result in an error

32
Q

What can you monitor optionally for Lamdba functions through CloudWaltch?

A

Throttle (The number of times that a process failed because of concurrency limit)
Iterator Age
DeadLeterErrors
concurrent executions

33
Q

Amazon CloudWatch Lambda Insights

A

collects, aggregates, and summarizes system-level metrics

34
Q

How do you use XRay to monitor Lamda Functions

A

Tuning performance
Identifying the call flow of Lambda functions and API calls
Tracing path and timing of an invocation to locate bottlenecks and failures