Practice free →
HomeAWS Developer Associatecloudcomputingawsdevdeployment › A Lambda function is deployed as a container ima…

A Lambda function is deployed as a container image stored in ECR. Which change triggers Lambda to use the NEW image version after a `docker push`?

ALambda automatically polls ECR for new tags every 5 minutes
BRe-running `docker push` is enough — Lambda mirrors live
CThe function's `ImageUri` (which embeds the image digest) must be updated to the new digest, then Lambda is re-deployed
DDeleting and recreating the entire AWS account
Answer & Solution
Correct answer: C. The function's `ImageUri` (which embeds the image digest) must be updated to the new digest, then Lambda is re-deployed
Lambda pins to an immutable image digest at deploy time. Even if you push a new image with the same tag, Lambda continues serving the old digest until you redeploy with the new one. The other options misstate Lambda's behaviour.
Solve this in the app — AWS Developer Associate practice & 24k+ MCQs →
Related questions