Quiz - Chapter 6 - Elastic Compute Cloud (EC2) Flashcards

1
Q

What happens when your Spot instance is chosen by AWS for termination?

A
  1. You will get a 2-minute notification posted to the metadata of your EC2 instance.
  2. If your Spot Instance has been marked for termination, a notification will be posted to the metadata of your EC2 instance 2 minutes before it is stopped or terminated.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

When would you want to use a cluster placement group?

A

When you want to reduce network latency in your application

Reducing network latency in an application is the exact use case for a cluster placement group

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

True or False? IAM roles can only be used to allow EC2 instances to talk to other AWS services.

A

FALSE

IAM roles can be used with a variety of AWS services.

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

When would you need to create an EC2 Dedicated Instance?

A

When you have an auditing requirement to run your hosts on single-tenant hardware

A Dedicated Instance is designed to be used when you can’t have other users on the hardware that you’re using.

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

What is EC2 metadata commonly used for?

A

When your code needs to learn something about the EC2 instances that it’s running on

EC2 instance metadata can be used to configure or manage a running instance, and can also be used to access user data that was specified when the instance was launched

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

What is the EC2 metadata URL?

A

169.254.169.254

The 169.254.169.254 URI can be used to view instance metadata

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

True or False? If you restart your EC2 instance the user data will rerun automatically.

A

FALSE

By default, user data runs one time and one time only.

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