Misc Flashcards
CloudFormation, Elastic Beanstalk and Architecting for Cloud
What is Elastic Beanstalk?
It pre-provisions resources for a given result.
What is the main difference between Elastic Beanstalk and CloudFormation?
Beanstalk is more automated
What is CloudFormation?
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 appplications 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?
Cookies in users browser
DynamoDB
What is the relationship between horizontal scaling and stateful components?
Most real-world apps require some state that can’t be kept as cookies.
Implement session affinity with the sticky session feature of an Application Load Balancer
How can distributed processing support horizontal scaling?
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?
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?
Bootstrapping (EC2 launch scripts)
Golden Images (Prebuilt AMIs)
Hybrid of two
Infrastructure as Code (CloudFormation)
What are the two services in AWS that support Infrastructure as Code?
Elastic Beanstalk
CloudFormation
How can the AWS Automation Principle be supported?
Loose Coupling