Testing and Deployment

A team is moving an existing ZIP-based Lambda function to a container built from a non-AWS Linux base image. The build produces a multi-architecture image without Lambda runtime integration; which approach makes it deployable?

Show the answer

Correct answerD. Create a new function with a single-architecture image containing a runtime interface client.

AWhy not this: The runtime interface emulator supports local testing and does not replace the runtime interface client.

BWhy not this: Lambda requires an image targeting a single architecture, not a multi-architecture image.

CWhy not this: An existing function cannot change its deployment package type from ZIP to container image.

DWhy this is right: A new image-based function, one target architecture, and a runtime interface client satisfy the requirements.

The migration requires a new function because its package type cannot be changed. The image must target one architecture and implement the Lambda Runtime API, typically through a runtime interface client; the runtime interface emulator is for local testing.