Friday, July 23, 2021

AWS interview question and answer.

 should aware of compute

What are the services you have worked on AWS?

what are compute services in AWS?
EC2
Elastic container service    - docker
EKS                 - Kubernetes
Lambda                - server less computing(developer)
batch                - if you have any service that can process anytime, if you dont want to running your service 24*7, you can stop the service, as soon as you upload the data, it will completed with in the time.
Elastic Beanstalk


What are the storage services in AWS?
S3
EFS
Glacier
Storage Gateway


what are the type of visualization do we have on AWS platform?
hvm
parvirtual

1)
HVM AMIs are required to take advantage of enhanced networking and GPU processing
2)
Historically, PV guests had better performance than HVM guests in many cases, but because of enhancements in HVM virtualization and the availability of PV drivers for HVM AMIs, this is no longer true.


What is the difference between using the local instance store and Amazon Elastic Block store(Amazon EBS) for the root device?
what are they type of root device?
ebs - block storage - peristence - not delete on reboot
instance-store - in-persistence - can be deleted on reboot





what are type of EBS Volumes and the use cases?
EBS Volume Types
General purpose SSD (gp2)
Provisioned IOPS SSD (io1)
Throughput Optimized HDD (st1)
Cold HDD (sc1)
Magnetic Standard

EBS Volume Categories
Amazon EBS provides a range of options that allow you to optimize storage performance and cost for your workload. These options are divided into two major categories:

SSD-backed Volumes (IOPS-intensive) - we can boot from that  - 2 types - (gp2),(io1)
SSD-backed storage for transactional workloads, such as databases and boot volumes (performance depends primarily on IOPS)

HDD-backed Volumes (MB/s-intensive) - we cant boot from that - 3 types - (st1),(sc1), Magnetic Standard(we can boot on magnetic)
HDD-backed storage for throughput intensive workloads, such as Map Reduce and log processing (performance depends primarily MB/s).

gp2 - upto 10000 IOPS
gp2 is default EBS volume type for the Amazon EC2 instances.
gp2 Volumes are backed by solid-state drives(SSDs)
General purpose, balances both price and performance.
Ratio of 3 IOPS per GB with up to 10,000 IOPS
Boot volume, low latency interactive apps, Dev and test
Volume size : 1 GB-16 TB
Max IOPS/Volume: 10,000
Price: $0.10/GB-month

Provisioned IOPS SSD (io1) - upto 32000 IOPS - both IOPS-intensive and throughput-intensive
These volumes are ideal for both IOPS-intensive and throughput-intensive workloads that require extremely low latency.
Designed for I/O intensive applications such as large relational or NoSQL databases.
Use if you need more than 10000 IOPS.
Can provision up to 32000 IOPS per volume
Volume size: 4GB - 16 TB
Price: $0.125/GB-month

Throughput Optimized HDD(st1) - Throughput intensive -
st1 is backed by hard disk drives (HDDS) and is ideal for frequently accessed, throughput intensive workloads with large datasets
st1 volumes deliver performance in term of throughput, measured in MB/s
Big data
Data warehouses
Log processing
Cannot be a boot volume
Can provision up to 500 IOPS per volume
Volume size : 500 GB - 16 TB
Price : $ 0.045/GB-month

Cold HDD(sc1)
sc1 is also backed by hard disk drives (HDDs) and provides the lowest cost per GB of all EBS volume types
Lowest cost storage for infrequent accessed workloads
file server
cannot be a boot volume
volume size : 500 GB - 16TB
Price : $0.025/GB-month

Megnetic (Standard)
Lowest cost per gigabyte of all EBS volume types that is bootable.
Magnetic volumes are ideal for workloads where data is accessed infrequently, and applications where the lowest storage cost is important.




what is the difference between t2.micro and t3.micro?
RAM and processor combination

why do we attach IAM role with EC2 machine while creating it?
user case we need to attach S3 bucket, so possible from some user and user/pass required, so we can directly assign S3 bucket IAM role

what are the usages of TAGs with EC2 / AWS resources?
tags for identify team, name, purpose, cost-effectivness

what is T2/T3 unlimited option?
if go to monitor in t2 or t3 there 2 monitor cpu credit usage & credit balance, so if these, credit are spend competly, so your machine start performing lower. or need to pay extra.

what are type of hypervisors in AWS?
nitro
zen

how can we recover lost ec2 ssh key?
you have root user, and you have additional sudo access, you can update the key for that particular ec2
or shut down the machine mount the root volume to another ec2 and update the ssh key there

how to check shared AMIs?
go to ami - check share ami



How do i run systems in the Amazon EC2 env?
EC2 Dashboard- region - AMI - templete - root partion - vpc /subnet - AMI role - tag - security group - lunch


How many instances can i run in amazon EC2?
Go -EC2 - Limits - in your region -

how quickly can i scale my capacity both up and down?
Auto scalling - Auto scalling groups - based n scalling polices - how shown you want to add or down scaling

how can i request a limit increase?
support center - create case - service limit increase - limit type - like EC2 intances - region - New limit value

how can i check what i am charged for?
billing & cost management dasboard - bill details -
bill details by account - in case mutiple accoun associated - when you have multi 0U

what is the difference b/w c4 and c5 class instances?
EC2 - instance types - c4.larg, c5 large
c4.large - RAM - 3840, Network perf - Moderate    , cost - $0.1 h
c5.large - RAM - 4096, Network Perf - Up to 10G , cost - $0.085h

also you can check other parameter select from settings - check , uncheck options

what are the load balancers you have worked with?
Application(http/https)
Network(TCP/TLS/UDP)
Classic

what are the security options available to secure ec2 instance?
security group - who and from where to access on what port to your ec2 machine
Network ACL - by default configured with your VPC Only - VPC - Security - Network ACLs
In network ACL - you can apply on multiple subnets - Inbound rule, outbound rule, - allow, deny, and Subnet association

will i lose the metrics data for a terminated amazon ec2 instance or a deleted elastic load balancer?
No, by default AWS hold matrics for 14 days


can i access the metrics data for a terminated amazon ec2 instance or a deleted elastic load balancer?
No, by default AWS hold matrics for 14 days

what is the difference between hibernate and stop?
hibernate - situation where your machine, holds the data on RAM, it can start from the same position.
stop - RAM data flush, and need to reload the each and every file.

can i enable hibernation on an existing instance?
No - need to select while creating instance

what is a convertible RI?
RI - reseved instance - if you purchased C4 and you want to change with chip one C5, you can convert it.

what are load balancing algorithm with elb?
EC2- Load balanceing - Target group - edit attribute - Deregistration dely, slow start duration, load algo - round robin, least outstanding

how to take backup of your machine?
take snapshots
or take back up of your volume

How to restore from volume?
create EC2 with volume
Or create a AMI with volume backup


When need to create AMI?
when you scalling up your infra, or auto scalling implementation going to add, create AMI that is ready to use in your prod.

Can i scale my EC2 machine?
yes,
vertically - upgrade - RAM, CPU etc
horizontally - if you have cluster- 5 machine there, add 2-3 machine more

How i can mantain state of my infra?
you can maintain state of your infra by using terrform

what are security group?
these are firwall rule, after that still you need to improve security, you can add ACL on top, where you define what ip you allow to login in your env and what ip should blocked.

How you migrate to another region?
Go to volumes - create snapshot - Name it - go to snapshots - migrate to another region

Can i use same key pair for multiple region, No- but if you want you can import key to other region then you can use.

What is the size of EBS volume?
16TB


What is shared AMI?
developer can share there AMI to other developer

what is Amazon S3?
object storage
100 buckets can create - per account - its soft limit - you can increase limit

what is difference between object storage and block storage?
S3- object storage- cant attach with EC2 - or not suggested - we can't use rsync cmd.
EBS - block stroage - can attach with EC2 - peristance -  we can't use rsync cmd.

how much data can i store in amazon S3?
256TB

what storage classes does amazon S3 offer?
Standard
Intellingent-Tiering
Standard-IA
one zone-IA
Glacier
Glacier Deep Archive
Reduced Redundancy

how reliable is amazon s3?
Very reliable, even amazon taking back in S3

what is provisioned capacity unit(PCU) and when should it use PCU?(150MB/s)
in S3 PCU can provide by AWS if you have provisioned (cost per month $100 extra)


S3 is a global service!! why do i need to select a region while creating S3 bucket?
complience, latency, near to our location or region, disaster case in other region should have a copy.

How do i decide which AWS Region to store my data in?
complience, latency, near to our location or region, disaster case in other region should have a copy.

how will i be charged and billed for my use of amazon S3?
when you are using S3, you have 1 billion of file and file size is 10kb-2kb, and you are changing storage class, it will 10 times costilier, AWS will change on the bases of API call you are making.

how am i charged for using versioning?
1gb file, and you have 10 version, so you are paying for 10gb

how durable is amazon S3?
99.999%

what checksums does amazon S3 employ to detect data corruption?
(MD5 checksums & cyclic redendancy checks)?


what is versioning?
uploading file, 10 times, 10 version there, like git

what is DR APR RPO?

what the EBS services types?

Security service in AWS

centralized backup?

how to connect 2 vpc in different domain?

No comments:

Post a Comment