Several ZIP-based Lambda functions reference version 3 of a shared dependency layer. A developer publishes version 4 with a security fix. Which actions deploy the fix to those functions? (Choose two.)
Choose 2 answers
Show the answer
Correct answersC. Update each function to reference the version 4 layer ARN.D. Rebuild each function ZIP with the fixed dependency and remove the old layer reference.
AWhy not this: Functions remain pinned to version 3 until their configuration or packaging changes.
BWhy not this: Published layer versions are immutable; their dependency files cannot be overwritten.
CWhy this is right: Changing the layer reference makes each function use the newly published dependency version.
DWhy this is right: Bundling the fixed dependency and removing the old layer replaces the vulnerable dependency.
Functions use specific, immutable layer versions. Referencing version 4 or bundling the fixed dependency while removing the old layer deploys the fix; publishing a new layer version alone does not update existing functions.