Elastic Cloud Compute – EC2
- Elastic Compute Cloud – EC2 provides scalable computing capacity in AWS
- Elastic Compute Cloud – EC2
- eliminates the need to invest in hardware upfront, so applications can be developed and deployed faster.
- can be used to launch as many or as few virtual servers as you need, configure security and networking, and manage storage.
- enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing the need to forecast traffic.
EC2 features
- EC2 instances – Virtual computing environments
- Amazon Machine Images (AMIs) – Preconfigured templates for the instances that package the bits needed for a server (including the operating system and additional software)
- Instance types – Various configurations of CPU, memory, storage, and networking capacity for the instances
- Key Pairs – Secure login information for the instances (AWS stores the public key, and you store the private key in a secure place)
- Instance Store Volumes – Storage volumes for temporary data that are deleted when you stop or terminate your instance, known as
- EBS Volumes – Persistent storage volumes for the data using Elastic Block Store (EBS)
- Regions and Availability Zones – Multiple physical locations for the resources, such as instances and EBS volumes
- Security Groups – A firewall that enables you to specify the protocols, ports, and source IP ranges that can reach the instances
- Elastic IP addresses – Static IP addresses for dynamic cloud computing
- Tags – Metadata can be created and assigned to EC2 resources
Accessing EC2
- Amazon EC2 console
- Amazon EC2 console is the web-based user interface that can be accessed from the AWS management console
- AWS Command line Interface (CLI)
- Provides commands for a broad set of AWS products, and is supported on Windows, Mac, and Linux.
- Amazon EC2 Command Line Interface (CLI) tools
- Provides commands for Amazon EC2, Amazon EBS, and Amazon VPC, and is supported on Windows, Mac, and Linux
- AWS Tools for Windows Powershell
- Provides commands for a broad set of AWS products for those who script in the PowerShell environment
- AWS Query API
- Query API allows for requests are HTTP or HTTPS requests that use the HTTP verbs GET or POST and a Query parameter named Action
- AWS SDK libraries
- AWS provides libraries in various languages which provide basic functions that automate tasks such as cryptographically signing your requests, retrying requests, and handling error responses
Additional Reading
- AWS EC2 Amazon Machine Image
- AWS EC2 Instance Types
- AWS EC2 Instance Purchase Options
- AWS EC2 Instance Lifecycle
- AWS EC2 Storage
- AWS EC2 VM Import/Export
- AWS EC2 Network
- AWS EC2 Security
- AWS EC2 Best Practices
- AWS EC2 Monitoring
- AWS EC2 Troubleshooting
AWS Certification Exam Practice Questions
- Questions are collected from Internet and the answers are marked as per my knowledge and understanding (which might differ with yours).
- AWS services are updated everyday and both the answers and questions might be outdated soon, so research accordingly.
- AWS exam questions are not updated to keep up the pace with AWS updates, so even if the underlying feature has changed the question might not be updated
- Open to further feedback, discussion and correction.
- What are the Amazon EC2 API tools?
- They don’t exist. The Amazon EC2 AMI tools, instead, are used to manage permissions.
- Command-line tools to the Amazon EC2 web service
- They are a set of graphical tools to manage EC2 instances.
- They don’t exist. The Amazon API tools are a client interface to Amazon Web Services.
- When a user is launching an instance with EC2, which of the below mentioned options is not available during the instance launch console for a key pair?
- Proceed without the key pair
- Upload a new key pair
- Select an existing key pair
- Create a new key pair
Hi Jayendra, Could you help me out with this question please?
You have a distributed application that periodically processes large volumes of data across multiple Amazon EC2 instances. The application is designed to recover gracefully from AMazon EC2 instance failures. You are required to accomplish the task in the most cost-effective way. Which of the following will meet your requirements?
A. spot Instances
B.Reserved Instances
C.Dedicated instances
D.On-demand instances
I think the Answer is A. Could you please help me out? Thanks!
Most cost effective way should be spot instances, also the question mentions that the application is designed to recover gracefully, so even if the spot instance is terminate the application can handle it, without being charged.
Hey Jayendra,
The cost effectiveness is fine but how is it recovering gracefully from Amazon EC2 instance failures in case there are no spot instances available within the bid that we created?
Agreed, there is always handling with Spot instances, but they are the most cost-effective solution.
Thanks Jayendra 🙂
Appreciate your efforts in maintaining the blog 🙂
Are all these sections required for Associate level SA exam?
Hi,
I have my current application running on VMware ( on premises) with a CPU clock speed of 3.2Ghz on the physical machine. When I migrate this application to AWS as EC@, how do I ensure that I get the same clock speed as I get on premises.
You need to check and select the correct instance type, which have the clock speed mentioned. For e.g. refer to https://aws.amazon.com/ec2/instance-types/ where the instance have mentioned the clock speed.
nice blog.it has such a nice information.