EC2 (Elastic Compute Cloud) Flashcards

1
Q

EC2?

A

Elastic Compute Cloud = Infrastructure as a Service (IaaS)
Renting Virtual Machines

(page 57)

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

EBS?

A

Storing Data on Virtual Drives

(Page 58)

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

ELB?

A

Distributing Loads Across Machines?

(Page 58)

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

ASG?

A

Scaling the services using an Auto-Scaling Group

(Page 58)

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

Which of these OS offer ECS?
+ Windows
+ Linux
+ MAC OS

A

Three of them
(Page 59)

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

How can you customize your EC2?

A

CPU
RAM
Storage space
Network cards and speed
Firewall Rules
Bootstrap scripting.

(Page 59)

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

ECS User Data Script?

A

Launching command when a machine starts
Runs on Root User

(Page 60)

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

Which format of key File Forma can be used on Windows 10, Mac OS, and Linux?

A

** .pem, which is used for SSH***
xxxxx .ppk is not and it is used for Putty. xxxxx

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

What is the name convention on ECS Type names?

A

[Instance Class][Generation].[Size within the class]

Sample:
t2.2xlarge

(Page 62)

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

What is the class of General Purpose EC2 Instance Type and what covers it?

A

Class ID = t (tier)
Balanced between Computer, memory, and Networking.
ideal for Webservers or Code Cepositories.

(page 63)

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

What is the class of Compute Optimized EC2 Instance Type and what covers it?

A

Class Id = C (computed)
Great for the computer-intensive task that requires High Performance

+ Batch Processing load,
+ High-performance Web Server
+ High-performance Computing
+ Scientific Modeling and machine learning
+ Dedicate server gaming.

(Page 64)

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

What is the class of Memory Optimized EC2 Instance Type and what covers it?

A

Class ID = R (Real Time)
For Fast Performance on relational/non-relational DB
Distributed scale web cache store
Databases in memory for business intelligent
High performance for real-time performance.

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

What is the class of Storage Optimized EC2 Instance Type and what covers it?

A

Class ID = I (Intens)
Intense operation of Online Transaction Processing (OLTP)
Relational/NonRelations DB
Cache in Memory database
Data Wharehouse apps
Distributed file system

(Page 66)

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

Security Group in AWS?

A

+ The Fundamental Networks Security in AWS.
+ Control how the traffic flows in EC2 instances.
+ It only ALLOW traffic.
+ Can refer to IPs or other Security Groups

(Page 68)

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

How works Security Group?

A

+ Work as a Firewall.
+ Regulate IP traffic (IPV4 and IPV6)
+ Control the Inbound traffic to the instance.
+ Control the Inbound traffic from the instance.

(Page 69)

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

Which of these characteristics are NOT true for Security Group?

  1. Can be Attached to a single Instance
  2. Lockdown to a region VCP/ combination
  3. Does Live outside the EC2 Instance.
  4. By Default All the Inbound traffic is allowed
  5. By Default All the Outbound traffic is allowed
A
  1. SG can be attached to many groups and be shared between several instances.
  2. By Default Inbound traffic is blocked

(Page 71)

17
Q

It’s a good practice to create an independent secure group for SSH?

A

YES

(Page 71)

18
Q

If you have a Time Out Error, what could be the cause?

A

The Security Group has been blocked the connection

(Page 71)

19
Q

When you have a Connection Reset, what could be the cause?

A

There is an Application error in the EC2 instance.

(Page 71)

20
Q

The port 22 is used for?

A

SSH and SFTP

(Page 73)

21
Q

The port 21 is used for?

A

FTP

(Page 73)

22
Q

What is the port for Remote Desktop Protocol (RDP), in Windows?

A

3389

(Page 73)

23
Q

Why is necessary the Key Pairs?

A

For access to EC2 Instance through SSH or Putty.

24
Q

what is the command to access an EC2 instance with SSH?

A

ssh -i [KEY-PAIR-file.pem] ec2-user@[public ip]

The ec2-user is the user who must be used to log in.

25
Q

Which permission needs to have the KeyFile in the computer to be used with SSH?

A

-r– —- –
Linux Mac: chmod 040 [KEyFIle]

Windows, The computer user must have the only one to have rights over the file.

26
Q

What is the other way to connect instead of SSH and Putty?

A

EC2 Instance Connect

27
Q

How Does EC2 On-Deman Purchasing Work?

A

Pay For what you use.
** Get and use it for whatever you like but pay full cost **

  • Short Workload
  • Predictable Pricing
  • Pay By Seconds.
  • Good for Short time
  • Un-interrupted workload
  • No Long-Term commit.

(page 81, 88)

28
Q

How Does EC2 Reserved Instance Purchasing Work?

A

You reserve with time and you will get a discount for as much time you reserve.

+ Up to 72% discount compared with On-Demand.
+ You can sell your Reservation Instance at Marketplace.
+ Its characteristics can be changed, i.e: Instance Type, OS, Scope, and Tenancy.
+ As much you pay for the total cost of the reservation as much discount you get.

(Page 82, 88)

29
Q

How Does ECS Saving Plans Purchasing Work?

A

Pay for a certain amount per hour for a certain period and stay in any type of Instance.

In Functions of a long-time period of usage, you get a discount of up to 72%
Bounding the Type of using and a budget, you get a discount.
Lock to a specific instance Family and Region, of your choice.
It’s flexible on OS, size, and tenancy.

(Page 83, 88)

30
Q

How Does ECS Spot Instance Purchasing Work?

A

You will use an Instance until a new user comes to use it, taking it off of your control and recreating it, losing all the content that your instance had. The Instance is Temporal/Volatil

+ Cheaper of all of the Pay Instances.
+ You can lose your instance if someone pays more than your current fee.
+ You would do well to consider it as a temporary environment and run a backup of your work in a constant way.

(Page 84, 88)

31
Q

How Does ECS Dedicated Host Purchasing Work?

A

You reserve a whole physical server which means you are paying the highest fee and you are responsible for all the software and licenses in the server.

You can purchase ti by On-Deman or Reserved.
Good for string regulatory policies.

(Page 85, 88)

32
Q

How Does ECS Dedicated Instance Purchasing Work?

A

You have an instance in a server that’s dedicated to you.
The instant my share the server with another instances that’s belong to you.
TEHRE IS NO control over the hardware after all the instances are stopped.

(Page 86, 88)

33
Q

How Does ECS Capacity Reservation Purchasing Work?

A

You book the instance for a period of time at the full price even if you don’t use it. ( You are reserving the capacity of computing)

Available on period time.
Don’t discount
You pay whether or not use it.
Good for a short time and for heavy workloads in a specific period of time.

(Page 87, 88)

34
Q

Responsibility on you?

A

Security Group Rules
Keeping up to date the OS
Software and utilities that are installed into the instance.
Security Roles assigned to the instance
The data type and its security in the instance.

(Page 90)

35
Q

EC2 Instance Roles?

A

Link the Instance to IAM Roles (designed for services).

(Page 91)