Exam 4 Flashcards
How would you gradually introduce a new Lambda version by routing 10% of the incoming traffic away from the older version?
Lambda Aliases
What protocols does an ALB support?
HTTP and Websocket
How would you track CPU utilization of EC2 instances that evaluate as frequently as every 10 seconds?
Create a high resolution custom metric and push the data using cron
What is the total size of the set of AWS Lambda environment variables you can create?
4KB
What deployment strategy would you use if you choose to stop instances and install the new application version?
In place deployment
What deployment strategy would you use if you choose to reroute traffic from your applications original environment to the new environment?
Blue/Green
Do EBS volumes support in flight encryption?
Yes
What 2 services rely on CloudFormation to provision resources?
- Step Function
- Elastic Beanstalk
What does the PutMetricData API allow you to do?
It allows you to publish Custom Metrics down to 1-second resolution
How would you allow auto-scaling based on metrics based on CPU utilization and incoming network traffic?
Create a Custom Metric in Cloudwatch and make your instances send data to it using PutMetricData. Create an alarm based on that metric.
What is the max SQS message retention?
14 days
What is the default SQS message retention?
4 days
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?
Restrict CORS
How should you do to connect your AWS Lambda function to your RDS instance?
Deploy in a VPC and assign a security group
How would you send email notifications every time someone comments on a pull request for AWS CodeCommit
Cloudwatch Event Rules
What period can you specify if you set an alarm on a high-resolution metric?
10 seconds or 30 seconds
What period can you specify if you set an alarm on a regular metric?
any multiple of 60 seconds
If you do not select a region when first using AWS, what region will you be assigned to?
us-east-1
What deployment strategy would you use if you want to be able to quickly rollback any failed deployments, and cost is not a problem?
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
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?
The user will get denied because the policy has an explicit deny. Deny overrides allow.