Interview Questions and AWS

Disclosure: This post contains affiliate links. I may earn commission from any sales made or actions taken as a result from users clicking the links on this page.

Top 50+ AWS Interview Questions and Answers

Posted in Interview Questions, AWS

Table of Contents

Launched back in 2006, AWS has succeeded in becoming the leading provider of on-demand cloud computing services. The cloud computing services provider secures a staggering 32% of the cloud computing market share up until the last quarter of 2018.

Every aspiring developer looking to make it big in the cloud computing ecosphere must have a stronghold on AWS. If you’re eyeing the role of an AWS Developer, then these most important AWS interview questions will help you take a step further towards your desired job avenue.

AWS Interview Questions and Answers

Now here we are sharing a list of AWS Architect interview Questions with answers which are asked in the interview.

Basic AWS Interview Questions 

Question: Define AWS?

Answer: AWS is the initials of Amazon Web Services. It is a platform that offers safe cloud services, data storage facilities, computing platforms, content delivery, and various other associated services to the users.

Question: What are the various AWS products built for offering cloud services?

Answer: There are mainly three kinds of cloud service types for which AWS products are made. These are stated as under.

  1. Computing: The AWS products for computing are Auto-Scaling, EC2, Lightsat, Elastic Beanstalk, and Lambda.
  2. Storage: The AWS products for storage include S3, Elastic File System, Elastic Block Storage, and Glacier.
  3. Networking: The AWS products for networking include VPC, Route53 and Amazon CloudFront.

Question: Define Auto-Scaling?

Answer: Auto-Scaling is a function that supports the provision and launch of new instances after recognizing the demand. This way it offers the users the ability to increase or decrease the resource capacity as per the changing demand levels.

Question: Is there any difference between region and availability zone?

Answer: Yes, there is a difference between region and availability zone. The regions are the different geographical locations like United States-West 1 i.e. North California and Asia South i.e. Mumbai. An availability zone is the part of the regions which are mostly the isolated zones that can replicate itself when the need arises.

Question: What do you understand by geo-targeting in CloudFront?

Answer: Geo-Targeting in the CloudFront supports the creation of customized content for the target audience as per the demand and needs of a specific geographical area. This helps the businesses to showcase their personalized content to the target audience in different geographic locations without changing its URL.

Question: What are the steps involved in CloudFront?

Answer: There are four steps involved in CloudFront. These include the following.

Step 1: Creating a CloudFormation template in YAML or JSON format.

Step 2: Saving the code in an S3 bucket so that it serves the repository for the code.

Step 3: Using the AWS CloudFormation to call the bucket and thereby creating a new stack on the template.

Step 4: CloudFormation reads the file and thus understands the services required that are called along with their order details, relationships with services and associated provisions.

Question: Which are tools available in AWS that could help you recognize that you are paying more than required for AWS?

Answer: There are four tools available in AWS that could help in recognizing that you are paying more than required for AWS. These are stated as under.

  1. Checking the top service table.
  2. AWS budgets.
  3. Cost allocation tags.
  4. Cost explorer.

Question: What is S3 in AWS?

Answer: S3 is referred to as Simple Storage Service. It is used to store and retrieve data of any amount at any time from anywhere in the world using the web. To use this service the payment model developed is “Pay As You Go”.

Question: What is AMI?

Answer: AMI is the short form of Amazon Machine Image. It is a template that offers the information required to launch an instance that acts as a copy of AMI running as a virtual server in the cloud. The information provided is about the operating system, applications and the application server itself. Many instances can be launched at one time from different AMIs as per your instructions.

Question: What is the relation between AMI and Instance?

Answer: Instances can be launched by AMIs. One AMI can launch as many instances as required. An instance type defines the hardware of the host computer for Instance including information about computers and its memory abilities. After launching an instance, it works as a traditional host and could be interacted with as with any other computer.

Question: What are the inclusions in AMI?

Answer: There are three inclusions in Ami which include the following.

  1. Template for the root volume for the instance.
  2. Block device mapping that helps in determining the volumes after attaching to the instance after launch.
  3. Launch permissions that helps in deciding which AWS account can take the AMI for launching Instances.

Question: Can we send a request to Amazon S3?

Answer: Yes, we can send a request to Amazon S3 by using the REST API or the AWS SDK wrapper libraries which wrap the underlying Amazon S3 REST API.

Question: What are the main differences between EC2 and S3?

Answer: The main differences between EC2 and S3 are stated under.

EC2 S3
It is a cloud web service It is a data storage system
It is used for hosting the web application It is used for storing any amount of data
It works as a huge computer machine It is a REST interface.
It can either run LINUX or Windows and could also handle PHP, Python, Apache and various other kinds of databases. It applies secure authentication keys such as HMAC-SHA1

Question: Can buckets be created in AWS accounts?

Answer: Yes, buckets can be created in AWS accounts. By default up to 100 buckets can be created in the AWS account.

Question: Define T2 Instance?

Answer: T2 Instance is specifically designed to offer moderate baseline performance and the ability to burst into higher performance as per the requirements of the workload.

Question: Identify different kinds of Instances?

Answer: The different kinds of Instances include the following.

  1. Accelerated Computing Instance.
  2. Memory-Optimized Instance.
  3. Storage Optimized Instance.
  4. Computer Optimized Instance.
  5. General Purpose Instance.

Question: Does Amazon VPC support the property of broadcast or multicast?

Answer: Amazon VPC does not support the property of broadcast or multicast.

Question: Can we create Elastic IPs in AWS?

Answer: Yes, we can create Elastic IPs in AWS. About 5 VPC Elastic IP addresses are allowed under each AWS account.

Question: What is a default storage class in S3?

Answer: The default storage class in S3 is referred to as the Standard frequently accessed.

Question: What are the roles in AWS?

Answer: Roles in AWS are used to provide permission to the entities that can be trusted within the AWS account. They are similar to the users and do not require the creation of any user name and password to work along with various other resources in AWS.

Question: What are the edge locations in AWS?

Answer: Edge locations in AWS are referred to as the area where the contents will be cached. When a user tries to access any content than in such case the content automatically searches for the edge location.

Question: What is the full form of VPC? Explain VPC?

Answer: The full form of VPC is Virtual Private Cloud. VPC helps in customizing the network configuration process. It acts as a network that is logically isolated from various other networks in the cloud. VPC allows the users to have their IP address range, security groups, subnet and internet gateways.

Question: What is a Snowball in AWS?

Answer: A Snowball in AWS is a data transport option. It uses the source appliances to a large amount of data for getting into and out of AWS. Snowball can be used for the transfer of massive data from one place to another. It also helps in reducing networking costs.

Question: What is Redshift in AWS?

Answer: Redshift in AWS is a big data warehouse product that is fast and powerful enough to manage data warehouse service in the cloud.

Question: Define Subnet in AWS?

Answer: Subnet in AWS is referred to as the large section of IP Address which is divided into chunks. We can have 200 subnets per VPC.

Question: What is SQL in AWS?

Answer: SQL stands for Simple Queues Services that offers a distributed queuing service that acts as a mediator for two controllers.

Question: What is SimpleDB in AWS?

Answer: SimpleDB is a name given to the data repository structure record which supports data doubts and index S3 and EC2.

Question: What is Amazon ElasticCache?

Answer: Amazon ElasticCache is a web service that helps in easy deployment, scaling, and storing of data in the cloud.

Question: What is AWS Lambda?

Answer: AWS Lambda is a computing service offered by Amazon to run code in the AWS cloud without managing the servers.

Question: What is Amazon EMR?

Answer: Amazon EMR is a survived cluster stage that helps in interpreting the working of the different data structures before the intimation. The various components of Amazon EMR are Apache Hadoop, Apache Spark, Apache Hive and various others. They help in investigating a large amount of data, prepare data analytic goals and market intellect workloads using open-source designs.

Question: Please explain the difference between stopping and terminating an instance.

Answer: Both stopping and terminating are states in an EC2 instance:

  • Stopping – As soon as an instance is stopped, it performs a normal shutdown and transitions to a stopped state. You can start the instance at a later time and all of its Amazon EBS volumes remain attached. While the instance is in a stopped state, no additional instance hours are incurred.
  • Terminating – As soon as an instance is terminated, it performs a normal shutdown and transitions to the terminated state. The attached Amazon EBS volumes are deleted, save for the case when the volume’s deleteOnTermination attribute is set to false. As the instance itself is deleted, it is not possible to start the instance again at some later time.

Advance AWS Interview Questions

Question: How will you use the processor state control feature available on the c4.8xlarge instance?

Answer: The processor state control has 2 states, namely:

  • The C State – Represents sleep state. Varies from c0 to c6, where c6 is the deepest sleep state for a processor.
  • The P State – Represents performance state. Varies from p0 to p15, where p15 is the lowest possible frequency.

A processor has multiple cores, and each of them requires thermal headroom for gaining a boost in performance. Hence, the temperature needs to be kept at an optimal level so that the cores can perform at their highest.

When a core is put into the sleep state then it results in a reduction of the overall temperature of the processor. This gives an opportunity to other cores for giving out a better performance. Hence, a strategy can be devised by properly putting some cores to sleep and others in a performance state to get an overall performance boost from the processor.

Instances like the c4.8xlarge allow customizing the C and P states for customizing the processor performance according to the workload.

Question: Which instance type can be used for deploying a 4 node cluster of Hadoop in AWS?

Answer: While the c4.8xlarge instance will be preferred for the master machine, the i2.large instance seems fit for the slave machine. Another way is to launch the Amazon EMR instance that automatically configures the servers.

Hence, you need not deal with manually configuring the instance and installing Hadoop cluster while using Amazon EMR instance. Simply dump the data to be processed in S3. EMR picks it up from there, processes the same, and then dumps it back into S3.

Question: Can you differentiate between a Spot instance and an On-Demand instance?

Answer: Both spot instances and on-demand instances are pricing models. A spot instance allows customers to purchase compute capacity with no upfront commitment. Moreover, the hourly rates for a spot instance are usually lower than what has been set for on-demand instances.

The bidding price for a spot instance is known as the spot price. It fluctuates based on the supply and demand for spot instances. In case the spot price gets higher than a customer’s maximum specified price, the EC2 instance will shut down automatically.

Question: Please enumerate some of the best practices to enhance security in Amazon EC2.


  • Allow only trusted hosts or networks to access ports on your instance
  • Control access to the AWS resources with AWS Identity and Access Management (IAM)
  • Disable password-based logins for instances launched from the AMI
  • Frequently review rules in the security groups

Question: Is it possible to use Amazon S3 with EC2 instances? Please elaborate.

Answer: Yes, it is possible to use Amazon S3 with EC2 instances. It can be used for instances with root devices backed by the local instance storage. Amazon provides an array of tools to load the AMIs into Amazon S3 and to move them amongst Amazon S3 and Amazon EC2 instances.

With Amazon S3, AWS developers enjoy accessing the same highly fast, reliable, inexpensive, and scalable data storage infrastructure used by Amazon to operate its very own global network of websites and services.

Question: How will you speed up data transfer in Amazon Snowball?

Answer: Data transfer in Amazon Snowball can be enhanced by:

  • Copying from different workstations to the same snowball
  • Creating a batch of small files or transferring large files for reducing the encryption overhead
  • Eliminating needless hops
  • Performing multiple copy operations simultaneously

Question: Can you explain the difference between Amazon RDS and Amazon DynamoDB?

Answer: Amazon RDS is a database management service for relational databases. It allows automating several relational database-related operations like backup, patching, and upgrading. The service deals with structured data only.

Amazon DynamoDB, on the other hand, is a NoSQL database service. Contrary to the Amazon RDS, it deals with unstructured data only. Check out this detailed explanation on NoSQL vs SQL to know more about the important differences between SQL and NoSQL databases.

Question: What AWS services will you choose to collect and process eCommerce data for real-time analysis?

Answer: DynamoDB will be appropriate for collecting eCommerce data as it will be an unstructured form of data. Real-Time analysis of the collected eCommerce data can be carried out using Amazon Redshift.

Question: Could you tell us what happens to the backups and DB Snapshots if a DB instance is deleted?

Answer: While deleting a DB instance, there is an option for creating a final DB snapshot. It can be used later for restoring the database.

The Amazon RDS retains the user-created DB snapshot alongside other manually-created DB snapshots once the instance is deleted. All automated backups are deleted along with the instance.

Question: How will you load data to Amazon Redshift from different data sources such as Amazon EC2, DynamoDB, and Amazon RDS?

Answer: There are two ways of loading data to Amazon Redshift from different data sources, namely:

  1. Using the AWS Data Pipeline – Offers high performance, fault-tolerant, and reliable way of loading data from a range of AWS data sources. It allows specifying the data source, required data transformations, and then execute a pre-written import script for loading data
  2. Using the COPY command – Load data in parallel directly from Amazon DynamoDB, Amazon EMR, or any other SSH-enabled host

Question: Can you explain how elasticity differs from scalability?

Answer: The ability of a system to handle an increase in the workload by simply adding hardware resources when the demand rises and also rolling back the scaled resources when there is no longer a need for the same is known as elasticity.

Scalability, on the other hand, is the ability of a system to increase the hardware resources for handling an increase in demand. It can be achieved by either increasing the hardware specs or increasing the processing nodes.

Question: What do you understand by Connection draining?

Answer: Connection draining is responsible for re-routing the traffic from instances that are either to be updated or fails during a health check to other, available instances. It is an ELB service that continuously monitors the health of instances.

Question: Suppose a user has set up an Auto Scaling group but due to some reason the group fails to launch a single instance for over 24 hours. In this condition, what will happen to Auto Scaling?

Answer: In such a case, the Auto Scaling will suspend the scaling process. The Auto Scaling feature allows suspending and resuming one or many Auto Scaling processes belonging to the Auto Scaling group.

The Auto Scaling feature is immensely useful when a web application needs to be investigated for a configuration or some other issue.

Question: How will you transfer an existing domain name registration to Amazon Route 53 without disrupting the extant web traffic?


  • Get a list of DNS record data for the domain name. It is typically available in the form of a zone file that can be gained from the extant DNS provider.
  • After receiving the DNS record data, use the Route 53 Management Console or the simple web-services interface for creating a hosted zone for storing the DNS records for the domain name and continue the transfer process. Here, you can also include other non-essential steps such as updating nameservers for the domain name to the ones associated with the hosted zone.
  • Contact the registrar with whom you have registered the domain name and then follow the transfer process. The DNS queries will start getting answered as soon as the registrar propagates the new name server delegations.

Question: What are the ideal cases for using the Classic Load Balancer and the Application Load Balancer?

Answer: The Classic Load Balancer is the befitting option for simple load balancing of traffic across several EC2 instances.

On the contrary, the Application Load Balancer is suitable for container-based or microservices architecture where there is either a requirement for routing traffic to different services or carrying out load balancing across multiple ports on the same EC2 instance.

Question: Can you explain how does the AWS Elastic Beanstalk apply updates?

Answer: Before updating the original instance, AWS Elastic Beanstalk readies a duplicate copy of the instance. Thereafter, it routes the traffic to the duplicate instance so as to avoid a scenario where the update application fails.

In case there is a failure in the update process, the AWS Elastic Beanstalk will switch back to the original instance using the very same duplicate copy it created before beginning the update process.

Question: Please explain what happens if an application stops responding to requests in AWS Elastic Beanstalk.

Answer: Even though the underlying infrastructure appears healthy, Beanstalk is able to detect if the application isn’t responding on the custom link. It then logs the situation as an environmental event, which can then be checked in detail and thus, acted upon.

AWS Elastic Beanstalk apps have a built-in system for avoiding underlying infrastructure failures. The Beanstalk uses the Auto Scaling feature to automatically launch a new instance in case an Amazon EC2 instance fails.

Question: How is the AWS CloudFormation different from AWS OpsWorks?

Answer: Although both AWS CloudFormation and AWS OpsWorks provide support for application modeling, deployment, configuration, and management activities, the two differ in terms of the abstraction level and the areas of focus.

AWS CloudFormation is a building block service that allows managing almost any AWS resource via JSON-based domain-specific language. Even without prescribing a distinct model for development and operations, CloudFormation offers foundational capabilities for the AWS.

With AWS CloudFormation, customers can define templates and then use the same to the provision as well as manage AWS application code, resources, and operating systems.

AWS OpsWorks, on the other hand, is a high-level service focusing on providing a highly reliable and productive DevOps experience for IT admins and ops-oriented developers.

OpsWorks features a configuration management model and offers integrated experiences for activities like auto-scaling, automation, deployment, and monitoring.

Compared to CloudFormation, OpsWorks provides support for less number of application-oriented AWS resource types, including Amazon CloudWatch metrics, EBS volumes, EC2 instances, and Elastic IPs.

Question: Can you tell us what happens when one of the resources in a stack can’t be created successfully in AWS OpsWorks?

Answer: The automatic rollback on error feature is enabled when one of the resources in a stack can’t be created successfully in AWS OpsWorks. The feature results in the deletion of all the successfully created AWS resources until the point of the occurrence of the error.

Doing so ensures that no error-causing data is left behind as well as abiding by the principle that the stacks are either created completely or not created at all.

The automatic rollback on error feature is useful especially in cases where one might unknowingly exceed the limit of the total number of Elastic IP addresses or does not have access to the EC2 AMI.


That sums up the list of top AWS interview questions list. These will surely help you tighten up your AWS interview preparation.

Here, sharing with you a list of AWS interview questions that will prepare you for an upcoming AWS Interview: Rocking AWS CloudFormation, CDK with DevOps, Interview Guide.

We would also suggest you buy this book to successfully crack an AWS interview: Winning Approach to Amazon Interview: How to Become Amazonian.

Do you have some other AWS queries not covered in the list? Ask us via the dedicated comments window below. We’ll try our best to provide you with a relevant answer. Also, don’t forget to check out these best AWS tutorials to refine and enhance your AWS knowledge.

People are also reading:

Vijay Singh

Vijay Singh

My name is Vijay Singh Khatri, and I enjoy meeting new people and finding ways to help them have an uplifting experience. I have had a variety of customer service opportunities, through which I was able to have fewer returned products and increased repeat customers, when compared with co-workers. Currently working with View all posts by the Author

Leave a comment

Your email will not be published
Angel Stevens
Angel Stevens

What is t2 in AWS?

Marta Horton
Marta Horton

T2 instances are a new low-cost, General Purpose instance type that are designed to provide a baseline level of CPU performance with the ability to burst above the baseline. ... T2 instances are for workloads that don't use the full CPU often or consistently, but occasionally need to burst to higher CPU performance.

Marion Briggs
Marion Briggs

What is the AWS graviton processor?

Marvin Garza
Marvin Garza

AWS Graviton processors are custom-built by Amazon Web Services using 64-bit Arm Neoverse cores to deliver the best price-performance for your cloud workloads running in Amazon EC2.

Jerald Gibson
Jerald Gibson

What is paravirtualization ideal for?

Maryann Davis
Maryann Davis

Paravirtualization is ideal for migration capacity or data replication. It is an enhancement of virtualization technology in which a guest OS is modified so that it knows that it is running in a virtualized environment on top of a hypervisor as opposed to on top of native physical resources.

Juan Gill
Juan Gill

How many types of instances are there in AWS?

Patrick Barnett
Patrick Barnett

Amazon EC2 provides a total of 8 families of instance types that are classified according to their use cases. Instance types comprise varying combinations of CPU, memory, storage, and networking capacity to give the client the flexibility to choose the appropriate mix of resources for your applications.

Ernesto Bowen
Ernesto Bowen

How does an EC2 instance get its IAM access key and secret key?

Rebecca Hunt
Rebecca Hunt

Access keys are long-term credentials for an IAM user or the AWS account root user. You can use access keys to sign programmatic requests to the AWS CLI or AWS API (directly or using the AWS SDK). As a best practice, use temporary security credentials (IAM roles) instead of access keys, and disable any AWS account root user access keys. If you still need to use long-term access keys, you can create, modify, view, or rotate your access keys (access key IDs and secret access keys). You can have a maximum of two access keys. This allows you to rotate the active keys according to best practices.

Wayne Bridges
Wayne Bridges

What is an SQS dead-letter queue (DLQ) What are some differences between EKS, ECS, and Fargate?

Susie Paul
Susie Paul

Dead Letter Queue – The ARN (Amazon Resource Name) of an SQS queue that will receive the messages which were not successfully processed after the maximum number of receives by consumers.
ECS has two launch types that can define how computing resources will be managed. The traditional EC2 launch type detailed in the overview above utilizes your own EC2 instances. ... Fargate eliminates the need to manage servers but also puts a requirement of your Task definitions to be stateless.

Irving Marshall
Irving Marshall

What is the importance of buffer in Amazon Web Services?

Lela Simpson
Lela Simpson

An Elastic Load Balancer ensures that the incoming traffic is distributed optimally across various AWS instances. A buffer will synchronize different components and makes the arrangement additional elastic to a burst of load or traffic.

Jeremy Parker
Jeremy Parker

How can you send a request to Amazon S3?

Kimberly Montgomery
Kimberly Montgomery

You can send requests to Amazon S3 using the REST API or the AWS SDK (see Sample Code and Libraries ) wrapper libraries that wrap the underlying Amazon S3 REST API, simplifying your programming tasks. Every interaction with Amazon S3 is either authenticated or anonymous.

Eloise Fernandez
Eloise Fernandez

What is AMI?

Jeannette Maldonado
Jeannette Maldonado

An Amazon Machine Image (AMI) provides the information required to launch an instance. You must specify an AMI when you launch an instance. You can launch multiple instances from a single AMI when you need multiple instances with the same configuration. You can use different AMIs to launch instances when you need instances with different configurations.

Esther Francis
Esther Francis

What the key components of AWS are?

Abel Reed
Abel Reed

Route 53: A DNS web service
Simple E-mail Service: It allows sending e-mail using RESTFUL API call or via regular SMTP
Identity and Access Management: It provides enhanced security and identity management for your AWS account
Simple Storage Device or (S3): It is a storage device and the most widely used AWS service
Elastic Compute Cloud (EC2): It provides on-demand computing resources for hosting applications. It is very useful in case of unpredictable workloads
Elastic Block Store (EBS): It provides persistent storage volumes that attach to EC2 to allow you to persist data past the lifespan of a single EC2…
CloudWatch: To monitor AWS resources, It allows administrators to view and collect key Also, one can set a notification alarm in case of trouble.