Posted in Cloud Certifications, Cloud Computing

Amazon Web Services Certified Solutions Architect Certification – Notes – 1

Reference: Aws Documentation

I am just reading material from AWS and creating Notes from it. SHaring here so it an be useful to others as well. Screenshots are also taken from the Documentation and Other material from AWS.

Cloud Computing – Download Free EBooks and Whitepapers
Java – Download Free EBooks and Whitepapers
Windows – Download Free EBooks and Whitepapers
When you deploy any type of application, you typically need to do the following:• Set up a computer to run your application.• Secure your application and resources.

• Set up your network for users to access your application.

• Scale your application.

• Monitor your application and resources.

• Ensure that your application is fault-tolerant.

An AMI is a template that contains a software configuration (e.g., operating system, application server, and applications).
When you launch your Amazon EC2 instances, you can store your root device data on Amazon Elastic Block Store (Amazon EBS) or the local instance store. Amazon Elastic Block Store (Amazon EBS) is a durable, block-level storage volume that you can attach to a single Amazon EC2 running instance.Amazon EBS volumes behave like raw, unformatted, external block devices you can attach.
Alternatively, the local instance store is a temporary storage volume and persists only during the life of the instance
You can stop and restart an Amazon EBS-backed instance, but you can only run or terminate anAmazon EC2 instance store-backed instance.By default, any data on the instance store is lost if the instance fails or terminates.
In AWS, a key pair is used to connect to your instance.
AWS has security groups that act like inbound network firewalls so you can decide who can connect to your Amazon EC2 instance over which ports.
Auto Scaling can automatically launch and terminate instances on your behalf according to the policies that you set. If you have defined a baseline AMI, Auto Scaling launches new instances with the exact same configuration.
Amazon CloudWatch monitors AWS cloud resources and the applications you run on AWS.You can collect and track metrics, analyze the data, and react immediately to keep your applications and business running smoothly.You can use information from Amazon CloudWatch to take action on the policies that you set using Auto Scaling.You can monitor the status of your instances by viewing status checks and scheduled events for yourinstances
Elastic Load Balancing provides this service in the same way that an on-premises load balancer does. You can associate a load balancer with an Auto Scaling group. As instances are launched and terminated, the load balancer automatically directs traffic to the running instances. Elastic LoadBalancing also performs health checks on each instance. If an instance is not responding, the load balancer can automatically redirect traffic to the healthy instances.
You can control access between the servers and subnets by using inbound and outbound packet filtering provided by network access control lists and security groups. Some other cases where you may want touse Amazon VPC include:• Hosting scalable web applications in the AWS cloud that are connected to your data center

• Extending your corporate network into the cloud

• Disaster recovery

To make your web application fault-tolerant, you need to consider deploying your computers in different physical locations.Availability Zones are analogous to data centers.It’s even more advantageous to spread your instances across Regions. If a region, including all of its

Availability Zones, becomes completely unavailable, your traffic is routed to another region.

 1. AWS Use Cases - 1
 1. AWS Use Cases - 2
AWS currently provides AMIs based on the following versions of Windows:

  • Microsoft Windows Server 2012 (64-bit)
  • Microsoft Windows Server 2008 R2 (64-bit)
  • Microsoft Windows Server 2008 (64-bit)
  • Microsoft Windows Server 2008 (32-bit)
  • Microsoft Windows Server 2003 (64-bit)
  • Microsoft Windows Server 2003 (32-bit)
3. Application Architecture in AWSAs an example, we’ll walk through a deployment of a simple web application. If you’re doing something

else, you can adapt this example architecture to your specific situation. In this diagram, Amazon EC2

instances in a security group run the application and web server. The Amazon EC2 Security Group acts

as an exterior firewall for the Amazon EC2 instances. An Auto Scaling group maintains a fleet of Amazon

EC2 instances that can be automatically added or removed in order to handle the presented load. This

Auto Scaling group spans two Availability Zones to protect against potential failures in either Availability

Zone. To ensure that traffic is distributed evenly among the Amazon EC2 instances, an Elastic Load

Balancer is associated with the Auto Scaling group. If the Auto Scaling group launches or terminates

instances to respond to load changes, the Elastic Load Balancer automatically adjusts accordingly.

To install the Auto Scaling command line tools to your local computer.PROMPT>as-cmdThis command returns a list of all the Auto Scaling commands and their descriptions.
Amazon EC2 instances created from a Public AMI use a public/private key pair, rather than apassword, for signing in. The public key is embedded in your instance.You use the private keyto sign in securely without a password.

.pem extension).

A security group defines firewall rules for your instances. The new rules are automatically enforced for all running instances.4.Security Group in AWS
For Windows, It can take up to 30 minutes to get the original password from the time you launched your Amazon EC2 instance.
Elastic Load Balancing automatically distributes and balances the incoming application traffic among allthe instances you are running, improving the availability and scalability of your application.5.Elastic Load Balancing in AWS

5.Listener COnfiguration in Elastic Load Balancing in AWS

This example uses a single forward slash so that Elastic Load Balancing sends the query to your HTTP server’s default home page, whether that default page is named index.html, default.html, or a different name.
After you create a load balancer, you can modify any of the settings except for Load BalancerName and Port Configuration.5.Port Configuration in Elastic Load Balancing in AWS
As a best practice, you should have sufficient instances across Availability Zones to survive the lossof any one Availability Zone.
The rules for this security group will be enforced when the instances that use these rulesare launched.
Auto Scaling launches and terminates Amazon EC2 instances automatically according to user-defined policies, schedules, and alarms.For example, you can instruct Auto Scaling to launch an additional instance whenever CPU usage on one or more existing instances exceeds 60 percent for ten minutes, or you could tell Auto Scaling to terminate half of your website’s instances over the weekend, when you expect traffic to be low.Auto Scaling groups can even work across multiple Availability Zones.

With Auto Scaling, you can ensure that you always have at least one healthy instance running.

By setting the minimum and maximum number to be the same, you can ensure that you always have the desired number of instances even if one instance fails.

When you create your actual website, as a best practice you should launch sufficient instances across Availability Zones to survive the loss of any one Availability Zone. Additionally, the maximum number of instances must be greater than the minimum to make use of the Auto Scaling feature.

In this example, you will set up the basic infrastructure that must be in place to get Auto Scaling startedfor most applications. You’ll do the following:• Create a launch configuration.

• Create an Auto Scaling group.

• Create a policy for your Auto Scaling group.

PROMPT>as-create-launch-config MyLC –image-id ami-191dc970 –instance-type

m1.large –group webappsecuritygroup –key mykeypair –monitoring-disabled


monitoring-disabled specifies that you want to use basic monitoring instead of detailed monitoring.

By default, detailed monitoring is enabled.

To create an Auto Scaling group in which you can launch multiple Amazon EC2 instances, you will use the as-create-auto-scaling-group command. Use the following parameters to define your Auto Scaling group.

PROMPT>as-create-auto-scaling-group MyAutoScalingGroup –launch-configuration

MyLC –availability-zones us-east-1b, us-east-1c –min-size 2 –max-size

2 –load-balancers MyLB


To create a policy to enlarge your fleet of instances, we will use the as-put-scaling-policy command. This policy applies to the Auto Scaling group you created in the previous step.

PROMPT>as-put-scaling-policy MyScaleUpPolicy –auto-scaling-group MyAutoScal

ingGroup –adjustment=1 –type ChangeInCapacity –cooldown 300


adjustment is the number of instances you want to increment or decrement. For this example, use 1.

cooldown is the time, in seconds, after an action before Auto Scaling should evaluate conditions again.

Auto Scaling can decrease the number of instances when your application doesn’t need the resources, saving you money. To create a policy for terminating an instance, start from the policy you just created, change the policy name, and then change the value of adjustment from 1 to -1.

PROMPT>as-put-scaling-policy MyScaleDownPolicy –auto-scaling-group

MyAutoScalingGroup “–adjustment=-1” –type ChangeInCapacity –cooldown 300

Amazon CloudWatch is a web service that enables you to monitor, manage, and publish various metrics and to configure alarm actions based on those metrics.The following diagram demonstrates how Amazon CloudWatch and Auto Scaling work together. The Amazon EC2 instance reports its NetworkOut metric to Amazon CloudWatch. Amazon CloudWatch fires an alarm if the specified threshold has been been exceeded and reports this to the Auto Scaling Group.6. Amazon CloudWatch in AWS

6. Alarms in Amazon CloudWatch in AWS

PROMPT>as-update-auto-scaling-group MyAutoScalingGroup –min-size 0 –maxsize0PROMPT>as-describe-auto-scaling-groups MyAutoScalingGroup –headers

PROMPT>as-delete-auto-scaling-group MyAutoScalingGroup


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s