DVA-C01-LATEST practice question 12 of 35

A developer is creating a serverless application that uses an AWS Lambda function. The developer will use AWS Cloud Formation to deploy the…

Full set: 608 questions
A developer is creating a serverless application that uses an AWS Lambda function. The developer will use AWS Cloud Formation to deploy the application. The application will write logs to Amazon 3loudWatch Logs. The developer has created a log group in a Cloud Format ion template for the application to use. The developer needs to modify the CloudFormation template to make the name of the log [jroup available to the application at runtime. Which solution will meet this requirement?
Answer options
A: Use the AWS:: Include transform in CloudFormation to provide the log group's name to the application.
B: Pass the log group's name to the application in the user data section of the CloudFormation template.
C: Use the CloudFormation template's Mappings section to specify the log group's name for the application. Correct answer
D: Pass the log group's Amazon Resource Name (ARN) as an environment variable to the Lambda function.
Correct Answer:
C. Use the CloudFormation template's Mappings section to specify the log group's name for the application.
Explanation

:

Scroll to Top