Challenge: Implementing an Amazon SQS Listener

Test yourself by implementing an Amazon SQS listener.

In the playground below, we have an empty function handler that accepts SQS events. We need to add the following logic to the method:

  1. Log how many records the input event contains.

  2. Record the body of each record from the event.

If we test our Lambda using Lambda Test Tool, we should not expect to see any direct output. However, we should see the information displayed in the log panel.

If you get stuck, you can use the hint below.

Get hands-on with 1400+ tech skills courses.