Section 1: Deployment Flashcards
AWS EC2 instance type for pay as you go?
On-demand
AWS EC2 instance type for reserving for a long period of time for a lower cost?
Reserved
AWS EC2 instance type for ensuring no shared physical resources?
Dedicated
What is the difference between immutable & blue/green deployment?
Both have deploy a separate group of instances & can be switched back.
Blue/green is good when the application code changes are dependent on the resource configuration changes otherwise do immutable.
Blue/green does the environment switch over at the DNS layer whereas immutable does the switch over at the load balancer.
What is the maximum size of an S3 object?
5 TB
What is the maximum upload size of an S3 object?
5 GB, if you need more use multipart upload
What are the best practices for detaching a EBS volume from a running EC2 instance?
First unmount the volume and then dettach the volume from the instance.
What are the limitations of an SQS queue name?
Limited to 80 chars (-/_ are allowed)
What are the best practices for stress testing with an autoscaling group and an ELB?
Have the testing software re-resolve the DNS for each new request (to ensure the clients are hitting all IP addresses of the scaled resources.
If sticky sessions are enabled - it is critical the load test framework does not reuse connections/clients in the tests and uses unique clients for each request.
What are Elastic Beanstalk environments?
A collection of AWS resources running an application.
It can be used for production/dev/testing envs or for having different components scaling differently.
How to test a new version on Lambda?
Use an alias - split the traffic between the new version and the old version.
What goes into the .ebextensions folder?
YAML or JSON formatted documents for resources associated with EB (ending in .config).
These will be launched/terminated along with the elastic beanstalk environment.
Can auto scaling groups span multiple regions?
No
Can auto-scaling groups span multiple AZs within a region?
Yes
When is user data run on EC2 instances?
Only on boot and at the root level.