SDLC Automation
A pipeline's custom test action launches a standalone Amazon ECS task containing a test runner and a log-forwarding sidecar, then reports success when RunTask succeeds. How should the action determine whether the tests passed?
Show the answer
Correct answerB. Wait for STOPPED and require a zero exit code from the test runner.
AWhy not this: The sidecar's exit code describes log forwarding, not the test runner's result.
BWhy this is right: The completed test runner's zero exit code signals test success; missing or nonzero results must not pass.
CWhy not this: Successful submission and placement do not establish the result of tests that run later.
DWhy not this: RUNNING confirms startup, while the image digest identifies code; neither establishes test completion.
RunTask success confirms task submission, not successful test completion. The action must wait for completion and evaluate the test runner's exit code; a successful logging sidecar does not establish that the tests passed.