AWS Basic Interview Questions
AWS Basic Interview Questions
AWS Basic Interview Questions
1. What is EC2?
EC2, a Virtual Machine in the cloud on which you have OS-level control. You can
run this cloud server whenever you want and can be used when you need to deploy
your own servers in the cloud, similar to your on-premises servers, and when you
want to have full control over the choice of hardware and the updates on the
machine.
2. What is SnowBall?
SnowBall is a small application that enables you to transfer terabytes of data inside
and outside of the AWS environment.
AWS Snowball
3. What is CloudWatch?
CloudWatch helps you to monitor AWS environments like EC2, RDS Instances, and
CPU utilization. It also triggers alarms depending on various metrics.
AWS Cloudwatch
You can download a PDF version of Aws Interview Questions.
Download PDF
Elastic Transcoder is an AWS Service Tool that helps you in changing a video’s
format and resolution to support various devices like tablets, smartphones, and
laptops of different resolutions.
VPC stands for Virtual Private Cloud. It allows you to customize your networking
configuration. VPC is a network that is logically isolated from other networks in the
cloud. It allows you to have your private IP Address range, internet gateways,
subnets, and security groups.
6. DNS and Load Balancer Services come under which type of Cloud
Service?
Key-Pairs are secure login information for your Virtual Machines. To connect to the
instances, you can use Key-Pairs which contain a Public Key and a Private Key.
S3 stands for Simple Storage Service. You can use the S3 interface to store and
retrieve any amount of data, at any time and from anywhere on the web. For S3, the
payment model is “pay as you go”.
13. How does Amazon Route 53 provide high availability and low
latency?
Amazon Route 53 uses the following to provide high availability and low latency:
Amazon Route
As can be seen in the above image, the requests coming from a user in India are
served from the Singapore Server, while the requests coming from a user in the US
are routed to Oregon region.
Amazon S3 is a REST Service, and you can send a request by using the REST API or
the AWS SDK wrapper libraries that wrap the underlying Amazon S3 REST API.
Compute Optimized
Memory-Optimized
Storage Optimized
Accelerated Computing
General Purpose
17. What is the relation between the Availability Zone and Region?
This setup helps your services to be more available as you can place your VMs in
different data centers within an AWS Region. If one of the data centers fails in a
Region, the client requests still get served from the other data centers located in
the same Region. This arrangement, thus, helps your service to be available even if
a Data Center goes down.
CloudWatch
VPC Flow Logs
19. What are the different types of EC2 instances based on their
costs?
Spot Instance - These types of instances can be bought through the bidding
model. These are comparatively cheaper than On-Demand Instances.
Reserved Instance - On AWS, you can create instances that you can reserve for a
year or so. These types of instances are especially useful when you know in advance
that you will be needing an instance for the long term. In such cases, you can create
a reserved instance and save heavily on costs.
Stopping an EC2 instance means to shut it down as you would normally do on your
Personal Computer. This will not delete any volumes attached to the instance and
the instance can be started again when needed.
21. What are the consistency models for modern DBs offered by
AWS?
Eventual Consistency - It means that the data will be consistent eventually, but
may not be immediate. This will serve the client requests faster, but chances are
that some of the initial read requests may read the stale data. This type of
consistency is preferred in systems where data need not be real-time. For example,
if you don’t see the recent tweets on Twitter or recent posts on Facebook for a
couple of seconds, it is acceptable.
Strong Consistency - It provides an immediate consistency where the data will be
consistent across all the DB Servers immediately. Accordingly. This model may take
some time to make the data consistent and subsequently start serving the requests
again. However, in this model, it is guaranteed that all the responses will always
have consistent data.
It also allows you to provide access to the resources to users and applications
without creating the IAM Roles, which is known as Federated Access.
When you create an instance in AWS, you may or may not want that instance to be
accessible from the public network. Moreover, you may want that instance to be
accessible from some networks and not from others.
Security Groups are a type of rule-based Virtual Firewall using which you can
control access to your instances. You can create rules defining the Port Numbers,
Networks, or protocols from which you want to allow access or deny access.
When AWS creates EC2 instances, there are some blocks of computing capacity and
processing power left unused. AWS releases these blocks as Spot Instances. Spot
Instances run whenever capacity is available. These are a good option if you are
flexible about when your applications can run and if your applications can be
interrupted.
On the other hand, On-Demand Instances can be created as and when needed. The
prices of such instances are static. Such instances will always be available unless you
explicitly terminate them.
On the other hand, a Stateless Firewall requires you to explicitly define rules for
inbound as well as outbound traffic.
For example, if you allow inbound traffic from Port 80, a Stateful Firewall will allow
outbound traffic to Port 80, but a Stateless Firewall will not do so.
An Administrator User will be similar to the owner of the AWS Resources. He can
create, delete, modify or view the resources and also grant permissions to other
users for the AWS Resources.
An Instance Store Volume is temporary storage that is used to store the temporary
data required by an instance to function. The data is available as long as the
instance is running. As soon as the instance is turned off, the Instance Store Volume
gets removed and the data gets deleted.
On the other hand, an EBS Volume represents a persistent storage disk. The data
stored in an EBS Volume will be available even after the instance is turned off.
30. What are Recovery Time Objective and Recovery Point Objective
in AWS?
Recovery Time Objective - It is the maximum acceptable delay between the
interruption of service and restoration of service. This translates to an acceptable
time window when the service can be unavailable.
Recover Point Objective - It is the maximum acceptable amount of time since the
last data restore point. It translates to the acceptable amount of data loss which lies
between the last recovery point and the interruption of service.
31. Is there a way to upload a file that is greater than 100 Megabytes
in Amazon S3?
Yes, it is possible by using the Multipart Upload Utility from AWS. With the
Multipart Upload Utility, larger files can be uploaded in multiple parts that are
uploaded independently. You can also decrease upload time by uploading these
parts in parallel. After the upload is done, the parts are merged into a single object
or file to create the original file from which the parts were created.
32. Can you change the Private IP Address of an EC2 instance while it
is running or in a stopped state?
Lifecycle hooks are used for Auto-scaling to put an additional wait time to a scale-
in or a scale-out event.
34. What are the policies that you can set for your user’s passwords?
Following are the policies that can be set for user’s passwords:
Useful Resources
https://www.interviewbit.com/terraform-interview-questions/
https://www.interviewbit.com/technical-interview-questions/
AWS MCQ
1.
Better Availability
Fault Tolerance
Better Cost Management
All of the above
3.
Which of the following is a structured data store that supports indexing and data
queries to both EC2 and S3?
CloudWatch
Amazon SimpleDB
Amazon CloudFront
All of the above
7.
Sticky Sessions
Fault Tolerance
Connection Draining
None of the above
8.
Suppose a subnet is created and an EC2 instance is launched in the subnet with
default settings. Which of the following options will be ready to use on the EC2
instance as soon as it is launched?
Elastic IP
Private IP
Public IP
Internet Gateway
9.
Can you change the instance type of the instances that are running in your
application tier and also using auto-scaling?
Where does a user specify the maximum number of instances with the auto-scaling
commands?
Auto-Scaling Policy Configuration
Auto-Scaling Group
Auto-Scaling Tags Configuration
Auto-Scaling Launch Configuration