CLI & SDK Flashcards

1
Q

Using the CLI, how can you test whether or not you have the correct permissions to complete a task.

A
  • Use the CLI –dry run command BEFORE the commands you are testing.
  • If it is successful, a message will be returned that the task was not complete because of the –dry-run flag but that you do have correct permissions.
  • Otherwise an error message is returned with an STS encrypted message.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How can you decrypt an STS (security service token) message in the CLI?

A

You run the sts decode-authorization-message command.

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

How can you use MFA with CLI?

A
  • You must create a temporary session
  • In order to create a temporary session you must run the security service token (STS ) GetSessionToken API call
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What programming language is the CLI written in?

A

Python SDK (boto3)

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

When should you use an AWS SDK?

A

*** THIS IS A PLACEHOLDER -

EXAM EXPECTS YOU TO KNOW THIS - MORE LATER ***

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

What should you do if you get a ThrottlingException intermittenly?

A
  • Use Exponential Backoff
  • It is a retry mechanism included in SDK API calls
  • This must be implemented yourself is using the API as is or in specific cases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

AWS CLI Credentials Provider Chain

In what order (first to last) does the CLI look for credentials?

A
  1. Command Line Options
  2. Environment Variables
  3. CLI credentails 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
8
Q

AWS SDK Default Credentials Provider Chain

In what order does an SDK look for credentials?

A
  1. Environment variables
  2. system properties
  3. default credential profiles file
  4. Amazon ECS container credentials
  5. Instance profile credentials
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is Signature v4 (SigV4)?

A

Means that your requests to AWS are signed using your credentials so that you are authenticated against AWS

EXAMPLES

  • Sign request usin HTTP Headers
  • Query String Option (i.e. S3 presigned URL)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

I have an on-premise personal server that I’d like to use to perform AWS API calls. How should I do this?

A

I should run aws configure and put my credentials there. Invalidate them when I’m done.

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