EC2 Misc. Flashcards

1
Q

What do you need to do in order to be able to access the AWS CLI?

A

Set up access in IAM

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

Does the CLI allow you to access AWS from anywhere in the world?

A

Yes

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

Why is using Roles better than storing your access key and secret access key on individual EC2 instances?

A
  • ​Security: if any instance gets hacked, then the hacker gets your access key ID and secret access key
  • Easier to Manage: If you lose or have to change your access key ID and secret access key and have them stored across many instances, you have to change them in all of your instances.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Are Roles universal? That is, can you use them in any namespace?

A

Yes

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

Can you assign a role to an EC2 instance after it is created?

A

Yes, and you can use either the console or the command line to do so.

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

What is a boot strap script?

A

Boot Strap scripts run when an EC2 instance first boots

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

What is instance metadata?

A

Information about an instance (like public IP)

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

What is the command you run on an instance to get the latest metadata?

A

curl http://169.254.169.254/latest/meta-data

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

How can I view, in the AWS command line, the boot strap script that I ran?

A

curl http://169.254.169.254/latest/user-data

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

Why are boot strap scripts useful?

A

They Can be a powerful way of automating software installs and updates

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

At what time can you attach an IAM role to an EC2 instance?

A

You can do it at any time (no restrictions)

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