05 Compute Scalability Flashcards
Describe the On-demand purchase option for EC2.
On-demand is the default purchase option that allows immediate access to EC2 instances without any long-term commitment.
How does the Spot purchase option work in EC2?
Spot offers surplus capacity at a discount, where users bid a maximum price, but are charged the actual spot price. Instances run until the spot price exceeds the maximum bid.
What are Spot interruption notices in EC2?
Spot interruption notices provide a two-minute advance warning of interruptions, accessible via IMDS on the instance or EventBridge.
Define Reserved instances in EC2.
Reserved instances provide discounts for long-term, consistent usage commitments, which can be tied to specific instance types and availability zones.
How can smaller Reserved instances affect larger instances in EC2?
Smaller Reserved instances can partially cover the costs of larger instances, such as a reservation for an m5.xlarge partially offsetting the cost of an m5.2xlarge.
What are Scheduled reservations in EC2?
Scheduled reservations are long-term commitments for usage during specific time windows, such as daily or weekly.
Describe Dedicated hosts in EC2.
Dedicated hosts provide access to single-tenant hardware, with pricing based on the host, allowing instances to be launched on top of it, useful for licensing that depends on physical machines.
What is the purpose of Dedicated instances in EC2?
Dedicated instances automatically assign instances to hosts, ensuring that hosts are not shared with other customers, primarily for compliance reasons.
How do On-demand capacity reservations work in EC2?
On-demand capacity reservations reserve capacity for EC2 instances, but the on-demand rate is billed even if the reserved capacity is not used.
Define Savings plans in the context of EC2.
Savings plans are 1 or 3 year commitments for hourly spend that offer more flexibility and can be applied to EC2, Fargate, and Lambda.
What are ENIs in EC2?
ENIs, or Elastic Network Interfaces, are virtual interfaces used for networking in EC2 instances.
How is the primary ENI related to an EC2 instance?
The primary ENI is tied to the lifecycle of the EC2 instance, meaning it is created and deleted with the instance.
Describe the characteristics of Secondary ENIs in AWS.
Secondary ENIs can be added at any time, must be in the same Availability Zone (AZ), and can link to other subnets. Security groups are attached to ENIs, not instances.
How does the private IP address of an ENI behave during instance restarts?
The private IP address of an ENI is static and does not change when the instance restarts.
Define the SRC/DST check in relation to ENIs.
The SRC/DST check drops packets if the source or destination address isn’t on the ENI. It should be disabled for self-hosted NAT and similar configurations.
What are the two methods to customize EC2 instances with software?
The two methods are Bootstrapping using custom user data and AMI baking, which uses a custom AMI created from an instance with the software installed.
How does AMI baking benefit instance readiness?
AMI baking allows instances to be ready faster, making it ideal for scenarios like autoscaling.
Describe the purpose of placement groups in AWS.
Placement groups influence where instances are physically placed to optimize performance, such as minimizing network latency or ensuring instances run on different hardware.
What is the function of a Cluster placement group?
A Cluster placement group packs instances close together to minimize inter-instance network latency, ideally with the same instance type and started at the same time.
Explain the goal of a Spread placement group.
A Spread placement group aims to ensure that every instance runs on different hardware, and it can span multiple Availability Zones (AZs) with a limit of 7 instances per AZ.
Define Partition placement groups and their characteristics.
Partition placement groups launch instances into isolated partitions, with a maximum of 7 partitions per AZ, allowing unlimited instances to be launched per partition.
How does the DNS name of an ALB function in AWS?
The DNS name of an Application Load Balancer (ALB) resolves to the nodes located in the ALB’s subnets, which have public and private IPs unless the ALB is set to internal.