Comprehensive and Detailed Step-by-Step Explanation:
Option C: Use AWS CodePipeline for CI/CD Workflow:
AWS CodePipeline automates the entire CI/CD pipeline, including build, deploy, and test stages. This minimizes manual effort and integrates well with AWS services.
API Gateway Stages: Represent different environments, such as dev, test, and prod, allowing isolated deployment and testing.
AWS CloudFormation Templates: Ensure that the infrastructure for Lambda and API Gateway is consistent across environments.
AWS CodeBuild for Automated Tests: Validates the deployments in each stage, ensuring integration and functionality are tested post-deployment.
Why Other Options Are Incorrect:
Option A and B: While using AWS SAM or CloudFormation for infrastructure management is valid, these options lack the fully automated CI/CD pipeline provided by CodePipeline.
Option D: Manually invoking Lambda functions using the AWS CLI introduces operational overhead and lacks the automation provided by CodePipeline.
[References:, AWS CodePipeline Documentation, API Gateway Stages for CI/CD, , , , ]
Submit