Amazon
AXS-C01 · Question #25
An Alexa Skill Builder is debugging an AWS Lambda function using console.log() statements to inspect values in requests. How will the log statements be made available to the Builder?
The correct answer is A. The log files will be saved in Amazon CloudWatch Logs. Lambda functions save log files to CloudWatch Logs by default. Logging entries are stored in CloudWatch Logs by using standard logging statements such as console.log() in Node.js.
Test, Validate, and Troubleshoot
Question
An Alexa Skill Builder is debugging an AWS Lambda function using console.log() statements to inspect values in requests. How will the log statements be made available to the Builder?
Options
- AThe log files will be saved in Amazon CloudWatch Logs.
- BA card will be created in the Amazon Alexa app containing the output.
- CThe messages will be available in the console when using ask simulate --debug.
- DThe messages will be spoken as part of the Amazon Alexa output.
How the community answered
(25 responses)- A84% (21)
- B8% (2)
- C4% (1)
- D4% (1)
Explanation
Lambda functions save log files to CloudWatch Logs by default. Logging entries are stored in CloudWatch Logs by using standard logging statements such as console.log() in Node.js.
Topics
#AWS Lambda#CloudWatch Logs#debugging#console.log
Community Discussion
No community discussion yet for this question.