What is user data?
User data is the data that is supplied by the user at time of instance launch in the form of a script
When is the user data executed?
By default, the user data scripts are run one time when you launch (creating an instance) the instance. To run the user data scripts every time you reboot or start the instance, add persist tag with the true value.
Scripts entered as user data are executed as the root user.
You can’t change the user data if the instance is running (even by using root user credentials), but you can view it.
Can user data be modified?
Yes, Open the Amazon EC2 console > Stop your instance > Choose Actions, choose Instance Settings, and then choose Edit User Data.
is there a limit for user data
16KB
Which user account is required for running the EC2 Instances?
Root User
What is the Security Groups?
Security Groups are fundamental to AWS Network Security. They control how the traffic is allowed in or out of the EC2 instances.
Security Groups only contain ALLOW rules.
What are EC2 Purchasing options?
What are the features of EC2 on demand?
What are the features of EC2 reserved instances?
what are EC2 saving plans?
get a discount based on long-term usage. Commit to a certain type of usage - $10/hr for 1-3 years). Usage beyond EC2 saving plans is billed at the on-demand price.
You are logged to a specific instance family and AWS region (e.g., M5 in US-East-1). but you get the flexibility to increase instant size, OS, tenancy (host, dedicated, and default)
What is a convertible reserved instance?
Enables you to exchange one or more Convertible Reserved Instances for another Convertible Reserved Instance with a different configuration, including instance family, operating system, and tenancy.
There are no limits to how many times you perform an exchange, as long as the target Convertible Reserved Instance is of an equal or higher value than the Convertible Reserved Instances that you are exchanging. For more information, see Exchanging Convertible Reserved Instances.
What are EC2 spot instances?
How to request an EC2 spot instance?
When to use spot instances?
Not suitable for critical jobs and databases.
Spot instances are not interrupted because of higher competing bids
How to terminate spot instances?
You must cancel a spot request and then terminate the associated Spot instances. Canceling a spot request does not terminate instances. You only cancel spot instant requests that are open, active, or disabled.
What is EC2 dedicated host?
What are EC2 dedicated instances?
Dedicated Instances are Amazon EC2 instances that run in a VPC on hardware dedicated to a single customer. Your Dedicated instances are physically isolated at the host hardware level from instances that belong to other AWS accounts. Dedicated instances may share hardware with other instances from the same AWS account that is not Dedicated instances. Pay for Dedicated Instances On-Demand, save up to 70% by purchasing Reserved Instances, or save up to 90% by purchasing Spot Instances.
It does not provide the additional visibility and controls of a dedicated host. Virtualize instances and hardware just for you.
Pay only for what you use with no long-term commitments. Dedicated Instance pricing has two components: (1) an hourly per instance usage fee and (2) a dedicated per region fee (note that you pay this once per hour regardless of how many Dedicated Instances you’re running).
Comparing Dedicated Hosts to Dedicated Instances?
An important difference between a Dedicated Host and a Dedicated instance is that a Dedicated Host gives you additional visibility and control over how instances are placed on a physical server, and you can consistently deploy your instances to the same physical server over time. As a result, Dedicated Hosts enable you to use your existing server-bound software licenses and address corporate compliance and regulatory requirements.
Which instance is right in which situation?
What are the spot fleets?
A Spot Fleet is a collection, or fleet, of Spot Instances and optionally On-Demand Instances.
The Spot Fleet attempts to launch the number of Spot Instances and On-Demand Instances to meet the target capacity that you specified in the Spot Fleet request. The request for Spot Instances is fulfilled if there is available capacity and the maximum price you specified in the request exceeds the current Spot price. The Spot Fleet also attempts to maintain its target capacity fleet if your Spot Instances are interrupted.
What is Amazon machine image in (AMI)?
An Amazon Machine Image (AMI) is a supported and maintained image provided by AWS that provides the information required to launch an instance. You must specify an AMI when you launch an instance. You can launch multiple instances from a single AMI when you require multiple instances with the same configuration. You can use different AMIs to launch instances when you require instances with different configurations.
You can launch an instance from an existing AMI, customize the instance (for example, install software on the instance), and then save this updated configuration as a custom AMI. Instances launched from this new custom AMI include the customizations that you made when you created the AMI.
What is elastic network adapter (ENA)?
It provides higher packet-per-second performance and consistently lower inter-instance latencies. AWS currently supports enhanced networking capabilities using SR-IOV. SR-IOV provides direct access to network adapters and provides high performance and low latency. It’s only available for certain instance types.
What is Elastic Fabric Adapter (EFA)?
Elastic Fabric Adapter (EFA) is a network interface for Amazon EC2 instances that enables customers to run applications requiring high levels of inter-node communications at scale on AWS. Its custom-built operating system (OS) bypass hardware interface enhances the performance of inter-instance communications, which is critical to scaling these applications.
How many elastic IP’s you can have in your account?
you can only have 5 elastic IP’s in your account. You can ask AWS to increase that.