AWS Lambda MCQs (25)
1) AWS Lambda is mainly used for?
A. Managing servers manually
B. Running code without managing servers (serverless)
C. Creating VPCs
D. Storing objects
2) Lambda is triggered by?
A. Events
B. Only EC2
C. Only S3
D. Only RDS
3) Which is an example Lambda trigger?
A. S3 object upload
B. API Gateway request
C. EventBridge schedule
D. All of the above
4) Lambda pricing is based on?
A. Disk size
B. Number of servers
C. Requests + compute time (duration) + memory
D. IP address
5) Which language is supported by Lambda?
A. Python
B. Node.js
C. Java
D. All of the above
6) The Lambda function entry point is called?
A. Handler
B. Trigger
C. Runtime
D. Bucket
7) What is the maximum execution time for a Lambda function?
A. 1 minute
B. 5 minutes
C. 15 minutes
D. 60 minutes
8) Which service commonly exposes Lambda as an HTTP API?
A. Route 53
B. API Gateway
C. IAM
D. EBS
9) Environment variables in Lambda are used to?
A. Store config values (like DB URL)
B. Increase memory
C. Create buckets
D. Add IAM users
10) Lambda can run inside a VPC to access?
A. Private resources like RDS in private subnets
B. Only public internet
C. CloudFront edge only
D. S3 website hosting
11) Which helps reduce cold starts for Lambda?
A. Provisioned Concurrency
B. Stop the function
C. Disable logs
D. Use Glacier
12) Logs from Lambda are typically stored in?
A. CloudWatch Logs
B. S3 only
C. DynamoDB
D. Route 53
13) Lambda permissions are controlled using?
A. IAM Roles
B. Security Groups only
C. ACLs
D. VPC Peering
14) The role attached to Lambda is also called?
A. Execution Role
B. Root Role
C. Network Role
D. Bucket Role
15) What is a Lambda Layer?
A. A storage class
B. A way to package and share libraries/dependencies
C. A VPC subnet
D. A CloudFront distribution
16) Which service can run Lambda on a fixed schedule (cron-like)?
A. CloudTrail
B. EventBridge (CloudWatch Events)
C. IAM
D. EFS
17) What is the /tmp storage in Lambda used for?
A. Permanent storage
B. Temporary files during execution
C. S3 bucket storage
D. IAM policies
18) Which service is commonly used for Lambda async messaging?
A. SQS / SNS
B. EBS
C. Route 53
D. WorkSpaces
19) Lambda is best suited for?
A. Long-running batch jobs (days)
B. Event-driven short tasks
C. Running a full OS desktop
D. Hosting databases
20) Which feature helps you call a specific version of Lambda code?
A. Alias
B. Bucket
C. Subnet
D. Snapshot
21) Lambda versions are created when you?
A. Save without publishing
B. Publish a version
C. Delete the function
D. Add a tag
22) Which is used to connect Lambda to a REST API endpoint easily?
A. API Gateway
B. EC2 Auto Scaling
C. Route 53 Hosted Zone
D. EBS Volume
23) Which metric is most useful for Lambda performance monitoring?
A. Duration
B. Invocations
C. Errors
D. All of the above
24) If Lambda needs to access S3, you must?
A. Make bucket public
B. Attach IAM permissions to the Lambda execution role
C. Use only root account
D. Disable encryption
25) Lambda supports deployment using?
A. ZIP package
B. Container image
C. Both ZIP and container image
D. Only AMI
Answer Key
1) B
2) A
3) D
4) C
5) D
6) A
7) C
8) B
9) A
10) A
11) A
12) A
13) A
14) A
15) B
16) B
17) B
18) A
19) B
20) A
21) B
22) A
23) D
24) B
25) C
Explore More AWS Topics
Enhance your knowledge of AWS with these essential resources:
These MCQs are designed to test your understanding and help you prepare for AWS certifications effectively.