CLI, SDK, IAM roles & Policies Flashcards
What does IMDS stand for and what functionality does it provide EC2 instances?
It stands for EC2 Instance Metadata and it allows EC2 instances to learn about themselves without using an IAM role
What is the difference between IMDSv1 and IMDSv2?
IMDSv1 directly accesses http://[ip.address]/latest/meta-data directly whereas IMDSv2 is more secure and uses a session token for related calls
How can you use MFA with the AWS CLI?
You must create a temporary session using the STS GetSessionToken API call
What is a possible solution when encountering intermittent errors due to API rate limits?
Implement exponential backoff
What is a possible solution when encountering consistent errors due to API rate limits?
Request an API throttling limit increase
What is the process to increase service quotas?
Open a ticket with AWS
On what errors should you implement exponential backoff?
Only 5xx server errors not 4xx client errors
List, in order, the locations the CLI will look for credentials
- Command line
- Environment variables
- CLI credentials file
- CLI configuration file
- Container credentials
- Instance profile credentials
What are the two options for SigV4 request signing?
- HTTP Authorization header
- X-Amz-Signature query string
What runtime does the AWS CLI use?
Python