0% found this document useful (0 votes)
14 views5 pages

Google Cloud Computing Week 2 Quiz

Uploaded by

SAI GOWTHAM
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)
14 views5 pages

Google Cloud Computing Week 2 Quiz

Uploaded by

SAI GOWTHAM
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

NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Google Cloud Computing


(Jul-Oct 2024)
Assignment- Week 2
TYPE OF QUESTION: MCQ/MSQ
Number of questions: 10 Total mark: 10 X 1 = 10

QUESTION 1:

Which of the following GCP Services aid us to run Windows and Linux-based virtual machines?

L
a) Compute engine

E
b) Google App engine
c) Kubernetes Engines

T
d) All of the above

P
Correct Answer: (a)

N
Explanation: Compute engine is a type of GCP Service that aids us to run Windows and Linux-
based virtual machines

QUESTION 2:
What is the maximum size of the persistent disc that can be attached to a virtual machine in Google
Compute Engine?
a) 32GB
b) 32TB
c) 64GB
d) 64TB

Correct Answer: (d)


Explanation: Maximum 64TB of network storage can be attached to VMs as persistent disc.

QUESTION 3:
Containerized applications can be deployed, managed, and scaled on Google using which service?
a) Compute engine
b) Google App engine
c) Kubernetes Engines
d) None of the above

1
NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

Correct Answer: (c)


Explanation: Containerized applications can be deployed, managed, and scaled on the Google
Kubernetes engine.

QUESTION 4:
Say, five VMs are running in a managed group with CPU utilization of 80%, 70%, 75%, 85%, and

L
90% respectively. How many VMs would the autoscaler add if the targeted CPU utilization is
50%?

TE
a) 0
b) 1

P
c) 2
d) 3

N
Correct Answer: (d)
Explanation: Here the actual utilization is {(80+70+75+85+90)/5}% = 80%. As the actual utilization
is more than the targeted, autoscaler would add VMs.
If it adds one VM then the actual utilization would be {(80+70+75+85+90)/6}% = 66.67%.
If it adds two VMs then the actual utilization would be {(80+70+75+85+90)/7}% = 57.14%
If it adds three VMs then the actual utilization would be {(80+70+75+85+90)/8}% = 50%
The correct answer is 3 as the targeted utilization can be reached only after adding 3 VMs.

QUESTION 5:
Which of the following could be an event that can trigger cloud functions?
a) Files added to the google storage
b) A new virtual machine instance is created
c) Changes occurred in database
d) None of the above
Correct Answer: (a), (b), and (c)
Explanation: Google Cloud Functions can trigger cloud functions in case of events like file added
to the storage, a new VM is created, changes occurred in database, request to http endpoints etc.

2
NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

QUESTION 6:

Which cloud service model provides the most control over the computing environment while still
abstracting the underlying hardware?

a) IaaS (Infrastructure as a service )


b) PaaS (Platform as a service)
c) SaaS(Software as a service)
d) FaaS (Function as a Service)

L
Correct Answer: (a)

E
Explanation: Infrastructure as a Service (IaaS) provides the most control over the computing
environment because it offers virtualized computing resources over the internet. Users have control

T
over operating systems, storage, and deployed applications, while the underlying hardware is

P
abstracted and managed by the service provider. This allows for significant flexibility and
customization compared to PaaS, SaaS, and FaaS.

QUESTION 7:

N
Consider the following statements:

1. Serverless computing abstracts infrastructure management tasks from the developer.


2. Serverless computing allows developers to run code without provisioning or managing
servers.

Which of the following is correct?


a) Only I
b) Only II
c) Both I and II
d) None of them are correct

Correct Answer: (c)

Explanation: Serverless computing abstracts infrastructure management tasks from the developer,
allowing them to focus on writing code. This model also enables developers to run code without
provisioning or managing servers, as the cloud provider automatically handles the scaling and
infrastructure management. This makes both statements correct.
3
NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

QUESTION 8:

How can Cloud Functions integrate with other services in the Google Cloud Platform?
a) Through direct API calls.
b) By subscribing to events from services like Pub/Sub or Cloud Storage.
c) By making SQL queries to managed databases.
d) By accessing virtual machine instances using SSH.

Correct Answer: (b)

L
Explanation: Cloud Functions are event-driven, serverless functions that execute in response to

E
specific events. By subscribing to events from services like Pub/Sub or Cloud Storage, Cloud
Functions can automatically trigger and execute code based on events such as messages published to

T
a Pub/Sub topic or object changes in a Cloud Storage bucket.

P
QUESTION 9:

N
Kubernetes is __________ and Docker is a _________.

a) virtual operating system, container


b) container, container orchestration tool
c) container orchestration tool, container
d) container, virtual operating system

Correct Answer: (c)


Explanation: Docker is a container, an open platform for developing, shipping, and running
applications whereas Kubernetes is a container orchestration tool.

QUESTION 10:

Which statement best describes Google App Engine (GAE)?

a) GAE allows you to manage virtual machines directly.


b) GAE automatically scales your application based on incoming traffic.
c) GAE supports only Python programming language.
d) GAE requires you to manage the underlying infrastructure and scaling manually.

Correct Answer: (b)


Explanation: Google App Engine (GAE) is a serverless platform that automatically manages
scaling based on incoming traffic. It abstracts away the underlying infrastructure, allowing
developers to focus on writing code and deploying applications without worrying about managing
virtual machines directly or scaling manually.
4
NPTEL Online Certification Courses

Indian Institute of Technology Kharagpur

TE L
N P

Common questions

Powered by AI

IaaS provides more control and flexibility compared to PaaS as it offers virtualized computing resources over the internet. Users have control over operating systems, storage, and deployed applications with IaaS, while PaaS abstracts more control by managing the hardware, operating systems, and sometimes the runtime, hence offering pre-configured environments for application deployment .

Google Kubernetes Engine (GKE) provides key advantages for managing containerized applications including automated updates, scalability features, integrated logging and monitoring, and strong security capabilities. GKE simplifies the management of Kubernetes clusters and offers Google’s network and security features to enhance service reliability and data protection .

Kubernetes is a container orchestration tool designed to manage, deploy, and scale containerized applications across clusters of hosts, providing application-centric infrastructure. Docker, on the other hand, is a container that bundles an application and its dependencies into a single package to ensure consistency in different environments. While Docker provides the means to create and run containers, Kubernetes manages those containers at scale .

The event-driven nature of FaaS supports rapid application development and deployment by enabling isolated function execution in response to specific events. This model allows developers to decompose applications into discrete functions that can be developed, deployed, and scaled independently. The granularity provided by FaaS facilitates parallel development, quicker iterations, and continuous integration, reducing time-to-market for new features .

Google Cloud Functions integrate with other services like Pub/Sub or Cloud Storage by subscribing to events. This allows cloud functions to automatically trigger and execute in response to specific events such as messages published to a Pub/Sub topic or changes within a Cloud Storage bucket. This event-driven model abstracts infrastructure management, allowing developers to focus on writing code without managing servers .

Google Cloud Functions subscribe to events from services like Pub/Sub or Cloud Storage by configuring triggers that respond to specific events. When events such as messages are published to a Pub/Sub topic or objects are altered in a Cloud Storage bucket, these triggers activate the corresponding cloud function. This allows for seamless integration and action-driven execution in response to cloud events .

Autoscalers can significantly impact cost management for cloud-based virtual machine environments by dynamically adjusting resource usage based on demand. By scaling down resources during low demand periods, autoscalers reduce unnecessary expenses, and by scaling up during peak times, they prevent downtime costs due to insufficient resources. This leads to an optimized cost structure directly aligned with workload requirements .

Autoscalers in Google Cloud Platform help optimize resource utilization by automatically adjusting the number of virtual machine instances in response to load demand, such as CPU utilization. By scaling the number of instances up or down, autoscalers ensure that workload requirements are met efficiently, minimizing costs and avoiding performance bottlenecks when actual utilization is higher than the targeted level .

Serverless computing abstracts infrastructure management tasks such as scaling, provisioning, and server management from developers. By doing so, developers can focus on writing application logic without needing to worry about the underlying infrastructure, which is automatically handled by the cloud provider .

Google App Engine is considered a serverless platform as it allows applications to automatically scale in response to incoming traffic, without requiring developers to manage underlying infrastructure, servers, or manual scaling. This platform abstracts these operational concerns, enabling developers to concentrate on application development and functionality .

You might also like