AWS Basic Interview Questions
AWS Basic Interview Questions
Q6. Define and explain the three basic types of cloud services
and the AWS products that are built based on them?
Computing
Storage
Networking
Here are some of the AWS products that are built based on the three cloud
service types:
Storage - These include S3, Glacier, Elastic Block Storage, Elastic File System.
Ans. CloudWatch helps you to monitor AWS environments like EC2, RDS
Instances, and CPU utilization. It also triggers alarms depending on various
metrics.
Q8. What is auto-scaling?
Ans. Auto-scaling a function that allows you to provision and launch new
instances whenever there is a demand. It allows you to automatically increase
or decrease resource capacity in relation to the demand.
Ans. You can upgrade or downgrade a system with near-zero downtime using
the following steps of migration:
Install applications
If working, deploy the new instance and replace the older instance
Once it’s deployed, you can upgrade or downgrade the system with near-
zero downtime.
Most of the AWS services have their logging options. Also, some of them have
an account level logging, like in AWS CloudTrail, AWS Config, and others. Let’s
take a look at two services in specific:
AWS CloudTrail
This is a service that provides a history of the AWS API calls for every account.
It lets you perform security analysis, resource change tracking, and compliance
auditing of your AWS environment as well. The best part about this service is
that it enables you to configure it to send notifications via AWS SNS when new
logs are delivered.
AWS Config
This helps you understand the configuration changes that happen in your
environment. This service provides an AWS inventory that includes
configuration history, configuration change notification, and relationships
between AWS resources. It can also be configured to send information via AWS
SNS when new logs are delivered.
It is a fully virtualized hardware, where all the virtual machines act separate
from each other. These virtual machines boot by executing a master boot
record in the root block device of your image.
Paravirtualization (PV)
Paravirtualization on HVM
Q12. What are the differences between NAT Gateways and NAT
Instances?
Ans. While both NAT Gateways and NAT Instances serve the same function,
they still have some key differences.
Q13. What is the difference between stopping and terminating
an EC2 instance?
While you may think that both stopping and terminating are the same, there is
a difference. When you stop an EC2 instance, it performs a normal shutdown on
the instance and moves to a stopped state. However, when you terminate the
instance, it is transferred to a stopped state, and the EBS volumes attached to
it are deleted and can never be recovered.
On-demand Instance
It is cheap for a short time but not when taken for the long term
Spot Instance
It is less expensive than the on-demand instance and can be bought through
bidding.
Reserved Instance
If you are planning to use an instance for a year or more, then this is the
right one for you.
Ans. Follow the steps provided below to recover an EC2 instance if you have
lost the key:
Workforce Productivity
Cost avoidance
Operational resilience
Business agility
Ans. 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 additionally elastic to a burst of load
or traffic. The components are prone to work in an unstable way of receiving
and processing requests. The buffer creates an equilibrium linking various
apparatus and crafts them work at an identical rate to supply more rapid
services.
Ans. 100
Q22. When should you use the classic load balancer and the
application load balancer?
Ans. The classic load balancer is used for simple load balancing of traffic across
multiple EC2 instances.
While, the application load balancing is used for more intelligent load
balancing, based on the multi-tier architecture or container-based architecture
of the application. Application load balancing is mostly used when there is a
need to route traffic to multiple services.
Q23. How many total VPCs per account/region and subnets per
VPC can you have?
Ans. 5, 200
Ans. A hybrid cloud. The hybrid cloud architecture is where an organization can
use the public cloud for shared resources and the private cloud for its
confidential workloads.
Amazon CloudFront
Q27. Which Amazon solution will you use if you want to
accelerate moving petabytes of data in and out of AWS, using
storage devices that are designed to be secure for data
transfer?
Ans. Amazon Snowball. AWS Snowball is the data transport solution for large
amounts of data that need to be moved into and out of AWS using physical
storage devices.
Ans. No, the standby DB instance cannot be used along with the primary DB
instances since the standby DB instances are supposed to be used only if the
primary instance goes down.
Ans. DynamoDB will be the right choice here since it is designed to be highly
scalable, more than RDS or any other relational database services.