Section 1: Deployment Flashcards

1
Q

AWS EC2 instance type for pay as you go?

A

On-demand

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

AWS EC2 instance type for reserving for a long period of time for a lower cost?

A

Reserved

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

AWS EC2 instance type for ensuring no shared physical resources?

A

Dedicated

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

What is the difference between immutable & blue/green deployment?

A

Both have deploy a separate group of instances & can be switched back.

Blue/green is good when the application code changes are dependent on the resource configuration changes otherwise do immutable.

Blue/green does the environment switch over at the DNS layer whereas immutable does the switch over at the load balancer.

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

What is the maximum size of an S3 object?

A

5 TB

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

What is the maximum upload size of an S3 object?

A

5 GB, if you need more use multipart upload

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

What are the best practices for detaching a EBS volume from a running EC2 instance?

A

First unmount the volume and then dettach the volume from the instance.

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

What are the limitations of an SQS queue name?

A

Limited to 80 chars (-/_ are allowed)

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

What are the best practices for stress testing with an autoscaling group and an ELB?

A

Have the testing software re-resolve the DNS for each new request (to ensure the clients are hitting all IP addresses of the scaled resources.

If sticky sessions are enabled - it is critical the load test framework does not reuse connections/clients in the tests and uses unique clients for each request.

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

What are Elastic Beanstalk environments?

A

A collection of AWS resources running an application.

It can be used for production/dev/testing envs or for having different components scaling differently.

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

How to test a new version on Lambda?

A

Use an alias - split the traffic between the new version and the old version.

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

What goes into the .ebextensions folder?

A

YAML or JSON formatted documents for resources associated with EB (ending in .config).

These will be launched/terminated along with the elastic beanstalk environment.

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

Can auto scaling groups span multiple regions?

A

No

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

Can auto-scaling groups span multiple AZs within a region?

A

Yes

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

When is user data run on EC2 instances?

A

Only on boot and at the root level.

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

How to map DNS queries from one domain to another?

A

CNAME

17
Q

How to redirect queries to selected AWS resources?

A

Alias records

18
Q

Can ASG span regions?

A

No, ASG can only span AZ zones.

19
Q

What does an ASG do to an unhealthy instance?

A

Terminates the instance - later another scaling activity launches a new instance to replace the terminated one.

20
Q

How does DynamoDB on-demand backup work?

A

It backs up the data but it is not viewable on S3.

21
Q

In cloudformation how does one get access to the value of an attribute from a resource in a template?

A

!GetAtt

22
Q

How to configure monitoring for auto scaling instances?

A

Using a launch template - by default basic monitoring is enabled.

23
Q

What is the limit of all environment variables in a lambda function?

A

4 kb - no restriction on number of env. variables

24
Q

To export an elastic beanstalk configuration how is this done?

A

Create a saved configuration,
download it
change some attributes associated with it
Upload the saved configuration to an S3 bucket

25
Q

What are CodeDeploy Deployment groups?

A

Specified deployment groups for a CodeDeploy application

26
Q

What are EB Worker Environments?

A

App that performs operations that take a long time to complete and you want to keep it separate from your web layer use Worker Environments.

You need to include the cron.yaml file to define cron jobs.