AWS Certified Alexa Skill Builder – Specialty — Question 42
An Alexa Skill Builder made changes to an AWS Lambda function that is used as the endpoint for a skill. The Builder discovers that the skill now returns an error when it is launched.
How can the Builder use the Lambda console to trigger the function and debug the code?
Answer options
- A. Create a Lambda test event using the JSON request as input to find the specific error within the code.
- B. Create a Lambda test event using the JSON response as output to find the specific error within the code.
- C. Check the JSON response to see if there are any syntax errors in the code.
- D. Create a Lambda test event using the JSON interaction model to find the specific error within the code.
Correct answer: A
Explanation
The correct answer is A because creating a Lambda test event using the JSON request allows the Builder to simulate the input the skill would normally receive and identify any issues in the code. Options B, C, and D do not address the need to test the function with the actual input that the skill uses, making them less effective for debugging the issue at hand.