19. SQS + SNS + Kinesis Flashcards

1
Q

What is the max SQS message size?

A

256 KB

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

What is Kinesis Data Firehose used for?

A

To load streaming data into data stores (Amazon S3, Redshift, ElasticSearch, Splunk, etc)

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

What is Kinesis Data Analytics used for?

A

Real-time analytics on Kinesis Data Streams and Firehose using SQL

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

What SQS API should you call to get more time to process a message?

A

ChangeMessageVisibility

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

After the ____ is exceeded, the message goes into a dead letter queue (DLQ)

A

MaximumReceives threshold

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

What is the SQS API call to configure long polling?

A

ReceiveMessageWaitTimeSeconds

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

What SQS ID can you set to order FIFO messages?

A

MessageGroupId

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

You have an SQS Queue where each consumer polls 10 messages at a time and finishes processing them in 1 minute. After a while, you noticed that the same SQS messages are received by different consumers resulting in your messages being processed more than once. What should you do to resolve this issue?

A

Increase the Visibility Timeout

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

Which SQS Queue type allows your messages to be processed exactly once and in order?

A

SQS FIFO Queue

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

You have an SNS topic with 1000s of subscribers and you want to send some messages to certain subscribers and not others. What SNS feature allows you to do so?

A

SNS Message Filtering

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

Your SQS costs are extremely high. Upon closer look, you notice that your consumers are polling your SQS queues too often and getting empty data as a result. What should you do?

A

Enable long polling

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

How do you send messages greater than 256 KB in SQS?

A

Use the SQS Extended Client Library

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

What is the maximum number of days an SQS queue can keep messages for?

A

14 days

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

Which SQS FIFO message attribute prevents messages with the same deduplication ID to be delivered during a 5-minutes period?

A

MessageDeduplicationId

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

What is the maximum number of days a Kinesis Data Stream can keep records for?

A

365

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

What operation allows you to increase the number of Kinesis Data Stream shards?

A

Shard splitting

17
Q

If you receive a ProvisionedThroughputExceeded exception in Kinesis, what solutions can you try?

A
  1. Retries with exponential backoff
  2. Increase shards (scaling)
  3. Ensure your partition key is a good one (no hot shards)