AWS Flashcards
What is Amazon EC2 Service?
Amazon Elastic Compute Cloud (Amazon EC2) is a web service that provides secure, resizable compute capacity in the cloud. It is designed to make web-scale cloud computing easier for developers.
Amazon EC2’s simple web service interface allows you to obtain and configure capacity with minimal friction. It provides you with complete control of your computing resources and lets you run on Amazon’s proven computing environment. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. Amazon EC2 changes the economics of computing by allowing you to pay only for capacity that you actually use. Amazon EC2 provides developers the tools to build failure resilient applications and isolate them from common failure scenarios.
“EC2 uses Xen virtualization. Each virtual machine, called an “instance”. You can use Amazon EC2 to launch as many or as couple of virtual servers as you need, design security and networking, and manage storage. Amazon EC2 empowers you to scale up or down to handle changes in requirements.
“
What is the relation between EC2 Instance and AMI?
“We can launch different types of instances from a single AMI. An instance type essentially determines the hardware of the host computer used for your instance. Each instance type offers different compute and memory capabilities.
After we launch an instance, it looks like a traditional host, and we can interact with it as we would any computer. We have complete control of our instances; we can use sudo to run commands that require root privileges.
“
What is Amazon Machine Image (AMI)?
An Amazon Machine Image (AMI) is a template that contains a software configuration (for example, an operating system, an application server, and applications). From an AMI, you launch an instance, which is a copy of the AMI running as a virtual server in the cloud. You can launch multiple instances of an AMI
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instances-and-amis.html
Explain storage for Amazon EC2 instance.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html
“Amazon EC2 provides many data storage options for your instances. Each option has a unique combination of performance and durability. These storage can be used independently or in combination to suit your requirements. There are mainly four types of storage provided by AWS:
Amazon EBS
Amazon EC2 Instance Store
Amazon S3
Adding Storage”
What is EBS?
https://aws.amazon.com/ebs/
EBS is durable, block-level storage volumes that you can attach to a running Amazon EC2 instance. The Amazon EBS volume persists independently from the running life of an Amazon EC2 instance. After an EBS volume is attached to an instance, you can use it like any other physical hard drive. Amazon EBS encryption feature supports encryption feature.
What is Amazon EC2 Instance Store?
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/InstanceStorage.html
Storage disk that is attached to the host computer is referred to as instance store. Instance storage provides temporary block-level storage for Amazon EC2 instances. The data on an instance store volume persists only during the life of the associated Amazon EC2 instance; if you stop or terminate an instance, any data on instance store volumes is lost.
What is Amazon S3 storage?
https://aws.amazon.com/s3/
Amazon S3 provides access to reliable and inexpensive data storage infrastructure. It is designed to make web-scale computing easier by enabling you to store and retrieve any amount of data, at any time, from within Amazon EC2 or anywhere on the web.
What is Route 53?
https://aws.amazon.com/route53/
Amazon Route 53 is a highly available and scalable cloud Domain Name System (DNS) web service. It is designed to give developers and businesses an extremely reliable and cost effective way to route end users to Internet applications by translating names like www.example.com into the numeric IP addresses like 192.0.2.1 that computers use to connect to each other.
What is Amazon Elastic Load Balancing?
https://aws.amazon.com/elasticloadbalancing/
Elastic Load Balancing automatically distributes incoming application traffic across multiple Amazon EC2 instances in the cloud. It enables you to achieve greater levels of fault tolerance in your applications, seamlessly providing the required amount of load balancing capacity needed to distribute application traffic.
What are regions and availability zones?
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html
The AWS Cloud infrastructure is built around Regions and Availability Zones (“AZs”). A Region is a physical location in the world where we have multiple Availability Zones. Availability Zones consist of one or more discrete data centers, each with redundant power, networking and connectivity, housed in separate facilities. These Availability Zones offer you the ability to operate production applications and databases which are more highly available, fault tolerant and scalable than would be possible from a single data center. The AWS Cloud operates 32 Availability Zones within 12 geographic Regions around the world.
What is a Key Pair? Explain how to create a key pair.
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html
“Amazon EC2 uses public–key cryptography to encrypt and decrypt login information. Public–key cryptography uses a public key to encrypt a piece of data, such as a password, then the recipient uses the private key to decrypt the data. The public and private keys are known as a key pair.
To log in to your instance, you must create a key pair, specify the name of the key pair when you launch the instance, and provide the private key when you connect to the instance. Linux instances have no password, and you use a key pair to log in using SSH. With Windows instances, you use a key pair to obtain the administrator password and then log in using RDP.
You can create a key pair using the Amazon EC2 console or the command line. After you create a key pair, you can specify it when you launch your instance.”
What is a security group in Amazon EC2? What are the features of Security Group in Amazon EC2?
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-network-security.html
A security group acts as a virtual firewall that controls the traffic for one or more instances. When you launch an instance, you associate one or more security groups with the instance. You add rules to each security group that allow traffic to or from its associated instances. You can modify the rules for a security group at any time; the new rules are automatically applied to all instances that are associated with the security group. When we decide whether to allow traffic to reach an instance, we evaluate all the rules from all the security groups that are associated with the instance.
How to connect to your Amazon EC2 instance?
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/EC2_GetStarted.html
You can connect to a Linux EC2 instance using SSH or Putty. You must specify a key pair and ensure SSH traffic is enabled on the instance. You can connect to a Windows instance using Microsoft Remote Desktop app. Be sure to enable inbound RDP traffic from your IP address to your instance.
How are you charged in Amazon EC2?
https://aws.amazon.com/ec2/pricing/
The AWS cloud computing model allows you to pay for services on-demand and to use as much or as little at any given time as you need. While resources are active under your account, you pay for the cost of allocating those resources and for any incidental usage associated with those resources, such as data transfer or allocated storage. To keep your costs as low as possible, you should release or terminate unused resources as soon as you are done with them.
Can I vertically scale an Amazon EC2 instance? How?
https://aws.amazon.com/blogs/database/scaling-your-amazon-rds-instance-vertically-and-horizontally/
Yes. This is an incredible feature of AWS and cloud virtualization. Spinup a new larger instance than the one you are currently running. Pause that instance and detach the root EBS volume from this server and discard. Then stop your live instance, detach its root volume. Note the unique device ID and attach that root volume to your new server. And the start it again.