SDLC Automation

A CodePipeline Lambda invoke action starts an external test run that takes 30 minutes and returns a run identifier immediately. How should the Lambda integration keep the action pending without exceeding the Lambda execution limit?

Show the answer

Correct answerA. Report job success with a continuation token, then check the run on subsequent invocations

AWhy this is right: The continuation token preserves test-run context while CodePipeline reinvokes the function to check completion.

BWhy not this: A 30-minute wait exceeds Lambda's maximum execution duration of 15 minutes.

CWhy not this: A handler return value does not tell CodePipeline whether its action succeeded or failed.

DWhy not this: Acceptance of an asynchronous test run does not establish whether its tests passed.

PutJobSuccessResult with a continuation token keeps the action in progress and causes CodePipeline to invoke the function again with that token. Simply returning a value from the handler does not report a CodePipeline job result.