EC2 Flashcards
Learn EC2
(Info)
What does EC2 stand for
Elastic compute cloud
How will I be charged and billed for use of Amazon EC2
Choose all that apply.
hours
minutes
seconds
days
Hours or seconds, depends on the instance types.
If an ec2 instance is stopped for which of the the following do you get charged.
None
Data transfer
Compute
Storage.
Storage
Hourly usage is not charged, Data transfer fees are not charged but storage is charged.
(Info)
What is the difference between using the local instance store and Amazon Elastic Block Store (Amazon EBS) for the root device?
When you launch your Amazon EC2 instances you have the ability to store your root device data on Amazon EBS or the local instance store. By using Amazon EBS, data on the root device will persist independently from the lifetime of the instance. This enables you to stop and restart the instance at a subsequent time, which is similar to shutting down your laptop and restarting it when you need it again.
Alternatively, the local instance store only persists during the life of the instance. This is an inexpensive way to launch instances where data is not stored to the root device. For example, some customers use this option to run large web sites where each instance is a clone to handle web traffic.
(Info)
What are the different EC2 options
On Demand, Reserved, Spot, Dedicated hosts
(Info)
What are different reserved instance types
1) Standard RI (up-to 75% off demand)
2) Convertible RI (up-to 54% off demand)
3) Scheduled RI
What ec2 option would you choose if you have flexibility and price is a major factor
Spot
Reserved
On Demand
Dedicated hosts
Spot
What are some use cases where you must use dedicated hosts. Choose all that apply.
Long running jobs.
Regulatory needs.
Licensing needs.
Short running jobs.
regulatory, licensing
Do you loose data stored in local instance store(if you choose local instance store as your root device) if you stop your ec2 instance
Yes
No
Yes
Do you loose data stored in local instance store(if you choose EBS as your root device) if you reboot your ec2 instance
Yes
No
No
When do you set your root volume.
During ami creation.
During ec2 creation.
During ami creation
What instance type would you choose for memory intensive tasks. Choose all that apply
m5
t2
r4
x1
r4, x1
Choose valid options for Root/boot volume type in a ec2 instance. Choose all that apply.
General Purpose SSD (GP2) Provisioned IOPS SSD (IO1) Mangnetic Standard Cold HDD(SC1) (Also Magnetic) Throughput optimized HDD(ST1) (Also Magnetic)
General Purpose SSD (GP2)
Provisioned IOPS SSD (IO1)
Mangnetic Standard
Can you purchase dedicated hosts as on-Demand (hourly) instances
True
False
True
Can you purchase dedicated hosts as Reserved instances
True
False
True
Can you purchase dedicated hosts as Spot Instances.
True
False
False
For Reserved instances what is the maximum percentage price you get off the on Demand instances.
90%
75%
54%
23%
75%
For Spot instances what is the maximum percentage price you get off the on Demand instances.
90%
75%
54%
23%
90%
What is the minimum time required for you to purchase a reserved instance.
1 month
6 months
1 year
3 year
1 year
Customers that can commit to using EC2 over a 1 or 3 year term to reduce their total computing costs
Per-second billing is available for instances launched in:
(Choose all that apply)
On-Demand, Reserved and Spot forms
All regions and Availability Zones
Amazon Linux and Ubuntu
Windows
On-Demand, Reserved and Spot forms
All regions and Availability Zones
Amazon Linux and Ubuntu
Spot instances are recommended for:
Choose all that apply
Applications that have flexible start and end times
Applications that are only feasible at very low compute prices
Applications with short-term, spiky, or unpredictable workloads that cannot be interrupted
Users with urgent computing needs for large amounts of additional capacity
Applications that have flexible start and end times
Applications that are only feasible at very low compute prices
Users with urgent computing needs for large amounts of additional capacity
On-Demand instances are recommended for:
Choose all that apply
Applications that are only feasible at very low compute prices
Users that prefer the low cost and flexibility of Amazon EC2 without any up-front payment or long-term commitment
Applications with short-term, spiky, or unpredictable workloads that cannot be interrupted
Applications being developed or tested on Amazon EC2 for the first time
Users that prefer the low cost and flexibility of Amazon EC2 without any up-front payment or long-term commitment
Applications with short-term, spiky, or unpredictable workloads that cannot be interrupted
Applications being developed or tested on Amazon EC2 for the first time
(Info)
What is the difference between Block Storage, Object storage, File Storage(EFS - Elastic File System)
TBD
What class of instance types use GPU’s
G3
P2
X1
I2
P2, G3
Inaddition P3, F1 also support GPU’s
EBS volume is replicated automatically within its AZ.
True
False
True
EBS volume is replicated automatically across AZ.
True
False
False
You get charged for the hour if you terminate your spot instance
True
False
True
You get charged for the hour if AWS terminates your spot instance
True
False
False
What volume type would you choose if you are going to have a lot of IOPS (Say if you were going to install a NoSQL database)
SSD General Purpose (upto 10,000 IOPS)
SSD Provisioned IOPS (upto 32,000 IOPS)
Throughput optimized HDD(ST1) (Also Magnetic)
SSD Provisioned IOPS
What volume type would you choose if you are going to have a lot of sequential data(logs)
SSD General Purpose (upto 10,000 IOPS)
SSD Provisioned IOPS (upto 20,000 IOPS)
Throughput optimized HDD(ST1) (Also Magnetic)
Throughput optimized HDD(ST1) (Also Magnetic)
You cannot mount 1 EBS volume to multiple EC2 instances.
True
False
True
(Info)
What is the difference between PV (Xen Paravirtualization) and HVM (Xen Full Virtualization)
Xen is an hypervisor that runs on metal (the pc / server) and then hosts virtual machines called domains.
A Xen PV domain is a paravirtualized domain, that means the operating system (usually we’re talking linux here) has been modified to run under Xen, and there’s no need to actually emulate hardware. This should be the most efficient way to go, performance wise.
A Xen HVM domain is hardware emulated domain, that means the operating system (could be Linux, Windows, whatever) has not been modified in any way and hardware gets emulated. This is rather slow, so usually you install PV drivers in the guest os for critical hardware (usually disk and network), so the guest as a whole will run fully virtualized but the most performance-critical pieces of hardware will run paravirtualized. Recent linux systems have pv drivers for both disk and network in the kernel, and there exist various PV drivers for Windows too. With all the development on HVM in recent years there usually is little difference in performance between HVM and PV for standard workloads.