Serverless and App Services Flashcards

1
Q

By default, what can AWS lambda functions access?

A

Public AWS services and the public internet.

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

What are lambda execution roles?

A

Enable lambda function to interact with AWS services and resources.

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

How can lambda interact with instances in a private VPC?

A

Configure the lambda function to run within the VPC.

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

What controls the services and accounts that can invoke lambda functions?

A

Lambda resource policy

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

What AWS service can you use to get information about function success/failures, retries, latency?

A

Cloudwatch - specifically metrics

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

What is the difference between synchronous and asynchronous function invocation?

A

Synchronous: Pass data, get response of success or failure, typically done by human via CLI or API Gateway
Asynchronous: Typically done by AWS service, lambda handles retry upon failure (max 2 retries)

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

When is event source mapping used to invoke a lambda function?

A

Used on streams and queues which don’t support event generation to invoke lambda

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

What indicates the latest version of a lambda function?

A

$Latest

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

What is an execution context?

A

The environment a lambda function runs in. Can be cold (start form scratch) or warm (ready to go).

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

What is the main advantage of EventBridge over CloudWatch?

A

You can configure multiple event busses to route events to targets.

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

What is the main functionality of SNS?

A

Coordinates sending and delivery of messages

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

What types of messages are sent with SNS?

A

Texts, Email, mobile push, HTTP

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

What is the max size of an SNS message?

A

256 KB

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

What can you use when you want a stateful lambda execution or want to chain multiple lambda functions together?

A

Step functions

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

True or False: API Gateway cannot be used to connect to on premise endpoints

A

False

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

In API Gateway, a _________ endpoint is used to route incoming requests to nearest CloudFront POP.

A

Edge-Optimized

17
Q

How does API Gateway avoid calling backend services on every single request?

A

Caching

18
Q

How do ASGs interact with SQS?

A

ASGs can scale based on length of a queue

19
Q

What are the two types of SQS queues?

A

Standard and FIFO

20
Q

How can you reduce cost of polling SQS queue?

A

Make fewer requests (polling the queue)

21
Q

What types of encryption is available within SQS?

A

At rest and in transit

22
Q

Using batching, what is the max amount of messages per second you can obtain per second from a FIFO queue?

A

3,000

23
Q

Kinesis streams store a ________ window of data.

A

24 hour

24
Q

For an additional cost, kinesis streams can store __ days worth of data.

A

7

25
Q

What should I add to increase how much data can live on a data stream?

A

shards

26
Q

Why might you want to use Kinesis Data Firehose?

A

To load data for data lakes, data stores, or other analytics services.

27
Q

_____ allows real time data processing using SQL

A

Kinesis Data Analytics

28
Q

What is the difference between Cognito User Pools and Cognito Identity Pools?

A

User pools are for user directory management and profiles, sign up, sign in, MFA. Identity pools are for granting temporary AWS credentials.

29
Q

In Cognito, what allows swapping google, facebook, twitter, saml, etc. credentials for short term AWS credentials?

A

Federated Identities/Identity Federation