IniziaInizia gratis

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.

Questo esercizio fa parte del corso

Streaming Data with AWS Kinesis and Lambda

Visualizza il corso

Esercizio pratico interattivo

Prova a risolvere questo esercizio completando il codice di esempio.

for record in event['records']:
    #Decode the incoming data and convert it to a list
    payload_dec = base64.____(record['data']).decode().split(" ")
Modifica ed esegui il codice