Lab 2: Google Cloud Platform (GCP)
Objectives:
1. Understand the core services offered by Google Cloud Platform (GCP).
2. Gain hands-on experience in deploying and managing cloud resources.
Lab Tasks:
1. Create a Google Cloud account and set up a project.
2. Deploy a Virtual Machine (VM) using Google Compute Engine (GCE).
3. Store data using Google Cloud Storage.
Related Theory:
Google Cloud Platform (GCP) is a suite of cloud computing services by Google,
offering IaaS, PaaS, and SaaS solutions for computing, storage, networking,
machine learning, and analytics.
Key Features:
• Compute Engine: Scalable virtual machines.
• Cloud Storage: Secure object storage.
• Kubernetes Engine: Managed container orchestration.
• BigQuery: Serverless data analytics.
• Cloud Functions: Serverless computing.
• AI & Machine Learning: Pre-trained and custom ML models.
• Networking: VPC, load balancing, and CDN.
• Security: IAM, encryption, and compliance tools.
Use Cases:
• Application Hosting: Scalable web apps and APIs.
• Big Data Analytics: Large-scale data processing with BigQuery.
• Machine Learning & AI: Deploying ML models.
• Cloud Storage & Backup: Secure data storage and retrieval.
Task 1: Create a Google Cloud Account and Set Up a Project
Step1: Navigate to the official Google Cloud website.
• Google offers a Free Trial and Free Tier services for new users.
• Explore available free-tier services and products.
(Free Trial and Free Tier Services and Products | Google Cloud)
Step 2: Click on “Get started for Free”.
Step 3: Click on “Agree & Continue”.
Step 4: Create your Payment Profile , add your Payment method and click on
“Start free”.
Task 2: Deploy a VM using Google Compute Engine
(GCE) Step 1: Access Google Cloud Consol go to your
dashboard.
Step 2: Locate Compute Engine use the search bar at the top of the page and type
Compute Engine. Click on Compute Engine, which will direct you to the
Compute Engine overview page and Create a New VM Instance following the
instruction from given image.
Step 3: Now Configure the VM Instance,
Step 6: Choose Operating System and Storage. Here we choose Debian as our OS.
Step 7: Networking Configuration. We enable HTTP and HTTPS traffic.
Step 8: Once all configurations are complete, click Create. Google Cloud will begin
provisioning the virtual machine.
Step 9: Install Apache as our web server so that we could host our web page.
Step 10: Now, Copy the IP and run it on another tab.
Step 11: There is a default webpage of apache which gets displayed. Now delete
that page and create your webpage and it will display in the above tab.
Task 3: Store Data using Google Cloud Storage
Step 1: Navigate to Cloud Storage and Click on Create Bucket.
Step 2: Now, Configure Bucket Settings and click create to create your bucket.
Step 3: Upload a File to the Bucket.
This displays the live detail of the file we just uploaded to bucket. We can
preview and make changes to the setting of the file through here.
Conclusion:
Through this lab, we gained hands-on experience with GCP's core services. We
learned how to deploy and effectively manage cloud resources