Bird
Raised Fist0
GCPcloud~5 mins

Cloud service models (IaaS, PaaS, SaaS) in GCP - Commands & Configuration

Choose your learning style10 modes available

Start learning this pattern below

Jump into concepts and practice - no test required

or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Introduction
Cloud service models help you choose how much control you want over your computing resources. They solve the problem of managing hardware and software by offering different levels of responsibility and ease.
When you want to rent virtual machines and manage your own software on them.
When you want to deploy your app without worrying about the underlying servers.
When you want to use ready-made software like email or storage without installing anything.
When you want to focus on coding and not on infrastructure setup.
When you want to quickly scale your app without buying physical hardware.
Commands
This command creates a virtual machine in Google Cloud, showing how Infrastructure as a Service (IaaS) works by giving you control over the server.
Terminal
gcloud compute instances create example-vm --zone=us-central1-a --machine-type=e2-medium
Expected OutputExpected
Created [https://www.googleapis.com/compute/v1/projects/my-project/zones/us-central1-a/instances/example-vm]. NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS example-vm us-central1-a e2-medium 10.128.0.2 34.68.123.45 RUNNING
--zone - Specifies the location where the VM will run.
--machine-type - Defines the hardware resources for the VM.
This command deploys an app to Google App Engine, demonstrating Platform as a Service (PaaS) where you focus on your app code and Google manages servers.
Terminal
gcloud app deploy app.yaml --project=my-project
Expected OutputExpected
Services to deploy: descriptor: 'app.yaml' Beginning deployment... Updating service [default]... Deployed service [default] to [https://my-project.uc.r.appspot.com] You can stream logs from the command line by running: gcloud app logs tail -s default
--project - Specifies the Google Cloud project to use.
This command enables the Gmail API, an example of Software as a Service (SaaS) where you use Google's ready-made software without managing infrastructure or code.
Terminal
gcloud services enable gmail.googleapis.com --project=my-project
Expected OutputExpected
Operation "operations/enablement-1234567890" finished successfully.
--project - Specifies the Google Cloud project to enable the service for.
Key Concept

If you remember nothing else, remember: IaaS gives you servers, PaaS gives you a platform to run apps, and SaaS gives you ready-to-use software.

Common Mistakes
Trying to deploy app code directly on IaaS without setting up the environment.
IaaS provides raw servers, so you must install and configure software yourself.
Use PaaS for easier app deployment or prepare the server environment manually on IaaS.
Assuming SaaS services can be customized like your own app code.
SaaS is managed software with limited customization options.
Use SaaS for standard software needs and PaaS or IaaS for custom apps.
Summary
Use 'gcloud compute instances create' to launch virtual machines (IaaS).
Use 'gcloud app deploy' to deploy apps on managed platforms (PaaS).
Use 'gcloud services enable' to activate ready-made software APIs (SaaS).

Practice

(1/5)
1. Which cloud service model lets you rent virtual machines and manage your own software?
easy
A. Infrastructure as a Service (IaaS)
B. Platform as a Service (PaaS)
C. Software as a Service (SaaS)
D. Database as a Service (DBaaS)

Solution

  1. Step 1: Understand IaaS definition

    IaaS provides virtual machines and basic infrastructure for you to manage software.
  2. Step 2: Compare with other models

    PaaS manages servers for you, SaaS provides ready software, DBaaS is specialized service.
  3. Final Answer:

    Infrastructure as a Service (IaaS) -> Option A
  4. Quick Check:

    IaaS = Rent VMs and manage software [OK]
Hint: IaaS = rent machines, you manage software [OK]
Common Mistakes:
  • Confusing PaaS with IaaS
  • Thinking SaaS includes managing servers
  • Mixing DBaaS as a main cloud model
2. Which of the following is the correct description of PaaS?
easy
A. You install and manage software on rented servers.
B. You use ready software online without installation.
C. You build and deploy apps without managing servers.
D. You manage physical hardware directly.

Solution

  1. Step 1: Recall PaaS meaning

    PaaS lets you build and deploy apps without worrying about server management.
  2. Step 2: Eliminate incorrect options

    A describes IaaS, B describes SaaS, D is not cloud service model.
  3. Final Answer:

    You build and deploy apps without managing servers. -> Option C
  4. Quick Check:

    PaaS = Build apps, no server management [OK]
Hint: PaaS = build apps, no server hassle [OK]
Common Mistakes:
  • Confusing PaaS with IaaS
  • Thinking PaaS requires software installation
  • Mixing SaaS with PaaS
3. You want to use Google App Engine to deploy your web app without managing servers. Which cloud model does this represent?
medium
A. IaaS
B. On-premises
C. SaaS
D. PaaS

Solution

  1. Step 1: Identify Google App Engine service type

    Google App Engine is a platform to deploy apps without server management.
  2. Step 2: Match with cloud service models

    This matches PaaS, since you build and deploy apps but don't manage servers.
  3. Final Answer:

    PaaS -> Option D
  4. Quick Check:

    App Engine = PaaS [OK]
Hint: App Engine means PaaS, no server management [OK]
Common Mistakes:
  • Choosing IaaS because of cloud confusion
  • Selecting SaaS thinking it's ready software
  • Confusing on-premises with cloud
4. You tried to use Google Drive as a platform to build your own app, but it only lets you use ready software online. What mistake did you make?
medium
A. Confused SaaS with PaaS
B. Confused IaaS with SaaS
C. Confused PaaS with IaaS
D. Confused on-premises with cloud

Solution

  1. Step 1: Understand Google Drive service type

    Google Drive is ready software online, a SaaS product.
  2. Step 2: Identify the confusion

    Trying to build apps on Google Drive means confusing SaaS (use software) with PaaS (build apps).
  3. Final Answer:

    Confused SaaS with PaaS -> Option A
  4. Quick Check:

    Google Drive = SaaS, not PaaS [OK]
Hint: SaaS is ready software, PaaS is for building apps [OK]
Common Mistakes:
  • Thinking Google Drive is PaaS
  • Mixing IaaS and SaaS
  • Assuming all cloud is same
5. Your company wants to launch a new app quickly without managing servers or installing software. Which GCP service and cloud model should you choose?
hard
A. Compute Engine with IaaS
B. App Engine with PaaS
C. Google Workspace with SaaS
D. Cloud Storage with IaaS

Solution

  1. Step 1: Understand company needs

    They want to launch app quickly without managing servers or installing software.
  2. Step 2: Match needs to GCP services and models

    App Engine (PaaS) lets you deploy apps without server management. Compute Engine (IaaS) requires managing VMs. Google Workspace (SaaS) is ready software, not for custom apps. Cloud Storage is storage, not app platform.
  3. Final Answer:

    App Engine with PaaS -> Option B
  4. Quick Check:

    Quick app launch, no servers = PaaS (App Engine) [OK]
Hint: For quick apps, choose PaaS like App Engine [OK]
Common Mistakes:
  • Choosing Compute Engine and managing servers
  • Picking SaaS for custom app building
  • Confusing storage service with app platform