AWS Assignment– 3
AWS Lambda for DevOps Learners
Basic Questions
- Create a Lambda function using Terraform IaC script.
- Deploy a Lambda function using a CloudFormation template.
- Write a Lambda function to check compliance of Security Groups (no open SSH).
- Configure Lambda with IAM Role to allow EC2 DescribeInstances.
- Write a Lambda that lists all running EC2 instances.
- Use Jenkins pipeline to deploy a Lambda function.
- Configure GitLab CI/CD pipeline to package and deploy Lambda code.
- Use GitHub Actions workflow to deploy a Lambda to AWS.
- Create Lambda function with multiple environment variables defined via IaC.
- Use Parameter Store to manage Lambda environment variables.
- Configure Lambda to publish execution results to SNS topic.
- Enable CloudWatch Alarm to trigger a Lambda function.
- Write a Lambda that checks EBS snapshots older than 30 days.
- Use Lambda to start/stop EC2 instances at scheduled times.
- Configure Lambda to process CloudTrail logs for unauthorized access.
- Write a Lambda to collect CloudWatch Logs and forward to S3.
- Create a Lambda that integrates with API Gateway as a REST endpoint.
- Use Lambda authorizer for API Gateway authentication.
- Deploy Lambda with Docker container image (custom runtime).
- Write notes on Blue-Green deployments for Lambda.
Intermediate Questions
- Write a Lambda that performs automated cleanup of unattached EBS volumes.
- Write a Lambda that detects untagged EC2 instances and tags them.
- Configure CodePipeline to deploy a Lambda function automatically.
- Use Terraform to provision Lambda with S3 + DynamoDB integration.
- Write a Lambda to rotate RDS database credentials.
- Write a Lambda to verify IAM compliance (no inline policies).
- Deploy Lambda behind an ALB (Application Load Balancer).
- Use X-Ray to analyze Lambda cold starts.
- Integrate Lambda with Kinesis Data Stream for event processing.
- Write a Lambda to archive CloudWatch Logs to S3 daily.
- Use Jenkins to run tests on Lambda code before deployment.
- Deploy Lambda layers with shared dependencies (e.g., boto3).
- Create Lambda alias for version control and routing.
- Implement canary release for Lambda with weighted traffic shifting.
- Use Step Functions to orchestrate multiple Lambda functions.
- Deploy Prometheus + Grafana monitoring for Lambda using CloudWatch metrics.
- Write a Lambda that sends Slack notifications on EC2 health issues.
- Use Lambda to validate CloudFormation templates before deployment.
- Deploy Lambda that integrates with EventBridge for cross-service automation.
- Document DevOps best practices for Lambda deployments.
Advanced Questions
- Implement a Lambda-based Blue-Green deployment pipeline with CodePipeline.
- Automate Lambda deployments with GitHub Actions and Terraform.
- Write a Lambda function for real-time log processing from Kinesis + CloudWatch.
- Use Lambda to run automated vulnerability scans on S3 file uploads.
- Write a Lambda for cost optimization (detect idle EC2/RDS, stop them).
- Implement multi-region Lambda deployment with IaC.
- Build a Lambda to check security compliance of IAM users daily.
- Integrate Lambda with CloudWatch, X-Ray, and Grafana for full monitoring.
- Deploy a microservices app where API Gateway routes requests to multiple Lambdas.
- Deliver a final DevOps project:
- CI/CD with Jenkins or GitLab
- Lambda deployment via Terraform
- API Gateway + Lambda backend
- Canary deployment with aliases
- Monitoring with X-Ray + Grafana
- Security compliance Lambda checks.