AWS Interview
AWS Interview
AWS Interview
rit
AWS Basic Interview Questions
te
n
by
Q1. What is AWS?
G
Ans. AWS is a cloud computing service offered by Amazon. AWS lets
ay
you build, test, deploy and manage applications and services. All this
at
is done via the data-centers and the hardware managed by Amazon.
hr
AWS provides you a combination of Infrastructure-as-a-Service (IaaS),
iG
Platform-as-a-Service (PaaS), and Software-as-a-Service (SaaS)
offerings.
D
You can use AWS to create Virtual Machines which can be armed with
processing power, storage capacity, and analytics along with networking and
device management. AWS offers you a pay-as-you-go model, which helps to
avoid upfront costs and pay based on the usage monthly.
te
n
by
G
ay
at
hr
iG
D
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.
W
rit
Q8. What is auto-scaling?
te
n
Ans. Auto-scaling a function that allows you to provision and launch new
by
instances whenever there is a demand. It allows you to automatically increase
G
or decrease resource capacity in relation to the demand.
ay
at
Q9. How do you upgrade or downgrade a system with near-
hr
zero downtime?
iG
Ans. You can upgrade or downgrade a system with near-zero downtime using
D
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
W
rit
that it enables you to configure it to send notifications via AWS SNS when new
te
logs are delivered.
n
by
AWS Config
G
ay
This helps you understand the configuration changes that happen in your
at
environment. This service provides an AWS inventory that includes
hr
configuration history, configuration change notification, and relationships
iG
between AWS resources. It can also be configured to send information via AWS
SNS when new logs are delivered.
D
Q11. What are the different types of virtualization in AWS, and
what are the differences between them?
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.
W
rit
te
n
by
G
ay
at
hr
iG
Q13. What is the difference between stopping and terminating
D
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.
te
n
1.Go to your PuTTY Configuration
by
2.Go to the category SSH -> Auth
G
ay
3.Enable SSH agent forwarding to your instance
at
hr
iG
Q16. How do you configure CloudWatch to recover an EC2
D
instance?
Ans. Follow the steps provided below to recover an EC2 instance if you have
lost the key:
te
demand and supply, transparency, and others.
n
by
Workforce Productivity
G
Cost avoidance
ay
Operational resilience
at
hr
Business agility
iG
D
Q19. What is the importance of buffer in Amazon Web
Services?
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
W
rit
Q22. When should you use the classic load balancer and the
te
application load balancer?
n
by
Ans. The classic load balancer is used for simple load balancing of traffic across
multiple EC2 instances.
G
ay
While, the application load balancing is used for more intelligent load
at
balancing, based on the multi-tier architecture or container-based architecture
hr
of the application. Application load balancing is mostly used when there is a
iG
need to route traffic to multiple services.
D
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
W
rit
Q27. Which Amazon solution will you use if you want to
te
accelerate moving petabytes of data in and out of AWS, using
n
storage devices that are designed to be secure for data
by
transfer?
G
ay
Ans. Amazon Snowball. AWS Snowball is the data transport solution for large
at
amounts of data that need to be moved into and out of AWS using physical
hr
storage devices.
iG
Q28. If you are running your DB instance as Multi-AZ
deployment, can you use standby DB instances along with
D
your primary DB instance?
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.
te
to introduce a new policy that will affect the access
n
permissions of an IAM user. How can it implement this without
by
having to apply the policy at the individual user level?
G
Ans. It is possible using IAM groups, by adding users in the groups as per their
ay
roles and by simply applying the policy to the groups.
at
hr
iG
Q32. You have an application running on your Amazon EC2
instance. You want to reduce the load on your instance as
D
soon as the CPU utilization reaches 100 percent. How will you
do that?
Ans. It can be done by creating an autoscaling group to deploy more instances
when the CPU utilization exceeds 100 percent and distributing traffic among
instances by creating a load balancer and registering the Amazon EC2
instances with it.