STS, SNS, SQS Flashcards

1
Q

STS vs SNS vs SQS

A
"STS - security Token Service
SNS - simple notification service
    pub/sub one pub and multi subs
SQS - simple Queue service
    persistant until polled"
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

short polling vs long polling

A

“Short polling - RecieveMessage request queries only a subset of the servers to find messages
Long polling - RecieveMessage request queries all servers for messages”

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

What are the SQS batch actions?

A

“SendMessageBatch
DeleteMessageBatch
ChangeMessageVisibilityBatch”

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

SQS encryption by default

A

Not encrypted

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

What is the STS GetFederationToken?

A

“An API action for STS

Grants IAM role based on federation or company requesting it”

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

When would you use STS?

A

When you want to dynamically assign temporary IAM roles to users or services without having to embed the credentials

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

What is SAML

A

“Security Assertion Markup Language
Internet SSO
an XML based protocol for exchanging authentications and authorization data between parties typically pub/sub”

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

What are the different payload formats for receiving notifications?

A

“HTTP/HTTPS (delivered via POST)
Email/Email-JSON
SQS
SMS”

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

How do you opt to receive only a portion of the messages from a publisher?

A

Create and assign an SNS message filer policy to the user

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

What are the message Attribute Items and Validation?

A

“Each message attribute consists of the following items. All parts must not be empty or null.
Name - Assign a name to the attribute
Type - supported data type for the message
Value - user-specified attribute value”

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

MessageId vs ReceiptHandle

A

“MessageId - Auto assigned by AWS and returned to you via SendMessage. For identification only. max length 100 char
ReceiptHandle - identification of a message instance in a queue. Needed to delete or change visibility”

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

What is an SNS message attribute?

A

“A structured metadata item (such as timestamp, geospacial data, signatures and identifiers) about the message
up to 10 attributes per message”

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

What is the max size of a message?

A

“256 KB

payload and attributes combined”

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

What are the API actions to obtain STS?

A

“AssumeRole - anytime the IAM role gives you an STS
AssumeRoleWithWebIdentity - authenticate to Facebook/Google/etc…
AssumeRoleWithSAML - for Enterprise identity federation”

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

What is the AssumeRoleWithWebIdentity process?

A

“Send OAuth request to web identity (facebook, google, etc.)
They respond with a JWT (Javascript web token)
We use the CLI/SDK ot call AssumeRoleWithWebIdentity, passing along the JWT
The STS service determines if a token is granted to the user”

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

STS AssumeRole basic process

A

“Create a user without access to a resource
Create a Role that can access a resource, and allow user to assume the role
““Statement””: { ““Effect”” : ““Allow””, ““Principal””: { ““AWS””: ““arn:of:user”” }, ““Action””: ““sts:AssumeRole”” }
Call the UseSTSRole function and pass in the user ARN (and maybe session name)
Pass these credentials in instead of the users credentials when accessing the resource”

17
Q

what is the visibility timeout period?

A

it doesn’t need a time that a message will be hidden from other consumers. default visibility timeout is 30 seconds.