CLI, SDK, IAM roles & Policies Flashcards

1
Q

What does IMDS stand for and what functionality does it provide EC2 instances?

A

It stands for EC2 Instance Metadata and it allows EC2 instances to learn about themselves without using an IAM role

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

What is the difference between IMDSv1 and IMDSv2?

A

IMDSv1 directly accesses http://[ip.address]/latest/meta-data directly whereas IMDSv2 is more secure and uses a session token for related calls

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

How can you use MFA with the AWS CLI?

A

You must create a temporary session using the STS GetSessionToken API call

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

What is a possible solution when encountering intermittent errors due to API rate limits?

A

Implement exponential backoff

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

What is a possible solution when encountering consistent errors due to API rate limits?

A

Request an API throttling limit increase

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

What is the process to increase service quotas?

A

Open a ticket with AWS

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

On what errors should you implement exponential backoff?

A

Only 5xx server errors not 4xx client errors

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

List, in order, the locations the CLI will look for credentials

A
  1. Command line
  2. Environment variables
  3. CLI credentials file
  4. CLI configuration file
  5. Container credentials
  6. Instance profile credentials
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are the two options for SigV4 request signing?

A
  1. HTTP Authorization header
  2. X-Amz-Signature query string
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What runtime does the AWS CLI use?

A

Python

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