Summary and Quiz
Get a refresher of what you’ve learned in the Elastic Compute Cloud (EC2) chapter and take a short quiz to validate your knowledge.
We'll cover the following
In this lesson, we’ll summarize what we’ve learned in this chapter and test our knowledge of the Amazon Elastic Compute Cloud service with a short quiz.
Summary
In this chapter, we learned about the Amazon Elastic Compute Cloud, better known as EC2. Here’s a summary of the key takeaways from this chapter:
EC2 core concepts
EC2 provides resizable computing capacity in the cloud. It allows users to run virtual servers, known as instances, for various computing tasks.
An Elastic Network Interface (ENI), also known as a Network Interface, is a virtual network card that can be attached to the EC2 instances.
EC2 allows running virtual servers, known as instances, of different types based on the requirements.
Each instance can be pre-configured using an AMI template of software configurations.
Security group rules control inbound and outbound traffic to the resource. These rules allow traffic filtering based on protocols, port numbers, and IP addresses.
Inbound rules are used to define incoming traffic to the associated resources.
Outbound rules define the outgoing traffic from the associated resource to the internet.
User data is crucial for EC2 instances to enable automated, customized, and consistent configuration. It facilitates infrastructure as code practices, supports dynamic configuration, optimizes costs, and integrates with other AWS services. These capabilities are essential for managing and scaling infrastructure effectively in cloud environments.
Placement groups
EC2 offers different placement groups to cater to various application needs related to performance, availability, and fault tolerance.
The cluster placement group is a logical grouping of interrelated instances to achieve the best throughput and low latency rate possible within an Availability Zone.
The partition placement group helps us further logically divide the placement group into partitions, each with its own rack.
Spread placement group is the placement of instances such that each instance has its rack.
Purchase options
EC2 offers different purchase options, such as On-Demand, Reserved, Savings, and many more.
On-Demand purchase option works on the pay-per-second model. An instance is launched as per the requirements with no future commitments.
Capacity Reservation reserves EC2 instances in a specific availability zone. It allows to reserve instances without any commitment; thus, it does not offer any discounts on the cost.
Reserved instance reduces the cost of EC2 by committing to consistent usage of a specified instance, including instance type and region.
Spot instances are unused EC2 compute capacity that can significantly reduce the cost. Amazon provides spot instances for users to bid on the unused compute capacity available for less than the On-Demand price.
Saving plans provide low prices for EC2 instances in exchange for a long-term commitment of one or three years. It can offer up to 72 percent off On-Demand in exchange for a commitment to a specific instance family in a chosen AWS region.
A Dedicated Host is a physical server that is dedicated to the user with a commitment of one or three years. It allows the user to control the server extensively, including sockets, VM software licenses, Windows Server, and SQL Server.
Storage options
AWS offers flexible and easy-to-use data storage options for EC2 instances to meet all the requirements.
Elastic Block Store (EBS) is a highly reliable, durable block-level storage volume that can be attached to the EC2 instances.
An instance store is a temporary block storage for an instance physically attached to the host. Instance storage is also known as ephemeral storage. It is the fastest storage block available for EC2 since it is physically attached to the host.
An AWS S3 bucket is a scalable and durable object storage service that allows users to store and retrieve data from the internet.
The Amazon Elastic File System (EFS) is a user-friendly and scalable file storage solution that dynamically adapts storage limits without impacting applications.
Now, let’s take a quiz to test our knowledge of Elastic Compute Cloud.
Test your knowledge
Let’s take a quiz to make sure we’ve not missed out on anything:
Get hands-on with 1400+ tech skills courses.