3. Create a Hello World Lambda Function
Beginner Mode
Start your terminal to use beginner mode.
Scenario
Your team needs a simple Lambda function for a greeting microservice.
Task
Create a Lambda function named
hello-functionthat:- Takes a
namefield from the event input - Returns the string
Hello <name>(e.g. input{"name": "World"}returns"Hello World") - Uses the pre-created IAM role
lambda-execution-role
- Takes a
Invoke the function with
{"name": "World"}and verify it returns"Hello World"
Note: You can use Python (python) or Node.js (nodejs) as the runtime. You can use either the AWS Management Console or AWS CLI to complete this task.
Terminal requires a larger screen
Open this page on a desktop or tablet (≥ 768px) to launch the terminal and practice hands-on.
AWS Console Environment
Launch an AWS environment to solve this challenge.
Essential
Linux 0/29
AWS 0/10
Kubernetes 0/15
CI/CD 0/5
Networking 0/9
Need more practice in this area? Explore more questions →
Adobe
Accenture
Coinbase
EPAM
Twitch
Amazon
Kayak
Autodesk
Lyft
Revolut
RedHat
Bloomberg
Datadog
Palantir
TCS
HashiCorp
Google
DeutscheBank
GitHub
Apple
Cloudflare
Stripe
Microsoft
NVIDIA
GoDaddy
X
SAP
Spotify
Airbnb
Meta
Reddit
Yelp
Okta
Dropbox
Slack
ActivisionBlizzard
Zscaler
Uber
IBM
DeliveryHero
Robinhood
GitLab
Shopify
Samsung
Elastic
Twilio
Netflix
CrowdStrike
Ubisoft
Anthropic
Capital One
Splunk
Intel
AMD
Databricks