Beanstalk Flashcards

1
Q

golden AMI

A

you install your applications, your OS dependencies etc, everything beforehand, and then you create an AMI from it

and then for the future EC2 instances you just launch them directly from the disk golden AMI

the fastest way we can start up our EC2 instance

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

Bootstrapping instance with user data

A

means configuring the instance when it first starts. During ootstrapping we could also install application OS dependency’s etc. But this is going to be very slow and we don’t want each application to do the exact same thing the other one did if it can be repeated.

But for dynamic configuration for example maybe retrieving the URL for our data base and the password etc. we can use bootstrapping using the EC2 user data

We can have a hybrid mix with a golden AMI.

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

for RDS databases we can restore

A

from the snapshots and then the database will have the schemas and the data ready.

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

EBS volumes we can restore from

A

a Snapshot so we don’t have to have a disc that’s empty and not formatted, we can retreat from a snapshot and the snapshot will already be formatted properly and have the data we need.

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

BeanStalk

A

is a managed service. That means that the instance configuration, all of the operating system, will be handled by BeanStalk. The deployment strategy, you can configure it, but again it will be performed by BeanStalk. And just the application code is your responsibility.

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

three architecture models for BeanStalk

A
  1. single instance deployment
  2. a load balancer + an auto-scaling group.
  3. ASG only
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

single instance deployment

A

good for DEV.

So, you’ll have a whole environment, and it’s going to be one instance.

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

a load balancer + an auto-scaling group deployment

A

That’s great when you do production or pre-production for your web applications and you want to see how they react at scale.

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

ASG only deployment

A

it is great when you do non-web apps in production,

such as your workers or other kind of models that don’t need a load balancer or don’t need to be accessible.

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

BeanStalk has three components.

A
  1. an application
  2. an application version, so every time you upload new code, you’ll get an application version,
  3. and environment name, so you’re going to deploy your code to DEV, TEST, and PROD.

And you’re free to name your environments just the way you want, and have as many environments as you wish. You’re going to deploy applications to your environments, and basically will be able to promote
these application versions to the next environments.

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

Beanstalk the idea

A

you create an application, and you create an environment or multiple environments, and then, you’re going to upload a version and you’re going to give it an alias, so, just a name that you want.

And then, this alias, you will release it to environments.

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

You have an ASG that scales on demand based on the traffic going to your new website: TriangleSunglasses.Com. You would like to optimise for cost, so you have selected an ASG that scales based on demand going through your ELB. Still, you want your solution to be highly available so you have selected the minimum instances to 2. How can you further optimize the cost while respecting the requirements?

A

reserve 2 EC2 instances

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

Which of the following will help make our application tier stateless?

A
  1. send the session data through the client cookies

This is an option to make our application tier stateless in which the clients send their session data, so that our servers don’t need to “remember” the session data

  1. store the session data in ElastiCache
    This will help as the session data can now be accessed from multiple servers
  2. offload data in RDS
    This will help as the data can now be accessed from multiple servers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Which of the following will NOT help make our application tier stateless?

A

storing shared data on EBS volumes

EBS volumes are created for a specific AZ and can only be attached to one EC2 instance at a time. This will not help make our application stateles

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

You are looking to store shared software updates data across 100s of EC2 instances. The software updates should be dynamically loaded on the EC2 instances and shouldn’t require heavy operations. What do you suggest?

A

store the software updates on EFS and mount EFS as a network drive

EFS is a network file system (NFS) and allows to mount the same file system to 100s of EC2 instances. Publishing software updates their allow each EC2 instance to access them.

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

As a solution architect managing a complex ERP software suite, you are orchestrating a migration to the AWS cloud. The software traditionally takes well over an hour to setup on a Linux machine, and you would like to make sure your application does leverage the ASG feature of auto scaling based on the demand. How do you recommend you speed up the installation process?

A

use a Golden AMI

Golden AMI are a standard in making sure you snapshot a state after an application installation so that future instances can boot up from that AMI quickly.

17
Q

I am creating an application and would like for it to be running with minimal cost in a development environment with Elastic Beanstalk. I should run it in

A

single instance mode

18
Q

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?

A

create a Golden AMI that contains the dependencies and launch the EC2 instances from that

Golden AMI are a standard in making sure save the state after the installation or pulling dependencies so that future instances can boot up from that AMI quickly.