SDLC Automation

An AWS CodePipeline pipeline provisions a test environment before running any tests, and developers wait 20 minutes to discover simple calculation defects. Where should the team place fast, isolated unit tests to provide earlier feedback?

Show the answer

Correct answerD. In an AWS CodeBuild action before test-environment provisioning

AWhy not this: Waiting for staging delays feedback on defects that can be detected without deployment.

BWhy not this: Post-production testing detects these simple defects only after users could be exposed.

CWhy not this: Isolated unit tests do not require the provisioned environment, so this retains the unnecessary delay.

DWhy this is right: Running isolated tests before provisioning exposes calculation defects without waiting for infrastructure.

Fast, isolated unit tests should run early so simple defects stop the pipeline before expensive provisioning. Waiting for a test environment adds delay without providing a dependency that isolated unit tests need.