Pages

AWS

These questions are found in www.wisdomjobs.com . I will use for personal study only, not for commercial use.


Question 1 What Is Amazon Ec2 Service ?

Answer :

Amazon Elastic Compute Cloud (Amazon EC2) is a Amazon web service that provides resizable (scalable) computing capacity in the cloud. 

You can use Amazon EC2 to launch as many virtual servers you need. 

In Amazon EC2 you can configure security and networking as well as manage storage.

Amazon EC2 service also helps in obtaining and configuring capacity using minimal friction.

Question 2. What Are The Features Of The Amazon Ec2 Service ?

Answer :

As the Amazon EC2 service is a cloud service so it has all the cloud features.

Amazon EC2 provides the following features:

Virtual computing environment (known as instances)

Pre-configured templates for your instances (known as Amazon Machine Images – AMIs)

Amazon Machine Images (AMIs) is a complete package that you need for your server (including the operating system and additional software)

Amazon EC2 provides various configurations of CPU, memory, storage and networking capacity for your instances (known as instance type)

Secure login information for your instances using key pairs (AWS stores the public key and you can store the private key in a secure place)

Storage volumes of temporary data is deleted when you stop or terminate your instance (known as instance store volumes)

Amazon EC2 provides persistent storage volumes (using Amazon Elastic Block Store – EBS)

A firewall that enables you to specify the protocols, ports, and source IP ranges that can reach your instances using security groups

Static IP addresses for dynamic cloud computing (known as Elastic IP address)

Amazon EC2 provides metadata (known as tags)

Amazon EC2 provides virtual networks that are logically isolated from the rest of the AWS cloud, and that you can optionally (Salesforce Certification Training) connect to your own network (known as virtual private clouds – VPCs)

Question 3. What Are The Security Best Practices For Amazon Ec2 ?

Answer :

For secure Amazon EC2 best practices, follow the following steps:

Use AWS identity and access management to control access to your AWS resources

Restrict access by allowing only trusted hosts or networks to access ports on your instance

Review the rules in your security groups regularly

Only open up permissions that your require

Disable password-based login, for instance, launched from your AMI Complete Amazon Web Services Tutorials

Question 4. Explain Storage For Amazon Ec2 Instance ?

Answer :
Amazon EC2 provides many data storage options for your instances. Each option has a unique combination of performance and durability. These storages can be used independently or in combination to suit your requirements.

There are mainly four types of storages provided by AWS:

Amazon EBS: Its durable, block-level storage volumes can attached in 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.

Amazon EC2 Instance Store: Storage disk that is attached to the host computer is referred to as instance store. The instance storage provides temporary block-level storage for Amazon EC2 instances. The data on an instance store volume persists only (sap training) during the life of the associated Amazon EC2 instance; if you stop or terminate an instance, any data on instance store volumes is lost.

Amazon 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.

Adding Storage: Every time you launch an instance from an AMI, a root storage device is created for that instance. The root storage device contains all the information necessary to boot the instance. You can specify storage volumes in addition to the root device volume when you create an AMI or launch an instance using block device mapping.

Question 5. Explain Stopping, Starting, And Terminating An Amazon Ec2 Instance ?

Answer :
Stopping and Starting an instance: When an instance is stopped, the instance performs a normal shutdown and then transitions to a stopped state. All of its Amazon EBS volumes remain attached, and you can start the instance again at a later time. You are not charged for additional instance hours while the instance is in a stopped state.

Terminating an instance: When an instance is terminated, the instance performs a normal shutdown, then the attached Amazon EBS volumes are deleted unless the volume’s deleteOnTermination attribute is set to false. The instance itself is also deleted, and you can’t start the instance again at a later time.

Question 6. What Are The Basic Structures Of The Amazon Ec2 Service ?

Answer :
As the Amazon EC2 service is a cloud facility so it has entirely all the cloud features. Amazon EC2 delivers the subsequent features:

Virtual computing atmosphere (popular as instances)

Pre-configured patterns for your illustrations (popular as Amazon Machine Images – AMIs)

Amazon Machine Images known as AMIs is a comprehensive set that you require for your server (counting the operating system and extra software)

Amazon EC2 delivers numerous arrangements of Storage, CPU, memory, and networking measurements for your occurrences (popular as instance type)

Locked login data for your cases by means of key pair (AWS supplies the public vital and you can supply the inaccessible key in a safe place)

Storage capacities of provisional data is erased when you stop or dismiss your occurrence (popular as occurrence store volumes)

Amazon EC2 delivers tenacious storage volumes (by means of Amazon Elastic Block Store – EBS)

A firewall that permits you to stipulate the procedures, docks, and source IP ranges that can spread your occurrences using security groups

Stationary IP addresses for lively cloud computing (popular as Elastic IP address)

Amazon EC2 delivers metadata (popular as tags)

Amazon EC2 offers virtual systems that are reasonably secluded from the rest of the AWS cloud, and that you can optionally attach to your own system (recognized as virtual private clouds – VPCs)

Question 7. Describe Storage For Amazon Ec2 Occurrence ?

Answer :
Amazon EC2 offers numerous data storage choices for your occurrences. Each choice has an exclusive mixture of presentation and sturdiness. These storages can be used self-sufficiently or in grouping to suit your necessities.

There are chiefly four types of storages offered by AWS:

Amazon EBS: Its sturdy, block-level storage capacities can involve in running Amazon EC2 occurrence. The Amazon EBS volume continues self-sufficiently from the running lifespan of an Amazon EC2 occurrence. After an EBS volume is involved to an example, you can use it like any other bodily hard drive. Amazon EBS encryption feature provisions encryption feature.

Amazon EC2 Instance Store: Storage disk that is involved to the host computer is mentioned to as occurrence store. The instance storage offers provisional block-level storing for Amazon EC2 instances. The data on an illustration store volume perseveres only during the life of the related Amazon EC2 instance; if you halt or dismiss an instance, any data on occurrence store volumes is misplaced.

Amazon S3: Amazon S3 delivers access to dependable and budget data storage organization. It is intended to make web-scale calculating simpler by permitting you to store and save any amount of data, at any period, from within Amazon EC2 or anyplace on the web.

Addition Storage: Every time your presentation an occurrence from an AMI, a root storage device is twisted for that occurrence. The root storage device comprises all the information essential to boot the occurrence. You can stipulate storage volumes in calculation to the root device volume when you generate an AMI or present an instance using hunk device mapping.

Question 8. Can S3 Be Cast-off With Ec2 Instances, In Case Of “yes” Please Specify How ?

Answer :

Yes, it can be cast-off for instances with root approaches backed by native occurrence storage. By using Amazon S3, developers have access to the similar extremely scalable, dependable, fast, low-priced data storage substructure that Amazon uses to track its own worldwide network of web sites. In order to perform systems in the Amazon EC2 atmosphere, developers use the tools providing to load their Amazon Machine Images (AMIs) into Amazon S3 and to transfer them between Amazon S3 and Amazon EC2. Additional use case might be for websites hosted on EC2 to load their stationary content from S3

Question 9. What Are Regions And Availability Zones In Amazon Ec2 ? Explain In Brief ?

Answer :
Amazon EC2 is hosted in multiple locations world-wide. These locations are composed of regions and Availability Zones. Each region is a separate geographic area. Each region has multiple, isolated locations known as Availability Zones.

Each region is completely independent. Each Availability Zone is isolated, but the Availability Zones in a region are connected through low-latency links. The following diagram illustrates the relationship between regions and Availability Zones.

Question 10. Explain How To Launch Ec2 Instance In An Availability Zone ?

Answer :
Each region is completely independent and each Availability Zone is isolated. When you view your resources, you’ll only see the resources tied to the region you have specified.

To launch a EC2 instance, you must select an AMI that’s in the same region (if the AMI is in another region then you can copy the AMI to the region you are using). Now select an Availability Zone or let AWS choose for you. After creating the EC2 instance, it will show up in selected Availability Zone.

Question 11. What Is Amazon Ec2 Root Device Volume ?

Answer :
When you launch an instance, the Root Device Volume contains the image used to boot the instance.

You can launch an instance from one of two types of AMIs:

Instance store-backed AMI

EBS based storage

Question 12. How To Persist Root Device Volume In Amazon Ec2 Instance ?
Answer :

By default, the root device volume for an AMI backed by Amazon EBS is deleted when the instance terminates. To change the default behavior, set the DeleteOnTermination attribute to false using a block device mapping.

To change the root device volume of an instance to persist at launch using the console

Open the Amazon EC2 console.

From the Amazon EC2 console dashboard, click Launch Instance.

On the Choose an Amazon Machine Image (AMI) page, choose the AMI to use and click Select.

Follow the wizard to complete the Choose an Instance Type and Configure Instance Details pages.

On the Add Storage page, deselect the Delete On Termination check box for the root volume.

Complete the remaining wizard pages, and then click Launch.

Changing the Root Volume of an Instance to Persist Using the AWS CLI

Use the run-instances command to preserve the root volume by including a block device mapping that sets its DeleteOnTermination attribute for to false.

Question 13. What Is Security Group In Amazon Ec2 ?

Answer :
Security groups act as a firewall for associated instances, controlling both inbound and outbound traffic at the instance level.


Question 14. What Are The Features Of Security Group In Amazon Ec2 ?

Answer :
Following are the features of the Security Group in Amazon EC2:

We can add rules to a security group that enable us to connect to our instance from our IP address using SSH.

We can also add rules that allow inbound and outbound HTTP and HTTPS access from anywhere.

Question 15. How To Create Security Group In Amazon Ec2 ?

Answer :
We can create Security Group in Amazon EC2 using the Amazon EC2 console. To launch instances in multiple regions, we’ll need to create a Security Group in each region.

Following are the steps to create Security Group in Amazon EC2:

Open the Amazon EC2 console.

From the left navigation bar, select a region for the security group.

Click Security Groups in the navigation pane.

Click Create Security Group.

Enter a name for the new security group and a description.

In the VPC list, select your VPC.

On the Inbound tab, click Add Rule for each new rule, and then click Create.

Question 16. How To Launch An Amazon Ec2 Instance ?

Answer :

We can launch Linux/Windows Amazon EC2 instance using AWS Management Console.

Following are the steps to create Amazon EC2 instance:

Open the Amazon EC2 console.

From the console dashboard, choose Launch Instance.

Choose an Amazon Machine Image (AMI).

Choose an Instance Type.

Click on Review and Launch to let the wizard complete the other configuration setting.

On the Review Instance Launch page, under Security Groups select a Security Group.

Click on Launch on the Review Instance Launch.

Select an Existing ket pair when it prompte for key pair.

Click on View Instance to return on the console to see instance is launching.

Question 17. How To Connect To Your Amazon Ec2 Instance ?

Answer :

There are several ways to connect to a Linux instance. One of the commonly used method is to connect Linux instance from Windows local machine using PuTTY.

Following are the steps to connect to a Linux instance:

Install PuTTY on your local machine.

Get your instance ID.

Get the public DNS name of the instance.

Locate the private key.

Enable inbound SSH traffic from your IP address to your instance.

Converting Your Private Key Using PuTTYgen.

Starting a PuTTY Session.

Now you are connected to your EC2 instance.

Question 18. How To Add A Ebs Volume To Your Amazon Ec2 Instance ?

Answer :

We can attach an EBS volume to one of our instances that is in the same Availability Zone as the Volume.

Following are the steps to attache an EBS volumn to an instance using console:

Open the Amazon EC2 console.

In the left navigation pane, choose Volumes.

Select a volume and choose Attach Volume.

Select the instance to which you want to attach the volume.

Click on Attach.

Now connect to your instance and make the volume available.

Question 19. How To Clean Up Your Amazon Ec2 Instance And Volume ?

Answer :
After we are finished with the instance we created, we can clean up by terminating the instance.

Following are the steps to terminate the EC2 instance:

In the navigation pane, choose Instances. In the list of instances, select the instance.

Choose Actions, then Instance State, and then choose Terminate.

Choose Yes,Terminate when prompted for confirmation.


Question 20. What Are The Best Practices For Amazon Ec2 ?

Answer :
To get the maximum benefit from and satisfaction with Amazon EC2.

There are mainly four best practices:

Security and Network Best Practices

Storage

Resource Management

Backup and Recovery

No comments:

Post a Comment