Elastic Beanstalk (EB) Flashcards

1
Q

Which kind of EB environment uses an ELB?

A

Web Environment

  • Elastic Beanstalk environments:
    • Web environment
      • Load balanced Environment
        • ELB → ASG → Instances
      • Single instance Environment
        • Public IP → ASG → Instace (1)
    • Worker environment
      • SQS → ASG → Instances
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which kind of EB environment uses an auto scaling group?

ASG

A
  • All of them

- Both (Worker E. and Web E.)

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

The 2 kinds of Elastic Beanstalk environments

A

Web Environments & Worker Environments

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

Which EB web environment type requires a public IP address?

A

Single-Instance Environment

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

Which EB web environment type is best designed to easily scale?

A

Load Balanced Environment

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

The 2 types of EB Web environments

A

Single-Instance Environment & Load Balanced Environment

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

Which 2 deployment policies support a single instance environment?

A

Immutable (ɪmˈjutəbəl)

All at once

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

The 4 types of deployment policies available for Elastic Beanstalk

A

All at once, Rolling, Rolling with additional batch, Immutable

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

How would you recover from a failed, all at once, deployment? What do you have to do to rollback manually?

A

Re-deploy the old version again to all instances

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

This EB deployment policy takes all instances out of service while the deployment processes

A

All at once deployment

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

How would you handle a failed Rolling with additional batch deployment?

One answer

A

Perform an additional rolling update to roll back changes

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

This EB deployment policy creates then replaces your instances in small groups ensuring application capacity is never reduced

A

Rolling with additional batch

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

Which of the deployment methods have a manual roll back process?

A

1- All at once
2- Rolling with additional batch
3- Rolling

  • If you want to roll back an Immutable deployment you need to terminate new instances
  • If you want to roll back a Blue/Green deployment you need to swap URL
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which deployment method do perform a DNS change during deployment?

A

Blue/Green is when deployments swap environments and it ocurrs at the DNS level

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

By default what kind of updates does EB perform?

A

In-Place

Immutable Is consider an In-Place deployment because you have a route 53 and an environment and inside that environment you have an ELB and some instances, That means the deployment happens within your environment when you swap the traffic at the Load Balancer

With Blue / Green, There is a change at the DNS level (Route 53), in that moment you have two environments

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

With blue/green deployment where must your database be stored?

A

Outside of your EB environment

17
Q

What is the name of the hidden folder in your EB project that stores configuration files?

A

.ebextensions

18
Q

What are some common things you would set with EB configuration files?

Linux / Windows Server Configuration

EB Option Settings

IAM User Passwords

Custom Resources

A

Linux / Windows Server Configuration

EB Option Settings

Custom Resources

19
Q

What are some of the keys would you find in an environment manifest file?

There are only six elements in the answer.

A
  • Platform: The Amazon Resource Name (ARN) (PlatformArn: …:us-east-2::platform/Java 8 running…)
  • SolutionStack: The full name of the solution stack used to create the environment (64bit Amazon…)
  • OptionSettings: Configuration option settings to apply to the environment (InstanceType: t2.micro)
  • Tags: Up to 47 tags
  • EnvironmentTier: The type of environment to create (Name: Worker)
  • EnvironmentName: The name of the environment to create
20
Q

Where do you need to store your environment manifest (env.yml) file?

A

In the root of your EB project

21
Q

This special file is stored in the root of an EB project folder and contains important information about the projects environment

A

Environment Manifest (env.yml)

22
Q

What are some common Server Configurations you can customize with EB configuration files?

Packages

AWS Accounts

Users

Container Commands

A

Packages

Users

Container Commands

23
Q

What is the EB CLI command to initialize a new EB project directory?

eb create

eb deploy

eb init

eb open

A

eb init

24
Q

What is the EB CLI command for viewing the health status (ˈstætəs) of your environment?

eb health

eb monitor

eb create

eb status

A

eb status

25
Q

What are some (2) benefits of using a custom image for EB?

Cheaper than the default AMI

Improved provisioning time for new instances

More secure than the default AMI

Allows you to install a lot of additional software

A

Allows you to install a lot of additional software

Improved provisioning time for new instances

26
Q

How does Immutable work?

A

It creates the same amount of servers, and switches all at once to new servers, removing old servers

27
Q

What does deployment policy require an ELB? (There are 4 deployment policies)

A

Rolling deployment polices require an ELB

Rolling cannot be used with Single-Instance Web Environments because it doesn’t have an ELB

28
Q

What is Elastic Beanstalk?

What are its 3 key features?

A
  • It’s a service for deploying and scaling web applications and services without thinking about the infrastructure
  • Type of environments (Web and Worker)
  • Deployment methods (All at once, Rolling…)
  • Rollback process (Manual, Terminate new, swap URL)