nerdexam
Amazon

DVA-C02 · Question #570

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 correct answer is C. For each Lambda function, add the layer for the Lambda Insights extension and the. To enable CloudWatch Logs Insights for AWS Lambda functions, you need to integrate Lambda Insights, which provides detailed metrics and logs for your Lambda functions, including enhanced monitoring, application tracing, and performance metrics. This can be done by adding the…

Submitted by tyler.j· Mar 5, 2026Monitoring and Troubleshooting

Question

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?

Options

  • AAdd an output named CloudWatchinsightRule that contains a value of the Amazon Resource
  • BAdd a parameter named CloudWatchLogGroupNamePrefix that contains a value of the
  • CFor each Lambda function, add the layer for the Lambda Insights extension and the
  • DFor each Lambda function, set Tracing mode to Active and add the

How the community answered

(42 responses)
  • B
    2% (1)
  • C
    95% (40)
  • D
    2% (1)

Explanation

To enable CloudWatch Logs Insights for AWS Lambda functions, you need to integrate Lambda Insights, which provides detailed metrics and logs for your Lambda functions, including enhanced monitoring, application tracing, and performance metrics. This can be done by adding the appropriate Lambda Insights extension and assigning the necessary IAM policies to the Lambda Adding the Lambda Insights extension layer: This extension allows Lambda to send enhanced metrics and logs to CloudWatch for analysis with CloudWatch Logs Insights. Adding the CloudWatchLambdaInsightsExecutionRolePolicy managed policy: This policy grants the necessary permissions for Lambda functions to send their logs and metrics to CloudWatch.

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice