SNS, SQS, Kinesis & ActiveMQ Flashcards
(41 cards)
For standard queues, what is the default retention policy?
4 days
For standard queues, what is the maximum retention policy?
14 days
What is the max size limit of an SQS message?
256KB
Can we have duplicate messages in SQS?
Yes, it is at least once delivery
Will messages be in order?
It is best effort ordering
How do consumers get messages from a queue?
Consumers poll the queues and can receive a max of 10 messages at a a time
What is the main use case for SQS queues?
To decouple applications
What are 3 things to know about SQS encryption?
- Use in-flight encryption using HTTPS API
- At-rest encryption using KMS keys
- Client side encryption if the client wants to encrypt/decrypt
How do you control access to SQS?
Use IAM roles
When would I use SQS Queue Access Policies?
When you need cross account access
What is Message Visibility Timeout?
It is the time the consumer has to process the message before other consumers can see it again
What is the default Visibility Timeout?
30 seconds
How do you increase the default Visibility Timeout?
Use the ChangeMessageVisibility API
What is a Delay Queue?
It is a queue that prevents consumers seeing messages until a time has elapsed
What is the default time for Delay Queues?
It is 0 seconds - so they will see it straight away
What is the maximum time I can set in a Delay Queue?
15 minutes
How do I override the default time in a Delay Queue?
Use the DelaySeconds parameter
What is long polling?
It is when a consumer waits for messages in the queue
What is the advantage of long polling?
Reduces the amount of API calls your app makes to SQS
What can the wait time be for long polling?
It can be between 1 and 20 seconds, but 20 seconds is preferred
What are the 2 ways to enable Long Polling?
- At the queue level
- Via API using WaitTimeSeconds
What is the SQS Temporary Queue Client?
It allows you to leverage virtual queues instead of creating/deleting SQS queues
What are the 6 subscriber options for SNS?
- SQS
- HTTP/HTTPS
- Lambda
- Emails
- SMS Messages
- Mobile Notifications
What are the 3 encryption options for SNS?
- In-flight encryption using HTTPS API
- At-rest encryption using KMS keys
- Client side encryption if client wants to handle encrypt/decrypt