AWS Interview Questions and Answers
Question - 81 : - How can you add an existing instance to a new Auto Scaling group?
Answer - 81 : -
Here’s how you can add an existing instance to a new Auto Scaling group:
- Open EC2 console
- Select your instance under Instances
- Choose Actions -> Instance Settings -> Attach to Auto Scaling Group
- Select a new Auto Scaling group
- Attach this group to the Instance
- Edit the Instance if needed
- Once done, you can successfully add the instance to a new Auto Scaling group
Question - 82 : - What are the advantages of AWS IAM?
Answer - 82 : -
AWS IAM allows an administrator to provide multiple users and groups with granular access. Various user groups and users may require varying levels of access to the various resources that have been developed. We may assign roles to users and create roles with defined access levels using IAM.
It further gives us Federated Access, which allows us to grant applications and users access to resources without having to create IAM Roles.
Question - 83 : - Explain Connection Draining
Answer - 83 : -
Connection Draining is an AWS service that allows us to serve current requests on the servers that are either being decommissioned or updated.
By enabling this Connection Draining, we let the Load Balancer make an outgoing instance finish its existing requests for a set length of time before sending it any new requests. A departing instance will immediately go off if Connection Draining is not enabled, and all pending requests will fail.
Question - 84 : - What is Power User Access in AWS?
Answer - 84 : -
The AWS Resources owner is identical to an Administrator User. The Administrator User can build, change, delete, and inspect resources, as well as grant permissions to other AWS users.
Administrator Access without the ability to control users and permissions is provided to a Power User. A Power User Access user cannot provide permissions to other users but has the ability to modify, remove, view, and create resources.
Question - 85 : - How is AWS CloudFormation different from AWS Elastic Beanstalk?
Answer - 85 : -
Here are some differences between AWS CloudFormation and AWS Elastic Beanstalk:
AWS CloudFormation helps you provision and describe all of the infrastructure resources that are present in your cloud environment. On the other hand, AWS Elastic Beanstalk provides an environment that makes it easy to deploy and run applications in the cloud.
AWS CloudFormation supports the infrastructure needs of various types of applications, like legacy applications and existing enterprise applications. On the other hand, AWS Elastic Beanstalk is combined with the developer tools to help you manage the lifecycle of your applications.
Question - 86 : - What are the elements of an AWS CloudFormation template?
Answer - 86 : -
AWS CloudFormation templates are YAML or JSON formatted text files that are comprised of five essential elements, they are:
- Template parameters
- Output values
- Data tables
- Resources
- File format version
Question - 87 : - How can you automate EC2 backup using EBS?
Answer - 87 : -
Use the following steps in order to automate EC2 backup using EBS:
- Get the list of instances and connect to AWS through API to list the Amazon EBS volumes that are attached locally to the instance.
- List the snapshots of each volume, and assign a retention period of the snapshot. Later on, create a snapshot of each volume.
- Make sure to remove the snapshot if it is older than the retention period.
Question - 88 : - What is the difference between EBS and Instance Store?
Answer - 88 : -
EBS is a kind of permanent storage in which the data can be restored at a later point. When you save data in the EBS, it stays even after the lifetime of the EC2 instance. On the other hand, Instance Store is temporary storage that is physically attached to a host machine. With an Instance Store, you cannot detach one instance and attach it to another. Unlike in EBS, data in an Instance Store is lost if any instance is stopped or terminated.
Question - 89 : - Can you take a backup of EFS like EBS, and if yes, how?
Answer - 89 : -
Yes, you can use the EFS-to-EFS backup solution to recover from unintended changes or deletion in Amazon EFS. Follow these steps:
- Sign in to the AWS Management Console
- Click the launch EFS-to-EFS-restore button
- Use the region selector in the console navigation bar to select region
- Verify if you have chosen the right template on the Select Template page
- Assign a name to your solution stack
- Review the parameters for the template and modify them if necessary
Question - 90 : - What are the different types of load balancers in AWS?
Answer - 90 : -
There are three types of load balancers that are supported by Elastic Load Balancing:
- Application Load Balancer
- Network Load Balancer
- Classic Load Balancer