Assessment Task 3 – Problem Solving Task

SIT113 – Cloud Computing and Virtualisation (2021)
Assessment Task 3 – Problem Solving Task
Page 1 of 12
Due Date
• Sunday, May 30th, 8:00 PM.
Assessment
• As stated in the unit guide, each successful SIT113 student must achieve all unit learning outcomes (ULOs). These ULOs can be found in the Unit Guide.
• Only ULO3 will be assessed using Assessment Task 3.
• This assessment task (Assessment Task 3 – Problem Solving Task) will only assess ULO3.
• The percentage breakdown of each ULO across the three summative assessment tasks are specified in the following table.
Task 1
(Online Quizzes)
Task 2
(Written Report)
Task 3
(Problem Solving Task)
ULO1
30%
ULO2
30%
ULO3
40%
Important Notes
• You must login to and use AWS Educate.
• Do not login to and use AWS Management Console for this assessment task as AWS Educate differs to the AWS Management Console and you can incur costs to yourself using AWS Management Console.
• Once your AWS Educate credit is depleted, your AWS Educate account is deactivated. However, it appears that once-off $20 top up is available.
Aims
This assessment consists of two tasks.
• Task 1 requires you to build a scalable and highly available web application as depicted in Figure 1.
• Task 2 requires you to change the main web page. However, this requires some major changes to your web application too.
For each task, you will create a narrated video file. You need to submit both video files as these will be used to assess your work.
Scenario
Use this scenario to complete the following tasks. As ULO3 is concerned with evaluating given requirements, some portions of this scenario are pertinent and others are not.
Guitars, Amps and Pedals (GAP) is a fictitious company that owns retail stores throughout several major cities of Australia. GAP currently has no web presence.
Additional details about this company are:
SIT113 – Cloud Computing and Virtualisation (2021)
Assessment Task 3 – Problem Solving Task
Page 2 of 12
• GAP’s product lines are all based on different types of electronic guitars, amplifiers, effect pedals, and associated paraphernalia such as strings, belts, cables, and cases.
• As GAP is very popular, it has a large customer base which can cause high workload throughout the year at both unpredictable and predictable times. GAP management are especially interested in two weeks before Christmas (December 10 to December 24, inclusive) and the month before the school year commences (say January 1 to January 31, inclusive).
• GAP management are willing to invest in an online web presence that is highly available for their retail customers. They particular require a main web site, a web site for guitars, a web site for amplifiers, and another for pedals. Each site could be accessed using URLs such as:
o http://www.gap.com/
o http://www.gap.com/guitars
o http://www.gap.com/amps
o http://www.gap.com/pedals
• GAP staff located at their headquarters must work as a team covering several retail stores and in many aspects such as buying, marketing, seasonal sales, distribution, data analysis, etc.
Figure 1.
SIT113 – Cloud Computing and Virtualisation (2021)
Assessment Task 3 – Problem Solving Task
Page 3 of 12
Task 1
You need to create a web application as depicted in Figure 1 using your AWS Educate account. In general, you need to create:
• Several Security Groups
• One development VM
• Several Amazon Machine Images
• Several Target Groups
• One Load Balancer
• Several Launch Configurations
• Several Auto Scale Groups, and several associated policies
The following steps provide some instructions to help you create and test your web application.
Step 1 – Create Security Groups
This step requires you to create 6 security groups.
• Create five security groups with names such as AlbSg, GapSg, GuitarsSg, AmpsSg, and PedalsSg. There will be a security group for the ALB, one for the main GAP VMs, one for the Guitar VMs, one for the Amp VMs, and another for the Pedal VMs. Ensure inbound rules for HTTP TCP 80 and HTTPS TCP 443 are set in each security group, and one outbound rule can allow all traffic.
• Create another security group for development, say DevSg. Ensure inbound rules for RDP TCP 3389, HTTP TCP 80 and HTTPS TCP 443 are set in this security group, and one outbound rule can allow all traffic. The RDP port is required in order to login to a development VM.
Step 2 – Create AMIs (Amazon Machine Image)
Auto Scale Groups will be used in your web application because this application must automatically handle fluctuating workloads. As an auto scale group uses an AMI to launch one or more additional VMs, one of your first tasks requires you to create four AMIs: an AMI to launch VMs for GAPs main site, a second AMI to launch VMs for GAPs guitar site, a third AMI to launch VMs for GAPs amp site, and another AMI to launch VMs for GAPs pedal site.
There can be several techniques to create these AMIs such as:
1. Manually creating a VM for each site, and then create an AMI for each of these four VMs.
2. Manually create just one VM for a particular site, then create an AMI for that VM. As the four web sites are small (for this assignment) and very similar, we can make small adjustments to this VM in order to create the second web site. After this second web site is complete, create an AMI of this VM. Similarly, we can adjust this VM to create the third web site, and then create the third AMI. Finally, we can adjust this VM to create the fourth web site, and then create the fourth AMI.
3. And so on for other techniques.
SIT113 – Cloud Computing and Virtualisation (2021)
Assessment Task 3 – Problem Solving Task
Page 4 of 12
In general, and based on the 2nd technique above, four AMIs can be created as follows:
1. Create a Windows VM for the main GAP site, ensuring that IIS, Php and index.php are installed and working. For example, create one VM with:
a. Microsoft Windows Server 2019 Base.
b. T2.micro.
c. Select the Development Security Group that you created in Task 1.
d. Create a key pair such as GAPkp and download the pem file GAPkp.pem.
e. Give this VM a name such as Dev VM.
f. Connect to this VM in order to download the RDP file, and get the password.
g. Use this RDP file to login.
h. Use this VM’s Server Manager to:
i. add Web Server (IIS) as a Server Role
ii. add CGI as a Role Service (tick check box for Web Server > Application Development > CGI).
i. Within your VM use Internet Explorer to download Web Platform Installer (WebPI) from “https://www.microsoft.com/web/downloads/platform.aspx”.
j. After download, use “WebPlatformInstaller_x64_en-US.msi” to start the installation.
k. Use WebPI to install Php by following the instructions in Section 1.2 “Install PHP by using Web PI” at “https://docs.microsoft.com/en-us/iis/application-frameworks/scenario-build-a-php-website-on-iis/configuring-step-1-install-iis-and-php”.
l. Create the file “C:\inetpub\wwwroot\index.php” on this VM, and copy the code from Figure 2 into this file.
Figure 2.
m. Delete iisstart.htm and iisstart.png that are in “C:\inetpub\wwwroot”
n. This will be the main web site for GAP. It is simple as we don’t need a complicated web site for this assessment task. The small PHP portion will display information that
SIT113 – Cloud Computing and Virtualisation (2021)
Assessment Task 3 – Problem Solving Task
Page 5 of 12
is unique to the VM such as IISFCGI-713cc10e-1906-452e-8a1a-8f4840d61497, this allows us to visually and uniquely identify which VM receives a HTTP request from the ALB. This will be used to visually confirm that each VM is used by the ALB. o. You should test this web site by placing this VM’s IP address into your local browser.
2. Create an image (AMI) of your Dev VM and name it, say, GapAmi. It will take a few minutes until this AMI and associated snapshot become available.
3. Adjust your Dev VM to suit the guitars site.
a. We can actually make adjustments to the Dev VM to create a Guitars AMI. This will save time and effort because IIS and Web PI are already installed on your Dev VM.
b. Use the RDP file to login to the Dev VM.
c. Create a new folder called “C:\inetpub\wwwroot\guitars”.
d. Move index.php to this new folder.
e. Edit “C:\inetpub\wwwroot\guitars\index.php” by changing:
i. “GAP” in the title element to “GAP Guitars”.
ii. “Guitars, Amps, and Pedals” in the h1 element to “Electric Guitars”.
f. Don’t forget to save index.php.
4. Create an AMI of your Dev VM which is now hosting the guitars site. Name this image, say, GuitarsAmi.
5. Adjust your Dev VM to suit the amps site.
a. Similarly to above, we can slightly adjust your Dev VM to create the Amps AMI. Again, this will save time and effort as IIS and Web PI are already installed.
b. Use the RDP file to login to your Dev VM.
c. Rename the folder “C:\inetpub\wwwroot\guitars” to “C:\inetpub\wwwroot\amps”
d. Edit the file “C:\inetpub\wwwroot\amps\index.php” by changing:
i. “GAP Guitars” in the title element to “GAP Amps”
ii. “Electric Guitars” in the h1 element to “Amplifiers”
e. Don’t forget to save index.php.
6. Create an AMI of your Dev VM hosting the amps site. Name this image, say, AmpsAmi.
7. Adjust your Dev VM to suit the pedals site.
a. Similarly to above, we can slightly adjust your Dev VM to create the Pedals AMI. Again, this will save time and effort as IIS and Web PI are already installed.
b. Use the RDP file to login to your Dev VM.
c. Rename the folder “C:\inetpub\wwwroot\amps” to “C:\inetpub\wwwroot\pedals”
d. Edit the file “C:\inetpub\wwwroot\pedals\index.php” by changing:
i. “GAP Amps” in the title to “GAP Pedals”.
ii. “Amplifiers” to “Pedals”.
e. Don’t forget to save index.php.
8. Create an AMI of your Dev VM hosting the pedals site. Name this image, say, PedalsAmi.
9. After a few minutes, you should have 4 images: one for the main GAP site, a second for GAP’s guitars site, a third for GAP’s amplifiers site, and another for GAP’s pedals site.
10. It is now possible to stop your Dev VM as this will reduce your AWS costs. Do not delete those 4 new AMIs and 4 associated snapshots, as you will need these to build the rest of your web application.
SIT113 – Cloud Computing and Virtualisation (2021)
Assessment Task 3 – Problem Solving Task
Page 6 of 12
Step 3 – Create Target Groups
Create four target groups with names such as GapTg, GuitarsTg, AmpsTg, and PedalsTg. After creating these 4 target groups, they will have no registered VM targets.
• Do not include any target VMs at this stage.
• Ensure you make no typos.
• The Path in the Health checks section is very important. For the target group GapTg, this path value should be just “/”. This represents the folder “C:/inetpub/wwwroot/”.
• The Path in the Health checks section for GuitarsTg should be “/guitars/”. This represents the folder “C:/inetpub/wwwroot/guitars/”.
• The Path in the Health checks section for AmpsTg should be “/amps/”. This represents the folder “C:/inetpub/wwwroot/amps/”.
• The Path in the Health checks section for PedalsTg should be “/pedals/”. This represents the folder “C:/inetpub/wwwroot/pedals/”.
Step 4 – Create an Application Load Balancer
• Provide a name for your load balancer such as GapLb (GAP Load Balancer).
• Ensure zones A and B are selected.
• Select the security group that was created for this load balancer in Task 1.
• Select an existing target group for the main web site such as GapTg.
• Do not register targets at this stage.
• After this load balancer is created, select its Listeners tab to edit and add rules (use the link called View/edit rules). This is where other target groups are added.
o There should be 1 existing rule that forwards everything that is not routed to the GAP target group. You will edit this later.
o Select + to add another rule, then select insert rule.
o Add a rule such that if the path ends in /*, then forward requests to the GAP target group.
o Add a rule such that if the path ends in /guitars/*, then forward requests to the guitars target group.
o Add another rule such that if the path ends in /amps/*, then forward requests to the amps target group.
o Add another rule such that if the path ends in /pedals/*, then forward requests to the pedals target group.
o There should be 1 existing rule (the last rule) that forwards everything that is not routed to the GAP target group. Edit this rule so that such requests cause a fixed response.
 Select the Edit Rules icon (it looks like a pencil);
 Edit this rule and delete the “Forward To” portion.
 Select “+ Add Action”.
 Select “Return fixed response”.
 Type “INVALID REQUEST” as the value for the Response body.
 Select “Update”.
o Select < (next to Rules button) to return to the load balancer page. SIT113 – Cloud Computing and Virtualisation (2021) Assessment Task 3 - Problem Solving Task Page 7 of 12 Step 5 – Create Launch Configurations Create 4 launch configurations with names such as GapLc, GuitarsLc, AmpsLc, and PedalsLc. A launch configuration will be associated with an auto scale group, and specifies how that auto scale group automatically creates a new VM. Create a Launch Configuration • Provide a name for this launch configuration such as GapLc • Click on “Choose an AMI” to select a relevant AMI that you created in the previous task, i.e., GapAmi in this case. • Select an instance type such as t2.micro. • Ensure there is storage, the default 30GB should be sufficient. • Select the existing security group, that you created in Task 1, for the GAP VMs. • Select the existing key pair that you created in Task 2. Step 6 – Create Auto Scale Groups Create 4 auto scale groups with names such as GapAsg, GuitarsAsg, AmpsAsg, and PedalsAsg. Create an Auto Scale Group • Provide a name for this auto scale group such as GapAsg. • Select the existing launch configuration such as GapLc. • Set the two availability zones A and B by selecting both us-east-1a and us-east-1b as the Subnet values. The auto scale group will attempt to evenly distribute VMs over these availability zones. As the group size is set to 2 VMs, one VM should be placed in availability zone A and the other VM should be placed in availability zone B. • Within the “Configure advanced options” section: o Check the entry for “Attach to an existing load balancer”. o Select a target group such as GapTg. • After this auto scale group has been created, edit its details so that Desired=2, Min=1, and Max=4. After this change, this should automatically ensure one VM is in zone A and the other is in zone B. After a few minutes of creating your first auto scale group, this new auto scale group has automatically created 2 new VMs, 1 in zone A and 1 in zone B. You can confirm this by viewing the instances, as depicted in Figure 3. Figure 3. SIT113 – Cloud Computing and Virtualisation (2021) Assessment Task 3 - Problem Solving Task Page 8 of 12 At this stage, it is a good idea to name your VMs, see Figure 4, as this helps to visually identify VMs, rather than using the Instance ID. Figure 4. After creating these 4 auto scale groups, you should have 9 VMs: one development VM, and eight additional VMs that were automatically launched, see Figure 5. Figure 5. IMPORTANT - At this stage, as your AWS Educate account appears to have a limit of 9 VMs, please terminate your Dev VM so that you have 8 VMs. During your submission video, you will create another VM to increase the total number of VMs to 9. SIT113 – Cloud Computing and Virtualisation (2021) Assessment Task 3 - Problem Solving Task Page 9 of 12 Step 7 — Testing the GAP Site • Copy the DNS Name value of the load balancer and paste it into a browser. • You should see the main GAP site and a unique ID value from a VM, see Figure 6. • Refresh the browser page. Again you should see the main GAP site but the ID value has changed because a different VM of the GAP target group responded to the request, see Figure 7. Figure 6. Figure 7. Step 8 — Testing the Guitars Site • Copy the DNS Name value of the load balancer and paste it into a browser. • Ensure that you add /guitars/ to the end of the load balancer URL. • You should see GAP’s guitar site and an ID value from a VM, see Figure 8. • Refresh the browser page. You should see the guitar site and the ID value change because a different VM responded to the request, see Figure 9. Figure 8. Figure 9. Step 9 — Testing the Amps Site • Copy the DNS Name value of the load balancer and paste it into a browser. • Ensure that you add /amps/ to the end of this URL. • You should see GAP’s amps site and an ID value from a VM. • Refresh the browser page. You should see the amps site and the ID value change because a different VM responded to the request. Step 10 — Testing the Pedals Site • Copy the DNS Name value of the load balancer and paste it into a browser. • Ensure that you add /pedals/ to the end of this URL. • You should see GAP’s pedals site and an ID value from a VM. • Refresh the browser page. You should see the pedals site and the ID value change because a different VM responded to the request. SIT113 – Cloud Computing and Virtualisation (2021) Assessment Task 3 - Problem Solving Task Page 10 of 12 Step 11 – XMAS Workload Update each auto scale group with two scheduled actions to cater for extra workload during the Christmas rush. 1. Two weeks before Christmas, settings should be automatically changed to Desired=6, Min=4, and Max=8. 2. On December 31, settings should be automatically reverted to Desired=2, Min=1, and Max=4. Step 12 – School Workload Update each auto scale group with two scheduled actions to cater for extra workload during January. 1. On January 1, settings should be automatically changed to Desired=4, Min=2, and Max=6. 2. On January 31, settings should be automatically reverted to Desired=2, Min=1, and Max=4. Task 1 – Submission After completing Task 1 you will also create a narrated video. • Your Task 1 video file will have a time limit of 12 minutes. • This video will be used to assess your web application for task 1. • The contents of Task 1 video is as follows. o Introduce yourself, and present your ID card. o Provide a quick overview/introduction of your video. o Confirm your AWS Educate account name. o Confirm that you are using the North Virginian region. o Present each AWS resource that you created for this assessment such as:  Instances, and Volumes  AMIs, and Snapshots  Security Groups, Key Pairs, and pem file  Load Balancer, Listeners, Rules, and Target Groups  Auto Scaling Groups, instances in each scale group, and policies o Explain why each type of AWS resource was created for this assessment. o Demonstrate that the GAP scaling group is correctly working by increasing the desired value by 1 and showing that a new VM automatically launched.  GAP Scaling Group: ensure that desired = 3 o Demonstrate that your load balancer and all 9 web servers are correctly working, including that new GAP VM. • Place your name and ID in the filename of your video file such as AT3_Task1_JOHN_SMITH_221123456.mp4. • Submit your Task 1 and Task 2 video files into the assignment dropbox of the unit site. SIT113 – Cloud Computing and Virtualisation (2021) Assessment Task 3 - Problem Solving Task Page 11 of 12 Task 2 – Web Site Change Task 2 will be more challenging than the instructional Task 1. Task 2 requires you to apply your knowledge and skills to solve a problem and create a solution. As such, expect significantly less guidance and instructions for Task 2. GAP management want a small change to the GAP web site. Assume this small change just affects the title and background colour of the GAP web page. The new title is “GAP Home”. For example: GAP Home
The new background colour will be based on HEX value notation and the last 6 digits of your student ID number. For example, if your ID number is 221978623, the background colour is #978623. You can update the body element such as:

Instead of writing a report to describe how to update this web site so that clients see the new title and new background colour of the GAP web page, you must create a narrated video. The contents of this video is presented in the submission section.
Task 2 – Submission
• Your Task 2 video file will have a time limit of 8 minutes.
• Your Task 2 video will be used to assess your capability to update the web application that you created for Task 1.
• Your Task 2 video will show:
o An introduction of yourself, ID card, and video.
o Your AWS Educate account name.
o A demonstration that your load balancer correctly works for the GAP web page for Task 1. That is, for each of the 3 GAP VMs, show that the old GAP web page is displayed by your browser.
o A live update of your Task 1 web application to satisfy GAP management’s request for a new title and background colour on the main GAP web pages.
o A demonstration that your load balancer correctly works for the updated GAP web page for Task 2. That is, for each of the 3 new GAP VMs, show that the new GAP web page is displayed by your browser via the ALB.
• Place your name and ID in the filename of your video file such as AT3_Task2_JOHN_SMITH_221123456.mp4.
• Submit your Task 1 and Task 2 video files into the assignment dropbox of the unit site.
SIT113 – Cloud Computing and Virtualisation (2021)
Assessment Task 3 – Problem Solving Task
Page 12 of 12
NOTES
1. Reducing Costs
Selecting a VM that costs $0.43 per hour will cost over $10 per day. If you have 9 similar VMs that are running at the same time, it will cost over $90 per day.
In contrast, some running VMs cost around $10 per hour (over $7000 per month), yet others cost as little as $0.01 per hour (about $7 per month).
1. For each auto scale group, change Desired=0, Min=0, and Max=0.
This should terminate VMs that were launched by your ASGs.
2. Terminate development VMs that you don’t need.
3. Stop development VMs that you do need.
4. Delete ALBs as an ALB costs around $0.54 per day, plus network costs.
It’s quick to recreate an ALB when needed.
5. Deregister AMIs that you don’t need and delete associated snapshots to reduce storage costs.
2. Complete Clean Up
1. Delete the auto scale groups. This will terminate/delete the VMs too.
2. Delete the launch configurations.
3. Delete the load balancer.
4. Delete the target groups.
5. Delete the security groups.
6. Deregister the AMIs.
7. Delete the snapshots.
8. Ensure that all VMs have been terminated.


Buy plagiarism free, original and professional custom paper online now at a cheaper price. Submit your order proudly with us



Essay Hope