AWS Assignment– 3
AWS Lambda for Linux Learners
Basic Questions
- Explore the AWS Lambda Console and list available runtimes.
- Create a simple Lambda function in Python using the console (prints “Hello Lambda”).
- Create a Lambda function in Node.js using the console (prints system time).
- Use the AWS CLI to list all Lambda functions in your region.
- Deploy a Lambda function using the AWS CLI with a zipped Python script.
- Add environment variables to your Lambda function and read them in code.
- Assign an IAM Role to Lambda with CloudWatch Logs access.
- Verify Lambda function logs in CloudWatch after execution.
- Trigger a Lambda function manually from the console.
- Create a Lambda function that writes logs to CloudWatch.
- Create an S3 bucket and configure it as a trigger for your Lambda function.
- Upload a file to S3 and verify the Lambda function executes.
- Write a Lambda function that resizes an image uploaded to S3.
- Use CloudWatch Event Rule to run a Lambda function every 5 minutes.
- Create a Lambda function that writes output to an S3 bucket.
- Configure error handling with a Dead Letter Queue (DLQ) using SQS.
- Write a Lambda function that reads a text file from S3 and prints contents.
- Use Lambda Destinations to send success results to SNS.
- Monitor execution metrics of your Lambda function in CloudWatch.
- Write a short note on cost optimization in Lambda.
Intermediate Questions
- Use AWS CLI to update the code of an existing Lambda function.
- Create a Lambda Layer and use it in your function.
- Deploy a Lambda function using CloudFormation template.
- Use the AWS CLI to add environment variables to Lambda.
- Restrict a Lambda execution role to read-only access for S3.
- Create a Lambda function that reads system environment variables.
- Set concurrency limits for a Lambda function.
- Configure reserved concurrency for a specific Lambda.
- Use Lambda Destinations to send errors to SQS.
- Enable X-Ray tracing for your Lambda function.
- Deploy a Lambda function using SAM CLI.
- Test a Lambda function locally with SAM CLI.
- Write a Lambda that compresses uploaded files in S3.
- Create a Lambda that generates daily reports and uploads to S3.
- Trigger a Lambda with DynamoDB Streams.
- Create a Lambda that sends SNS notifications on file upload.
- Use Lambda with Parameter Store to read configuration values.
- Configure retries and error handling for a Lambda.
- Run aws lambda invoke CLI command to test your function.
- Document Linux shell commands commonly used with AWS CLI for Lambda.
Advanced Questions
- Write a Lambda function that automatically deletes unused EBS volumes daily.
- Create a Lambda function that rotates IAM keys automatically.
- Deploy a Lambda function using Terraform with IAM Role + S3 trigger.
- Integrate Lambda with API Gateway to expose a REST endpoint.
- Create a Lambda function that responds with system uptime.
- Write a Lambda that collects EC2 instance info and uploads it to S3.
- Enable detailed monitoring with X-Ray and analyze traces.
- Create a Lambda that scans uploaded files for malware (mock scan).
- Configure cross-region replication trigger with Lambda for S3.
- Deliver a project:
- Create Lambda with Python runtime
- S3 trigger (upload file → Lambda processes)
- Logs in CloudWatch
- Error handling with SQS DLQ
- Monitoring with X-Ray