EC2 – Associate Flashcards

1
Q

Three things that make a public network what it is:

A

Public IP:

  • The machine can be identified on the internet (WWW)
  • Unique IP across the whole web (not two machines can have the same public IP).
  • Can be geo-located easily
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Five things that make a public network what it is

A
  • The machine can only be identified on a private network only
  • The IP must be unique across the private network
  • Different private networks can have the same IPs.
  • Machines connect to WWW using a NAT + internet gateway (a proxy)
  • Only a specified range of IPs can be used as private IP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is Elastic IP?

How many instances can it be attached to?

A

An Elastic IP is a public IPv4 IP you own as long as you don’t delete it

You can attach it to one instance at a time

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

How many Elastic IPs come with my account by default?

What can i do if i will need more?

A

You can only have 5 Elastic IP in your account

You can ask AWS to increase that.

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

Try to avoid using Elastic IP - Why??

What can replace Elastic IP?

A
  • They often reflect poor architectural decisions
  • Instead, use a random public IP and register a DNS name to it
  • When you use a Load Balancer and don’t use a public IP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Private and public network:

What EC2 comes with by default?

A

By default, your EC2 machine comes with:

  • A private IP for the internal AWS Network
  • A public IP, for the WWW.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the placement group strategist?

(CSP)

A
  • Cluster—clusters instances into a low-latency group in a single Availability Zone
  • Spread—spreads instances across underlying hardware (max 7 instances per group per AZ)
  • Partition—spreads instances across many different partitions (which rely on different sets of racks) within an AZ. Scales to 100s of EC2 instances per group (Hadoop, Cassandra, Kafka)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is a Placement group?

A

a placement group is just a group - AWS instances that exist within a common AZ can be grouped into a placement group.

Where group members are able to communicate with one another in a way that provides low latency and high throughput.

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

When to use Placement Groups Cluster?

A

Cluster as a great network so:

  • Big Data job that needs to complete fast
  • Application that needs extremely low latency and high network throughput
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When to use Placement Groups Spread?

A

Placement Groups Spread Can spread across AZ This Reduced risk is simultaneous
failure because they are on different physical hardware

When to use:

  • Application that needs to maximize high availability
  • Critical Applications where each instance must be isolated from failure from each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

When to use Placements Groups Partition?

A
  • HDFS
  • HBase
  • Cassandra
  • Kafka
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

ENI

A

Elastic Network Interfaces

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

What is ENI?

A

Elastic Network Interfaces

logical component in a VPC that represents a virtual network card

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

Which attributes can the ENI have?

A
  • Primary private IPv4, one or more secondary IPv4
  • One Elastic IP (IPv4) per private IPv4
  • One Public IPv4
  • One or more security groups
  • A MAC address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

One con and one floes of ENI?

A
  • You can create ENI independently and attach them on the fly (move them) on EC2 instances for failover.
  • Bound to a specific availability zone (AZ)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

On EC2 instance, what does it mean “Stop” and “Terminate”?

A
  • Stop – the data on disk (EBS) is kept intact in the next start
  • Terminate – any EBS volumes (root) also set-up to be destroyed is lost
17
Q

What happen when EC2 Hibernate?

what is needed (must)?

A
  • The in-memory (RAM) state is preserved
  • The instance boot is much faster!
  • (the OS is not stopped / restarted)
  • Under the hood: the RAM state is written to a file in the root EBS volume
  • The root EBS volume must be encrypted
18
Q

When we use EC2 hibernet?

A
  • Long-running processing
  • Saving the RAM state
  • Services that take time to initialize
19
Q

What is EC2 Nitro?

A
  • Next generation of EC2 instances
  • New virtualization technology
  • Allows for better performance:
    • Better networking options (enhanced networking, HPC, IPv6)
    • Higher Speed EBS (Nitro is necessary for 64,000 EBS IOPS – max 32,000 on non-Nitro)
  • Better underlying security
20
Q

When to use EC2 Capacity Reservations?

A
  • To ensure you have EC2 Capacity when needed
  • Manual or planned end-date for the reservation
  • No need for 1 or 3-year commitment
  • Capacity access is immediate, you get billed as soon as it starts
21
Q

What is the EC2 Capacity Reservations specify?

A
  • The Availability Zone in which to reserve the capacity (only one)
  • The number of instances for which to reserve capacity
  • The instance attributes, including the instance type, tenancy, and platform/OS