Episode -6 -- AWS Interview Q&A Series
Table of contents
No headings in the article.
1. How can I access your Amazon Ec2 instance?
There are a number of ways to login to a Linux instance. One of the common ways is to connect a Linux instance from a Windows local machine using PuTTY.
To log onto a Linux instance, follow these steps:
Install PuTTY to your local system.
Receive your ID number.
Get the publicly available DNS name of the instance.
Find that private key.
Enable incoming SSH traffic between the IP address and the instance.
Convert your private key based on PuTTYgen.Start a PuTTTY session.
Now you have a connection to your EC2 instance.
2. How should you clean your Amazon Ec2 instance and volume?
Once we are done with the instance we created, we can clean up by closing the instance.
To end the EC2 process, follow these steps:
From the navigation panel, choose Instances. From the directory of instances, select the instance.
Choose Actions, then Instance Status, then choose Complete. Choose Yes, finish when requested to confirm.
3.What are the best procedures for Amazon Ec2?
Take full advantage and satisfaction with Amazon EC2.
Security and Network Best Practices
Backup and Recovery
4.What is Amazon Machine Image and what is the relationship of the instance with Ami?
Amazon Web Services offers several ways to access Amazon EC2, including the Web Interface, AWS Command Line Interface (CLI) and Amazon Tools for Windows Powershell. First, you must register for an AWS account and you are able to access Amazon EC2.
Amazon EC2 provides an API for query.These requests are HTTP or HTTPS requests that use HTTP GET or POST verbs and a request setting called Action.
5. How do you define Amazon Machine Image (AMI) ?
An Amazon Machine (AMI) image is a model that contains a software configuration (for instance, an operating system, an application server and applications). Starting with an AMI, we launch an instance, which is a copy of the AMI operating as a virtual server in the cloud. It is even possible to launch multiple instances of an AMI.
6. What is the relationship of the instance with Ami?
Different types of instances can be run from the same AMI. An instance type basically determines which host computer hardware (pivotal training) is used for your instance. Each type of instance provides a variety of computing and memory capabilities.
After launching an example, it resembles a traditional host, and we can interact with it as we would with any computer.We have full control of our instances; we may use sudo to execute commands which require root privileges.
7. How to migrate one instance to a different availability zone?
create an AMI from the current instance.
Start an instance from the newly created AMI, specify the new Availability Zone.
You can use the same type of instance as the originating instance, or select a new type of instance.
If the original instance has an associated Elastic IP address, match it to the newly created instance.
If the original instance is an Instance Réservé, change the Availability Zone for your booking.
8. How do I disable root password connections within Amazon Ec2 Instance?
The use of a fixed root password for a public AMI is a security risk which can be quickly identi c a text editor to open/etc/ssh/sshd_config and locate the following line:#PermitRootLogin yes
Replace this line with: PermitRootLogin without-password
The location of this configuration file can vary according to your distribution.
09. What Is Public Key Credentials And How To Install It?
Amazon EC2 uses public key cryptography for encrypting and decrypting login information. Public key cryptography uses a public key to encrypt a data item, such as a password, and the recipient uses the private key to decrypt the data. Public and private keys are recognized as a pair of keys.
After configuring the AMI to prevent logging in with a password, you must ensure that users can log in using another mechanism.
10. Define A Placement Group In Ec2 ?
AWS allows you to create an investment group in EC2 to logically group instances into one availability area.
We have low network latency and high network speed using a placement group.It’s a free option as of now.
When we stop an instance, it runs in the same investment group in restart at a future time.
The biggest limitation of the Investment Group is that we cannot add Instances from more than one Availability Zone to an Investment Group.
Did you find this article valuable?
Support Cloudnloud Tech Community by becoming a sponsor. Any amount is appreciated!