Skip to main content

Command Palette

Search for a command to run...

Mock Task

Updated
4 min readView as Markdown

EC2 + Nginx

1 launch ec2 instance

2 install nginx

3 Host static website

4

4 configure security group for http/ssh

5 Verify website using public IP

6 Restart and reload nginx

7 Explain request flow: Browser → EC2 → NGINX.

Ans :- request flow :-

1 user open browser and type public ip with port 80 f=which nginx port 44.220.131.68:80

2 browser send the request to the ec2 server

3 aws security group check that port 80 is enable or not fo this ip 44.220.131.68 of machine if yes then it then user can access the website which is hosted on nginx

8 Difference between Apache and NGINX.

Both Apache HTTP Server and Nginx are web servers — they deliver websites and apps to users.

apache :-

  • older and very popular

  • * easy to configure

  • great for share hosting

nginx:-

  • design for speed and scalibility

  • revers porxy

  • load balancer

9 Stop/start instance and verify website.

application is not running on this old address because after restart public ip address change

Disk Partitioning using FDISK

1 Attach EBS volume to EC2.

2 Verify disk using Linux commands.

3 Create partition using fdisk.

4 Format partition.

5 Mount partition.

6 Verify storage using df -h.

8 Difference between partitioning and formatting.

partitioning :- Partitioning divides a physical disk or volume into logical sections called partitions.

formatting:- Formatting creates a filesystem on a partition (or directly on a disk).

9 Difference between EBS and Instance Store.

Instance Storage:-

instance storage is in aws is default storage which comes with ec2 instance by default . if aws instance will delete this storage also delete with it.

EBS :- Ebs is a external type of storage it dosen't come with the ec2 server we need to attach it saperately is act as a external storage like we add memory card on our phone and after deleting ec2 it will not delete by default data keep safe after deleting ec2

Load Balancer + Auto Scaling

1 Launch 2 EC2 instances.

2 Configure web server on both.

3 Create Target Group.

4 Configure Application Load Balancer.

5 Create AMI and Launch Template.

7 Explain High Availability and Fault Tolerance.

Availability :- it means the system up and running most of the time , even if some component fail.

Fault Tolerance :-

the system continues operational with zero interuption.

8 Configure Auto Scaling Group.

S3 Static Website Hosting

1 Create S3 bucket.

2 Enable static website hosting.

3 Access website using endpoint URL.

4 Explain object storage.

S3 is a simple storage service used to store any type of data inn it we can store simple file m3 or mp4 here.

VPC

1 Create custom VPC.

2 Create public and private subnets.

3 Attach Internet Gateway.

4 Configure route tables.

5 Launch EC2 in public subnet.

6 Configure NAT Gateway.

7 Difference between Security Group and NACL.

security group :- a security group act as a virtual firewall fro an ec2 instance

it control inbound and outbound traffic

NACL :- a nacl act as a firewall for an entire subnet

it control traffic entring and leaving subnet

8 Explain CIDR notation.

Cider notation is nothing but a range of ip addresses

DynamoDB

1 Create DynamoDB table.

2 Difference between SQL and NoSQL.

SQl is a relational database language stand for structured querry language

NoSQL is non-relational database stand for non structured querry language

3 Difference between DynamoDB and RDS.

DynamoDB :- is a nosql non relational database

RDS:- is a sql relational database

RDS

RDS :- RDS is a managed database service where AWS handles backups, patching, scaling, and high availability.

Self-managed DB on EC2 :- self-managed database on EC2 requires the user to install, configure, secure, back up, and maintain the database manually.

Lambda

uploading new file on aws email

CloudFront

Cache Miss :- A cache miss happens when the object is not available in the edge cache or has expire

Cache Hit :- A cache hit happens when CloudFront already has the requested object in its edge cache.