Lab 9 – Serverless Functions
Learning Outcomes
- Create a simple serverless function in AWS or GCP.
- Trigger it via HTTP and inspect the response.
- Compare the serverless model with running containers or VMs.
Tasks
-
Choose one platform:
- AWS Lambda with API Gateway
- Google Cloud Functions
-
Implement a small HTTP function that returns JSON, e.g.:
{"message":"Hello from serverless"} -
Deploy the function and invoke it from your browser or using
curl. Note the URL and the response body. -
In your notes, compare this function to the shared portal at
http://50.116.28.213:31380in terms of:- Who manages scaling
- How you pay (per request vs. per hour)
- Deployment steps
Log in to track completion status for this lab.