AWS Certified DevOps Engineer – ProfessionalSDLC AutomationEasy
A company is developing a serverless application using AWS Lambda and Amazon API Gateway. They want to implement automated integration tests as part of their CI/CD pipeline. These tests should be run against a deployed, but pre-production, version of the application before promoting it to production. Which AWS service or feature is best suited to manage and orchestrate these integration tests within a CodePipeline workflow?
- AAmazon CloudWatch Events to schedule periodic test executions.
- BAWS CodeBuild to execute test scripts against the deployed application endpoint.
- CAWS CodeDeploy to manage the deployment and automatically trigger tests.
- DAWS Step Functions to orchestrate complex test scenarios across multiple services.
Show answer & explanationAnswer & explanation
Correct answer: B. AWS CodeBuild to execute test scripts against the deployed application endpoint.
AWS CodeBuild is a fully managed continuous integration service that can compile source code, run tests, and produce software packages. It is ideal for executing integration test scripts against a deployed application endpoint within a CodePipeline stage.
Why the other options are wrong
- A. Amazon CloudWatch Events can schedule events, but it's not designed to run and report on CI/CD tests within a pipeline.
- C. AWS CodeDeploy is for deployment, not for executing tests against a deployed application.
- D. AWS Step Functions orchestrates workflows, but CodeBuild is a more direct and cost-effective service for running test scripts within a CI/CD pipeline stage.
AWS CodeBuild
A fully managed continuous integration service that compiles source code, runs tests, and produces software packages.
- Eliminates the need to provision, manage, and scale build servers.
- Integrates seamlessly with AWS CodePipeline and CodeCommit.
- Supports various programming languages and build environments.
Memory trick: CodeBuild is the workhorse that builds, tests, and packages your code for release.