App Integration Flashcards

1
Q

What is Event Bridge?

A

Event bridge uses events to connect application components

The 4 types of event sources are: AWS Services, Custom Apps, SaaS Apps, Microservices

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

What is Step Function?

A

Looks like a flow chart

Ie., can wait up to 356 days - inventory management could take ages so helps with real world interactions

or

If lambda took longer than 15 mins to run it would enter fail state because its the max length of time it should take

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

Can you do branches or loops within a Step Function?

A

Yes

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

Who puts messages into SQS queue

A

Producers

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

Who do producers send messages to?

A

Producers -> SQS -> consumer

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

One benefit of SQS and SNS is that

A

SQS decouples consumers and producers
SNS decouples publishers and subscribers

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

What is a Dead Letter Queue?

A

It could be something failed that a human looks at or something we set up to automatically

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

What is the idea of ‘fanout’ in SNS?

A

Fanout is when a message published to an SNS topic is replicated and pushed to multiple endpoints

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

How can you use SNS and SQS?

A

You could upload SNS ( a new image to process) this could fan out to 3 SQS queues and then EC2 could be processing and making EC2 thumbnails at same time lambda could be processing one of the sqs queues

Order (producer)
Chef (consumer)

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

What is App Sync?

A

App Sync is a managed Graph QL interface get or set aggregated data and display it in our apps

Used in things like social media

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

When should you use SNS and SQS?

A

If you need to make sure the message is processed

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

What is the difference between short polling and long polling in SQS

A

Short polling - client sends frequent requests ie., <1sec. SQS responds immediately even if blank.

Long polling - unless poll times out, only responds when a message arrives in queue. It can reduce costs

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

When would you use long polling instead of short polling in sqs?

A

When you have high traffic use long polling

When you can afford frequent messages use short Polling

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

A high resolution video is from ec2 to s3 and waits for s3 to provide data

What should you use to process videos without waiting for a response

A

SQS

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

Whst would be the best service for suggestion clothes for users based on what they have in their shopping cart?

A

Step Function (think of flow chart with branches and loops)

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

An app that processes customer orders is moving from on-premises to aws.

Order is received, processed, label created and then a confirmation email is sent to customer

What solution creates a maintainable app that completes all steps in this order and doesn’t need self managed cloud infrastructure

A

Create a lambda function for each task
Use a Step Function to invoke Lambda functions in order

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

You’re able to take info in from sources such as (AWS services, external SaaS and your own custom apps) and perform actions (filter, manage and direct) them to other systems

These systems listen and take action based on the info

What service is this

A

Event Bridge

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

Can you convert scripts to Lambda functions and schedule them with Event Bridge

A

Yes

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

Name the states of a Step Function?

A

CW PPT FM
choice (rule)
wait

pass
parallel
task

fail
map (iterate)

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

What is short polling?

A

Short polling is when the client sends frequent requests ie., <1sec. SQS responds immediately even if blank.

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

What is long polling?

A

Long polling - unless poll times out, only responds when a message arrives in queue. It can reduce costs

22
Q

When would you use a lambda function ?

A

When you have a single stand alone function that responds to an event

23
Q

When do you use Step Functions?

A

It’s usually used to help you overcome the issue that lambda has a max 15min execution time

24
Q

Benefit of SQS is

A

it builds decoupled apps

25
Q

What can you use to send an email notification when a Cloud Watch alarm is triggered?

A

SNS

26
Q

How would you describe Step Functions?

A

order processing workflow

27
Q

What is an event?

A

An event is a record of a change that has happened in the past.

The event could be in the AWS environment (ie., s3), SaaS partner service/app (ie., Zendesk) or your service/app

Example:
- EC2 instance changes state from pending to running
- Step Function finishes execution
Scheduled events
- CloudTrail publishes events when you make API calls

The event is a JSON string

28
Q

What is the event bus?

A

The event bus is where events land once they’ve been triggered

29
Q

What is the max number of rules an event bus can have associated with it?

A

100

30
Q

What is the purpose of rules on the event bus in event bridge?

A

Rules allow you to filter events on the event bus

You must specify target for events to be passed on to ie., ec2 instance

31
Q

In Event Bridge, are rules for the event bus processed in any particular order?

A

No

32
Q

In Event Bridge can you send events to other accounts

A

Yes this is known as Cross Account Events

33
Q

Name the only AWS services integrates directly with third party support ie. AuthO?

A

Event Bridge

34
Q

What is Event Bridge Archive?

A

It let’s you archive events and easily replay them by sending them back to event bus it came from at a later time

35
Q

Name 2 benefits of event bridge archive

A

disaster recovery
bug fixes

36
Q

What is schema registry feature of Event Bridge

A

collects and stores event schema patterns

37
Q

What is code bindings feature of event bridge?

A

checks variables are the correct type

38
Q

When would you use SNS instead of Event Bridge

A

Use SNS for simple app and Event Bridge for more complex app

39
Q

What helps you move from a monotloitihc system to something that’s more decoupled

A

event bridge

40
Q

What is a task state

A

A single unit of work

41
Q

What is a choice state

A

like if statement

42
Q

What is wait state

A

delays for certain amount of time

43
Q

What is map

A

Like a for loop

44
Q

Can you use Event Bridge to schedule a lambda function to be invoked every 10 mins?

A

Yes

45
Q

Can you use Event Bridge to listen for changes in patterns ie., a change to the state or AWS KMS?

A

Yes

46
Q

What happens after you create an event.json as part of event bridge?

A

You can run cli command to put the event onto the event bus and you will see response to say if it worked

The event can only be associated with 1 event bus

47
Q

what is a common pattern for event bridge?

A

Set a rule on the event bus, when it is met the event is passed as an input to a step function

48
Q

Can you set a rule on an event bus to send failed messaged to a dead letter queue

A

yes

49
Q

What is the difference between SQS and Event Bridge

A

Event Bridge processed 1 at a time, SQS processed in batches

Event Bridge can match multiple rules and be sent to multiple targets, SQS events not available after they have been processed

50
Q

What are event bridge rules based on?

A

Event patterns
or
Event schedules