AWS Interview Questions and Answers

Thumb

Author

BIQ

Questions

31

Last updated

Mar 7, 2022

AWS or Amazon Web Services is one most advanced, globally renowned and secure cloud service platform which offers content delivery, database storage, compute power and a wide range of other internet-based services. The platform gives developers the flexibility to select any programming environment or development platform according to their preference. All the popular AWS interview questions and answers have been put together which will be handy if you want to crack an interview. Master your AWS knowledge with a below-mentioned set of renowned tech interviewer handpicked AWS interview questions and suggested answers for them.

Advantages of AWS

  • Easy to use application hosting platform
  • Freedom to select the operating system, application platform, programming language, database, and other services as pre preference
  • Highly cost-efficient solution
  • Excellently scalable and high performance
  • End to end approach for secure and harden infrastructure

Most Frequently Asked AWS Interview Questions

Here in this article, we will be listing frequently asked AWS Interview Questions and Answers with the belief that they will be helpful for you to gain higher marks. Also, to let you know that this article has been written under the guidance of industry professionals and covered all the current competencies.

Q1. What is AWS and how does it work?
Answer

Simplified, AWS of Amazon Web Service is a wide range of advanced cloud computing applications which allows users to lease Amazon’s servers instead of purchasing their own. This makes storing a large amount of data and running applications faster, cheaper and more comfortable. AWS owns network-connected hardware required for application services, while users provision and utilize as per their requirements via various web applications.

Q2. What is the purpose of AWS?
Answer
  • To operate application and web servers in the cloud for dynamic web hosting.
  • Large and secure cloud-based platform to store files and easy access them anywhere and anyplace.
  • Use of most advanced and popular databases such as Oracle, PostgreSQL, SQL Server or MySQL to store user preferred information.
  • Quick delivery of dynamic and static files around the globe using CDN – Content Delivery Network.
  • Deliver user-specified services only
  • Bulk email sending to customers.
Q3. What is the advantage and disadvantage of cloud computing?
Answer
S.no Advantages Disadvantages
1. Cost efficient option Vulnerability to online attacks
2. Excellent accessibility Dependency on network connectivity
3. Easy backup and data restoration Vendor lock-in
4. Strategic edge Limited control
5. Quick and efficient manageability Downtime
6. Sporadic batch processing  
Q4. What are the components of VPC?
Answer
Here is the list of components present in VPC:
  • Network Interfaces
  • Internet Gateways
  • DHCP Options Sets
  • Route Tables
  • Egress-Only Internet Gateways
  • DNS
  • VPC Endpoints
  • Elastic IP Addresses
  • VPC Peering
  • ClassicLink
  • NAT
Q5. How do I connect to Amazon s3?
Answer
To connect to Amazon S3, we have to follow these below-mentioned steps:
  • Get the login credentials from Amazon Portal –Access Credentials web page.
  • Then, open a new connection
  • Go to menu –File –Connection
  • Now select the S3 protocol
  • After that select Amazon S3
  • Enter the previously obtained username and password
  • Finally, click OK to connect
Q6. What is the max size of an object that can be uploaded through the s3 console?
Answer

The individual objects that can be uploaded through the s3 console can range from 0 bytes to a maximum limit of 5 terabytes, whereas the most massive object that can be uploaded in a single PUT is 5 gigabytes. Customers have to use Multipart Upload capability to upload an object more significant than 100 megabytes.

Q7. How to connect to VPC in different regions?
Answer
Q8. How many security groups are there in VPC?
Answer
Q9. What is scalability AWS?
Answer

In AWS, scalability is a system able to increase the workload on its current hardware resources. It accommodates larger loads by adding resources either by adding additional nodes or making hardware stronger.

Q10. How do I enable auto-scaling in AWS?
Answer
To set up auto-scaling in AWS, follow these steps:
  • Access EC2 console and select Launch Configuration from Auto Scaling
  • Choose AMI and select Amazon Machine Image present in My AMIs tab
  • Choose the type of the instance and click configure details
  • Now name the configuration
  • Add storage and security groups
  • Click on Create launch configuration
Q11. What is ec2 in AWS?
Answer

EC2 or Elastic Compute Cloud is a web-based service that permits businesses to run application programs in the Amazon Web Services public cloud. The service is specially designed to make web-scale cloud computing easier for developers. It also allows developers to obtain as well as configure capacity with minimal friction.

Q12. What does s3 stand for in AWS?
Answer

Amazon S3 stands for Amazon Simple Storage Service which is an Amazon Web Services offered simple storage service and offers object storage through a web service interface.

Q13. What is AMI and how to create an AWS AMI?
Answer

AMI or Amazon Machine Image is a virtual appliance particular type, used to instantiate a virtual machine within Amazon EC2 or Amazon Elastic Compute Cloud. AMI serves as the basic deployment unit for services delivered using EC2.

Q14. What is the difference between snapshot and AMI?
Answer
S.no Snapshot AMI
1. A snapshot of the file system that user able to mount to an EC2 instance. It’s a pre-built image of the server that users can deploy to EC2.
2. Holds only data that has changed since the previous snapshot. When AMI is created, it holds a partial record of the volume.
Q15. What is lifecycle hook in AWS?
Answer

In AWS, the lifecycle hook is a feature included in the auto scaling which helps to control instance launch and termination state within the auto scaling group. It remains in a waiting mode for a certain amount of time when the instance is paused. We can create lifecycle hooks by using the command

put-lifecycle-hook. Lifecycle hooks are also customizable with various actions such as by defining a target notification for the lifecycle hook, creating an instance running script as the instance starts or determining a CloudWatch Event target to invoke functions associated with the Lambda when the lifecycle action occurs.

Q16. What is lambda and why AWS lambda is used?
Answer

AWS Lambda is an advance compute service that lets users run code without managing or provisioning servers. Users can also build here serverless applications which are composed of functions and triggered by events and automatically deployed using AWS CodeBuild and CodePipeline. The AWS Lambda is used to:

  • Build on-demand and smaller applications which are responsive to events and new information.
  • Support native Linux executables operate securely by calling them out from a supported runtime.
  • Execute code in response to triggers.
  • Real time file and stream processing.
  • Perform data sorting, filtering, validation and other changes for data in a DynamoDB table and then load them to another data store.
Q17. What is Amazon CloudFront used for?
Answer

Amazon CloudFront is an advanced content delivery network offered by AWS which provide a globally-distributed network of proxy servers that cache content such as web videos and another type of big media, locally to consumers. This exceptionally improves the access speed for downloading the content for users.

Q18. What is Load Balancer and how it works in AWS?
Answer

In AWS, the load balancer improves responsiveness and exceptionally increases the availability of applications. It sits between server firm and client accepting application traffic, incoming network and distributing that traffic across multiple backend servers with the help of various methods. It agrees with the client’s incoming traffic and routes requests to the registered targets in availability zones. The load balancer also reviews the health of registered marks and makes sure that the traffic should only be routed to useful destinations.

Q19. How to create a classic load balancer in AWS?
Answer
Follow the below mentioned steps to create a classic load balancer:
  • Select a load balancer type
  • Define that load balancer
  • Now assign security groups to that load balancer in VPC
  • Then configure health checks for EC2 instances
  • Continue with a registeringEC2 instance with a load balancer
  • Tag the load balancer
  • Now create and verify that load balancer to finish the proces
Q20. What is RDS in AWS?
Answer

Amazon RDS or Amazon Relational Database Service is a web-based service which helps users for cloud-based relational database setup, operation, and scale. It offers excellent resizable capacity and cost efficient for a relational database which is industry stranded and also manages common database administration tasks.

Q21. What is AWS subnet?
Answer
Q22. How do I create a subnet on AWS?
Answer
Q23. What is an Elastic IP in AWS?
Answer
Q24. How do I create an elastic IP on AWS?
Answer
Q25. What happens to your data when an ec2 instance is terminated?
Answer
Q26. What is Route propagation in AWS?
Answer
Q27. What is t2 in AWS?
Answer
Q28. Can we change the instance type in AWS?
Answer
Q29. What is the difference between AWS and ec2?
Answer
Q30. Explain the difference between Amazon EBS and s3?
Answer
Q31. What is ElastiCache used for?
Answer