AWS Certified Developer - Associate DVA-C02 Exam QuestionsBrowse all questions from this exam

AWS Certified Developer - Associate DVA-C02 Exam - Question 556


A company’s developer needs to activate Amazon CloudWatch Logs Insights for an application’s AWS Lambda functions. The company uses an AWS Serverless Application Model (AWS SAM) template to deploy the application. The SAM template includes a logical resource that is named CloudWatchLogGroup.

How should the developer modify the SAM template to activate CloudWatch Logs Insights for the Lambda functions?

Show Answer
Correct Answer:

Discussion

1 comment
Sign in to comment
vbloiseOption: C
May 4, 2025

Correct answer: C. For each Lambda function, add the layer for the Lambda Insights extension and the CloudWatchLambdaInsightsExecutionRolePolicy AWS managed policy. Explanation: To enable CloudWatch Lambda Insights, you need to: Attach the Lambda Insights extension layer to the function. Ensure the function's IAM role has the CloudWatchLambdaInsightsExecutionRolePolicy policy. This enables enhanced monitoring and insights in CloudWatch Logs Insights for Lambda.