EC2 Flashcards

Learn EC2

1
Q

(Info)

What does EC2 stand for

A

Elastic compute cloud

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

How will I be charged and billed for use of Amazon EC2
Choose all that apply.

hours
minutes
seconds
days

A

Hours or seconds, depends on the instance types.

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

If an ec2 instance is stopped for which of the the following do you get charged.

None
Data transfer
Compute
Storage.

A

Storage

Hourly usage is not charged, Data transfer fees are not charged but storage is charged.

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

(Info)
What is the difference between using the local instance store and Amazon Elastic Block Store (Amazon EBS) for the root device?

A

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.

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

(Info)

What are the different EC2 options

A

On Demand, Reserved, Spot, Dedicated hosts

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

(Info)

What are different reserved instance types

A

1) Standard RI (up-to 75% off demand)
2) Convertible RI (up-to 54% off demand)
3) Scheduled RI

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

What ec2 option would you choose if you have flexibility and price is a major factor

Spot
Reserved
On Demand
Dedicated hosts

A

Spot

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

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.

A

regulatory, licensing

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

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

A

Yes

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

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

A

No

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

When do you set your root volume.

During ami creation.
During ec2 creation.

A

During ami creation

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

What instance type would you choose for memory intensive tasks. Choose all that apply

m5
t2
r4
x1

A

r4, x1

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

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)
A

General Purpose SSD (GP2)
Provisioned IOPS SSD (IO1)
Mangnetic Standard

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

Can you purchase dedicated hosts as on-Demand (hourly) instances

True
False

A

True

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

Can you purchase dedicated hosts as Reserved instances

True
False

A

True

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

Can you purchase dedicated hosts as Spot Instances.

True
False

A

False

17
Q

For Reserved instances what is the maximum percentage price you get off the on Demand instances.

90%
75%
54%
23%

A

75%

18
Q

For Spot instances what is the maximum percentage price you get off the on Demand instances.

90%
75%
54%
23%

A

90%

19
Q

What is the minimum time required for you to purchase a reserved instance.

1 month
6 months
1 year
3 year

A

1 year

Customers that can commit to using EC2 over a 1 or 3 year term to reduce their total computing costs

20
Q

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

A

On-Demand, Reserved and Spot forms
All regions and Availability Zones
Amazon Linux and Ubuntu

21
Q

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

A

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

22
Q

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

A

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

23
Q

(Info)

What is the difference between Block Storage, Object storage, File Storage(EFS - Elastic File System)

A

TBD

24
Q

What class of instance types use GPU’s

G3
P2
X1
I2

A

P2, G3

Inaddition P3, F1 also support GPU’s

25
Q

EBS volume is replicated automatically within its AZ.

True
False

A

True

26
Q

EBS volume is replicated automatically across AZ.

True
False

A

False

27
Q

You get charged for the hour if you terminate your spot instance

True
False

A

True

28
Q

You get charged for the hour if AWS terminates your spot instance

True
False

A

False

29
Q

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)

A

SSD Provisioned IOPS

30
Q

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)

A

Throughput optimized HDD(ST1) (Also Magnetic)

31
Q

You cannot mount 1 EBS volume to multiple EC2 instances.

True
False

A

True

32
Q

(Info)

What is the difference between PV (Xen Paravirtualization) and HVM (Xen Full Virtualization)

A

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.