Book Image

AWS Certified Solutions Architect ??? Associate Guide

By : Gabriel Ramirez, Stuart Scott
Book Image

AWS Certified Solutions Architect ??? Associate Guide

By: Gabriel Ramirez, Stuart Scott

Overview of this book

Amazon Web Services (AWS) is currently the leader in the public cloud market. With an increasing global interest in leveraging cloud infrastructure, the AWS Cloud from Amazon offers a cutting-edge platform for architecting, building, and deploying web-scale cloud applications. As more the rate of cloud platform adoption increases, so does the need for cloud certification. The AWS Certified Solution Architect – Associate Guide is your one-stop solution to gaining certification. Once you have grasped what AWS and its prerequisites are, you will get insights into different types of AWS services such as Amazon S3, EC2, VPC, SNS, and more to get you prepared with core Amazon services. You will then move on to understanding how to design and deploy highly scalable applications. Finally, you will study security concepts along with the AWS best practices and mock papers to test your knowledge. By the end of this book, you will not only be fully prepared to pass the AWS Certified Solutions Architect – Associate exam but also capable of building secure and reliable applications.
Table of Contents (26 chapters)
22
Mock Test 1
23
Mock Test 2

Scaling the compute layer

  1. Let's create a second instance with a larger capacity (t2.large), as follows:
aws ec2 run-instances --image-id ami-14c5486b --key-name BookShelfApp --instance-type t2.large --security-group-ids sg-bddd92cb --user-data file://bootstrap.txt
Store the results on a spreadsheet.
  1. To switch traffic over to our larger instance, we will implement the floating IP cloud pattern (http://en.clouddesignpattern.org/index.php/CDP:Floating_IP_Pattern) by reassociating the virtual IP from the active to the passive instance, as shown in the following diagram:
  1. Issue the following command by using your new instance ID and the previous IP's ID allocation:
aws ec2 associate-address --instance-id i-096a8c337e10e9edf --allocation-id eipalloc-d300d8db
  1. Perform the load test again and write down the results, in order to establish a quantitative benchmark, as follows...