EC2 Fundamentals Flashcards

1
Q

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

What operating systems can you choose for EC2 instances?

A
  • Linux (most popular)
  • Windows
  • Mac OS
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does bootstrapping mean?

A

Launching commands when the machines starts

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

What is EC2 user data’s main purpose?

A

To automate boot task

  • installing software/updates
  • downloading files from internet.. etc
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Used for a diversity of workloads such as web servers or code repositories

What is this EC2 instance type?

A

General Purpose

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

What is a repository?

A

A central location where data is stored and managed

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

Great for task that require HIGH PERFORMANCE processors

What EC2 instance type?

A

Compute Optimized

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

FAST PERFORMANCE for workloads that process large data sets in memory

What EC2 instance type is this used for?

A

Memory Optimized

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

Great for task that require high sequential read and write access to large data sets on local storage

What EC2 instance type is this used for?

A

Storage Optimized

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

What instance type has these use cases?

  • Batch processing workloads
  • Media transcoding
  • High performance web servers
  • High performance computing (HPC)
  • Scientific modeling & machine learning
  • Dedicated gaming servers
A

Compute Optimized

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

What instance type has these use cases?

  • High performance, relational/non-relational databases
  • Distributed web scale cache stores
  • In-memory databases optimized for BI (Business Intelligence)
  • Applications performing real time processing of big unstructured data
A

Memory Optimized

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

What instance type has these use cases?

  • High frequency online transaction processing (OLTP) systems
  • Relational & NoSQL databases
  • Cache for in-memory database
  • Data warehousing applications
  • Distributed file systems
A

Storage Optimized

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

What do Security Groups do?

A

Control how traffic is allowed in or out of EC2 Instances

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

Security groups only contain what type of rules?

A

Allow

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

Security Groups act as a _________ on EC2 instances

A

“Firewall”

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

Are Security Groups locked down to a region/VPC combination?

A

Yes.

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

Can Security Groups be attached to multiple instances?

A

Yes

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

If your application is not accessible (time out), then it’s a what?

A

Security Group issue

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

If your application gives a “connection refused” error, then it’s a what?

A

Application error or it’s not launched.

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

Enables you to launch AWS resources into a virtual network that you’ve defined

A

Virtual Private Cloud

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

What is EC2’s purpose?

A

To provide scalable computing capacity in the AWS Cloud.

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

For Security Groups, all inbound traffic is _______.

All outbound traffic is __________.

A

Blocked

Authorized

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q
Port 22 (2)
It’s purpose?
A

•SSH (Secure Shell)
Log into a Linux instance

•SFTP (Secure File Transfer Protocol)
Upload files using SSH

24
Q

Port 21

It’s purpose?

A

FTP (File Transfer Protocol)

Upload files into a file share

25
Q

Port 80

It’s purpose?

A

HTTP (HyperText Transfer Protocol)

Access unsecured websites

26
Q

Port 443

It’s purpose?

A

HTTPS

Access secured websites

27
Q

Port 3389

It’s purpose?

A

RDP (Remote Desktop Protocol)

Log into a Windows instance

28
Q

Security groups rules can reference by (blank) or by (blank)

A

IP;Security group

29
Q

What do security groups regulate?

A
  • Access to Ports
  • Authorized IP ranges
  • Control of inbound/outbound network
30
Q

SSH is one of the most important functions in the Amazon Cloud. It allows you to what?

A

Control a remote machine by using the command line.

31
Q

When you first download a file the permission is something called 0644, meaning the files are too open. This will not allow you to SSH into that machine. How would you fix this?

UNPROTECTED PRIVATE KEY FILE

A

chmod 0400 then reference the key name.

32
Q

What are the four types of EC2 purchasing options?

A
  • On-Demand Instances
  • Reserved
  • Spot Instances
  • Dedicated Host
33
Q
  • Pay for what you use
  • Has the highest cost but no upfront payment
  • No long term commitment
  • Recommended for short term and uninterrupted workloads, where you can’t predict how the application will behave.

What EC2 instance purchasing option is this?

A

On-Demand

34
Q
  • Up to 75% discount compared to On-Demand
  • Either 1 or 3 years
  • No upfront, partial upfront or all upfront payments
  • Recommended for steady-state usage applications (think data base)

What EC2 instance purchasing option is this?

A

Reserved Instances

35
Q
  • Can change the EC2 instance type (i.e t2.large, c5.large, r5 or 4x.large etc)
  • Up to 54% discount

What EC2 instance purchasing option is this?

A

Convertible Reserved Instance

36
Q
  • Launch within time window you reserve
  • When you require it just for a day/week/month
  • Still commitment over 1-3 years
  • This service is deprecated
A

Scheduled Reserved Instances

37
Q
  • Provides up to 90% discount compared to On-Demand
  • You can lose at any time if your max price is less than the current ____ price
  • The MOST cost efficient instance in AWS

What EC2 instance purchasing option is this?

A

Spot Instances

38
Q

What is spot instances terrible to use for?

A

Critical jobs or databases

39
Q

What is EC2 Spot Instances useful for?

A
  • Batch jobs
  • Image processing
  • Data analysis
  • Workloads that are resilient to failures
  • Workloads with a flexible start and end time
40
Q
  • A physical server with EC2 instance capacity fully dedicated to your use
  • Can help you address compliance requirements and reduce cost by allowing you to use your existing server-bound software licenses
  • Allocated for your account for a 3 year period reservation
  • More expensive
  • Useful for software that have complicated licensing model
  • Also, companies that have strong regulatory or compliance needs

What EC2 instance purchasing option is this?

A

EC2 Dedicated Hosts

41
Q
  • Instances running on hardware that’s dedicated to you
  • May share hardware w other instances in same account
  • No control over instance placement (can move hardware after Stop/Start)

What EC2 instance purchasing option is this?

A

EC2 Dedicated Instances

42
Q

They provide a balance between cost and reliability for users who have the need to keep the cluster running for a definite period of time while keeping the costs at the minimum.

A

Spot Block

43
Q

You can only cancel a Spot Instance request in what 3 states?

A

Open, active or disabled

44
Q

Does cancelling a Spot Request terminate instances?

A

No.

45
Q

How do you terminate Spot Instances for good?

A

First, cancel the Spot Request then terminate the associated Spot Instances

46
Q

Spot fleet is the ultimate way to do what?

A

Save money

47
Q

What are Spot Fleets?

A

Set of Spot Instances + On-Demand Instances (optional)

48
Q

When does a Spot Fleet stop launching?

A

When reaching capacity or max cost

49
Q

What are some strategies to allocate Spot Instances?

A
  • lowest price
  • diversified (great for availability, long workloads)
  • capacityOptimized: Pool with the optimal capacity for the # of instances
50
Q

Using the Spot Fleet you’re able to define what?

A

Multiple launch pools and instance types

51
Q

Spot Fleets allow us to automatically do what?

A

Request Spot Instances with the lowest price

52
Q

This EC2 Purchasing Option is good for short workloads and is the cheapest option but it is less reliable because you can lose your EC2 instance.

Which Purchasing Option is it?

A

Spot Instance

53
Q

What should you use to control traffic in and out of EC2 instances?

A

Security Groups

54
Q

How long can you reserve an EC2 Reserved Instance?

A

1 or 3 years only

55
Q

EC2 User Data is used to (blank) your EC2 instance using a what?

A

Bootstrap; bash script

56
Q

A simple text file that contains commands which are used in the command line

A

Bash Script

57
Q

Security Groups can be attached to only one EC2 instance. T or F

A

False.