A production Lambda alias points to published version 12. A team must test identical code with different environment variables through a stable test alias while leaving production unchanged; which configuration should it use?
Show the answer
Correct answerB. Configure $LATEST with test variables, publish a version, and point the test alias to it.
AWhy not this: An alias can point to $LATEST, but it then changes whenever $LATEST is edited, so it is not a stable test target.
BWhy this is right: A new published version preserves the test configuration without changing production's version.
CWhy not this: Environment variables belong to function version configuration, not aliases.
DWhy not this: Published versions are immutable, so version 12's environment variables cannot be changed.
A published Lambda version captures code and configuration, including environment variables. Publish the test configuration as a new version and target it with the test alias; aliases have no environment variables of their own, and an alias pointing to $LATEST would change whenever $LATEST is edited, so it is not a stable test target.