EC2 – Associate Flashcards
Three things that make a public network what it is:
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
Five things that make a public network what it is
- 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
What is Elastic IP?
How many instances can it be attached to?
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 many Elastic IPs come with my account by default?
What can i do if i will need more?
You can only have 5 Elastic IP in your account
You can ask AWS to increase that.
Try to avoid using Elastic IP - Why??
What can replace Elastic IP?
- 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
Private and public network:
What EC2 comes with by default?
By default, your EC2 machine comes with:
- A private IP for the internal AWS Network
- A public IP, for the WWW.
What are the placement group strategist?
(CSP)
- 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)
What is a Placement group?
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.
When to use Placement Groups Cluster?
Cluster as a great network so:
- Big Data job that needs to complete fast
- Application that needs extremely low latency and high network throughput
When to use Placement Groups Spread?
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
When to use Placements Groups Partition?
- HDFS
- HBase
- Cassandra
- Kafka
ENI
Elastic Network Interfaces
What is ENI?
Elastic Network Interfaces
logical component in a VPC that represents a virtual network card
Which attributes can the ENI have?
- 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
One con and one floes of ENI?
- 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)