0% found this document useful (0 votes)
47 views8 pages

Hands-On GCP Lab: Deploying Resources

Uploaded by

Aditya Shrestha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views8 pages

Hands-On GCP Lab: Deploying Resources

Uploaded by

Aditya Shrestha
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

Common questions

Powered by AI

Google Cloud Storage is used for data storage and management by providing secure and scalable object storage solutions. The process involves navigating to Cloud Storage, creating a bucket by configuring its settings, and uploading files to this bucket. Users can preview, manage, and change file settings through the console. Google Cloud Storage's purpose is to enable convenient and efficient data storage and retrieval, supporting diverse use cases such as backups, content delivery, and data archiving .

Deploying and managing cloud resources on GCP offers hands-on learning by engaging users with practical tasks such as creating accounts, setting up projects, deploying VMs, and using Cloud Storage. These activities require learners to navigate the GCP console, make configuration decisions, and troubleshoot issues in real-time, thus reinforcing theoretical knowledge through applied practice. Additionally, learners gain exposure to a wide range of cloud technologies and best practices in cloud resource management, some of which include setting up secure infrastructure and optimizing services for cost and performance .

Using Google Cloud's managed container orchestration with Kubernetes Engine offers several benefits, including reducing the operational complexity of managing containerized applications. It provides automatic scaling and updates, improving resource efficiency and application availability. Kubernetes Engine also integrates with other GCP services, leveraging Google’s robust network and security features. This managed service allows developers to focus on building applications rather than managing infrastructure, further enhancing productivity and enabling easier deployment of complex applications .

Google Cloud’s compliance tools support businesses in meeting regulatory requirements by providing frameworks and practices aligned with global compliance standards, such as GDPR, HIPAA, and FedRAMP. These tools offer comprehensive security and audit capabilities, including detailed logs for traceability and tools for managing and securing access to resources. This helps organizations demonstrate compliance, manage data securely, and reduce the risk of non-compliance penalties, thus providing a reliable platform to meet legal and regulatory obligations .

Enabling HTTP and HTTPS traffic during the configuration of a VM instance on Google Compute Engine is crucial for allowing web traffic to access hosted applications or services. HTTP and HTTPS are standard protocols used for data communication on the web, with HTTPS providing the added layer of security through data encryption. This ensures that applications or services hosted on the VM can be accessed securely by end users, safeguarding the data exchanged and enhancing the overall security posture .

A secure networking setup is crucial when deploying applications on GCP to protect data and services from unauthorized access and cyber threats. Utilizing virtual networks, firewalls, and encryption helps safeguard sensitive information while ensuring compliance with industry standards. Effective security measures also reduce the risk of data breaches, preserve system integrity, and maintain user trust, thereby protecting both the business and its clients .

Google Cloud Platform (GCP) consists of several key components. Compute Engine offers scalable virtual machines for compute workloads. Cloud Storage provides secure object storage for various data needs. Kubernetes Engine is a managed service for container orchestration. BigQuery allows for serverless data analytics at scale. Cloud Functions supports serverless computing for executing code in response to events. Additionally, AI & Machine Learning services offer pre-trained and custom models. Networking features include Virtual Private Cloud (VPC), load balancing, and Content Delivery Network (CDN). Security tools include Identity and Access Management (IAM), encryption, and compliance resources .

Google Cloud’s offering in AI and Machine Learning differs from traditional computing models by providing pre-trained models and customizable frameworks that can be deployed at scale without the need for underlying infrastructure management. This serverless approach abstracts the complexity associated with deploying, scaling, and managing machine learning models, enabling users to focus on developing solutions rather than infrastructure. Traditional models often require significant resources for hardware, software, and trained personnel to manage and integrate ML solutions, while GCP allows for more agile and scalable deployment .

Deploying a VM using Google Compute Engine demonstrates the aspects of IaaS by providing scalable compute resources through virtual machines without requiring users to invest in physical hardware. Users can select their desired operating system, configure storage, and set up networking to suit their needs. This flexibility and scalability exemplify the core principles of IaaS, which focuses on offering infrastructure resources over the internet as needed .

To set up a Google Cloud account and initiate a project using the free tier, one must first navigate to the Google Cloud website and explore the free-tier services. New users should select 'Get started for Free,' agree to the terms by clicking 'Agree & Continue,' and then create a Payment Profile by adding a payment method. Subsequently, click on 'Start free' to initiate the project .

You might also like