-
Introduction to Cloud Computing
-
Characteristics of Cloud Computing
-
Cloud Computing Architecture
-
Advantages and Disadvantages of Cloud Computing
-
Services and Technologies of Cloud computing
-
How does cloud computing work
-
Applications of Cloud Computing
-
Security Risks and issues of Cloud Computing
-
Types of Cloud
-
Cloud Service Models
-
Virtualization in Cloud Computing
Function as a Service (FaaS) & Backend as a Service (BaaS)
FaaS and BaaS are two cloud computing models that take the backend and server work off your plate, so as a developer you can focus on writing code instead of managing infrastructure.
What is FaaS?
Function as a Service (FaaS) is a serverless computing model. You break your application into small independent functions, and each one runs only when something triggers it, while the cloud provider looks after server provisioning, scaling, and maintenance in the background.
Key Features of FaaS:
- Event-driven execution – a function runs only when needed, which keeps the bill down.
- Serverless architecture – you don’t manage any servers or infrastructure yourself.
- Scalability – functions scale up and down on their own as the workload changes.
- Pay-per-use pricing – you pay for the time your code runs, not for idle machines.
FaaS Providers & Examples
- AWS Lambda – Serverless functions for AWS services.
- Google Cloud Functions – Event-driven functions for GCP.
- Azure Functions – Serverless execution for Microsoft Azure.
- IBM Cloud Functions – Based on Apache OpenWhisk.
- Cloudflare Workers – Edge functions for fast execution
Advantages of faaS
- No infrastructure management – your time goes into code, not servers.
- Lower costs – you’re billed only for the time a function is running.
- Faster development – a good fit for microservices and event-driven apps.
- Automatic scaling – functions grow and shrink with the load.
Disadvantages of FaaS
- Cold start latency – the first run after a quiet spell can be slow.
- Limited execution time – most providers stop a function once it hits a maximum runtime.
- Vendor lock-in – moving functions from one provider to another can be hard work.
FaaS Use Cases
- API automation – handle incoming requests as they arrive.
- IoT applications – process the data coming in from sensors.
- Chatbots & AI processing – a function fires each time a user sends something.
- Data processing & ETL – transform data in real time as events come in.
What is BaaS?
Backend as a Service (BaaS) gives you a ready-to-use backend infrastructure so you can spend your effort on front-end development. You get database management, authentication, cloud storage, push notifications, and APIs out of the box, without writing that backend code yourself.
Key Features of BaaS:
- Pre-configured backend services – authentication, databases and cloud functions are already set up.
- API-based integration – your mobile & web apps connect to it through APIs.
- Managed infrastructure – the provider takes care of maintenance and security.
- Scalable architecture – it copes with heavy traffic without slowing down.
BaaS Providers & Examples
- Firebase (by Google) – Authentication, Firestore database, cloud functions.
- AWS Amplify – Backend services for mobile & web apps.
- Backendless – Low-code backend for real-time apps.
- Parse – Open-source backend framework.
- Kinvey (by Progress) – Enterprise BaaS with cloud functions
Advantages of BaaS
- Faster app development – you don’t build the backend from scratch.
- Built-in security & authentication – user management comes ready to use.
- Scalability – it takes care of high user loads for you.
- Integration with frontend frameworks – plugs in easily with React, Angular and others.
Disadvantages of BaaS
- Limited customization – you get less freedom than with a backend you build yourself.
- Vendor dependency – your data and services sit on the provider’s platform.
- Pricing concerns – the bill can climb quickly as your user base grows.
BaaS Use Cases
- Mobile app development – get a mobile app out quickly with Firebase.
- Real-time applications – Chat apps, live notifications, multiplayer games.
- E-commerce & authentication – secure sign-in using pre-built services.
- Enterprise apps – handle user roles, permissions and cloud data storage.
Conclusion
- Pick FaaS when you’re building serverless applications, event-driven processing, and microservices.
- Pick BaaS when you’re one of the developers who need a ready-to-use backend for mobile & web apps.
Interview questions
Click a question to open it. Each one is worded the way an interviewer would ask it, and under it you’ll find why they ask it and one way you could answer in your own words.
Fresher level
1. What’s the difference between FaaS and BaaS? They sound similar.
Why they ask this: Both are serverless ideas and people mix them up all the time, so they want to hear you separate the two in one clear answer.
How you might answer: With FaaS I write my own small functions and the cloud runs them when an event happens, like AWS Lambda running code when a file is uploaded. I’m still writing the backend logic, I just don’t manage servers.
With BaaS the backend pieces are already built for me, things like login, a database and push notifications in Firebase, so I mostly call its APIs from my app instead of writing that code.
2. Can you give a simple example of an event that would trigger a function?
Why they ask this: FaaS is event-driven, and they want to check you know what starts a function in real life.
How you might answer: A common one is a user uploading a photo to a storage bucket. That upload fires a function which makes a small thumbnail of the photo.
It could also be an API call from a website, a new message landing in a queue, a reading from an IoT sensor, or a timer that goes off every night.
2–5 years experience
3. Users say the first request to your serverless API is slow, but later ones are fast. What’s going on and what can you do?
Why they ask this: Cold start is a well-known FaaS problem, and they want to see you spot it and know a few practical ways to reduce it.
How you might answer: That sounds like a cold start. If a function hasn’t run for a while, the provider has to spin up a fresh environment and load my code, so that first call waits longer.
I’d keep the function package small and load only what it needs at start-up. If the delay still hurts, most providers let you keep some instances warm for a fee, or I’d move that endpoint to a small always-on service.
4. A nightly data job you moved to a function keeps failing halfway through. What would you check?
Why they ask this: Limited execution time is one of the known FaaS limits, so they want to see if you think of it and know how to redesign around it.
How you might answer: I’d start with the function logs to see the error. If it dies at the same point every time, it’s often hitting the provider’s maximum runtime or running out of memory.
Functions are meant for short tasks, so I’d break the job into smaller pieces, say one function call per file or per batch, fed through a queue. If the job has to run for a long time, I’d move it to a container or VM.
Senior level
5. A startup built its app on Firebase and its bill is now rising fast as users grow. How would you advise them?
Why they ask this: BaaS costs that keep rising are a known downside, and they want to see you weigh quick fixes against longer-term architecture choices.
How you might answer: I’d first find what’s driving the cost. Often it’s too many database reads from the app, or large files being served straight from it. Fixing the query patterns and adding caching can cut a lot without changing platforms.
After that I’d look further ahead. If growth keeps going, moving the heaviest parts to a custom backend may work out cheaper, while simple parts like login stay on BaaS. I’d do that move in steps rather than one big rewrite.
6. What would worry you about building a whole system out of hundreds of small functions?
Why they ask this: They’re checking whether you understand the day-to-day running of serverless at scale, and not only the benefits.
How you might answer: Hundreds of functions are hard to keep track of: who owns each one, what triggers it, what it calls. If a request passes through ten functions and you don’t have good logging and tracing, you’re guessing when you debug.
Lock-in gets strong too, because triggers and permissions are specific to each provider. I’d set naming rules, deploy everything as code, send logs and traces to one place, and group related functions into clear services that each have an owner.
Further reading: Function as a Service (FaaS) and Backend as a Service (BaaS)
If you want to go further with function as a service, the official reference is a good place to start: AWS: What is cloud computing?. You can also work through the full Cloud Computing course on SaatVedha in order.
