Exam 05 Msc Flashcards
What is Elastic Beanstalk?
Can deploy and manage apps in AWS and automatically handles capacity (EC2 instances, load balancing, scaling + app monitoring), i.e. preinstall PHP
What is the main difference between Elastic Beanstalk and CloudFormation?
Beanstalk is more automated
What is CloudFormation? (2)
Infrastructure as code
Automating resource provisioning
What is a CloudFormation stack?
One or more CloudFormation templates that will provision resources
Adding hardware to an EC2 instance is an example of ____ ____ vs adding more EC2 instances to a group, which is ____ ____
Scaling up
Scaling out
What are the four methods of scaling out (horizontally)?
Stateless Applications
Stateless Components
Stateful Components
Distributed Processing
How do stateless applications support horizontal scaling and what is an example of a stateless application?
Since session information is not stored on the application hardware so scaling out does not rely on any state data. Lambda is an example of this
When distributing workload to multiple nodes, what are the two models and what AWS services support each?
Push Model - ELB (NLB, ALB), Route53 round robin
Pull Model - SQS, Kinesis
How can horizontal scaling be supported with stateless components? (2)
Cookies in users browser
DynamoDB
What is the relationship between horizontal scaling and stateful components? (2)
Most real-world apps require some state that can’t be kept as cookies.
Sticky session feature of an Application Load Balancer where customer is always routed to the same instance
How can distributed processing support horizontal scaling? (4)
For large very large datasets
Services like Elastic Map Reduce can break up data and distribute it
AWS Glue
AWS Batch
What are the overall Cloud Design Principles? (11)
Scalability
Disposable Resources over Fixed Servers
Automation
Loose Coupling
Services, Not Servers
Databases
Managing Increasing Volumes of Data
Removing Single Points of Failure
Optimize for Cost
Caching
Security
How do we architect for disposable resources instead of fixed servers? (4)
Bootstrapping (EC2 launch scripts)
Golden Images (Prebuilt AMIs)
Hybrid of two (containers + EC2 Instances)
Infrastructure as Code (CloudFormation)
What are the two services in AWS that support Infrastructure as Code? (2)
Elastic Beanstalk
CloudFormation
How can the AWS Automation Principle be supported?
Loose Coupling