25 Top Amazon Interview Questions – Tricks and Tips

Free AWS Course for AWS Certified Cloud Practitioner (CLF-C01) Start Now!!

In our last Amazon tutorial, we discussed AWS Interview Question Part-1. Today, we will learn more about Amazon Interview Questions.

While it comes to prepare for AWS job interview, we should know all its basic to advanced knowledge, for that we learned our AWS Tutorial. We found mostly asked Amazon Interview Questions and Answers for Freshers and Professionals.

So, let’s start Amazon Interview Questions.

Best Amazon Interview Questions and Answers

Following are the tricky Amazon Interview Questions and Answers:

Q.1 What are the employment cases appropriate for Amazon DynamoDB?

Ans. Storing metadata for Amazon S3 objects.

  • Running relative joins and complicated updates.

If all of your JSON data have similar fields such as [id, name, and age] then it might be higher to store it in a very computer database, the metadata on the opposite hand is unstructured, additionally running relative joins or advanced updates would work on DynamoDB yet.

Q.2 How can a user be able to load the data to Amazon Redshift from completely different data sources like Amazon RDS, Amazon DynamoDB and Amazon EC2?

Ans. The user can load the info within the following 2 ways:

  • The user can use the COPY command to load data in parallel on to Amazon Redshift from Amazon EMR, Amazon DynamoDB, or any SSH-enabled host.
  • AWS Data Pipeline provides a high performance, reliable, fault-tolerant resolution to load data from a spread of AWS data sources. The user will be able to use AWS Data Pipeline to specify the info supply, desired knowledge transformations, and so execute a pre-written import script to load the data into Amazon Redshift.

Q.3 What’s the difference between scalability and Elasticity?

Ans. Scalability is the ability of a system to extend its hardware resources to handle the rise in demand. It is done by increasing the hardware specifications or increasing the process nodes.

Elasticity is the ability of a system to handle increase within the work by adding further hardware resources once the demand increases (same as scaling) but additionally rolling back the scaled resources, once the resources aren’t any longer required.

This is often notably useful in Cloud environments, wherever a pay per use model is followed.

Q.4 How can you modify the instance kind for instances that are running in your application tier and are using Auto Scaling. Where can you modify it from the subsequent areas?

Ans. Auto Scaling launch configuration. Amazon Auto-scaling tags configuration is employed to connect metadata to your instances, to vary the instance kind you’ve got to use auto-scaling launch configuration.

Q.5 The user got a content management system running on an Amazon EC2 instance that’s approaching 100% processor utilization. Can that possibility scale backload on the Amazon EC2 instance?

Ans. Produces a load balancer, and register the Amazon EC2 instance with it. Making alone an auto-scaling cluster won’t solve the difficulty, till you attach a load balancer to it.

Once you attach a load balancer to associate autoscaling cluster, it’ll with efficiency distribute the load among all the instances. Possibility B – CloudFront could be a CDN, it’s a data transfer tool thus won’t facilitate scale backload on the EC2 instance.

Equally the opposite possibility – Launch configuration could be a templet for a configuration that has no reference to reducing masses.

Q.6 Once ought to use a Classic Load Balancer associate once to use an Application load balancer?

Ans. A Classic Load Balancer is good for easy load levelling of traffic across multiple EC2 instances. The associate Application Load Balancer is good for microservices or container-based architectures.

Wherever there’s a desire to route traffic to multiple services or load balance across multiple ports on an identical EC2 instance.

Q.7 What does connection draining do?

Ans. Re-routes traffic from instances that are to be updated or failing a health check. Connection draining could be a service underneath ELB that perpetually monitors the health of the instances.

If any instance fails a health check or it needs to be patched with a code update, the connection draining extracts all the traffic from that instance and re-routes them to alternative instances.

Q.8 Once an instance is unhealthy, it’s terminated and replaced with a replacement one, that of the subsequent.

Ans. Once ELB detects that associate instance is unhealthy, it starts routing incoming traffic to alternative healthy instances within the region.

If all the instances in an exceeding region become unhealthy, and if you’ve got instances in another handiness zone/region, your traffic is directed to them. When the instances get healthy they’re re-routed back to the first instances.

Best Amazon Interview Questions and Answers. Q- 2,5,8

Best Amazon Interview Questions and Answers. Q- 1,3,4,6,7

Q.9 What are lifecycle hooks used for in AutoScaling?

Ans. These hooks are accustomed place an extra wait time to a scale in or scale out event. Lifecycle hooks are used for putting wait time before any lifecycle action.

These actions should about to launch or about terminate an instance happens. The goal of this wait time is something from extracting log files before terminating an instance or putting in the required software in an instance before launching it.

Q.10 The application of the should retrieve data from your user’s mobile every five minutes and also the data keep in DynamoDB, later on, a daily basis at a specific time the data is extracted into S3 on a per-user basis then your application is later wont to visualize the data to the user. The user is asked to optimize the design of the backend system to lower price, what would you recommend?

Ans. Introduce Amazon Elasticache to cache scans from the Amazon DynamoDB table and scale back provisioned read throughput.

Since our work needs the data to be extracted and analyzed, to optimize this method someone would use provisioned IO, however since it’s costly, using an ElastiCache memory instead to cache the ends up in the memory will scale back the provisioned browse outturn and thence cut back price while not affecting the performance.

Q.11 The user is running an internet site on EC2 instances deployed across multiple handiness Zones with a Multi-AZ RDS MySQL extra large db Instance. The location performs a high variety of tiny reads and writes per second and depends on an ultimate consistency model. When comprehensive tests you discover that there’s browse competition on RDS MySQL. Justify any pair of suitable needs.

Ans. Deploy ElastiCache in-memory cache running in every handiness zone
Increase the RDS MySQL Instance size and Implement provisioned IOP.

Since it will plenty have read writes, provisioned IO could become costly. However, we’d like high performance moreover, thus the data is cached using ElastiCache which might be used for ofttimes reading the information.

As for RDS since browse competition is occurring, the instance size ought to be redoubled and provisioned IO ought to be introduced to extend the performance.

Q.12 A startup is running a pilot preparation of around a hundred sensors to live street noise and air quality in urban areas for three months. it absolutely was noted that each month around 4GB of device data is generated. The corporate uses a load balanced auto-scaled layer of EC2 instances and RDS info with five hundred GB standard storage. The pilot was a hit and currently, they need to deploy a minimum of 100K sensors which require to be supported by the backend. The user wishes to store the data for a minimum of a pair of years to research it. What should a user do?

Ans. Replace the RDS instance with a 6 node Redshift cluster with 96TB of storage. A Redshift cluster would be most popular as a result of it simple to scale, additionally the work would be drained parallel through the nodes, thus is ideal for an even bigger workload like our use case.

Since monthly four GB of data is generated, thus in a pair of year, it ought to be around ninety-six GB. And since the servers are going to be redoubled to 100K in variety, ninety-six GB can some become 96TB.

Q.13 What happens if CloudTrail is turned on for the account. However, the Amazon S3 bucket isn’t organized with the proper policy?

Ans. CloudTrail files are delivered consistent with S3 bucket policies. If the bucket isn’t organized or is misconfigured, CloudTrail may not be ready to deliver the log files.

Q.14 How can a user transfer the existing name registration to Amazon Route fifty-three while not disrupting the existing internet traffic?

Ans. You will get to get an inventory of the DNS record data for your name initial, it’s typically out there within the kind of a “zone file” that you just will get from your existing DNS supplier.

Once you receive the DNS record data, you’ll be able to use Route 53’s Management Console or easy web-services interface to form a hosted zone which will store your DNS records for your name and follow its transfer method.

It conjointly includes steps like changing the name servers for your name to those related to your hosted zone. For finishing the method you’ve got to contact the registrar with whom you registered your name and follow the transfer process.

As long as your registrar propagates the new name server delegations, your DNS queries can begin to urge answered.

Q.15 Justify services user can’t use to deploy an app?

Ans. Lambda is employed for running server-fewer applications. It also deploys the functions triggered by the events.

Once we say serverless, we tend to meanwhile not you worrying regarding the computing resources running within the background. It’s not designed for making applications that are publically accessed.

Q.16 How will Elastic stalk apply updates?

Ans. By having a duplicate prepared with updates before swapping.

Elastic stalk prepares a reproduction copy of the instance, before change the first instance, and routes your traffic to the duplicate instance, so that, just in case your updated application fails, it’ll switch back to the first instance, and there’ll be no period seasoned by the users who are using your application.

Best Amazon Interview Questions and Answers. Q- 9,11,15,16

Best Amazon Interview Questions and Answers. Q- 10,12,13,14

Q.17 How is AWS Elastic stalk completely different than AWS OpsWorks?

Ans. AWS Elastic stalk could be an application management platform whereas OpsWorks is a configuration management platform.

The stalk is a simple to use service that is employed for deploying and scaling internet applications developed with Java, Net, PHP, Node.js, Python Programming, Ruby, Go and labourer.

Customers transfer their code and Elastic stalk automatically handles the preparation. The applying is going to be able to use with none infrastructure or resource configuration.

Q.18 What will happen when applying stops responding to requests in beanstalk?

Ans. AWS stalk applications have a system in place for avoiding failures within the underlying infrastructure. If an Amazon EC2 instance fails for any reason, the stalk can use auto-scaling to automatically launch a brand new instance.

The stalk may sight if your application isn’t responding on the custom link, the user will be logged as an environmental event such as a foul version was deployed and thus the user will be able to take an applicable action.

Q.19 What’s Amazon Machine Image (ami)?

Ans. An Amazon Machine Image (AMI) could be a guide that contains a computer code configuration (for example, a software system, an application server, and applications).

From Associate in Nursing AMI, we tend to launch an instance that could be a copy of the AMI running as a virtual server within the cloud. We are able to even launch multiple instances of an AMI.

Q.20 What’s The Relation between Instance and Ami?

Ans. We can launch differing kinds of instances from one AMI. An instance kind primarily determines the hardware of the host pc used for your instance. Every instance kind offers completely different calculate and memory capabilities.

After we tend to launch an instance, it’s sort of an ancient host, and that we will act with it as we’d do with any pc. We’ve complete management of our instances; we are able to use sudo to run commands that need root privileges.

Q.21 Make a case for Storage for Amazon Ec2 Instance?

Ans. Amazon EC2 provides several data storage choices for your instances. Every possibility includes a distinctive combination of performance and sturdiness. These storages are used severally or together to fit your needs.

There are primarily four sorts of storages provided by AWS:

Amazon Interview Questions

Storage for Amazon Ec2 Instance

a. Amazon EBS: Its sturdy, block-level storage volumes will hook up in running Amazon EC2 instance. The Amazon EBS volume persists severally from the running life of an Amazon EC2 instance.

When an EBS volume is hooked up to an instance, you’ll be able to use it like all alternative physical disc drive. Amazon EBS encoding feature supports encoding feature.

b. Amazon EC2 Instance Store: The instance storage in EC2 provides temporary block-level storage for Amazon EC2 instances.

The information on the instance store volume persists solely throughout the lifetime of the associated Amazon EC2 instance; if you stop or terminate an instance, any information on instance store volumes is lost.

c. Amazon S3: Amazon S3 provides access to reliable and cheap data storage infrastructure. It’s designed to create web-scale computing easier by sanctioning you to store and retrieve any quantity of knowledge, at any time, from inside Amazon EC2 or anyplace on the online.

d. Adding Storage: On every occasion, you launch an instance from an AMI, a root device is made for that instance. The foundation device contains all the data necessary in addition tot he instance. You’ll be able to specify storage volumes additionally to the foundation device volume after you produce an AMI or launch an instance utilizing block device mapping.

Q.22 What is the protection Best Practices for Amazon Ec2?

Ans. There are many best practices for secure Amazon EC2. Following are few of them.Use AWS Identity and Access Management (IAM) to regulate access to your AWS resources.

Restrict access by solely permitting trustworthy hosts or networks to access ports on your instance.
Disable password-based logins for instances launched from your AMI. Passwords are found or cracked, and are security risk.

Q.23 Make a case for Stopping, Starting, and Terminating an Amazon Ec2 Instance?

Ans. Stopping and beginning an instance: Once an instance is stopped, the instance performs a traditional closing so transitions to a stopped state. All of its Amazon east by south volumes stay connected, and you’ll be able to begin the instance once more at a later time.

You’re not charged for extra instance hours whereas the instance is during a stopped state.

Terminating an instance: Once an instance is terminated, the instance performs a traditional closing, and then the connected Amazon EBS volumes are deleted unless the volume’s deleteOnTermination attribute is ready to false. The instance itself is additionally deleted, and you can’t begin the instance once more at a later time.

Q.24 Make a case for Elastic Block Storage? What kind of Performance are you able to Expect? How does one Back It Up? How does one Improve Performance?

Ans. EBS could be a virtualized SAN or enclosure network. Which means its RAID storage to start out with, therefore it’s redundant and fault tolerant. If disks die therein RAID you don’t lose data.

Great! It’s additionally virtualized, therefore you’ll be able to provision and apportion storage, and connect it to your server with varied API calls. No occupation the storage skilled and asking him or her to run specialized commands from the hardware marketer.

Performance on EBS will exhibit variability. That is, it will go higher than the SLA performance level, and then drop below it. The SLA provides you with a mean disk I/O rate you’ll be able to expect.

This may frustrate some people, particularly performance consultants UN agency expect reliable and consistent disk throughout on a server. Ancient physically hosted servers behave that means. Virtual AWS instances don’t.

Backup EBS volumes by utilization of the photo facility via API decision or via a GUI interface like elasticfox.

Improve performance by using UNIX software system raid and marking across four volumes.

Q.25 What’s S3? What’s It Used For? How can an encoding Be Used?

Ans. S3 stands for Simple Storage Service. You’ll be able to consider it like FTP storage, wherever you’ll be able to move files to and from there, however not mount it sort of a file system. AWS mechanically puts your snapshots there, still as AMIs there.

Best Amazon Interview Questions and Answers. Q- 19,21,23,25

Best Amazon Interview Questions and Answers. Q- 17,18,20,22,24

So, this was all about Advanced Amazon Interview Questions. Hope you like our explanation.

Conclusion

Hence, we studied the Advance Amazon Interview Questions. Hope you like it, share your feedback with us!

Your opinion matters
Please write your valuable feedback about DataFlair on Google

follow dataflair on YouTube

Leave a Reply

Your email address will not be published. Required fields are marked *