Which service builds the container image in a CI/CD pipeline?
Why A is the answer
AWS CodeBuild
CodeBuild runs build steps. CodePipeline connects the stages.
In detail
- CodeBuild builds the image.
- CodePipeline connects stages, and CodeBuild does the work.
Use case
An illustrative scenario, not a real incident.
On each merge, CodePipeline starts CodeBuild, which builds the container image.
See it in different ways
flowchart LR
A["Process data"] --> B["Train"]
B --> C["Evaluate"]
C --> D{"Meets the threshold?"}
D -->|Yes| E["Register the model"]
D -->|No| F["Stop and notify"]
E --> G["Deploy after approval"]flowchart LR A["CodeBuild: build the image"] --> B["ECR: store it"] B --> C["Pipelines: train and evaluate"] C --> D["Model Registry: approve"] D --> E["Endpoint"]
flowchart LR S0["Source"] --> S1["CodeBuild builds image"] --> S2["Push to registry"] --> S3["Deploy"]
Key point: CodeBuild runs build steps.
Why the other options are wrong
- B. AWS CodeCommit
- That service is for source code.
- C. AWS CodeArtifact
- That stores packages.
- D. Amazon ECR
- ECR stores the image after it is built.

