A Cantrill - Serverless, Event driven architectures Flashcards

1
Q

What are the issues with Monolithic Architectures?

A

Fails Together, Scales Together, Bills Together.

Higher likelihood of failure, More difficult to scale effectively AND its cost ineffective.

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

What is the Lambda function timeout?

A

15 minutes.

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

What are the 2 networking modes for Lambda?

A

Public and VPC based (private)

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

What are Lambda execution roles?

A

IAM roles attached to the lambda functions which control PERMISSIONS the Lambda function RECEIVES.

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

What is a Lambda resource policy?

A

Controls WHAT services and accounts can INVOKE a Lambda function.

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

What does services does Lambda use for Logging and monitoring?

A

CloudWatch, CW logs, and X-Ray (distributed tracing)

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

What does CloudWatch Logs require for Lambda to work with it?

A

CW Logs require permissions via Execution role for Lambda.

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

What is Lambda Provisioned concurrency ?

A

AWS will create and keep a # of contexts (runtime, configuration) warm and ready to use. Improves speed.

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

What is the difference between cold and warm start in Lambda?

A

Cold start builds the lambda environment from scratch (runtime, config).
Warm start occurs when a lambda reuses the environment from another previously run Lambda (saves time)

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

What is the new version of CloudWatch Events?

A

EventBridge is the new version of CloudWatch Events.

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

EventBridge can have additional event busses that can support non AWS (3rd party, onprem) services? T or F

A

True. EventBridge can incorporate 3rd party or onprem services in a bus.

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

Under what service will you find “State Machines”?

A

State Machines are located under Step Functions.

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

What is 400 error?

A

Bad Request, Generic

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

What is 403 error?

A

Access Denied, Authorizer denied.

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

What is 429 error?

A

Throttling error

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

503?

A

Service unavailable

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

What is a 502 error

A

bad gateway. Lambda returned bad output

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

What is the largest size of message that SQS can handle?

A

256kb is the largest message that SQS handles.

16
Q

What is needed for multiple queues for SQS fanout?

A

SQS topic. One message goes to The topic then fans out to to multiple queues.

17
Q

what suffix must a message have for FIFO in sqs?

A

.fifo suffix

18
Q

What is Dead letter queue?

A

Dead letter queues allow for messages which are causing repeated processing errors to be moved into a dead letter queue

19
Q

What is Kinesis Data stream?

A

Kinesis data streams are a streaming service within AWS designed to ingest large quantities of data and allow access to that data for consumers.

20
Q

What is KDS?

A

Kinesis Data Firehose is a stream based delivery service capable of delivering high throughput streaming data to supported destinations in near realtime

21
what is Amazon Kinesis Data Analytics?
Amazon Kinesis Data Analytics is the easiest way to analyze streaming data, gain actionable insights, and respond to your business and customer needs in real time.
22
What does Cognito do?
Authentication, Authorization, and user mgmt for web/mobile apps. User pools have sign-in and deliver JWT (JSON Web Token). Also provide sign in for 3rd parties (Facebook, google) Does NOT in itself allow AWS access. But with Identity pools, it does.
23
What is AWS Glue?
AWS Glue is a SERVERLESS, fully managed extract, transform, and load (ETL) service that makes it easy for customers to prepare and load their data for analytics
24
What is a simple difference between SNS and SQS?
SNS provides TOPICS. SQS provided QUEUES.
25
When should you use Amazon MQ?
If you need to migrate from existing system with little to no change to application change. If message API protocols are needed - AMQP, MQTT, Openwire, etc
26
What is Appflow?
Amazon AppFlow is a fully managed integration service that enables you to securely transfer data between Software-as-a-Service (SaaS) applications like Salesforce, SAP, Zendesk, Slack, and ServiceNow, and AWS services like Amazon S3 and Amazon Redshift, in just a few clicks.
27
Which configuration value controls how long something has to process and delete a queue message before it reappears?
Visibility Timeout.
28
If you are trying to decouple a super high volume application you should use what AWS product?
SQS Standard Queue.
29
Which architecture should be used when one event needs to initiate multiple workflow processes?
SNS + SQS Fanout.
30
What is a period of time during which the SQS queue prevents other consuming components from receiving and processing a message?
Visibility Timeout.
31
What is the default message retention policy for SQS?
Amazon SQS automatically deletes messages that have been in a queue for more than the maximum message retention period.
32
What is the default message retention period for SQS?
The default message retention period is 4 days
33
What is Amazon SWF?
Amazon SWF is a web service that makes it easy to coordinate work across distributed application components.
34
Is "polling" a SNS topic supported in SNS?
polling is NOT supported in SNS. Topics (instead) subscribe
35
What component of SNS or SQS will perform 'polling'?
The consumers of messages from a SQS queue will "poll" the queue
36
What is amazon Kinesis?
Amazon Kinesis makes it easy to collect, process, and analyze real-time, streaming data so you can get timely insights and react quickly to new information.
37
How do messages in SQS queue get deleted?
The consumer must delete the message from the queue after receiving and processing it. ***When a consumer receives and processes a message from a queue, the message remains in the queue. Amazon SQS doesn’t automatically delete the message.***
38
How does SQS prevent multiple consumers from processing a message?
Amazon SQS sets a visibility timeout, a period of time during which Amazon SQS prevents other consumers from receiving and processing the message. The default visibility timeout for a message is 30 seconds. The maximum is 12 hours.
39