Elastic Beanstalk Flashcards

1
Q

What is Elastic Beanstalk?

A

Service for deploying and scaling web apps in popular languages widely using web server platforms

GUI for easy upload code and Beanstlak provisions all reasources for you

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

What is the fastest and simplest way to deploy an app in AWS?

A

Elastic Beanstalk

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

Languages supported by Elastic Beanstalk

A
Java
PHP
Python
Ruby
Go
Docker
.NET
Node.js
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

App Server Platforms supported by Elastic Beanstalk

A

Tomcat
Passenger
Puma
IIS

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

How to integrate monitoring and health checks in Elastic Beanstalk

A

No need this is all included

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

Can you take admin control of EC2 instances in Elastic Beanstalk?

A

Yes, although Elastic Beanstalk can fully manage EC2 instances for you. You can also take full admin control.

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

Deployment Policies of Elastic Beanstalk

A

All at Once

Rolling

Rolling with additional Batch

Immutable

Traffic Splitting

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

Describe Traffic Splitting Elastic Beanstalk Deployment Policy

A

Immutable deployment with percentage of incoming traffic to new app version for evaluation

Enables Canary Testing

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

How to customize Elastic Beanstalk Enviornment

A

.config file (JSON or YAML)

save in .ebextensions folder (must. be in top level directory of app)

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

2 options for connection RDS and Elastic Beanstalk

A

1) Can create w/ beanstalk (good for dev and test but not for prod) as this would delete RDS in production
2) For prod decouple RDS from Elastic Beanstalk

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

How to decouple RDS from Elastic Beanstalk?

A

Launch RDS outside of Elastic Beanstalk

Add additional security group

Provide connection info as env. properties

Allow connect from multi env.

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

If you want additional info about resources in ELB env what should you enable?

A

Enhanced health reporting

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

Where are application logs stored in ELB?

A

S3

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

Where are server logs sotred?

A

S3 or CloudWatch Logs

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

What are possible issues if you recieve message “The instance profile aws-elasticbeanstalk-ec2-role associated with the environment does not exist”

A

The ELB CLI did not create once because IAM role has no permission to create roles

IAM role already exists but has insufficient permissions that ELB needs

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

What configuration files should you add if you want periodic tasks done in Elastic Beanstalk?

A

cron.yaml

17
Q

What config file should you add if you need to config env. name, solution stack, and env links to create ElasticBeanstalk enviornment?

A

env.yaml

18
Q

What config file should you add if you want ot have a multicontainer Docker enviornment hosted in Elastic Beanstalk?

A

Dockerrun.aws.json

19
Q

Which AWS services can be used as a web server for your Elastic Beanstalk Environment

A

EC2,
S3,
Auto Scaling Group,
ELB

20
Q

How to deploy new version of Elastic Beanstalk in CLI

A

package your app as a ZIP file and then run

eb deploy

21
Q

In order to delete an old Elastic Beanstalk environment what do you need to do?

A

Delete existing security group

22
Q

Ways to migrate an app written in C++ to Elastic Beanstalk (easiest ways)

A

Use Packer to generate custom AMI and deploy with EB

or

Use Docker to containerize app, deploy with EB