AWS EC2 Flashcards
What does EC2 stand for?
Elastic Computer Cloud
EC2 provides _____ and _____ compute capacity in the cloud.
- Secure
2. Resizable
True or False: EC2 is a VM hosted on premises in your own data center.
False.
EC2 is like a VM, but is hosted in AWS’s datacenters.
EC2 instances are restricted in capacity and processing power.
No, you get the capacity & compute power your want when you need it.
What level of control do you have over your own EC2 instances?
Complete control
With EC2, you pay ____________.
You pay only for what you use.
With EC2, you can _____ and _____ your EC2 instances whenever you need.
Grow and Shrink
What are the 4 pricing options for EC2?
- On-Demand
- Reserved
- Spot
- Dedicated
What is the key value of the On-Demand Pricing Option in EC2?
Pay by the hour or the second, depending on the type of instance you run.
What is the key value of the Reserved Pricing Option in EC2?
Reserve capacity for 1 or 3 years. Up to 72% discount on the hourly charge.
Spot Pricing Option in EC2 value?
Purchase unused capacity at a discount of up to 90%. Prices fluctuate with supply & demand.
Dedicated Pricing Option in EC value?
A physical EC2 server dedicated for your use. Most expensive option.
What’s the most expensive pricing option available for EC2?
Dedicated
What’s the least expensive pricing option available for EC2?
Depends on work-load. If small, intermittent loads then On-Demand. If consistent, long-term loads, then Reserved.
When you attach or detach roles to running EC2 instances, do you need to stop or terminate the instances?
No. You can attach or detach roles to running EC2 instances without having to stop or terminate those instances.
What category of services does EC2 fall under?
Compute
SSH is what port?
22 (Linux)
Port 3389 is used by what application and OS?
Windows RDP (Remote Desktop Connection)
HTTP is for what and uses what port?
Web browsing and port 80.
What port and purpose does HTTPS serve?
Encrypted Web Browsing (SSL) and Port 443.
What is are Security Groups in regards to EC2?
Security groups are virtual firewalls for your EC2 instance. By default, everything is blocked.
In order to be able to communicate to your EC2 instances via SSH/RDP/HTTP, you will need to __________?
Open up the correct ports.
In order to let anyone/anything have access to your EC2 instance, you must designate this IP address:
To let everything in, you use
0.0.0.0/0
What is a bootstrap script?
A script that runs when the instance first runs.
When you add a bootstrap script, what impact does it have on booting up the EC2 instance? What does it allow you to do?
- Adds to the amount of time it takes to boot the instance.
2. Automate the installation of application.
What does the following bootstrap script do? --------------- #!/bin/bash yum update -y yum install httpd -y service httpd start cd /var/www/html echo "<h1>Hello Cloud Gurus</h1>" > index.html
- Updates the operating system
- Installs web service httpd
- Starts the web service
- changes directory to main location for web service files.
- Creates index.html file
When creating a new instance, how can you apply a bootstrap script?
When creating a new instance, you can either:
- Paste the bootstrap.sh text into “Advanced Details” under “Configure Instance Details”
- Attach the file (in the same location
Changes to security groups take effect ___________.
Immediately.
You can have _______ EC2 instances within a security group.
Any number
You can have ________ security groups attached to EC2 instances.
Multiple
For an EC2 instance, what’s the default setting on allowing inbound traffic?
All inbound traffic is blocked by default.
For an EC2 instance, what’s the default setting on outbound traffic?
All outbound traffic is allowed.
A ________ script is a script that runs when the instance first runs.
bootstrap
What does a bootstrap script do?
Passes user data to the EC2 instance and can be used to install applications (like web servers and databases), as well as do updates and more.