EC2, Instance Purchasing Options and EC2 Storage Flashcards

1
Q

Is EC2 IaaS, PaaS and SaaS?

A

Infrastructure as a service

It mainly consists in the capability of :
* Renting virtual machines (EC2)
* Storing data on virtual drives (EBS)
* Distributing load across machines (ELB)
* Scaling the services using an auto-scaling group (ASG)

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

What is EC2 User Data

A

EC2 user data is a script that runs once at instance first start, it is used to automate boot tasks such as:
* installing updates
* installing softwares and dependencies
* downloading files from the internet

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

What are Security groups and what role do they play in EC2 instances ?

A

Security groups is like a virtual bouncer at the door of your EC2 instance with specific rules
* They control who gets in and out of your EC2 instance!
* One security group can guard several EC2 instances, meaning multiple instances can share the same rules.
* Security groups live outside the EC2 instance. If the bouncer blocks someone, the instance inside doesn’t even know they tried to visit.
* It’s locked to a specific region and VPC, so the bouncer only works in its assigned neighborhood.
* The bouncer stops all inbound traffic by default but lets everything outbound through.

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

What type of EC2 instance is best for short workloads with predictable pricing and charges by the second?

A

On-Demand Instances – Best for short workloads, predictable pricing, and pay by the second.

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

What type of EC2 instance is ideal for long workloads and steady-state applications, offering discounts of up to 72%?

A

Reserved Instances – For long workloads, steady-state applications with up to 72% discount.

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

Which purchasing option allows long workloads with flexible instance types?

A

Convertible Reserved Instances – Long workloads with flexible instance choices.

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

Which EC2 option offers discounts based on commitment to a certain amount of usage for 1 or 3 years?

A

Savings Plans – Long workloads with commitment to usage, offering discounts for 1 or 3 years.

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

What instance type offers discounts of up to 90% but can be terminated when the current spot price exceeds your max price?

A

Spot Instances – Short workloads with up to 90% discount, less reliable since instances can be lost.

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

Which EC2 option allows you to book an entire physical server for your use, offering control over instance placement? - also most expensive

A

Dedicated Hosts – The most expensive option but allows control over instance placement.

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

What purchasing option ensures no other customers will share your hardware?

A

Dedicated Instances – Instances that run on hardware dedicated to you, with no other customers sharing the hardware.

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

Which instance type is most cost-efficient in AWS?

A

Spot Instances – The most cost-efficient instance type with up to 90% discount compared to on-demand.

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

Which instance option allows you to address compliance requirements and use existing software licenses?

A

Dedicated Hosts – Allows compliance requirements and use of server-bound software licenses.

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

What happens if you stop a Capacity Reservation

A

You can reserve capacity and create or cancel at any time.

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

What happens if you don’t use the reserved capacity in Dedicated Hosts or Instances?

A

Dedicated Hosts & Instances – You are charged on-demand rate whether you run instances or not.

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

Can Reserved Instances be sold or bought in the marketplace?

A

Yes – Reserved Instances can be sold or bought in the Reserved Instance Marketplace.

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

What is Elastic Block Store (EBS) in AWS?

A

EBS is a network drive that can be attached to EC2 instances, offering persistent block storage. It allows data to persist even after the instance is stopped or terminated.

17
Q

How does EBS Snapshots help with backups?

A

EBS Snapshots allow you to make a backup of your EBS volume at a point in time. Snapshots can be copied across Availability Zones (AZs) or Regions.

18
Q

What is an EC2 Instance Store, and what makes it unique?

A

EC2 Instance Store provides ephemeral block-level storage that is physically attached to the host computer. It offers high performance but data is lost if the instance is stopped or terminated.

19
Q

What is Elastic File System (EFS) used for?

A

EFS is a scalable, fully-managed file storage that can be mounted on hundreds of EC2 instances and works with Linux in multi-AZ environments.

20
Q

What is a key difference between EBS and EC2 Instance Store?

A

EBS persists data even after termination, while EC2 Instance Store loses data if the instance is stopped, making it suitable for temporary high-performance storage.

21
Q

What are the advantages of using EBS Snapshots?

A

They provide a point-in-time backup, allow for easy restoration, and can be archived to a lower-cost tier with the EBS Snapshot Archive.

22
Q

What does EFS-IA (Infrequent Access)

A

EFS-IA is a storage class optimized for files that are not accessed daily, providing cost savings for less frequently accessed data.

23
Q

How does EC2 Instance Store differ from EBS in terms of performance and data persistence?

A

EC2 Instance Store offers higher IO performance but is ephemeral, meaning data is lost when the instance is stopped. EBS provides persistent storage but may experience latency as it is network-attached.

24
Q

What type of storage is recommended for temporary high-performance disk operations?

A

EC2 Instance Store – It offers faster read/write operations compared to EBS, but data is lost if the instance is stopped.

25
Q

What is EBS Snapshot Archive, and why is it useful?

A

EBS Snapshot Archive allows you to move snapshots to a cheaper archive tier, reducing costs by up to 75%, though it takes 24-72 hours for restoration.

26
Q

What is a unique feature of EFS compared to EBS?

A

EFS can be mounted on multiple EC2 instances simultaneously, making it ideal for shared file storage.

27
Q

When is Elastic File System (EFS) most useful?

A

EFS is ideal for shared storage across multiple EC2 instances and scales automatically, making it highly available and suitable for multi-AZ workloads.

28
Q

What’s a pro and a con of EFS?

A

Pro: EFS is highly scalable and available across multiple AZs.
Con: It is expensive and can have latency issues due to network communication.