QuestionQ8

VerifiedData Operations and Support

A company uses AWS Step Functions to orchestrate a data pipeline. The company has configured the Step Functions logs to push to Amazon CloudWatch Logs when the log level is FATAL The company has enabled logs for all AWS services in the pipeline.

A state named "preprocessing" invokes an AWS Lambda function named "preprocessing." The Lambda function preprocesses data before proceeding to the next state. The company needs to find error details if an error occurs during the data preprocessing.

Which CloudWatch Logs log group should the company check to find the error details?

Explanation

Because Step Functions logging is configured at the FATAL level, it only records minimal top-level execution status and will not surface the Lambda function's exception details. AWS Lambda writes its own detailed invocation logs, including stack traces and error messages, to its dedicated CloudWatch Logs group named /aws/lambda/<function-name>, which for this state machine is /aws/lambda/preprocessing. Learn more: Accessing Amazon CloudWatch logs for AWS Lambda

Community Discussion

No comments yet. Be the first to start the discussion!