Advanced EC2 Flashcards
Networking has two sorts of IPs
IPv4 and IPv6
IP that allows the machine to be identified on the internet
Public IP
IP that allows the machine to be identified on a private network only
Private IP
Do public IPs need to be unique across the whole web?
Yes
Can two private networks have the same IPs?
Yes
Can there be two of the same IPs in a private network?
No
Private IPs connect to the WWW using a
NAT + internet gateway
When you stop and then start an EC2 instance, it can change its public
IP
True
Static IPv4 address designed for dynamic cloud computing used to mask the failure of an instance or software by rapidly remapping the address to another instance in your account
Elastic IP
Instead of using Elastic IPs, it is advisable to
Use a random public IP and register a DNS name to it
Control over the EC2 Instance placement strategy
Placement Groups
Placement group strategy that clusters instances into a low-latency group in a single Availability Zone
Cluster
Placement group strategy that spreads instances across underlying hardware (max 7 instances per group per AZ)
Spread
Placement group strategy that spreads instances across many different partitions within an AZ. Can scales to 100s of EC2 instances per group
Partition
Placement group with very low latency, instances are in the same rack, same AZ
Used for:
* Big Data job that needs to complete fast
* Application that needs extremely low latency and high network throughput
Cluster
Placement group with reduced risk of failure due to the instances being spread across different AZ.
Used for:
* Application that needs to maximize high availability
* Critical Applications where each instance must be isolated from failure from each other
Spread
Placement group that can have up to 100s of EC2 instances and can span across multiple AZ in the same region.
Used for:
* HDFS, HBase, Cassandra, Kafka
Partition
Logical component in a VPC that represents a virtual network card (Bound to a specific AZ)
Elastic Network Interfaces (ENI)
Can you create an ENI independently and attach them to different EC2 instances for failover?
Yes
Saves the contents from the instance memory (RAM) to your Amazon Elastic Block Store (Amazon EBS) root volume. Amazon EC2 persists the instance’s EBS root volume and any attached EBS data volumes
EC2 Hibernation
Are CloudWatch or CloudWatchLogs capable of capturing data inside an EC2 instance?
No