Exam 4 Flashcards

1
Q

How would you gradually introduce a new Lambda version by routing 10% of the incoming traffic away from the older version?

A

Lambda Aliases

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

What protocols does an ALB support?

A

HTTP and Websocket

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

How would you track CPU utilization of EC2 instances that evaluate as frequently as every 10 seconds?

A

Create a high resolution custom metric and push the data using cron

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

What is the total size of the set of AWS Lambda environment variables you can create?

A

4KB

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

What deployment strategy would you use if you choose to stop instances and install the new application version?

A

In place deployment

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

What deployment strategy would you use if you choose to reroute traffic from your applications original environment to the new environment?

A

Blue/Green

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

Do EBS volumes support in flight encryption?

A

Yes

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

What 2 services rely on CloudFormation to provision resources?

A
  • Step Function

- Elastic Beanstalk

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

What does the PutMetricData API allow you to do?

A

It allows you to publish Custom Metrics down to 1-second resolution

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

How would you allow auto-scaling based on metrics based on CPU utilization and incoming network traffic?

A

Create a Custom Metric in Cloudwatch and make your instances send data to it using PutMetricData. Create an alarm based on that metric.

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

What is the max SQS message retention?

A

14 days

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

What is the default SQS message retention?

A

4 days

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

If your API’s resources receive requests from a domain other than the API’s own domain and you want to restrict servicing these requests, what should you do?

A

Restrict CORS

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

How should you do to connect your AWS Lambda function to your RDS instance?

A

Deploy in a VPC and assign a security group

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

How would you send email notifications every time someone comments on a pull request for AWS CodeCommit

A

Cloudwatch Event Rules

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

What period can you specify if you set an alarm on a high-resolution metric?

A

10 seconds or 30 seconds

17
Q

What period can you specify if you set an alarm on a regular metric?

A

any multiple of 60 seconds

18
Q

If you do not select a region when first using AWS, what region will you be assigned to?

A

us-east-1

19
Q

What deployment strategy would you use if you want to be able to quickly rollback any failed deployments, and cost is not a problem?

A

Immutable: Immutable deployments perform an immutable update to launch a full set of new instances running the new version of the application in a separate Auto Scaling group, alongside the instances running the old version

20
Q

If you have an IAM user that has 2 policies attached, one to allow EC2 actions, and one to deny EC2 actions, what will happen when the user attempts an EC2 action?

A

The user will get denied because the policy has an explicit deny. Deny overrides allow.