AWS Complete Notes For Beginners 1732013231
AWS Complete Notes For Beginners 1732013231
Aws: AWS services is Amazon’s cloud web hosting platform that offers flexible, reliable, scalable,
easy-to-use, and cost-effective solutions.
Cloud computing: is a term referring to storing and accessing data over the internet
3 types of services
1. IaaS=Infra structure as a service
2. PaaS = Platform as a service
3. SaaS= Software as a service
Advantages of IAS:
1. Shared infrastructure
2. Pay as per you use model
3. Focus on core business
4. On demand scalability
Disadvantage of IAS:
1. Security
2. Maintenance & upgrade
PAS
Ex: Google app engine, salesforce, windows azure etc
Advantages of PAS:
1. Simplified Development
2. Lower risk
3. Scalability
Disadvantages of PAS:
1. Vendor locking /flexibility
2. Integrating with rest of the applications
SAS
What is a subnet?
The subnet is a logical subdivision of the IP network. The practice of dividing a network into 2
or more networks is called subnetting.
Private Subnet - Users cannot access resources from the internet. Internet traffic is routed via
the NAT gateway. Data is stored in a private subnet (database, API calls, passwords)
Configuration of EC2 Models:
5. S3 bucket Security:
There are two types of bucket security:
a. Bucket Policies – Json based scripts which are embedded in IAM policies of AWS which
can be utilized for S3 bucket security.
b. Access control List.
What is partitions? How many AWS partitions are there? **
4. "AWS-ISO,
5. "AWS-ISO-b"
The last two are only for Secret and Top-Secret US Government data.
Define Auto-scaling.
Auto-scaling is an activity that lets you dispatch advanced instances on demand.
Moreover, auto-scaling helps you to increase or decrease resource capacity according to the
application.
Can you illustrate the relationship between an instance and AMI?
With the help of just a single AMI, you can launch multiple instances and to even different types.
Can you name some AWS services that are not region-specific?
o IAM
o Route 53
● S3
o Web application firewall
o CloudFront
Can you define EIP?
IAM allows you to manage users and their level of access to the AWS console.
Key components of IAM
1) Users – Users are end users within an organization.
eg – developers, testers, and infrastructure ppl.
2) User group – User groups are collections of users, each user in the group will inherit the permission
of the group.
3) Policies – Policies are made up of documents called policy The document, these documents are in
the format of JSON, and they give permission as to what a user group or a role can do.
4) IAM role – It is an IAM entity that defines a set of Permission-making AWS service requests. It is
not associated with specific users or groups.
Advantages of IAM
Amazon cloud watch is a monitoring and observability service built for all the application team
members. Cloud watch collects monitoring and operational data in the form of logs, matrices, and
events. Cloud watch is useful in setting up alarms, visualizing logs, and matrix side by side.
SNS (simple notification service):
Amazon SNS is a fully managed messaging service for both application-to-person and application-to-
application communication.
Use cases:
1. Send messages directly to millions of users
2. Reliably deliver messages
3. Automatically scaling workload.
Clod Trail:
AWS CloudTrail is a service that enables governance, compliance, operational auditing, and risk
auditing of your AWS account.
Amazon Aurora -
Is RDS reinvented for cloud, Aurora is 5 times better performance than MySql.
Aurora is available at 1/10 the cost of commercial db.
RDS -
It is easy to administer, RDS is highly scalable.
RDS is available & durable.
RDS provides a feature called a ready replica.
Ready Replica – Amazon RDS synchronously replicates the data to a standby instance in a
different availability zone.
Route 53:
What is DNS (domain name server): it is a technique used by computers to translate human-
readable domain names into IP addresses.
How does it work? Let’s take an example, we want to access www.example.com from web or a
browser whenever we hit www.example.com on the web/browser/address bar the request for
www.example.com is routed to a DNS resolver which is typically managed by the user’s internet
service provider.
The DNS resolver for
You use an A record to route traffic to a resource, such as a web server, using an IPv4 address in
dotted decimal notation.
192.0.2.1
AAAA record type You use an AAAA record to route traffic to a resource, such as a web server, using
an IPv6 address in colon-separated hexadecimal format.
2001:0db8:85a3:0:0:8a2e: 0370:7334
A CNAME record maps DNS queries for the name of the current record, such as acme.example.com,
to another domain (example.com or example.net) or subdomain (acme.example.com or
zenith.example.org).
hostname.example.com
SOA record type
A start of authority (SOA) record provides information about a domain and the corresponding
Amazon Route 53 hosted zone. For information about the fields in an SOA record,
example: ns-2048.awsdns-64.net hostmaster.awsdns.com 1 1 1 1 60
Elastic Load Balancing automatically distributes incoming application traffic across multiple targets,
such as Amazon EC2 instances, containers, and IP addresses.
It can handle the varying load of your application traffic in a single Availability Zone or across multiple
Availability Zones.
Elastic Load Balancing offers three types of load balancers that all feature the high availability,
automatic scaling, and robust security necessary to make your applications fault tolerant.
ELB Features:
ELB is used to load balance over EC2 instances within a VPC. Support both public and private IPS.
Full control over load balancer and security group.
Tightly integrated into associated VPC and subnet.
IP addresses as Targets:
You can load balance any application hosted in AWS or on-premises using the IP addresses of the
application backends as targets. This allows load balancing to an application backend hosted on any
IP address and any interface on an instance. Each application hosted on the same instance can have
an associated security group and use the same port. You can also use IP addresses as targets to load
balance applications hosted in on-premises locations (over a Direct Connect or VPN connection),
peered VPCs, and EC2-Classic (using Classic Link). The ability to load balance across AWS and on-prem
resources helps you migrate to the cloud, burst-to-cloud, or failover-to-cloud.
Network load balancer:
Network Load Balancer operates at the connection level (Layer 4), routing connections to targets -
Amazon EC2 instances, microservices, and containers – within Amazon Virtual Private Cloud (Amazon
VPC) based on IP protocol data. Ideal for load balancing of both TCP and UDP traffic, Network Load
Balancer is capable of handling millions of requests per second while maintaining ultra-low latencies.
Network Load Balancer is optimized to handle sudden and volatile traffic patterns while using a single
static IP address per Availability Zone. It is integrated with other popular AWS services such as Auto
Scaling, Amazon EC2 Container Service (ECS), Amazon CloudFormation, and AWS Certificate Manager
(ACM).
Network load balances key features:
1. Connection-based Load Balancing
You can load balance both TCP and UDP traffic, routing connections to targets - Amazon EC2
instances, microservices, and containers.
2. High Availability
Network Load Balancer is highly available. It accepts incoming traffic from clients and distributes this
traffic across the targets within the same Availability Zone. The load balancer also monitors the
health of its registered targets and ensures that it routes traffic only to healthy targets.
3. high Throughput
Network Load Balancer is designed to handle traffic as it grows and can load balance millions of
requests/sec. It can also handle sudden volatile traffic patterns.
Autoscaling:
AWS Auto Scaling monitors your applications and automatically adjusts capacity to maintain steady,
predictable performance at the lowest possible cost.
Autoscaling group: