SNS, SQS, Kinesis & ActiveMQ Flashcards
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