Showing posts with label virtual. Show all posts
Showing posts with label virtual. Show all posts

April 25, 2022

Top 20 AWS VPC Interview Questions and Answers

 

VPC (Virtual Private Cloud) is one of the AWS services that is gaining traction in the tech employment market these days. Knowing the fundamentals of VPC might provide job seekers who want to work for Amazon Web Services an advantage. It is our responsibility to prepare you for this. As a result, we've compiled a list of the finest AWS VPC interview questions that frequently appear in AWS interviews. Before we get into that, let's go over some of the fundamentals of this technology that a newbie should be aware of while taking AWS training.

As most of you are aware, Amazon Web Services (AWS) is an Amazon subsidiary that offers cloud computing services based on user demand. Users must pay a monthly subscription fee. Amazon offers a variety of services that allow you to effortlessly integrate your local resources with the cloud. AWS S3 (Simple Storage Service) is an Amazon Web Services (AWS) service that offers object storage using several web service interfaces such as SOAP, BitTorrent, and others. Knowing how to respond to common AWS interview questions can give you an advantage over other candidates vying for a spot on the AWS team.


AWS(Amazon Web Services) Interview Questions and Answers

AWS Cloud Interview Questions and Answers


Ques. 1): Is there a limit to how many VPCs, VPNs, Subnets, and Gateways I can create?

Answer:

Those things are unquestionably constrained in their production. In a single region, you can only construct five VPCs. If you want to increase the limit, you'll need to increase the internet gateway as well.

VPNs, elastic IP addresses, NAT gateways, and internet gateways all have a maximum limit of five. The maximum number of subnets per VPC is 200.

Furthermore, there is a maximum of 50 customer portals per area.


AWS RedShift Interview Questions and Answers


Ques. 2): What Is It That Sets AWS VPC Apart From Other Private Clouds?

Answer:

The following two qualities distinguish AWS VPC from other cloud computing services:

When you need a private network in the cloud, it eliminates the need to set up and manage physical data centres, hardware, and/or virtual private networks.

AWS VPC is extremely secure against security and privacy threats because to its comprehensive security measures.


AWS Cloud Practitioner Essentials Questions and Answers


Ques. 3): What exactly is the meaning of the phrase "VPC"?

Answer:

VPC stands for Virtual Private Cloud, and it's a private network space within the Amazon cloud where you can deploy AWS resources. It's Amazon EC2's actual networking layer, which we've already talked about. Each virtual network in the cloud that you construct will be logically separated from other virtual networks in the cloud.

Although the layout of a VPC is similar to that of a typical network in a data centre, a VPC will benefit from AWS's scalable architecture. Another significant benefit of VPC is that it is completely customizable. You can create subnets, set up root tables, configure network gateways, setup network access control lists, choose IP address range, and many more in a Virtual Private Cloud.


AWS EC2 Interview Questions and Answers


Ques. 4): What is a Network Address Translation (NAT) Device?

Answer:

In your VPC, a NAT device will allow instances in the private subnet to send outward IPv4 traffic to other AWS services/the internet while preventing inbound traffic from the internet. When traffic is sent to the internet, the IP address is replaced by the address of the NAT device, and when the response is returned to the instances, the device translates the instances' addresses back to private IP addresses. There are two types of NAT devices available on AWS: NAT instance and NAT gateway. NAT instances are configured on Linux AMIs. IPv6 is not supported by NAT.


AWS Lambda Interview Questions and Answers


Ques. 5): What Are My Vpc's Connectivity Options?

Answer:

You can link your VPC to the following resources:

  • The World Wide Web (via an Internet gateway)
  • Using a Hardware VPN connection to access to your business data centre (via the virtual private gateway)
  • The Internet as well as your company's data centre (utilizing both an Internet gateway and a virtual private gateway)
  • AWS's other services (via Internet gateway, NAT, virtual private gateway, or VPC endpoints)
  • Other Virtual Private Clouds (via VPC peering connections)


AWS Cloud Security Interview Questions and Answers


Ques. 6): Is it possible to use Amazon VPC with Amazon Ec2 Reserved Instances?

Answer:

Yes. When you buy Reserved Instances, you can reserve an instance in Amazon VPC. AWS does not distinguish between instances running on Amazon VPC and normal Amazon EC2 when calculating your charge. AWS optimises which instances are charged at the reduced Reserved Instance rate, ensuring you pay the least amount possible. However, your instance reservation will be specific to Amazon VPC; for more information, visit the Reserved Instances page.


AWS Simple Storage Service (S3) Interview Questions and Answers


Ques. 7): Is it possible for Amazon Ec2 instances within a Vpc to communicate with Amazon Ec2 instances outside of the Vpc?

Answer:

Yes, it is correct. If an Internet gateway is set up, Amazon VPC traffic destined for Amazon EC2 instances outside of a VPC passes through the Internet gateway before entering the public AWS network to reach the EC2 instance. The traffic traverses the VPN connection, egresses from your datacenter, and then re-enters the public AWS network if an Internet gateway has not been established, or if the instance is in a subnet configured to route through the virtual private gateway.


AWS Fargate Interview Questions and Answers


Ques. 8): What is ELB (Elastic Load Balancing) and how does it effect Virtual Private Cloud?

Answer:

ELB is a load balancer service for AWS deployments, as the name implies. A load balancer spreads the amount of work that a computer must complete into other computers, allowing it to be completed faster. ELB distributes incoming application traffic to numerous destinations, such as EC2 instances, in the same way.

There are three types of ELBs that assure scalability, availability, and security for fault-tolerant applications. There are three types of load balancers: traditional, network, and application load balancers. VPC can be used in conjunction with network and application load balancers, which can route traffic to targets within VPCs.


AWS SageMaker Interview Questions and Answers


Ques. 9): What Are The Amazon Vpc Components?

Answer:

Amazon VPC comprises a variety of objects that will be familiar to customers with existing networks:

  • A Virtual Private Cloud (VPC): A logically isolated virtual network in the AWS cloud. You define a VPC’s IP address space from a range you select.
  • Subnet: A segment of a VPC’s IP address range where you can place groups of isolated resources.
  • Internet Gateway: The Amazon VPC side of a connection to the public Internet.
  • NAT Gateway: A highly available, managed Network Address Translation (NAT) service for your resources in a private subnet to access the Internet.
  • Hardware VPN Connection: A hardware-based VPN connection between your Amazon VPC and your datacenter, home network, or co-location facility.
  • Virtual Private Gateway: The Amazon VPC side of a VPN connection.
  • Customer Gateway: Your side of a VPN connection.
  • Router: Routers interconnect subnets and direct traffic between Internet gateways, virtual private gateways, NAT gateways, and subnets.
  • Peering Connection: A peering connection enables you to route traffic via private IP addresses between two peered VPCs.
  • VPC Endpoint for S3: Enables Amazon S3 access from within your VPC without using an Internet gateway or NAT, and allows you to control the access using VPC endpoint p
  • LI>Egress-only Internet Gateway: A stateful gateway to provide egress only access for IPv6 traffic from the VPC to the Internet.


AWS DynamoDB Interview Questions and Answers


Ques. 10): In a VPC, what IP address range can be used?

Answer:

For the principal CIDR block, you can use any IPv4 address range, including RFC 1918 or publicly routable IP ranges. Certain restrictions apply to secondary CIDR blocks. Publicly routable IP blocks can only be reached via the Virtual Private Gateway and cannot be reached via the Internet gateway. Customer-owned IP address blocks are not advertised on the Internet by AWS. Call the necessary API or use the AWS Management Console to assign an Amazon-provided IPv6 CIDR block to a VPC.


AWS Cloudwatch interview Questions and Answers


Ques. 11): What Is The Difference Between A Vpc's Security Groups And Network Acls?

Answer:

A VPC's security groups define which communication is permitted to and from an Amazon EC2 instance. Network ACLs assess traffic entering and exiting a network at the subnet level. Allow and Deny rules can be set using network ACLs. Traffic between instances in the same subnet is not filtered by network ACLs. Furthermore, network ACLs filter in a stateless manner, whereas security groups filter in a stateful manner.


AWS Elastic Block Store (EBS) Interview Questions and Answers


Ques. 12): You Really Want To Use My Ec2 Account's Default Vpc? Is that even conceivable?

Answer:

Yes, but we can only enable an existing account for a default VPC if that account has no EC2-Classic resources in that region. All non-VPC deployed Elastic Load Balancers, Amazon RDS, Amazon ElastiCache, and Amazon Redshift resources in that region must also be terminated. All future resource launches, including instances created via Auto Scaling, will be placed in your default VPC after your account has been configured for a default VPC. Contact AWS Support to get your existing account set up with a default VPC. To see if you're eligible for a default VPC, we'll look at your request as well as your existing AWS services and EC2-Classic presence.


AWS Amplify Interview Questions and Answers


Ques. 13): What Is The Best Way To Tell If My Account Is Set To Use A Default Vpc?

Answer:

The Amazon EC2 console shows you which platforms you can use to launch instances in the selected region, as well as whether you have a default VPC there. In the navigation bar, make sure the region you'll be using is selected. Look under "Account Attributes" on the Amazon EC2 console dashboard for "Supported Platforms." If both EC2-Classic and EC2-VPC are present, you can start instances on either platform. You can only launch instances into EC2-VPC if there is only one value, EC2-VPC. If your account is configured to use a default VPC, your default VPC ID will be presented under "Account Attributes". You can also use the EC2 DescribeAccountAttributes API or CLI to describe your supported platforms.


AWS Secrets Manager Interview Questions and Answers


Ques. 14): How to build a custom VPC?

Answer:

In order to build a custom VPC, the following steps must be followed:

  • Create a Virtual Private Cloud
  • Then create Subnets
  • Further create an Internet Gateway
  • Attach this new Gateway to your VPC
  • Create a new Route Table
  • Add the gateway as a route to the new route table
  • Add a subnet to the route table’s subnet association
  • Create a web server for public subnet and a database server for the private subnet
  • Create a new security group for the NAT
  • Add HTTP and HTTPS inbound rules that let in traffic from the private subnets IP
  • Create a NAT for public subnet
  • Create an elastic IP
  • Associate this IP to the NAT
  • Disable destination/source checks for the NAT
  •  Add NAT to the initial VPC route table as a route.


Top 20 AWS Django Interview Questions and Answers


Ques. 15): When it comes to filtering, what's the difference between stateful and stateless?

Answer:

Stateful filtering keeps track of the origin of a request and can send the response back to the original machine automatically. A stateful filter that enables inbound traffic to TCP port 80 on a web server, for example, will allow return traffic on a higher-numbered port (e.g., destination TCP port 63, 912) to pass through the stateful filter between the client and the webserver. The filtering device keeps track of the origin and destination port numbers and IP addresses in a state table. On the filtering device, only one rule is required: Allow inbound traffic on TCP port 80 to the web server.

Stateless filtering, on the other hand, merely looks at the source or destination IP address, as well as the destination port, regardless of whether the traffic is a new request or a response to a request. In the case above, the filtering device would need to implement two rules: one to allow traffic incoming to the web server on TCP port 80, and another to allow traffic outward from the web server (TCP port range 49, 152 through 65, 535).


AWS Cloud Support Engineer Interview Question and Answers


Ques. 16): What is Classiclink, exactly?

Answer:

VPC (Virtual Private Cloud) by Amazon (VPC) ClassicLink allows EC2 instances running on the EC2-Classic platform to communicate with VPC instances through private IP addresses. To use ClassicLink, you must first enable it for a VPC in your account and then link a Security Group from that VPC to an EC2-Classic instance. All of your VPC Security Group's policies will apply to communications between EC2-Classic instances and VPC instances.


AWS Solution Architect Interview Questions and Answers


Ques. 17): What is the best way to link a VPC to my corporate datacenter?

Answer:

By establishing a hardware VPN connection between your existing network and Amazon VPC, you can communicate with Amazon EC2 instances within a VPC as if they were on your local network. On Amazon EC2 instances in a VPC accessible via a hardware VPN connection, AWS does not execute network address translation (NAT).


AWS Glue Interview Questions and Answers


Ques. 18): How do I specify the Availability Zone in which my Amazon EC2 instances will be launched?

Answer:

When you create an Amazon EC2 instance, you must provide the subnet on which the instance will run. The instance will be deployed in the Availability Zone that corresponds to the subnet given.


AWS Aurora Interview Questions and Answers


Ques. 19): Why can't you ping the router that joins my subnets, or my default gateway?

Answer:

Ping (ICMP Echo Request and Echo Reply) requests to your VPC's router are not supported. Pinging between Amazon EC2 instances within a VPC is possible if your operating system's firewalls, VPC security groups, and network ACLs allow it.


AWS DevOps Cloud Interview Questions and Answers


Ques. 20): Is It Possible To Control And Manage Amazon Vpc Using The AWS Management Console?

Answer:

Yes, it is correct. VPCs, subnets, route tables, Internet gateways, and IPSec VPN connections can all be managed through the AWS Management Console. You can also construct a VPC with the help of a simple wizard.

AWS RDS Interview Questions and Answers

 


April 17, 2022

Top 20 AWS EC2 Interview Questions and Answers

  

Ques. 1): What exactly is EC2?

Answer:

Amazon EC2 (Elastic Compute Cloud) is a web service interface for resizable compute capacity in the Amazon Web Services (AWS) cloud. Developers can have comprehensive control over web-scaling and computing resources with this tool.

As needed, EC2 instances can be resized and the number of instances scaled up or down. These instances can be released in one or more geographical locations or regions, and Availability Zones can be used to control where they are launched (AZs). Each area is made up of a number of AZs in different places that are connected via low-latency networks within the same region.

AWS RedShift Interview Questions and Answers

Ques. 2):  Can you mention some advantages and disadvantages of utilising Amazon EC2?

Answer:

The following are some of the benefits and drawbacks of utilising Amazon EC2.

Pros:

        It is incredibly appealing because it has the flexibility to scale up resources for cloud deployment based on demand.

        Because cloud hosting provides exceptional backup capabilities, reverting to a previous version is a simple; additionally, the cloud infrastructure eliminates the need for us to maintain local hardware resources.

Cons:

        The entire configuration and spin-up process necessitates a high level of technical expertise.

        There is a slight deficiency in training documents and support. We attempted to employ Lambda expressions in programme flow execution but discovered few materials on the issue.

Mostly Asked AWS Cloud Practitioner Interview Questions and Answers

Ques. 3): What Are The Amazon Ec2 Service's Basic Structures?

Answer:

        Because Amazon EC2 is a cloud service, it has access to all of the cloud's functionalities. The following features are available using Amazon EC2:

        Virtual computing environment (popular as instances)

        Patterns pre-configured for your illustrations (also known as Amazon Machine Images – AMIs)

        AMIs (Amazon Machine Images) are a comprehensive set of images that you'll need for your server (counting the operating system and extra software)

        Amazon EC2 provides a variety of storage, CPU, memory, and networking configurations for your events (popular as instance type)

        Login data for your cases is password-protected using a key pair (AWS supplies the public vital and you can supply the inaccessible key in a safe place).

        Provisional data storage capacities are removed when you cease or dismiss your occurrence (popular as occurrence store volumes)

        Amazon EC2 (through Amazon Elastic Block Store – EBS) provides robust storage volumes.

        A firewall that allows you to specify the procedures, docks, and source IP ranges that can be used to distribute your occurrences via security groups.

        Static IP addresses for cloud computing activity (popular as Elastic IP address)

        Amazon EC2 is a service that provides metadata (popular as tags)

        Amazon EC2 provides virtual systems that are relatively isolated from the rest of the AWS cloud and that you may optionally attach to your own system (known as VPCs).

 AWS Lambda Interview Questions and Answers

Ques. 4): What are the different types of AWS Reserved Instances?

Answer:

In Reserved Instances, you can change the operating system types and the tenancy agreements. RI provides an optional capacity reservation for EC2 instances. AWS Billing applies discounted RI prices when the attributes of an EC2 instance's consumption match those of an active RI. EC2 reserves capacity that fits the attributes of RI if an Availability Zone (AZ) is defined.

Reserved Instances are divided into three groups.

1.       Standard RIs: These RIs are ready to use on a regular basis. On-Demand instances are available at a discount of up to 75%.

2.       Convertible RIs: These RIs allow you to change a RI's qualities in return for a RI of equal or greater value. Convertible RIs can be used in steady-state applications as well. On-Demand instances are available at a discount of up to 54%.

3.       Scheduled RIs: These RIs enable you to match your capacity reservation to a recurring, predictable schedule that can be completed in a fraction of a day, week, or month. Scheduled RIs can be started at any point throughout the user's designated time range.

 AWS Simple Storage Service (S3) Interview Questions and Answers

Ques. 5): What distinguishes Amazon EC2 from other cloud computing services?

Answer: 

        Amazon EC2 bare metal instances- Amazon EC2 bare metal instances give your applications direct access to the underlying server's processor and memory.

        The Nitro system, which consists of a combination of AWS-built hardware offload and hardware protection components that work together to safely offer high-performance networking and storage resources to EC2 instances, is used to build bare metal instances.

        Stop and Start Your Instances- While your instance is hibernated, you will not be charged for its consumption. The normal EBS rates apply to storage. For additional information on hibernation, including supported instance types and operating systems, see the following links.

        High I/O Instances- High I/O I3 and I3en instances are powered by NVMe-based SSDs and are perfect for users operating high-performance NoSQL databases, transactional systems, and Elastic Search workloads. In addition to sequential disc performance of up to 16 GB/s, high I/O instances are appropriate for analytics workloads.

        Flexible Storage Options- Amazon EBS provides Amazon EC2 instances with persistent, highly available, consistent, low-latency block storage volumes. To protect you against component failure, each Amazon EBS volume is automatically replicated inside its Availability Zone, ensuring high availability and durability. It's for application managers who need to optimise workload capacity, performance, and cost.

        Elastic IP Addresses- Elastic IP addresses are static IP addresses built for cloud computing in a dynamic environment. An Elastic IP address is linked to your account rather than a specific instance, and you have ownership over it until you want to release it.

        Enhanced Networking- Compared to typical implementations, this feature leverages a novel network virtualization stack that enables faster I/O performance and lower CPU consumption. To use Enhanced Networking, you must first create an HVM AMI in VPC and then install the required driver.

 AWS Cloudwatch interview Questions and Answers

Ques. 6): In the event that "yes," can S3 be cast-off with Ec2 instances? Please explain how you're going to do that.

Answer:

For instances with root approaches backed by native occurrence storage, it is possible to remove it. Developers can utilise Amazon S3 to use the same highly scalable, dependable, quick, and low-cost data storage foundation that Amazon uses to track its own global network of websites. Developers use the tools provided to load their Amazon Machine Images (AMIs) into Amazon S3 and move them between Amazon S3 and Amazon EC2 in order to run systems in the Amazon EC2 environment. Another use case may be for websites hosted on EC2 to use S3 to load their static content.

 AWS Cloud Support Engineer Interview Question and Answers

Ques. 7): What is the difference between stopping, starting, and terminating an Amazon Ec2 instance?

Answer:

Stopping and starting an instance is as follows: When an instance is stopped, it goes through a normal shutdown before entering the halted state. All of the instance's Amazon EBS volumes remain attached, and you can restart it at any time. While the instance is paused, you are not charged for extra instance hours.

Putting an end to an instance: When an instance is terminated, it shuts down normally, and the attached Amazon EBS volumes are erased unless the deleteOnTermination attribute on the volume is set to false. The instance is also erased, and you will not be able to restart it at a later time.

 AWS Solution Architect Interview Questions and Answers

Ques. 8): What exactly is an ec2 snapshot?

Answer:

A snapshot of an Amazon Elastic Block Store (EBS) volume is a point-in-time version of the Amazon EBS volume that is incrementally replicated to Amazon Simple Storage Service (Amazon S3). Individual blocks of EBS volume data that have evolved since the last EBS snapshot are stored in the next EBS snapshot, and this is how Amazon AWS EBS snapshot incremental pictures of data are created.

 AWS DevOps Cloud Interview Questions and Answers

Ques. 9): What's the difference between pausing and terminating an Amazon EC2 instance?

Answer:

        Terminate Instance- When you terminate an EC2 instance, the instance is shut down, the virtual machine that was provisioned for you is permanently removed, and you are no longer paid for instance usage. Any data on the instance that was saved locally will be lost. Any EBS volumes that are attached will be removed and destroyed. If you attach an EBS Snapshot to an instance at boot time, the Dashboard's default choice is to remove the attached EBS volume when the instance is terminated.

        Stop Instance- When you stop an EC2 instance, the instance is terminated, and the virtual machine that was provided for you is permanently removed, and you are no longer paid for instance usage. The associated bootable EBS drive will not be destroyed when an instance is stopped or terminated. After terminating, the data on your EBS volume will be preserved, but any data on the local (ephemeral) hard disc will be lost as usual. The volume will remain in its current availability zone. Standard EBS volume charges will apply.

 AWS(Amazon Web Services) Interview Questions and Answers

Ques. 10): Describe the steps involved in creating an EC2 instance.

Answer:

Creating an EC2 instance is incredibly straightforward, and virtually anyone can do it. In the AWS Management Console, first choose the EC2 service and then travel to the relevant AWS region where the instance will be created. Then, from the left-hand options pane, pick Instances, and then click the Launch Instances button to start the instance creation wizard. Select an appropriate AMI, then select the instance size that best fits your needs in the next step, and then click Configure Instance Details. Here you will find configuration choices such as the number of instances, network settings, placement group, domain join, and so on that you can customise to meet your needs. After that, click Add Storage to see the options for configuring storage according to your instance's needs. The instance's tags are configured in the next step. Finally, the Security Group gives you the ability to open ports for your apps. Review your settings before pressing the Launch button, where you'll be prompted to choose the Key you want to associate with your instance. Finally, confirm that you have the private key and click Launch Instance. You may need to wait a while depending on your AMI and other configuration parameters, but the instance should be created soon.

 AWS Database Interview Questions and Answers

Ques. 11): What is an Amazon Machine Image (ami) and how does it work?

Answer:

The information needed to launch an instance is included in an Amazon Machine Image (AMI). When launching an instance, you must specify an AMI. When you require numerous instances with the same configuration, you can launch them all from a single AMI. When you need instances with varied configurations, you can utilise different AMIs to start them.

 ActiveMQ Interview Questions and Answers

Ques. 12): How Do I Move An Instance From One Availability Zone To Another?

Answer:

Your EC2 instance can be moved from one Availability Zone to another.

The steps to migrate an instance to a different Availability Zone are as follows:

        Create an AMI from the running instance

        Launch an instance from the newly created AMI, specifying the new Availability Zone

        Use the same instance type as the original instance, or choose a different instance type

        If the original instance has an associated Elastic IP address, associate it with the new instance

        If the original instance is a Reserved Instance, change the Availability Zone for your reservation.

 

Ques. 13): Describe Amazon Ec2 Occurrence Storage

Answer:

For your instances, Amazon EC2 offers flexible, cost-effective, and simple data storage solutions. Each option offers a distinct mix of performance and longevity. These storage alternatives can be utilised separately or in combination, depending on your needs.

The following are some of the storage options:

        Amazon EBS- Amazon EBS allows you to attach durable, block-level storage volumes to a running instance. For data that requires frequent and granular updates, Amazon EBS can be used as a primary storage device. When running a database on an instance, for example, Amazon EBS is the preferred storage option.

        Amazon EC2 instance store- The term "instance store" refers to the disc storage used by Amazon EC2. For instances, the instance store provides temporary block-level storage. The data on an instance store volume is only retained for the duration of the associated instance; any data on instance store volumes is lost if the instance is stopped, hibernated, or terminated.

        Amazon EFS file system - Amazon EFS is a scalable file storage system that works with Amazon EC2. You can mount an EFS file system by creating an EFS file system and configuring your instances to use it.

        Amazon S3 provides access to a dependable and low-cost data storage infrastructure. It's intended to simplify web-scale computing by allowing you to store and retrieve any quantity of data, at any time, from within Amazon EC2 or from anywhere on the internet.

        Adding storage- The root storage device holds all of the data required to start the instance. When you construct an AMI or run an instance using block device mapping, you can specify storage volumes in addition to the root device volume.

 

Ques. 14): What is the difference between a public IP address and an EIP address?

Answer:

It's a standard public IP address that's connected with an EC2 instance. The instances can host resources on the internet using this address. When an instance is stopped, the Public Address associated with it is released, and when the instance is restarted, a new Public Address is issued, which updates the host record on DNS Server.

EIP stands for Elastic IP Address, which is a static Public Address associated with an EC2 instance. Even if a server is stopped and restarted, the EIP will not change. In a similar way to Public Address, this address allows an instance to host resources on the public internet.

 

Ques. 15): What Is The Best Way To Keep Root Device Volume In An Amazon Ec2 Instance?

Answer:

When an AMI supported by Amazon EBS terminates, the root device volume is erased by default. Set the DeleteOnTermination attribute to false using a block device mapping to override the default behaviour.

Using the console, modify the root device volume of an instance to persist at launch.

·         Go to the Amazon EC2 console and log in.

·         Select Launch Instance from the Amazon EC2 console panel.

·         On the Select an Amazon Machine Image (AMI) page, select the AMI you want to use.

·         Complete the Choose an Instance Type and Configure Instance Details pages using the wizard.

·         For the root volume, deselect the Delete On Termination check box on the Add Storage page.

·         Finish the remaining wizard pages before clicking Launch.

·         Allowing an Instance's Root Volume to Persist Using the AWS Command Line Interface (CLI)

·         Include a block device mapping with the DeleteOnTermination attribute set to false in the run-instances command to maintain the root volume.

 

Ques. 16): What is a Spot Instance, and how does it work?

Answer:

Organizations can use Amazon's EC2 Spot Instances to take advantage of unused compute in AWS EC2 at a very low and appealing cost. When compared to on-demand instances, organisations can save up to 90% by using spot instances. Spot instances can be used for web servers, containerized workloads, continuous integration/delivery (CI/CD), high-performance computing (HPC), testing, and development. The flexibility to combine reserved instances, on-demand instances, and saving plan instances is the best feature of a spot instance. Before reclaiming the capacity, AWS sends a two-minute notice, and users who own it can stop, terminate, or hibernate it in the meantime.

 

Ques. 17): Explain how AWS Elastic Load Balancer works.

Answer:

Amazon gives us with Elastic Load Balancer with EC2, which can automatically distribute traffic to our application among many destinations such as instances, lambda functions, virtual appliances, IP addresses, and containers to ensure continuous delivery of our services. The Elastic Load Balancer can send application traffic to destinations in a single availability zone or across many zones. Elastic Load Balancer is a virtual load balancer that comes in four different versions, each of which provides high availability across several availability zones, automatic scaling support, and dependability to enable fault tolerance in our applications.

 

Ques. 18): What is the definition of a security group?

Answer:

A security group can be thought of as a software firewall that is required to be joined to an EC2 instance's network interface. "Stateful" filtering is provided by Security Group. Multiple network interfaces of EC2 instances belonging to the same VPC can be joined to a Security Group. On the network interface, a user can create exceptions for traffic in both the inbound and outward directions. All traffic is denied by default; a user can only make exceptions for traffic that should be allowed.

 

Ques. 19): What is an Amazon EC2 instance?

Answer:

On Amazon's EC2, an instance is a virtual server that runs programmes. An instance is a miniature computer that has its own hard drive, network connection, operating system, and other features. You can have numerous mini computers, known to as Instances, on a single physical system.

Amazon EBS is in charge of this instance (meaning that the root volume is an EBS volume). You have the option of choosing your own Availability Zone or allowing Amazon EC2 to do so for you. You may secure your instance by defining a key pair and security group when you launch it. When you connect to your instance, you'll get the following screen, you should provide the private key of the key pair that you defined while launching your instance.

 

Ques. 20):  How Do You Add An EBS Volume To An Amazon Ec2 Instance?

Answer:

An EBS volume can be attached to one of our instances in the same Availability Zone as the volume.

The steps to attach an EBS volume to an instance via console are as follows:

·         Go to the Amazon EC2 console and log in.

·         Select Volumes from the left navigation pane.

·         Choose Attach Volume after selecting a volume.

·         Select the instance to which the volume will be attached.

·         Select Attach from the drop-down menu.

·         Connect to your instance now and enable the volume.