AWS Integration and Messaging Flashcards

(30 cards)

1
Q

SQS Standard queue

A
  • Used to decouple applications
  • unlimited throughput and number of messages in queue
  • can have duplicate and out of order messages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

SQS Message retention

A

default 4 days up to 14 days

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

What does DeleteMessageAPI do?

A

Deletes messages from queue once they have been consumed

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

SQS Access Policies

A

Allow for cross-account access to SQS queues, allow for other services to write to SQS queue

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

Cross account access with SQS queues

A

Use queue access policy to allow a resource in one account to receive messages from SQS queue in another account (use sqs:ReceiveMessage action)

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

Publish event notifications to SQS queue

A

Use queue access policy to let S3 bucket send message to SQS queue (use sqs:SendMessage action)

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

Message Visibility Timeout

A

After a message is polled by a consumer, it is invisible to other consumers (timeout default is 30 seconds)

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

ChangeMessageVisibility API

A

Consumer can use this to get more time to process a message if it will take longer than the message visibility timeout window

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

MaximumReceives threshold

A

Threshold of how many times a message can go back into the queue (if consumer fails to process the message within Visibility Timeout)

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

Dead Letter Queue

A

Message goes to DLQ after MaximumRecives threshold is exceeded

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

DQL of a queue must be …

A

The same type eg. DLQ of FIFO queue must also be FIFO queue

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

What is redrive to source?

A

Can redrive messages from DLQ to source queue after code has been fixed

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

Delay queue

A

Delay a message so consumers don’t see it immediately (up to 15 minutes), default is 0 seconds

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

Long polling

A

When consumer requests messages from queue, can optionally wait for messages to arrive if non are in the queue (decreases number of API calls and latency)

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

SQS Extended Client

A

Used to send messages over 256kb by sending large message to s3 bucket (eg. for large media files)

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

SQS Queue message size limit

17
Q

SQS Queue API calls for long polling

A

ReceiveMessageWaitTimeSeconds

18
Q

SQS FIFO Queue

A

-First In First Out ordering of messages in the queue
- messages processed in order by consumer
- has exactly-once send capability (remove duplicates)

19
Q

Two deduplication methods for FIFO queues

A

Content based deduplication (SHA-256 hash of message body) and Message Deduplication ID

20
Q

Message grouping

A

Specify different values for MessageGroupID to get ordering at the level of a subset of messages

21
Q

Amazon SNS

A

Event producer only sends message to one SNS topic, many event receivers listen to the SNS topic notifications

22
Q

SNS + SQS Fan Out

A

Push once in SNS, receive in all SQS queues that are subscribers (allows for cross region delivery)

23
Q

fan out pattern with s3 bucket

A

send s3 event to SNS topic, which sends to many SQS queues that are subscribed

24
Q

Can you do SNS FIFO queue?

25
Message filtering in SNS
Filter messages sent to SNS topic's subscriptions to get a specific type of message (eg. just cancelled orders from all orders)
26
Amazon Kinesis Data Streams
Collect and store streaming data in real time, retention up to 365 days, data cant be deleted until it expires
27
Kinesis Provisioned mode
Choose number of shards, scale manually, pay per shard provisioned per hour
28
Kinesis On-demand mode
No need to provision or manage capacity, scaled automatically based on observed throughput, pay per stream per hour
29
Amazon data firehose
Near real-time streaming
30
Can Apache Flink read from Amazon Data Firehose?
no