AWS interview questions.

AWS interview questions.

What is AWS?

AWS stands for Amazon Web Services. It is a cloud computing platform that provides a wide range of services such as computing, storage, and database management.

What are the advantages of AWS?

The advantages of AWS include scalability, reliability, security, and cost-effectiveness.

What is the difference between S3 and EBS?

S3 is object-based storage used for storing and retrieving files, while EBS is a block-based storage used for attaching storage volumes to EC2 instances.

EBS volumes are 7 types

IOPS (io2, Block Express, io1)

General purpose SSD (gp3 and gp2)

Throughput Optimized HDD(st1) and cold HDD(sc1)

What is CloudFormation?

CloudFormation is an AWS service that enables you to create and manage AWS resources using templates.

What is a VPC?

- A VPC (Virtual Private Cloud) is a virtual network dedicated to an AWS account.

- VPCs can provide networking functionality for cloud-based resources and services.

How to set up the VPC?

VPC --1

step-1 open VPC -> step-2 create VPC -> step-3 Name tag -> step-4 Setup IPv4 CIDR block ("10.0.0.0/16")

SUBNET --2

SETP-5 create a subnet -> step-6 delete the VPC -> step-7 After selecting the vpc you get the subnet setup -> step-8 in Subnet tag -> step -9 IPv4 subnet CIDR block ("10.0.0.0/24")

Internet gateways --3

step -10 Create Internet gateways -> step -11 Name tag -> step -12 Go to Action -> Attach VPC

Route Table --4

step -13 Create a Route table -> step -14 Tag the Route table -> step -15 setup with VPC

step -16 Edit subnet associations -> select the subnet

step -17 Route -> Add Route -> 0.0.0.0/0

What is an Elastic IP address?

An Elastic IP address is a static public IP address that you can associate with your EC2 instances.

What is Auto Scaling?

Auto Scaling is an AWS service that enables you to automatically adjust the number of EC2 instances in response to changes in demand.

4 Type's of Auto Scaling:--

1- Manual scaling

2- Scheduled scaling

3- Dynamic scaling

4- Predictive scaling

1- Manual scaling

Manual scaling involves manually adjusting the number of instances or pods in response to changes in demand.

2- Scheduled scaling

Scheduled scaling allows for scaling based on a predefined schedule or time-based events.

3- Dynamic scaling

Dynamic scaling, also known as reactive scaling, automatically adjusts the number of instances or pods based on predefined conditions or metrics.

4- Predictive scaling

Predictive scaling utilizes machine learning algorithms or predictive analytics to forecast future demand and scale resources proactively.

What is CloudWatch?

CloudWatch is an AWS service that provides monitoring and logging capabilities for AWS resources.

What is a Load Balancer?

A Load Balancer is an AWS service that distributes incoming traffic across multiple EC2 instances.

There are 3 types of Load Balancer-

1-Application Load Balancer. --which allows them to make routing decisions based on application-level content, such as HTTP/HTTPS requests.

2-Network Load Balancer. -- Used in cloud computing and data centre environments to distribute incoming network traffic (at the transport layer, typically TCP/UDP) across a group of backend servers or resources

3-Gateway Load Balancer -- when you need to users deploy, scale, and manage third-party virtual appliances. that support GENEVE. These appliances enable you to improve security, compliance, and policy controls.

What is the difference between an instance and an AMI?

An instance is a running virtual machine, while an AMI (Amazon Machine Image) is a pre-configured image used for launching EC2 instances.

What is Route 53?

Route 53 is an AWS service that provides DNS (Domain Name System) management.

What is Elastic Beanstalk?

Elastic Beanstalk is an AWS service that enables you to quickly deploy and manage applications in the cloud.

What is an EC2 (Amazon Elastic Compute Cloud)instance type?

An EC2 instance (Amazon Elastic Compute Cloud) type is a combination of CPU, memory, storage, and networking resources used for running EC2 instances.

T2-nano

T2-micro

T2-small

T2-medium

T2-large

T2-xlarge

T2-2xlarge

same with T3.....

What is an S3 bucket?

An S3 bucket is a container for storing and retrieving files in S3.

What is an EBS snapshot?

An EBS snapshot is a backup of an EBS volume.

What is the difference between a public and a private subnet?

A public subnet has a route to the Internet, while a private subnet does not.

Public Subnets: These are accessible from the internet. They typically host resources that need to be openly available, like web servers, load balancers, or APIs. Public subnets have a route to the internet through a gateway, allowing inbound and outbound traffic to flow freely.

Private Subnets: These subnets aren't directly accessible from the internet. They contain resources that require a higher level of security or don't need public access. Database servers, application servers, or internal systems are often placed in private subnets. They might have limited or controlled internet access via a proxy or NAT (Network Address Translation) gateway.

What is the difference between S3 and Glacier?

S3 is used for frequently accessed data, while Glacier is used for long-term data storage and archiving.

What is a Lambda function?

A Lambda function is a serverless computing service that enables you to run code in response to events.

What is a Security Group?

A Security Group is a virtual firewall that controls inbound and outbound traffic for EC2 instances.

What is an IAM policy?

An IAM policy is a set of rules that defines the permissions granted to an IAM user, group, or role.

What is an IAM role?

An IAM role is an AWS identity that you can use to grant permissions to AWS services and resources.

What is the difference between an IAM user and an IAM role?

An IAM user represents a person or service that interacts with AWS, while an IAM role represents an AWS service or resource.

What is the difference between a public and a private IP address?

A public IP address is globally unique and can be accessed from the Internet, while a private IP address is only accessible within a VPC.

What is CloudFront?

CloudFront is an AWS service that provides content delivery network (CDN) capabilities.

What is DynamoDB?

DynamoDB is a fully managed NoSQL database service that provides high performance and scalability.

What is the difference between RDS and Aurora?

"RDS" is a managed "Relational Database Service" that supports multiple database engines, while Aurora is a highly available, MySQL and PostgreSQL-compatible database engine.

What is Redshift?

Redshift is a fully managed data warehouse service that enables you to analyze large amounts of data.

What is SES?

SES (Simple Email Service) is an AWS service that enables you to send and receive email using your own email addresses and domains.

What is Kinesis?

Kinesis is an AWS service that enables you to collect, process, and analyze real-time streaming data.

What is the difference between RDS and DynamoDB?

RDS is a relational database service, while DynamoDB is a NoSQL database service. RDS provides more advanced querying capabilities, while DynamoDB provides better scalability and performance.

What is CloudTrail?

CloudTrail is an AWS service that provides logging and auditing capabilities for AWS resources.

What is ECR?

ECR (Elastic Container Registry) is an AWS service that enables you to store, manage, and deploy Docker container images.

What is ECS?

ECS (Elastic Container Service) is an AWS service that enables you to run Docker containers on a cluster of EC2 instances.

What is Elastic File System?

Elastic File System is a scalable, fully managed NFS (Network File System) service used for storing and accessing files from multiple EC2 instances.

What is the difference between AWS and Azure?

AWS and Azure are both cloud computing platforms, but AWS has a larger market share and provides a wider range of services.

What is Elastic Transcoder?

Elastic Transcoder is an AWS service that enables you to convert media files from one format to another.

What is CloudHSM?

CloudHSM is an AWS service that provides hardware security modules (HSMs) for secure key storage and cryptographic operations.

What is KMS?

KMS (Key Management Service) is an AWS service that enables you to create and manage encryption keys for your applications.

What is CodeDeploy?

CodeDeploy is an AWS service that enables you to automate software deployments to EC2 instances or on-premises servers.

What is CodePipeline?

CodePipeline is an AWS service that enables you to build, test, and deploy your applications using a continuous delivery pipeline.

What is CloudFormation template?

A CloudFormation template is a JSON or YAML file used for defining and provisioning AWS resources.

What is the difference between on-demand and reserved instances?

On-demand instances are pay-as-you-go, while reserved instances offer a discounted hourly rate in exchange for a one-time upfront payment.