Home › AWS Developer Associate › cloudcomputing › awsdevdeployment › 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.
Related questions
Which strategy lets a serverless API safely deploy a new Lambda alias while keeping old clWhich AWS service lets developers store and version build artefacts and intermediate filesWhich Elastic Beanstalk deployment policy shifts traffic to new instances WHILE keeping thWhich CloudFormation feature lets a developer reference an existing resource (e.g. an exisA team wants to deploy a Lambda update with the option to roll back automatically if a CloWhich AWS service automates Docker image builds and publishes them to a private container Which combination provides end-to-end CI/CD for an application stored in CodeCommit, builtWhich CodeDeploy deployment strategy for a Lambda alias shifts traffic from version V1 to