AWS Lambda Exam Practice Questions Flashcards

(53 cards)

1
Q

A company wants to automatically generate thumbnails for images uploaded to S3. Which solution is most cost-effective?

A

Lambda triggered by S3

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

A Lambda function inside a private subnet needs internet access. What is required?

A

NAT Gateway

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

Which service exposes Lambda as a RESTful API?

A

API Gateway

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

How many retries does Lambda perform for asynchronous invocation by default?

A

2

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

Where are Lambda logs stored?

A

CloudWatch Logs

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

A shared library is used by multiple Lambda functions. How should it be implemented?

A

Lambda Layer

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

Maximum Lambda execution time?

A

15 minutes

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

Lambda triggered by Kinesis scales based on what?

A

Shard count

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

Which feature reduces cold start latency for Lambda?

A

Provisioned Concurrency

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

Which of the following is NOT a Lambda trigger?

A

EC2 Auto Scaling event

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

What is a Lambda execution role?

A

IAM role granting Lambda permissions to access AWS resources

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

How does Lambda process messages from SQS?

A

Lambda polls SQS automatically

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

Which service orchestrates multiple Lambda functions with branching logic?

A

Step Functions

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

Default regional concurrency limit for Lambda?

A

1000

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

Lambda functions are stateless. Where should state be stored?

A

DynamoDB or S3

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

How is Lambda billed?

A

Per request and GB-second of execution

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

Which service can trigger Lambda on a schedule?

A

EventBridge

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

Best practice for Lambda accessing RDS?

A

Use RDS Proxy

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

Lambda@Edge allows?

A

Running Lambda at CloudFront edge locations

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

Maximum unzipped deployment size for Lambda?

A

250 MB

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

Where do failed async Lambda events go?

A

Dead Letter Queue (SQS or SNS)

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

What happens when Lambda is throttled?

A

Requests fail with 429 error

23
Q

Default ephemeral storage for Lambda?

24
Q

Maximum configurable ephemeral storage for Lambda?

25
Which service orchestrates serverless workflows with retries and branching?
Step Functions
26
What is idempotency in Lambda?
Repeated execution produces the same result
27
Which service allows cross-account Lambda invocation?
Lambda resource-based policy
28
Which metrics indicate Lambda performance issues?
Duration Errors Throttles Invocations
29
How can Lambda code be reused across multiple functions?
Lambda Layers
30
High-throughput streaming data processing pattern?
Kinesis ? Lambda ? S3/DynamoDB
31
Lambda function requires secure access to S3. How is this achieved?
IAM execution role with least privilege
32
Which service enables distributed tracing of Lambda execution?
X-Ray
33
Which AWS service can trigger Lambda for real-time notifications?
SNS
34
A serverless workflow needs retries and branching. Recommended pattern?
Lambda + Step Functions
35
How to reduce Lambda cost for unpredictable workloads?
Optimize memory and execution duration
36
Best practice for Lambda network security?
Run in private subnet with security group rules
37
Which service can trigger Lambda for database streams?
DynamoDB Streams
38
Which Lambda deployment method supports container images?
Lambda container image packaging
39
How to monitor failed Lambda invocations?
CloudWatch alarms
40
How to handle failed batch processing asynchronously?
Dead Letter Queue (SQS or SNS)
41
How does Lambda scale with SQS?
Based on queue depth
42
What is the benefit of Lambda provisioned concurrency?
Pre-initialized execution environments reduce latency
43
Which runtime languages are supported by Lambda?
Python Node.js Java Go .NET Ruby
44
Which AWS service helps schedule Lambda batch jobs?
EventBridge scheduled rules
45
How can Lambda access shared file storage?
Amazon EFS
46
Lambda function fails due to permission errors. Best solution?
Check IAM execution role policies
47
What is the recommended architecture for image processing in near real-time?
S3 trigger ? Lambda ? S3 output bucket
48
How to avoid database connection limits from Lambda?
Use RDS Proxy
49
Which security feature encrypts Lambda environment variables?
AWS KMS
50
How does Lambda interact with CloudWatch Metrics?
Automatic metrics collected for invocations Duration Errors
51
How to coordinate multiple asynchronous Lambda functions?
Step Functions with branching and retries
52
Which AWS service provides event routing for serverless apps?
EventBridge
53
Best pattern for exposing a serverless API with low-latency responses?
API Gateway + Lambda with Provisioned Concurrency