EC2 - IAM roles lab Flashcards

1
Q

Role Types

A

AWS Service Roles, Role for Cross-Account Access, Role for Identity Provider Access

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

When provisioning EC2 instance with IAM role, where do you select the role?

A

Configure Instance Details (IAM role)

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

When you first use CLI…

A

You need to configure AWS credentials using access key ID and secret access key, Region

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

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

A

Not using console, but can using CLI. You can also modify a role

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

The only way to modify a role attached to an EC2 instance is…

A

attach a policy

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

If you delete a role attached to the EC2 instance

A

The role is gone. You cannot add a new role; you must terminate and launch a new instance with desired role

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

Which is more secure, using roles or storing your access key and secret access key on EC2 instances?

A

Roles; they are also easier to manage

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

T/F: Roles are universal, you can use them in any region.

A

True

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