Friday, October 15, 2021

Module 2 -Computing in the Cloud

Module 2 - Computing in the Cloud

Learning objectives

In this module, you will learn how to:

  • Describe the benefits of Amazon EC2 at a basic level.
  • Identify the different Amazon EC2 instance types.
  • Differentiate between the various billing options for Amazon EC2.
  • Summarize the benefits of Amazon EC2 Auto Scaling.
  • Summarize the benefits of Elastic Load Balancing.
  • Give an example of the uses for Elastic Load Balancing.
  • Summarize the differences between Amazon Simple Notification Service (Amazon SNS) and Amazon Simple Queue Service (Amazon SQS).
  • Summarize additional AWS compute options.

In Module 2, you learned about the following concepts:

Amazon EC2 instance types and pricing options
Amazon EC2 Auto Scaling
Elastic Load Balancing
AWS services for messaging, containers, and serverless computing


Amazon EC2 instances  (CPU Memory Storage Networking) 

  • General Purpose Instances - balance of compute, memory, and networking resources.  - Web servers,  code Repositories
  • Compute Optimized Instances - High-performance processors. - Batch process , Gaming servers, HPC High Performance Computing, Scientific Modeling)
  • Memory Optimized Instances - process large datasets in memory. In computing, memory is a temporary storage area. Memory intensive tasks
  • Accelerated computing Instances - a hardware accelerator is a component that can expedite data processing. Foating point number calculations, graphic processing, graphic pattern matching, hardware accelerators
  • Storage optimized instances - require high, sequential read and write access to large datasets on local storage

Amazon EC2 Pricing

  • On-Demand   - Short term developing and testing applications and running applications that have unpredictable usage patterns
  • Amazon Ec2 Saving Plan - 72% saving  reduce your compute costs by committing to a consistent amount of compute usage for a 1-year or 3-year term.  
  • With Amazon EC2 Savings Plans, you can reduce your compute costs by up to 72% over On-Demand costs.
  • Reserved Instances - Standard Reserved and Convertible Reserved Instances for a 1-year or 3-year term, and Scheduled Reserved Instances for a 1-year term. You realize greater cost savings with the 3-year option. steady state 75% downsta
  • Spot Instances - no contracts or compute use, withstand interruption, savings at up to 90% off of On-Demand prices. AWS can reclaimed instants within 2 mins
  • Dedicated Hosts -physical servers with Amazon EC2 instance capacity that is fully dedicated to your use. 

Question 
What is the difference between Amazon EC2 Savings Plans and Spot Instances?

Question
Match each description to an Amazon EC2 instance type.
High performance DB - Memory
Data warehouse - Storage
Balance computing memory and network resources - General purpose
offers high performance processor - compute 

Scaling Amazon EC2 

De coupling 
AutoScaling - enables you to automatically add or remove Amazon EC2 instances in response to changing application demand. By automatically scaling your instances in and out as needed, you are able to maintain a greater sense of application availability.
Within Amazon EC2 Auto Scaling, you can use two approaches: dynamic scaling and predictive scaling.
Dynamic scaling responds to changing demand. 
Predictive scaling automatically schedules the right number of Amazon EC2 instances based on predicted demand.


Directing traffic with Elastic Load Balancing

Load Balancer 
High performance
Cost effective highly available
Automatic scaling
Elastic load balancing (ELB)- Regional construct 

ELB Elastic Load Balancing -Easy distribution of workload for EC2 instances

Regional Construct - 
A load balancer acts as a single point of contact for all incoming web traffic to your Auto Scaling group. This means that as you add or remove Amazon EC2 instances in response to the amount of incoming traffic, these requests route to the load balancer first.

Although Elastic Load Balancing and Amazon EC2 Auto Scaling are separate services, they work together to help ensure that applications running in Amazon EC2 can provide high performance and availability. 

SCALING EC2 
Amazon EC2 Auto Scaling -  Add instances where there is a demand, decouple when it is not needed
Scability and Elasticity


- Messaging and Queuing

Amazon Simple Notification Service (Amazon SNS)
is a publish/subscribe service. Using Amazon SNS topics, a publisher publishes messages to subscribers
subscribers can be web servers, email addresses, AWS Lambda functions, or several other options. 
Tightly Coupled  Application A -> Application B 
Loosely Coupled Architect   Application A -> Buffer Queue ->Application B

Amazon Simple Queue Service (Amazon SQS) - where messages are placed until processed- Send/store/receive messages between software components

Amazon Simple Notification Service (Amazon SNS) - Notification to employee email, is a publish/subscribe service. Using Amazon SNS topics, a publisher publishes messages to subscribers. In Amazon SNS, subscribers can be web servers, email addresses, AWS Lambda functions, or several other options. 

Question 

Which AWS service is the best choice for publishing messages to subscribers?
Amazon Simple Notification Service (Amazon SNS)


- Additional Compute Services

Serverless - you cannot see or access the underline infrastructure or instance 
Focus on application Lamda - Lamda Function - trigger 
Run code under 15 mins, 
Container Orchestration Tool:ACS and EKS
Container is a package of code
Container Services - Amazon Container Service - Amazon ACS
Container Services -Amazon Elastic Kubernetes - Amazon EKS
Amazon ECS supports Docker containers. Docker is a software platform that enables you to build, test, and deploy applications quickly.
AWS Fargate - is a Serverless compute engine for containers. It works with both Amazon ECS and Amazon EKS. 


LAB:


EBS  EBS 1of 3 - Create an EBS volume and attach it to a running Linux EC2 instance


Questions

You want to use an Amazon EC2 instance for a batch processing workload. What would be the best Amazon EC2 instance type to use?
Computing option

What are the contract length options for Amazon EC2 Reserved Instances? (Select TWO.)
1 year 3 years

You have a workload that will run for a total of 6 months and can withstand interruptions. What would be the most cost-efficient Amazon EC2 purchasing option?
Spot Instance.

Which process is an example of Elastic Load Balancing?
Ensuring that no single Amazon EC2 instance has to carry the full workload on its own

You want to deploy and manage containerized applications. Which service should you use?
Amazon Elastic Kubernetes Service (Amazon EKS)


Question 1

You want to use an Amazon EC2 instance for a batch processing workload. What would be the best Amazon EC2 instance type to use?
The correct response option is Compute optimized.

The other response options are incorrect because:

General purpose instances provide a balance of compute, memory, and networking resources. This instance family would not be the best choice for the application in this scenario. Compute optimized instances are more well suited for batch processing workloads than general purpose instances.

Memory optimized instances are more ideal for workloads that process large datasets in memory, such as high-performance databases.

Storage optimized instances are designed for workloads that require high, sequential read and write access to large datasets on local storage. The question does not specify the size of data that will processed. Batch processing involves processing data in groups. A compute optimized instance is ideal for this type of workload, which would benefit from a high-performance processor.


Question 2
What are the contract length options for Amazon EC2 Reserved Instances? (Select TWO.)
The two correct response options are:
1 year
3 years
Reserved Instances require a commitment of either 1 year or 3 years. The 3-year option offers a larger discount.

Question 3

You have a workload that will run for a total of 6 months and can withstand interruptions. What would be the most cost-efficient Amazon EC2 purchasing option?
The correct response option is Spot Instance.

The other response options are incorrect because:
Reserved Instances require a contract length of either 1 year or 3 years. The workload in this scenario will only be running for 6 months.
Dedicated Instances run in a virtual private cloud (VPC) on hardware that is dedicated to a single customer. They have a higher cost than the other response options, which run on shared hardware.
On-Demand Instances fulfill the requirements of running for only 6 months and withstanding interruptions. However, a Spot Instance would be the best choice because it does not require a minimum contract length, is able to withstand interruptions, and costs less than an On-Demand Instance.


Question 4
Which process is an example of Elastic Load Balancing?
Ensuring that no single Amazon EC2 instance has to carry the full workload on its own
The correct response option is Ensuring that no single Amazon EC2 instance has to carry the full workload on its own.

Elastic Load Balancing is the AWS service that automatically distributes incoming application traffic across multiple resources, such as Amazon EC2 instances. This helps to ensure that no single resource becomes overutilized.
The other response options are all examples of Auto Scaling.
Removing unneeded Amazon EC2 instances when demand is low
Adding a second Amazon EC2 instance during an online store’s popular sale
Automatically adjusting the number of Amazon EC2 instances to meet demand


Question 5

You want to deploy and manage containerized applications. Which service should you use?
Amazon Elastic Kubernetes Service (Amazon EKS)
The correct response option is Amazon Elastic Kubernetes Service (Amazon EKS).

Amazon EKS is a fully managed Kubernetes service. Kubernetes is open-source software that enables you to deploy and manage containerized applications at scale.

The other response options are incorrect because:

AWS Lambda is a service that lets you run code without provisioning or managing servers.

Amazon Simple Queue Service (Amazon SQS) is a service that enables you to send, store, and receive messages between software components through a queue.

Amazon Simple Notification Service (Amazon SNS) is a publish/subscribe service. Using Amazon SNS topics, a publisher publishes messages to subscribers.

==================


Describe the benefits of Amazon EC2 (Elastic Computing Cloud) at a basic level.

Highly Flexable
Cost Effective 
Quick
Only pay for what it use.
EC2 -pay for running instances.
Hyper visor = Responsible for cordinateing Multitendancy
Multi- Tenancy = Sharing hardware between virtual machine
EC2 Configuraiton  
-----------------
Windows
Linux 
Interlan Business Appsl
Web apps
Database
Their-Party software

(resizable - Virtical Scaling)
Control Network Aspect of Amacon EC2  - Type request 
Caas - Compute as a Service (CaaS)









No comments:

Post a Comment

AWS Certified Solutions Architect Associate

  Notes for AWS Certified Solutions Architect Associate Credit: https://github.com/SkullTech/aws-solutions-architect-associate-notes I recen...