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?

A

No

23
Q

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

A

Yes

24
Q

What is the user data of an EC2 instance?

A

The launch script of the EC2 instance

25
Q

What to use if you want to perform actions on AWS directly from your applications?

A

Use the AWS SDK

26
Q

What do SDK stand for?

A

Software Development Kit

27
Q

What languages have an official AWS SDK?

A
Java
.NET
Node.JS
PHP
Python
Go
Ruby
C++
28
Q

What are the two other names of the AWS python SDK

A

boto3

botocore

29
Q

What does the AWS CLI uses under the hood?

A

The Python SDK (boto3)

30
Q

What region will be used when using the SDK without specifying a region?

A

us-east-1

31
Q

What is the default credential provider chain?

A

A way for the SDK to get the credentials to perform the actions it need to do.

32
Q

What does the default credential provider chain look for?

A

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
Q

Where should your credentials NEVER be?

A

In your code

In your commits

34
Q

What is exponentials backoff?

A

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.