EC2 Flashcards
What is the relationship between security groups and EC2 instances in AWS?
In AWS, a security group can accommodate an unlimited number of EC2 instances. Conversely, each EC2 instance can be associated with multiple security groups, facilitating flexible and granular control over network access and security configurations.
What is the default configuration for inbound and outbound traffic in an AWS security group?
The default configuration for an AWS security group entails allowing all outbound traffic while blocking all inbound traffic.
What does ENI stand for in AWS networking?
ENI stands for Elastic Network Interface. For basic networking. For example, an EC2 instance can have multiple ENIs, enabling it to connect to different networks simultaneously.
What is EFA and where is it applied in AWS networking?
Elastic Fabric Adapter (EFA) is tailored for High-Performance Computing (HPC), and machine learning applications. It facilitates direct communication between instances, bypassing the OS network stack. This benefits tightly coupled tasks like simulations and machine learning training.
What is Enhanced Networking?
Enhanced Networking involves optimizing network performance by leveraging technologies like SR-IOV, enabling speeds from 10 Gbps to 100 Gbps for data transfer.
What are Placement Groups?
Placement Groups determine how EC2 instances are positioned on the underlying hardware.
- Cluster Placement Group: Instances are placed close together within a single Availability Zone, designed for low-latency applications where high network performance is crucial.
- Spread Placement Group: Instances are spread across distinct underlying hardware to mitigate risks associated with hardware failures and increase availability.
- Partition Placement Group: Instances are distributed across partitions of hardware, primarily used for large distributed and replicated workloads.
Name 5 characteristics of placement groups in AWS.
- A cluster placement group cannot span multiple AZs, whereas a spread placement group and partition placement group can.
- Only certain types of instances can be launched in a placement group(compute optimized, GPU, memory optimized, storage optimized).
- AWS recommends homogenous instances within cluster placement groups.
- You can’t merge placement groups.
- You can move an existing instance into a placement group. The instance must be in the stopped state. You can’t move or remove an instance using the console yet.
What are Dedicated Hosts?
An Amazon EC2 Dedicated Host is a physical server with EC2 instance capacity fully dedicated to your use. Dedicated Hosts allow you to use your existing per-socket, per-core, or per-VM software licenses.
What are Spot instances and where can be used?
- Spot instances save up to 90% of the cost of On-Demand Instances.
- Useful for any type of computing where you don’t need persistent storage.
- A spot fleet is a collection of spot instances and optionally on-demand instances.
How can you extend your private VMware Cloud into AWS public cloud?
By deploying vCenter on the AWS cloud using VMware.
How can you extend AWS to your data center?
With AWS Outposts rack for large deployments and AWS Outposts servers for small deployments.
What charges generate a stopped instance?
Charges for the storage of the EBS volumes attached to the instance.
Is Amazon EC2 a global, regional, or Availability Zone (AZ) service within AWS?
Amazon EC2 is an Availability Zone (AZ) service within AWS.
What is the difference between Rebooting an EC2 instance, and stopping it and starting it again?
When rebooting an EC2 instance will start again on the same physical host.
It keeps the following:
- Public DNS name (IPv4)
- Private IPv4 address
- Public IPv4 address
- IPv6 address (if applicable)
- Any data on its instance store volumes
Stopping and starting an instance may affect its public IPv4 address (unless you use an Elastic IP) and results in the loss of data on instance store volumes. However, the private IPv4 address and other associated information typically remain the same.
Can an ec2 instance have attached an EBS from a different AZ in the same region?
No, an EC2 instance cannot have attached an EBS volume from a different Availability Zone (AZ) in the same region.
EBS volumes are tied to a specific AZ and cannot be moved to another AZ. This is because EBS volumes are replicated across multiple servers in the same AZ, which ensures high availability and performance.
What is EC2 good for?
- Traditional OS+Application Compute
- Long-Running Compute
- Server style applications
- Monolithic application stack
- Disaster Recovery
What are the four most common first letters of the instance types in EC2 instance types?
C (Compute Optimized), M (General Purpose), R (Memory Optimized), and T (Burstable Performance)
If you need to accelerate machine learning or 3D rendering tasks, which EC2 instance family should you consider?
The “G” family, like “g4dn.xlarge,” includes GPU instances for GPU-accelerated workloads.
What EC2 instance family is designed for storage-intensive applications with high storage density?
The “D” family, such as “d2.xlarge,” is Density-Optimized and provides high storage density at a lower cost per gigabyte.