AWS & Serverless Flashcards

1
Q

AWS API Gateway allows you to create, publish, maintain, monitor and secure what?

A

APIs

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

Can the APIs you create be scalable by default?

A

Yes

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

APIs created can access what two key things?

A

AWS Web services & Data stored on AWS Cloud

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

A client hits an registered API endpoint that’s connected to what?

A

API Gateway

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

Once the client hits an endpoint the API Gateway receives a method request that is processed through Gateway’s integration. It can respond by calling a Lambda or accessing data through services such as -> DynamoDB, EC2, S3 etc. This process is considered what?

A

An integrational request.

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

The AWS API Gateway is considered to be a ____ between your app and AWS services

A

mediator

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

An incoming response from the executed service (Lambda or another service) is processed through the Gateway’s integration than returns to the client as a method response. What is this process called?

A

An integrational response.

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

You just created a new API what is the next step?

A

Create a resource

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

What is a resource?

A

The path that is the direct endpoint the client can hit in order to trigger an action

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

Your new API now has a resource what is the next step in order to gain use out of the resourcePath (endpoint)

A

Add an access method for that resourcePath (REST API HTTP methods… GET, POST etc)

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

The resource of the new API is set up with an access method, what is the next thing that must be done?

A

You must stage (or deploy) your API.

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

When defining an access method for a resource you must specify what?

A

An integration type -> Lambda Function, HTTP, Mock or other Service.

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

AWS CloudWatch essentially allows you to do what?

A

Watch/Monitor -> AWS Cloud resources/services

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

AWS CloudWatch has logging, and metrics but what another key thing can it do?

A

send out alerts or alarms about errors or any information.

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

You create what based on CloudWatch monitoring feedback?

A

events to be triggered.

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

These trigger events include:

A

A Lambda or other cloud services and starting/shutting down instances.

17
Q

AWS offers an event-driven computing cloud service, that utilizes FaaS on a pay-per-use basis. What is the name of the core service that makes all this work?

A

AWS Lambda

18
Q

The benefit of AWS Lambda from a developer sense is that….

A

You only worry about the code (serveless, amazon takes care of server scaling and systems)

19
Q

Each Lambda function runs based off of some cloud service or http event. Lambda’s architecture is made up of what 3 three things?

A

Stateless function, Isolated in its own environment, is its own resource in the AWS system.

20
Q

The Lambda function is stateless/immutable, it will listen to an “ALLOWED” event/trigger from a resource and make changes/updates to “ALLOWED” resources. When these changes are made what happens next?

A

The lambda returns an integrational response to AWS API Gateway -> that then returns a payload response to the client.

21
Q

What is the benefit of AWS Lambda (FaaS) from a business sense.

A

Big savings ($$). The cost to time ratio of getting the architecture setup is tremendously low in cost and quick in time.

22
Q

Step Functions are basically what

A

State Machines

23
Q

State Machines (step functions) allow you to organize ____ and build a back in architecture that perform different things.

A

Lambdas

24
Q

In a state machine architecture it is composed of lambdas but how when lambdas are stateless?

A

One lambda functions output (data/state) can be used as input in the NEXT lambda function. Hints “Step Functions” they run step by step.

25
Q

Where do you go in AWS to create state machines?

A

AWS Step Function service console

26
Q

A State Machine is made up of a few key parts, but the meat of the state machine can be found in what property of the state machine JSON.

A

“State”

27
Q

The states key in the State Machine defines what?

A

Different states (step functions) that compose to make the state machine.

28
Q

Each “state” in the state machine has a name, type, resource, resultPath & end. What is the name referring to?

A

The name of the step function

29
Q

Each “state” in the state machine has a name, type, resource, resultPath & end. What is the type defining?

A

What action the state or step function will take/execute. As well as what type of state it is.

30
Q

Each “state” in the state machine has a name, type, resource, resultPath & end. What is the Resource key referring to?

A

What Lambda will be called. Typically this key will have a Lambda arn:id to identify the lambda needed.

31
Q

Each “state” in the state machine has a name, type, resource, resultPath & end. What is the resultPath referring to?

A

Where you can find in the state’s or step function’s output (object) the data or state changes.

32
Q

The are multiple ways to get a state machine to began. How can you use a lambda to do this?

A

A Lambda will listen for an event in order to trigger the 1st step function to execute in the chain.

33
Q

How does the lambda know what state machine to execute and what is the lambda acting as?

A

The lambda acts as an execution machine, which will execute the right state machine based on arn:id

34
Q

What is serverless?

A

A way to cloud compute client resource changes and application responses without worrying about the server. (Services used will handle provisioning, scaling and allocation of servers)

35
Q

How does serverless run at large scale?

A

It uses multiple stateless computation containers (functions) That are event-triggered. The cloud provider manages this.

36
Q

A middle man must be setup between the client & cloud provider in order to make this all work. What is that middle man?

A

An API Gateway

37
Q

FaaS is basically the system architecture used in serverless. What does FaaS stand for.

A

Functions As A System

38
Q

Serveless architecture is composed of what 5 things?

A

Web server, Lamda Functions (FaaS), security token service, user authentication, and database.