Question 649:
You are creating a production mode Lambda function. Due to auditing compliance, your organization stated that production-grade code must not be modified during its execution unless the modification goes through a change process. For that, you decided to publish a version for PROD, create an alias, and use the alias ARN for invoking the Lambda function. However, your organization stated the code should not run if the version is $LATEST. How would you achieve this? (choose 2 options)
Answer options:
A.getFunctionVersion from Context object. B.Get invokedLambdaARN from the event object and find out the version from it. C.Use the AWS_LAMBDA_FUNCTION_VERSION environment variable. D.Use the AWS_LAMBDA_FUNCTION_ALIAS environment variable.