Quiz - Chapter 6 - Elastic Compute Cloud (EC2) Flashcards
What happens when your Spot instance is chosen by AWS for termination?
- You will get a 2-minute notification posted to the metadata of your EC2 instance.
- 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.
When would you want to use a cluster placement group?
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
True or False? IAM roles can only be used to allow EC2 instances to talk to other AWS services.
FALSE
IAM roles can be used with a variety of AWS services.
When would you need to create an EC2 Dedicated Instance?
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.
What is EC2 metadata commonly used for?
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
What is the EC2 metadata URL?
169.254.169.254
The 169.254.169.254 URI can be used to view instance metadata
True or False? If you restart your EC2 instance the user data will rerun automatically.
FALSE
By default, user data runs one time and one time only.