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
14
Q
A
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
Q

what is Amazon Kinesis Data Analytics?

A

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
Q

What does Cognito do?

A

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
Q

What is AWS Glue?

A

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
Q

What is a simple difference between SNS and SQS?

A

SNS provides TOPICS.
SQS provided QUEUES.

25
Q

When should you use Amazon MQ?

A

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
Q

What is Appflow?

A

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
Q

Which configuration value controls how long something has to process and delete a queue message before it reappears?

A

Visibility Timeout.

28
Q

If you are trying to decouple a super high volume application you should use what AWS product?

A

SQS Standard Queue.

29
Q

Which architecture should be used when one event needs to initiate multiple workflow processes?

A

SNS + SQS Fanout.

30
Q

What is a period of time during which the SQS queue prevents other consuming components from receiving and processing a message?

A

Visibility Timeout.

31
Q

What is the default message retention policy for SQS?

A

Amazon SQS automatically deletes messages that have been in a queue for more than the maximum message retention period.

32
Q

What is the default message retention period for SQS?

A

The default message retention period is 4 days

33
Q

What is Amazon SWF?

A

Amazon SWF is a web service that makes it easy to coordinate work across distributed application components.

34
Q

Is “polling” a SNS topic supported in SNS?

A

polling is NOT supported in SNS. Topics (instead) subscribe

35
Q

What component of SNS or SQS will perform ‘polling’?

A

The consumers of messages from a SQS queue will “poll” the queue

36
Q

What is amazon Kinesis?

A

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
Q

How do messages in SQS queue get deleted?

A

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
Q

How does SQS prevent multiple consumers from processing a message?

A

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
Q
A