AWS Assignment– 3

AWS Lambda for DevOps Learners

Basic Questions

  1. Create a Lambda function using Terraform IaC script.
  2. Deploy a Lambda function using a CloudFormation template.
  3. Write a Lambda function to check compliance of Security Groups (no open SSH).
  4. Configure Lambda with IAM Role to allow EC2 DescribeInstances.
  5. Write a Lambda that lists all running EC2 instances.
  6. Use Jenkins pipeline to deploy a Lambda function.
  7. Configure GitLab CI/CD pipeline to package and deploy Lambda code.
  8. Use GitHub Actions workflow to deploy a Lambda to AWS.
  9. Create Lambda function with multiple environment variables defined via IaC.
  10. Use Parameter Store to manage Lambda environment variables.
  11. Configure Lambda to publish execution results to SNS topic.
  12. Enable CloudWatch Alarm to trigger a Lambda function.
  13. Write a Lambda that checks EBS snapshots older than 30 days.
  14. Use Lambda to start/stop EC2 instances at scheduled times.
  15. Configure Lambda to process CloudTrail logs for unauthorized access.
  16. Write a Lambda to collect CloudWatch Logs and forward to S3.
  17. Create a Lambda that integrates with API Gateway as a REST endpoint.
  18. Use Lambda authorizer for API Gateway authentication.
  19. Deploy Lambda with Docker container image (custom runtime).
  20. Write notes on Blue-Green deployments for Lambda.

Intermediate Questions

  1. Write a Lambda that performs automated cleanup of unattached EBS volumes.
  2. Write a Lambda that detects untagged EC2 instances and tags them.
  3. Configure CodePipeline to deploy a Lambda function automatically.
  4. Use Terraform to provision Lambda with S3 + DynamoDB integration.
  5. Write a Lambda to rotate RDS database credentials.
  6. Write a Lambda to verify IAM compliance (no inline policies).
  7. Deploy Lambda behind an ALB (Application Load Balancer).
  8. Use X-Ray to analyze Lambda cold starts.
  9. Integrate Lambda with Kinesis Data Stream for event processing.
  10. Write a Lambda to archive CloudWatch Logs to S3 daily.
  11. Use Jenkins to run tests on Lambda code before deployment.
  12. Deploy Lambda layers with shared dependencies (e.g., boto3).
  13. Create Lambda alias for version control and routing.
  14. Implement canary release for Lambda with weighted traffic shifting.
  15. Use Step Functions to orchestrate multiple Lambda functions.
  16. Deploy Prometheus + Grafana monitoring for Lambda using CloudWatch metrics.
  17. Write a Lambda that sends Slack notifications on EC2 health issues.
  18. Use Lambda to validate CloudFormation templates before deployment.
  19. Deploy Lambda that integrates with EventBridge for cross-service automation.
  20. Document DevOps best practices for Lambda deployments.

Advanced Questions

  1. Implement a Lambda-based Blue-Green deployment pipeline with CodePipeline.
  2. Automate Lambda deployments with GitHub Actions and Terraform.
  3. Write a Lambda function for real-time log processing from Kinesis + CloudWatch.
  4. Use Lambda to run automated vulnerability scans on S3 file uploads.
  5. Write a Lambda for cost optimization (detect idle EC2/RDS, stop them).
  6. Implement multi-region Lambda deployment with IaC.
  7. Build a Lambda to check security compliance of IAM users daily.
  8. Integrate Lambda with CloudWatch, X-Ray, and Grafana for full monitoring.
  9. Deploy a microservices app where API Gateway routes requests to multiple Lambdas.
  10. 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.