Exam 1 Flashcards

1
Q

How can you improve performance for CPU-bound Lambda functions?

A

Increase function memory (which also increases CPU); range is 128MB to 10240MB.

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

What is reserved concurrency in Lambda?

A

Guarantees the maximum number of concurrent executions for a function.

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

What is provisioned concurrency in Lambda?

A

Pre-warms a set number of Lambda instances to eliminate cold starts.

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

What does the SQS CreateQueue API do?

A

Creates a new SQS queue with settings like DelaySeconds and MessageRetentionPeriod.

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

What is the default visibility timeout for an SQS message?

A

30 seconds, configurable between 0 seconds and 12 hours.

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

Can you change the SQS queue type after creation?

A

No, queue type cannot be changed after creation.

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

What tags does SQS require?

A

Queue tags are case-sensitive and require ‘sqs:TagQueue’ permission.

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

What do AWS Elastic Beanstalk and AWS SAM rely on?

A

They rely on AWS CloudFormation for infrastructure provisioning.

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

What is the AWS CDK app deployment workflow?

A

Create app from template → add code to stacks → build → synthesize → deploy.

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

How can you improve website latency using AWS?

A

Use CloudFront to cache static content and store it in S3 instead of EC2.

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

What is EC2 User Data used for?

A

To run startup scripts for installing software or configuring the instance, runs as root.

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

What is CORS?

A

Allows web apps to make requests to a domain different from their origin domain.

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

What causes traffic imbalances in load balancers?

A

Sticky sessions, instance type differences, long-lived TCP connections.

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

How can CloudFront be used for global low-latency content delivery?

A

Configure CloudFront with multiple origins for static and dynamic content.

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

What is the purpose of IAM roles for EC2?

A

Allow secure AWS API access from EC2 without managing credentials.

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

How does Elastic Beanstalk support environments?

A

Supports multiple environments like dev, test, prod per application.

17
Q

What is an ‘All-at-once’ deployment in EB?

A

Deploys to all instances at once, fast but causes downtime.

18
Q

What is a ‘Rolling’ deployment in EB?

A

Deploys to a few instances at a time, reducing downtime.

19
Q

What is a ‘Rolling with additional batches’ deployment?

A

Adds new instances to maintain full capacity during rolling deployment.

20
Q

What is an ‘Immutable’ deployment in EB?

A

Launches new instances with new version, switches traffic when healthy.