Examples of Serverless Applications Explained
Q: Can you provide an example of a serverless application you have built in the past? Can you walk me through the architecture and code?
- Serverless
- Junior level question
Explore all the latest Serverless interview questions and answers
ExploreMost Recent & up-to date
100% Actual interview focused
Create Serverless interview for FREE!
Consider a web application that allows users to upload images and generate thumbnails of those images. Here's how this application could be built using a serverless architecture:
- The frontend of the application is built using a static site generator, such as Jekyll or Hugo, and hosted on a content delivery network (CDN) such as AWS CloudFront or Cloudflare. The frontend allows users to select and upload images.
- The uploaded images are then stored in an object storage service such as AWS S3.
- Whenever a new image is uploaded, an event is triggered in the object storage service.
- The event triggers a serverless function, written in a language such as Node.js or Python, that generates a thumbnail of the uploaded image.
- The serverless function then stores the generated thumbnail in the object storage service.
- Finally, the frontend of the application retrieves the thumbnail from the object storage service and displays it to the user.
This architecture is highly scalable and cost-effective since the serverless function only runs when an event is triggered, and the application can handle a large number of image uploads without the need for expensive server infrastructure. Additionally, the use of object storage and CDN services ensures that the application is highly available and can handle a large number of concurrent users.


