SQS Flashcards

1
Q

Can I delete all messages in a queue without deleting the queue itself?

A

Yes, using the PurgeQueue action.

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

Does SQS provide message ordering?

A

Yes and No.

Standard queues may not preserve ordering, but the newer FIFO queues guarantee that they will preserve ordering.

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

In general, you should use a maximum of __________ for a long-poll timeout.

A

20 seconds

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

True or False: SQS is PCI DSS Level 1 certified.

A

True.

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

An SQS message can contain up to __________ metadata attributes.

A

10

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

Does SQS guarantee delivery of messages?

A

Yes.

Standard queues provide at-least-once delivery.

FIFO queues provide exactly-once delivery. This means that each message is delivered once and remains in the queue until a consumer process deletes it.

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

How does SQS handle messages that can’t be processed?

A

Dead letter queues are available but must be configured.

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

What is the maximum number of inflight messages for a standard queue?

A

120,000

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

The default message retention period is __________.

A

4 days

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

Visibility timeout can be set between __________ and __________.

A

0 seconds, 12 hours.

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

True or False: SQS doesn’t provide the ability to encrypt messages in a queue.

A

False.

SQS provides the ability to encrypt messages using KMS keys.

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

Delivery delay can be between __________ and __________.

A

0 seconds, 15 minutes

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

The period of time during which SQS prevents other consumers from receiving and processing a particular message.

A

Visibility timeout.

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

Receive message wait time can be set between __________ and __________.

A

0 seconds, 20 seconds

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

For anonymous access, what is the value of the SenderId attribute for a message?

A

The author’s IP address.

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

How is SQS different from SNS?

A

SQS is a message queue service used by distributed apps to exchange messages through a “pull” model; polling required.

SNS allows apps to send messages to multiple subscribers through a “push” mechanism; no polling required.

17
Q

SQS messages can be between __________ and __________ in size.

A

1 B, 256 KB

18
Q

Message retention period can be set between __________ and __________.

A

1 minute, 14 days

19
Q

True or False: A message queue’s name must be unique within the AWS account.

A

True.

20
Q

True or False: SSE encrypts the body of a message and the message metadata.

A

False.

SSE only encrypts the body of the message.

21
Q

What is the Receive Message Wait Time?

A

The max amount of time a long-polling request will wait before returning an empty response.

22
Q

What is SQS long polling?

A

A way to retrieve messages that, unlike short polling, doesn’t return a response until a message arrives in the queue or times out.

23
Q

What is a visibility timeout?

A

A period of time during which SQS prevents other consumers from receiving and processing a particular message.

24
Q

Can I share messages between queues in different regions?

A

No.

Each SQS queue is independent with each region.

25
Q

True or False: SQS supports message metadata.

A

True.