1
Q

What can you use to develop and perform AWS tasks from your local computer?

A

The CLI

The SDK

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

What can you use to develop and perform AWS tasks from an EC2 instance?

A

The CLI
The SDK
The Instance Metadata Service for EC2

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

How to configure the AWS CLI (default profile) on your local computer?

A

aws configure

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

How to configure the AWS CLI (a specific profile) on your local computer?

A

aws configure โ€“profile profileName

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

What info do you have to provide when configuring the AWS CLI on your computer?

A

Access Key ID
Secret Access Key
Default Region Name
Default output format (leave to none by default)

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

Where are the config/credentials files stored on Windows?

A

In the User/.aws folder

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

How to configure the AWS CLI on an EC2 instance?

A

By assigning an AWS IAM role to the machine (or the ASG which will assign the role to the machine it creates)

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

Can you do โ€œaws configureโ€ on an EC2 machine?

A

YOU SHOULD NEVER DO THAT! Your PERSONAL credentials should belongs on your PERSONAL compter

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

How to define what actions an IAM Role can perform?

A

By assigning policies to the IAM Role

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

How many roles can an EC2 instance have?

A

Only one

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

What are inline policies?

A

Policies that are creatable โ€œinlineโ€ inside a role. Those inline policies wonโ€™t be findable in the policies tab and wonโ€™t be attachable to other roles

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

Should you use inline policies?

A

Itโ€™s better to avoid using inline policies, just to facilitate their management

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

What visual tools can you use to generate policies? (2)

A

The visual editor integrated in โ€œcreate policyโ€ page

The AWS Policy Generator

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

Is it possible to see what roles use a policy from the console, if so, how?

A

Yes, by looking at the โ€œPolicy usageโ€ tab

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

Can custom IAM policies have versions?

A

Yes, you can view them in the โ€œPolicy versionโ€ tab of a policy

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

What does AWS STS stand for?

A

AWS Security Token Service

17
Q

How to test if an IAM role can perform a certain action?

A

Some CLI cmds can be tested using the โ€“dry-run flag

You can use the AWS IAM Policy Simulator

18
Q

How to decode an encoded authorization message?

A

By running the following cmd:

aws sts decode-authorization-message โ€“encoded-message XXXXXXXXXXXXXXXX

19
Q

How to run an AWS CLI command using a specific profile

A

By adding the following at the end of the command:

โ€“profile profileName

20
Q

Can you attach IAM roles to on-premise servers?

A

No, you can only attach roles to AWS resources

21
Q

What is AWS EC2 Instance Metadata, and how to get it?

A

Info about the EC2 instance

By running
curl http://169.254.169.254/latest/meta-data
From the EC2 instance

22
Q

Can you retrieve IAM policies from the meta-data of an EC2 instance?

23
Q

Can you retrieve the IAM Role name from the meta data of an instance?

24
Q

What is the user data of an EC2 instance?

A

The launch script of the EC2 instance

25
What to use if you want to perform actions on AWS directly from your applications?
Use the AWS SDK
26
What do SDK stand for?
Software Development Kit
27
What languages have an official AWS SDK?
``` Java .NET Node.JS PHP Python Go Ruby C++ ```
28
What are the two other names of the AWS python SDK
boto3 | botocore
29
What does the AWS CLI uses under the hood?
The Python SDK (boto3)
30
What region will be used when using the SDK without specifying a region?
us-east-1
31
What is the default credential provider chain?
A way for the SDK to get the credentials to perform the actions it need to do.
32
What does the default credential provider chain look for?
On your local PC: It looks for your credentials in ~/.aws/credentails On an EC2 instance: It looks for Instance Profile Credentials using IAM Roles It looks for environment variables (AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)
33
Where should your credentials NEVER be?
In your code | In your commits
34
What is exponentials backoff?
A mechanism which most SDKs implement so that if an API request fails, it is going to double the time it waits before retrying the same request.