Elastic Beanstalk Flashcards
For a blue/green deployment type in Beanstalk which sort of DNS record is changed when you swap a url to point to a different application version?
CNAME.
You have performed a URL swap for a blue/green beanstalk deployment. When you hit the URL for the ‘blue’ site though, nothing seems to have changed. Why?
CNAME record changes occur at the R53 level. If DNS records are cached, the change may not be visible until the TTL expires.
I would like to customize the runtime of Elastic Beanstalk and include some of my company wide security software. I should
- Use EC2 userdata
- Use Docker
- Create a custom platform
Create a custom platform
Why can you not use Lambda as a resource for Beanstalk to provision a web environment?
Because lambda is an event driven severless platform that runs code in response to events and automatically manages the resources required for running that code.
Can Beanstalk deploy application versions to multiple environments?
Yes
You have created a test environment in Elastic Beanstalk and as part of that environment, you have created an RDS database. How can you make sure the database can be explored after the environment is destroyed?
- Take a snapshot of the RDS database
- Use selective deletion in Beanstalk
- Change the elastic Beanstalk environment variables
Take a snapshot of the RDS database
We have a development environment set up in Beanstalk, and a fast cadence of code releases. We can also handle a little bit of downtime as code is being deployed. Which Deployment model is best in this situation?
All At Once. This is the fastest deployment mode, but it comes at the cost of downtime as all the instances are unavailable as the deployment takes place
When you remove an application version via a lifecycle rule, do you have the option to persist the source bundle on S3
Yes
When and why would you use Packer?
You would use packer when creating your own custom Beanstalk platform. It is an open source AMI creation tool.
There are 3 architecture models for Beanstalk. What are they?
Single instance
ALB+ASG
ASG only (for worker processes)
What two are the two configuration options available for a Beanstalk Life cycle policy?
- Time Based: Beanstalk can be configured to remove versions when they hit a specified age.
- Space Based: Beanstalk can be configured to remove old versions of an application when a specified number of versions is hit
My deployments on Elastic Beanstalk have been painfully slow, and after looking at the logs, I realize this is due to the fact that my dependencies are resolved on each EC2 machine at deployment time. How can I speed up my deployment with the minimal impact?
- Place the dependencies in S3
- Remove the dependencies from your code
- Resolve the dependencies and package them in the application zip which gets uploaded to Beanstalk
Resolve the dependencies and package them in the application zip which gets uploaded to Beanstalk
Where must EB Extension config files be located?
in the /.ebextensions directory in you application zip files root directory.
When running an immutable deployment, what is the first step that Beanstalk takes when deploying new application ?
Beanstalk will deploy the application to one instance and execute health checks against that instance. If these pass, it will continue the deployment including creating the ASG.
We have a lifecycle policy set up to remove versions of an application when they are over 200 days old. What will happen with this policy if we have a currently used version of the application that is over 200 days old?
Nothing. Currently used versions of the application are unaffected by Beanstalk.