Section 3: EC2 Flashcards

1
Q

What does EC2 stand for

A

EC2 = Amazon Elastic Compute Cloud

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

What port number do you use to SSH into instance

A

Port 22 is used to SSH into EC2 instance

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

What is EC2 User Data

A

EC2 User Data is code that runs when your instance first runs, e.g. installing software (16kb max)

e.g.
yum install -y httpd
systemctl start httpd

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

What is EC2 Meta Data

A

EC2 Meta Data is information about your instance, e.g instance ID, hostname, events, AMI ID, instance type etc.

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

What are EC2 Placement Groups

A

EC2 Placement Groups are placement groups to influence the placement of a group of interdependent instances to meet the needs of your workload

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

What Placement Group Types are there?

A

Placement Group types:
* Cluster – packs instances close together inside an Availability Zone
* Partition – spreads your instances across logical partitions such that groups of instances in one partition do not share the underlying hardware with groups of instances in different partitions
* Spread – strictly places a small group of instances across distinct underlying hardware to reduce correlated failures.

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

Public, Private and Elastic IP adresses

A

Public IP address - lost when instance stopped, used in public subnets, can not move between instances.

Private IP addresss - retained when instance stops, used in public and private subnets

Elastic IP - static public IP, can be noved between instacnes and Elastic Network Adapters

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

What is an Amazon Machine Image (AMI)?

A

Amazon Machine Image defines the configuration of your EC2 instance (operating system). Machine images options include:
* Linux
* Windows
* macOS
* Ubuntu
* Red Hat
etc.

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

Virtual Server

A

Virtual Server is known as an Instance

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

EC2 instance type

A

EC2 instance type is for example
* t2.micro
* cr5n.large
* r5ad.large

Where CPU and Memory of the instance is defined

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

What does a Domain Names Server (DNS) do?

A

A DNS translates domain names into IP addresses.

E.g. mycompany.com –> 192.0.2.44

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

When to use a Network interface

A

Network interfaces are attached to an instance for the purpose of:
* Create a management network.
* Use network and security appliances in your Virtual Private Cloud (VPC).
* Create dual-homed instances with workloads/roles on distinct subnets.
* Create a low-budget, high-availability solution.

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

Elastic IP

A

Elastic IP is a public static IP address

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

NAT Gateway

A

A NAT gateway is a Network Address Translation (NAT) service. You can use a NAT gateway so that instances in a private subnet can connect to services outside your VPC but external services cannot initiate a connection with those instances.

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

Internet Gateway vs NAT Gateway

A

Internet Gateway (IGW) allows instances with public IPs to access the internet.

NAT Gateway (NGW) allows instances with no public IPs to access the internet.

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

What is a Bastion Host?

A

A Bastion Host is when you can access your Private Subnet from the Internet by going via a Public Subnet.

More details - https://digitalcloud.training/ssh-into-ec2-in-private-subnet/

17
Q

*

Do you deploy NAT Gateway & NAT Instances in public or private subnet

A

You always deploy NAT Gateway & NAT Instances in a public subnet

NAT Gateways are a lot more commonly use than a NAT Instance

18
Q

NAT Instance settings

A

If using a NAT Instance, ensure to disable source/destination checks

19
Q

NAT Gateway vs NAT Instance

A

NAT Gateway is AWS managed, elastic scability, high availability, does not support port forwarding

NAT Instance is an EC2 instance managed by you, no high availability, does support port forwarding

20
Q

What is AWS Nitro

A

AWS Nitro - next generation of underlying hardware platform for EC2

More info - https://aws.amazon.com/ec2/nitro/

21
Q

EC2 instance pricing types

A

EC2 pricing models:

  • On-demand
  • Reserved
  • Spot instances
  • Dedicated instanced
  • Dedicated hosts
  • Savings plans
22
Q

AMI and regions

A

Amazon Machine Images (AMI) are regional, you can only launch from the region they are stored. You can copy AMI’s to other regions.

23
Q

EC2 & VPC cheatsheet

A

EC2 - https://digitalcloud.training/amazon-ec2/

VPC - https://digitalcloud.training/amazon-vpc/