0
0
GCPcloud~30 mins

Cloud service models (IaaS, PaaS, SaaS) in GCP - Mini Project: Build & Apply

Choose your learning style9 modes available
Understanding Cloud Service Models: IaaS, PaaS, SaaS on GCP
📖 Scenario: You are learning about cloud service models using Google Cloud Platform (GCP). These models help you understand what parts of the technology you manage and what parts the cloud provider manages.Imagine you want to build a simple web application. You can choose different cloud services depending on how much control you want.
🎯 Goal: Build a simple GCP resource setup that shows examples of IaaS, PaaS, and SaaS services by creating a dictionary with service names and their models.
📋 What You'll Learn
Create a dictionary with exact GCP services and their cloud service models
Add a variable to count how many services are in each model
Use a loop to calculate the count of each cloud service model
Add a final dictionary summarizing the counts of IaaS, PaaS, and SaaS services
💡 Why This Matters
🌍 Real World
Cloud architects and developers often need to understand and categorize cloud services by their service models to choose the right tools for their projects.
💼 Career
Knowing IaaS, PaaS, and SaaS helps in roles like cloud engineer, solutions architect, and developer to design and manage cloud infrastructure effectively.
Progress0 / 4 steps
1
Create a dictionary of GCP services and their cloud service models
Create a dictionary called gcp_services with these exact entries: 'Compute Engine': 'IaaS', 'App Engine': 'PaaS', 'BigQuery': 'SaaS', 'Cloud Storage': 'IaaS', 'Cloud Functions': 'PaaS'
GCP
Need a hint?

Use curly braces to create a dictionary with the exact service names as keys and their models as values.

2
Add counters for each cloud service model
Create three variables called iaas_count, paas_count, and saas_count and set each to 0 to prepare for counting services.
GCP
Need a hint?

Set each counter variable to zero before counting.

3
Count how many services belong to each cloud service model
Use a for loop with variables service and model to iterate over gcp_services.items(). Inside the loop, increase iaas_count by 1 if model is 'IaaS', increase paas_count by 1 if model is 'PaaS', and increase saas_count by 1 if model is 'SaaS'.
GCP
Need a hint?

Use an if-elif-else structure inside the loop to increase the correct counter.

4
Create a summary dictionary with counts of each cloud service model
Create a dictionary called model_counts with keys 'IaaS', 'PaaS', and 'SaaS'. Set their values to the variables iaas_count, paas_count, and saas_count respectively.
GCP
Need a hint?

Use curly braces to create the dictionary and assign the count variables to the correct keys.