Get startedGet started for free

A barebones transformational lambda

You got asked by one of your European coworkers to convert all the speed data coming in to kilometers as part of the lambda transformation function.

For each record coming in, convert the speed to kilometers per hour instead of miles per hour.

The base64 module has been imported for you, and the output empty list is available in your environment.

This exercise is part of the course

Streaming Data with AWS Kinesis and Lambda

View Course

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

for record in event['records']:
    #Decode the incoming data and convert it to a list
    payload_dec = base64.____(record['data']).decode().split(" ")
Edit and Run Code