SNS, SQS, Kinesis & ActiveMQ Flashcards

(41 cards)

1
Q

For standard queues, what is the default retention policy?

A

4 days

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

For standard queues, what is the maximum retention policy?

A

14 days

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

What is the max size limit of an SQS message?

A

256KB

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

Can we have duplicate messages in SQS?

A

Yes, it is at least once delivery

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

Will messages be in order?

A

It is best effort ordering

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

How do consumers get messages from a queue?

A

Consumers poll the queues and can receive a max of 10 messages at a a time

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

What is the main use case for SQS queues?

A

To decouple applications

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

What are 3 things to know about SQS encryption?

A
  • Use in-flight encryption using HTTPS API
  • At-rest encryption using KMS keys
  • Client side encryption if the client wants to encrypt/decrypt
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you control access to SQS?

A

Use IAM roles

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

When would I use SQS Queue Access Policies?

A

When you need cross account access

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

What is Message Visibility Timeout?

A

It is the time the consumer has to process the message before other consumers can see it again

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

What is the default Visibility Timeout?

A

30 seconds

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

How do you increase the default Visibility Timeout?

A

Use the ChangeMessageVisibility API

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

What is a Delay Queue?

A

It is a queue that prevents consumers seeing messages until a time has elapsed

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

What is the default time for Delay Queues?

A

It is 0 seconds - so they will see it straight away

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

What is the maximum time I can set in a Delay Queue?

A

15 minutes

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

How do I override the default time in a Delay Queue?

A

Use the DelaySeconds parameter

18
Q

What is long polling?

A

It is when a consumer waits for messages in the queue

19
Q

What is the advantage of long polling?

A

Reduces the amount of API calls your app makes to SQS

20
Q

What can the wait time be for long polling?

A

It can be between 1 and 20 seconds, but 20 seconds is preferred

21
Q

What are the 2 ways to enable Long Polling?

A
  • At the queue level

- Via API using WaitTimeSeconds

22
Q

What is the SQS Temporary Queue Client?

A

It allows you to leverage virtual queues instead of creating/deleting SQS queues

23
Q

What are the 6 subscriber options for SNS?

A
  • SQS
  • HTTP/HTTPS
  • Lambda
  • Emails
  • SMS Messages
  • Mobile Notifications
24
Q

What are the 3 encryption options for SNS?

A
  • In-flight encryption using HTTPS API
  • At-rest encryption using KMS keys
  • Client side encryption if client wants to handle encrypt/decrypt
25
What is the SNS + SQS fan out strategy?
Its when you push once to SNS, receive in all SQS queues that are subscribers
26
Does a subscriber receive all messages from SNS?
If there is no Message Filtering setup, they will receive all messages
27
What is Kinesis used for?
It is for collecting, processing and analyzing real-time streaming data
28
What are the 4 types of Kinesis?
- Kinesis Data Streams - Kinesis Data Firehose - Kinesis Data Analytics - Kinesis Video Streams
29
What 2 things make up a Record in Kinesis?
- Partition Key | - Data Blob
30
How big can a data blob be in a Kinesis Message?
Up to 1MB
31
How much can a shard process in Kinesis?
- 1 MB per second | - 1000 messages per second
32
Is the Kinesis Record the same when the Consumer picks it up?
It has an additional key, the Sequence Number, along with the Partition Key and the Data Blob
33
What are the 2 types of Kinesis Consumer?
- Shared | - Enhanced
34
How much can the shared consumer process?
2MB per second per shard - ALL consumers
35
How much can an enhanced consumer process?
2MB per second per shard per consumer
36
What is the default data retention in a Kinesis shard?
1 day
37
What is the max data retention in a Kinesis shard?
365 days
38
Can we delete Kinesis data after it is written?
No, its immutable
39
When Kinesis Firehouse performsBatch Writes, what are the 3 possible AWS destinations?
- AWS S3 - AWS RedShift - AWS ElasticSearch
40
What is Kinesis Data Analytics used for?
To perform real-time analytics on Kinesis Streams using SQL
41
What is Amazon MQ?
It is a managed ApacheMQ