Exam 1 Flashcards
How can you improve performance for CPU-bound Lambda functions?
Increase function memory (which also increases CPU); range is 128MB to 10240MB.
What is reserved concurrency in Lambda?
Guarantees the maximum number of concurrent executions for a function.
What is provisioned concurrency in Lambda?
Pre-warms a set number of Lambda instances to eliminate cold starts.
What does the SQS CreateQueue API do?
Creates a new SQS queue with settings like DelaySeconds and MessageRetentionPeriod.
What is the default visibility timeout for an SQS message?
30 seconds, configurable between 0 seconds and 12 hours.
Can you change the SQS queue type after creation?
No, queue type cannot be changed after creation.
What tags does SQS require?
Queue tags are case-sensitive and require ‘sqs:TagQueue’ permission.
What do AWS Elastic Beanstalk and AWS SAM rely on?
They rely on AWS CloudFormation for infrastructure provisioning.
What is the AWS CDK app deployment workflow?
Create app from template → add code to stacks → build → synthesize → deploy.
How can you improve website latency using AWS?
Use CloudFront to cache static content and store it in S3 instead of EC2.
What is EC2 User Data used for?
To run startup scripts for installing software or configuring the instance, runs as root.
What is CORS?
Allows web apps to make requests to a domain different from their origin domain.
What causes traffic imbalances in load balancers?
Sticky sessions, instance type differences, long-lived TCP connections.
How can CloudFront be used for global low-latency content delivery?
Configure CloudFront with multiple origins for static and dynamic content.
What is the purpose of IAM roles for EC2?
Allow secure AWS API access from EC2 without managing credentials.
How does Elastic Beanstalk support environments?
Supports multiple environments like dev, test, prod per application.
What is an ‘All-at-once’ deployment in EB?
Deploys to all instances at once, fast but causes downtime.
What is a ‘Rolling’ deployment in EB?
Deploys to a few instances at a time, reducing downtime.
What is a ‘Rolling with additional batches’ deployment?
Adds new instances to maintain full capacity during rolling deployment.
What is an ‘Immutable’ deployment in EB?
Launches new instances with new version, switches traffic when healthy.