Entry

Create a Hello World Lambda Function

Difficulty: entry

Source: devops-interviews/devops-interview-questions by Alex Muradov

Answer

Scenario

Your team needs a simple Lambda function for a greeting microservice.

Task

  1. Create a Lambda function named hello-function that accepts a name field from event input and returns the string Hello <name> (e.g., input {"name": "World"} returns "Hello World")
  2. Use the pre-created IAM role lambda-execution-role
  3. Invoke the function with {"name": "World"} and verify the output is "Hello World"

📹 Video Solution