AWS Beanstalk Flashcards

1
Q

What is an elastic beanstalk?

A

It is a PAAS and is used to deploy, run and manage applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What languages does elastic beanstalk support?

A
  • Java
  • Go
  • .NET
  • Ruby
  • Node
  • PHP
  • Python
  • TomCat
  • Correct (AWS Java)
  • Docker
  • Multi-Docker
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What types of Environments can you have?

A
  • Worker environment

- Web App Environment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Inside an elastic beanstalk application can I have one or more environments?

A

You can have one or more environments, with environments been, Worker or Web

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Where does elastic beanstalk store it environment data?

A

S3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

In the environment what physical components do we have?

A

We have the instances they run the application code, these are EC2 instances and you can see them in the EC2 portal.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Can I terminate and reboot the environment instances?

A

Yes, they are an EC2 instance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What performance information do you get from the environment instance?

A
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Can I add a database like MsSQL, MySQL, Postgres, Oracle to the elastic beanstalk environment?

A

Yes, in the console or CLI you can add at creation or modify after creation and create a relational database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

When I add a database to an elastic beanstalk environment, what is the downside?

A

You tieing the database to the lifecycle of the environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In elastic beanstalk what databases are supported?

A

MsSQL, MySQL, Postgres, Oracle

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Is an environment’s configuration separate?

A

Yes, you can load and say the environment configuration sperate form the environment.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How is elastic beanstalk monitored?

A

It integrates with cloud whatch

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What types of web environment can you have?

A
  • Single instance

- Load balanced

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

In elastic beanstalk can I use sport instances?

A

Yes, this is configured in the configuration->Capacity

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

In elastic beanstalk can I use on-demand and spot capacity?

A

Yes, this is configured in the configuration->Capacity

17
Q

In elastic beanstalk can I set the size of the instance of my environment?

A

Yes, this is configured in the configuration->Capacity

18
Q

In elastic beanstalk what metrics can i use to have elastic beanstalk scale in/out?

A
  • Cpu
  • Requests
  • Network in/out
  • Disk W/R
  • Healthy host count
19
Q

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?

A

Elastic beanstalk has scheduled scaling available and this can be used to increase the number of instances between 6 -9 am.

20
Q

I need to trace requests in my elastic beanstalk environment, is this possible and how?

A

You can enable x-ray, x-ray is a setting in the elastic beanstalk environment.

21
Q

I wnat to better understand what my instances are doing, how cna I improve visibility?

A

You cna have instance logs uploaded to s3 and rotated.

22
Q

I use CloudWatch logs for other AWS applications, how could I collect instance logs from elastic beanstalk?

A

Elastic beanstalk has option to stream the lost to CloudWatch logs.

23
Q

How does beanstalk perform a software update to an environment?

A

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
24
Q

What is a deployment policy?

A

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:
25
Q

In a beanstalk Deployment policy where ‘Rolling’ is used, what will bean stalk do when updating software?

A

AWS will break the environment instances into batches and update once a batch of instances at the time ensuring each batch is running before moving to next.

26
Q

In a beanstalk Deployment policy where ‘Rolling’ is used, what will bean stalk do when updating software?

A

AWS will break the environment instances into batches and update once a batch of instances at the time ensuring each batch is running before moving to next.

27
Q

In a beanstalk Deployment policy where ‘Immutable’ is used, what will bean stalk do when updating software?

A

A new autoscaling group and instance sare added and the new version of the software is deployed, this ensure the old version is untouched.

28
Q

I require a database, I am using beanstalk, what are my options?

A

You can have beanstalk deploy a database for you, like MySQL, this will be deployed into your environment and is tied to your environment.

29
Q

When you deploy a database int your environment in AWS beanstalk what is the downside?

A

It is tied to the lifecycle of your environment and this may cause issues for managing the database, it may be good got development but not so good for production where you would wnat to manage the database life cycle independently of the application.

30
Q

When you deploy a beanstalk application, are there multiple instances behind a load balancer?

A

Yes, this is one configuration option, other option for more dev, is to use a single instance with no load balancer, the instance gets a public IP.

31
Q

If I wnat to save the current configuration of my beanstalk application for later use, is this possible?

A

Yes, there is an option to save it as a file and later load it in a different beanstalk application.

32
Q

I have uploaded and update a version of my application, two days later I find an error in my code and I quickly wnat to revert to the old version of my application, do i have to upload it again?

A

No, all previous version are stored and available for you to revert to.

33
Q

I terminated an environment and ten found that I needed it, what cna I do?

A

The terminated environment are kept for a period and you cna restore the environment.

34
Q

I have two environments in my application, is it possible to swap URLs?

A

Yes, you can swap the URLs.

35
Q

How do I managed old version of the application code so they get deleted at say 6 months?

A

you can use the beanstalk application life cycle policy to set a delete date for older versions of the application code

36
Q

I am setting up a new EBS application, in the configuration how do I select the VPC and subnet

A

The application consists of,

  • A configuration like VPC and subnets to use.
  • Environment s
37
Q

I have a VPC, I wnat to use EBS in my VPC, cna I do this?

A

Yes, it is supported.

38
Q

When setting up an elastic beanstalk, do I have to select a VPC and subnet when I am using it as public-facing?

A

No, EBS is a SaaS product.