AWS Beanstalk Flashcards
What is an elastic beanstalk?
It is a PAAS and is used to deploy, run and manage applications.
What languages does elastic beanstalk support?
- Java
- Go
- .NET
- Ruby
- Node
- PHP
- Python
- TomCat
- Correct (AWS Java)
- Docker
- Multi-Docker
What types of Environments can you have?
- Worker environment
- Web App Environment
Inside an elastic beanstalk application can I have one or more environments?
You can have one or more environments, with environments been, Worker or Web
Where does elastic beanstalk store it environment data?
S3
In the environment what physical components do we have?
We have the instances they run the application code, these are EC2 instances and you can see them in the EC2 portal.
Can I terminate and reboot the environment instances?
Yes, they are an EC2 instance.
What performance information do you get from the environment instance?
You get the Linux OS stats like, - Status (OK) CPU-Idle% - CPU-Sys% - CPU-Usr% - CPU-IOWait - HTTP-Requests per sec - HTTP-Number of 200, 300, 400, 500 - HTTP-Number 0f 400s - Latency - Load
Can I add a database like MsSQL, MySQL, Postgres, Oracle to the elastic beanstalk environment?
Yes, in the console or CLI you can add at creation or modify after creation and create a relational database.
When I add a database to an elastic beanstalk environment, what is the downside?
You tieing the database to the lifecycle of the environment.
In elastic beanstalk what databases are supported?
MsSQL, MySQL, Postgres, Oracle
Is an environment’s configuration separate?
Yes, you can load and say the environment configuration sperate form the environment.
How is elastic beanstalk monitored?
It integrates with cloud whatch
What types of web environment can you have?
- Single instance
- Load balanced
In elastic beanstalk can I use sport instances?
Yes, this is configured in the configuration->Capacity
In elastic beanstalk can I use on-demand and spot capacity?
Yes, this is configured in the configuration->Capacity
In elastic beanstalk can I set the size of the instance of my environment?
Yes, this is configured in the configuration->Capacity
In elastic beanstalk what metrics can i use to have elastic beanstalk scale in/out?
- Cpu
- Requests
- Network in/out
- Disk W/R
- Healthy host count
Each day between 6 and 9 am there is a heavy load on my elastic beanstalk application environment, we have the environment set up to automatically scale and it does but it takes time, how cna we solve this?
Elastic beanstalk has scheduled scaling available and this can be used to increase the number of instances between 6 -9 am.
I need to trace requests in my elastic beanstalk environment, is this possible and how?
You can enable x-ray, x-ray is a setting in the elastic beanstalk environment.
I wnat to better understand what my instances are doing, how cna I improve visibility?
You cna have instance logs uploaded to s3 and rotated.
I use CloudWatch logs for other AWS applications, how could I collect instance logs from elastic beanstalk?
Elastic beanstalk has option to stream the lost to CloudWatch logs.
How does beanstalk perform a software update to an environment?
Beanstalk as the ability to use ‘Deployment policy’ to,
- All at once: overwrite existing application version
- Immutable: create a totally new environment and switch to using it
What is a deployment policy?
Enables you t select how software is deployed to your application, you have the following options?
- All at once: All instances will be updated/replaced at the same time
- Rolling: AWS brakes the environment instances into batches and replaces a batch at a time ensuring there is no error.
- Rolling batch:
- Immutable: