SQS Flashcards

1
Q

What is Amazon SQS?

A

Amazon SQS (Simple Queue Service) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. It eliminates the complexity and overhead associated with managing and operating message-oriented middleware.

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

How does SQS support the decoupling of applications?

A

SQS allows components of a cloud application to communicate asynchronously by storing messages in a queue. Messages are stored until the receiving component can process them, enabling one component to operate independently of other components.

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

What are the types of queues offered by SQS?

A

SQS offers two types of queues: Standard queues, which offer maximum throughput, best-effort ordering, and at-least-once delivery; and FIFO queues, which are designed to guarantee that messages are processed exactly once, in the exact order that they are sent.

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

How does SQS ensure message processing?

A

SQS ensures message processing by retaining messages in queues until they are retrieved and processed by receiving components. SQS supports message visibility timeout to prevent other consumers from receiving the message while it’s being processed.

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

What is a visibility timeout in SQS?

A

The visibility timeout is the period of time during which SQS prevents other consuming components from receiving and processing a message that has already been retrieved by another component.

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

How can you secure SQS queues?

A

You can secure SQS queues using AWS IAM (Identity and Access Management) to control who can send messages to and receive messages from an SQS queue. Additionally, you can encrypt messages in transit using SSL and at rest using server-side encryption (SSE) with keys managed by AWS Key Management Service (KMS).

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

What is the maximum message size for SQS?

A

The maximum message size for SQS messages is 256 KB for both Standard and FIFO queues.

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

How is SQS priced?

A

SQS is priced based on the number of API calls made to the service. Sending, receiving, and deleting messages are billed in increments of 1 million requests, and there’s no charge for the first 1 million requests per month. FIFO queues have an additional cost for messages transferred out of an AWS region.

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

What are dead-letter queues in SQS?

A

Dead-letter queues are used to hold messages that can’t be processed successfully by your application. These queues enable you to isolate problematic messages to diagnose processing failures and mitigate issues without losing the message data.

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

How does SQS integrate with other AWS services?

A

SQS integrates with other AWS services like AWS Lambda, Amazon SNS, and Amazon EC2, enabling you to build flexible, scalable cloud applications. For example, Lambda functions can be triggered by messages in an SQS queue to process data.

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