A developer is configuring a continuous delivery pipeline in AWS CodePipeline to automate the release of a containerized web application. The pipeline needs to retrieve source code, build a Docker image, deploy the application to Amazon ECS, and verify its status. Arrange the pipeline actions in the correct chronological sequence from start to finish.
- 1CodePipeline executes a Source action using AWS CodeCommit to download the repository and generate the source artifact.
- 2CodePipeline executes a Build action using AWS CodeBuild to compile code, build a Docker container image, push it to Amazon ECR, and output a build artifact containing the task definition.
- 3CodePipeline executes a Deploy action using AWS CodeDeploy to update the Amazon ECS service using the build artifact.
- 4CodePipeline executes an Invoke action using AWS Lambda to run automated integration tests against the live Amazon ECS service endpoint.
Cevap
The correct chronological sequence of pipeline actions is: retrieve source code using AWS CodeCommit, build the Docker image using AWS CodeBuild, deploy the application using AWS CodeDeploy, and run integration tests using AWS Lambda.
The correct order follows the standard pipeline design: first obtaining source code (Source), compiling and producing the artifact (Build), deploying the artifact to the target platform (Deploy), and finally validating the live deployment (Test/Invoke).
Adım Adım Çözüm
Anahtar Kavram
AWS CodePipeline Stage and Action Sequencing