GCP Foundations QnA PDF
Document Details
Uploaded by LuckyPoisson
Guru Nanak Institute of Technology
Tags
Summary
This document contains a set of questions and answers related to Google Cloud Platform (GCP). The questions cover various cloud services, their functionalities, and use cases. The document also includes concepts like cloud computing architecture and different services like Pub/Sub.
Full Transcript
Cloud computing architecture is a combination of? a) Service-oriented architecture and grid computing b) Utility computing and event-driven architecture. c) Service-oriented architecture and event-driven architecture. d) Virtualization and event-driven architecture. Accepted Answers: c) Se...
Cloud computing architecture is a combination of? a) Service-oriented architecture and grid computing b) Utility computing and event-driven architecture. c) Service-oriented architecture and event-driven architecture. d) Virtualization and event-driven architecture. Accepted Answers: c) Service-oriented architecture and event-driven architecture. Which of the following is an example of a PaaS cloud service? a) Heroku b) AWS Elastic Beanstalk c) Windows Azure d) None of the above Accepted Answers: a) Heroku b) AWS Elastic Beanstalk c) Windows Azure Google App Engine comes under which kind of service? a) Compute service b) Networking service c) Storage service d) Big data service Accepted Answers: a) Compute service Developing and deploying web-based software in data centers is managed by which Google cloud platform service? a) Compute engine b) Google App engine c) Kubernetes Engines d) None of the above Accepted Answers: b) Google App engine What is the purpose of a folder in GCP? a) Used to organize projects b) Used to organize instances c) Used to organize users d) Folders are not part of the hierarchy Accepted Answers: a) Used to organize projects Which command line tool can be used to manage Cloud Storage? a) bq b) Cloud Shell c) gcloud d) gsutil Accepted Answers: d) gsutil Which database is used for mobile app development in GCP? a) Cloud SQL b) Firebase c) Cloud Bigtable d) None of the above Accepted Answers: b) Firebase Which of the following enables the user to run the GCP command line tool from the local desktop? a) Cloud SDK b) Cloud Shell c) Compute Engine d) App Engine Accepted Answers: a) Cloud SDK How would you test a Google API and learn how it works? a) Use the help files in Cloud Shell b) Use the gcloud command in the Cloud SDK c) Use the APIs Explorer that is part of the GCP console d) Use the console to get the directions on how to build the api by service Accepted Answers: c) Use the APIs Explorer that is part of the GCP console Which of the following is a common format for API requests in GCP? a) XML b) JSON c) CSV d) YAML Accepted Answers: b) JSON Which of the following GCP Services aid us to run Windows and Linux-based virtual machines? a) Compute engine b) Google App engine c) Kubernetes Engines d) All of the above Accepted Answers: a) Compute engine 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 Accepted Answers: d) 64TB 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 Accepted Answers: c) Kubernetes Engines Say, five VMs are running in a managed group with CPU utilization of 80%, 70%, 75%, 85%, and 90% respectively. How many VMs would the autoscaler add if the targeted CPU utilization is 50%? a) 0 b) 1 c) 2 d) 3 Accepted Answers: d) 3 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 Accepted Answers: a) Files added to the google storage b) A new virtual machine instance is created c) Changes occurred in database 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) Accepted Answers: a) IaaS (Infrastructure as a service ) 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 Accepted Answers: c) Both I and II 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. Accepted Answers: b) By subscribing to events from services like Pub/Sub or Cloud Storage. 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 Accepted Answers: c) container orchestration tool, container 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. Accepted Answers: b) GAE automatically scales your application based on incoming traffic. CloudSQL can scale upto _____ processor core and ______ of storage capacity? a) 64, 16TB b) 64, 10TB c) 32, 10TB d) 32, 16TB Accepted Answers: b) 64, 10TB Choose the correct mapping Cloud Bigtable A. Data warehousing Cloud SQL B. Non-relational database Bigquery C. Relational database Cloud Storage D. Object datastore a) 1-A 2-C 3-D 4-B b) 1-B 2-C 3-A 4-D c) 1-B 2-D 3-C 4-A d) 1-D 2-A 3-B 4-C Accepted Answers: b) 1-B 2-C 3-A 4-D What is the difference between a bucket and an object in cloud storage?? a) A bucket is a physical location for objects, while an object is a logical container for data. b) A bucket is a logical container for objects, while an object is a physical location for data. c) A bucket and an object are the same thing. d) A bucket and an object are different types of resources in cloud storage. Accepted Answers: b) A bucket is a logical container for objects, while an object is a physical location for data. Which of the following is considered structured data? a) A collection of social media posts b) Customer names and addresses stored in a database c) A repository of company policies in PDF format d) Audio recordings of customer service calls Accepted Answers: b) Customer names and addresses stored in a database Which of the following is NOT a type of NoSQL database? a) Key-value stores. b) Relational databases. c) Document databases. d) Graph databases. Accepted Answers: b) Relational databases. Which of the following requirements is best suited for nearline storage? a) Data that is rarely accessed but needs to be retrieved within milliseconds b) Frequently accessed data c) Data that needs long-term retention with infrequent access d) Data backup and disaster recovery Accepted Answers: a) Data that is rarely accessed but needs to be retrieved within milliseconds What types of SQL databases can you manage with Google Cloud SQL? a) MySQL, MongoDB, Oracle b) PostgreSQL, SQL Server, MySQL c) PostgreSQL, Cassandra, SQLite d) SQL Server, MongoDB, MariaDB Accepted Answers: b) PostgreSQL, SQL Server, MySQL Which of the following is a unique feature of Cloud Spanner compared to traditional relational databases? a) Support for SQL queries b) Strongly consistent transactions c) Globally distributed data with horizontal scalability d) Indexing capabilities Accepted Answers: c) Globally distributed data with horizontal scalability What type of data model does Cloud Bigtable use? a) Document-based b) Graph-based c) Wide-column d) Key-value Accepted Answers: c) Wide-column In terms of data consistency, which statement is true comparing Google Cloud Datastore with a relational database? a) Google Cloud Datastore provides strong consistency for all transactions. b) Relational databases provide eventual consistency by default. c) Both Google Cloud Datastore and relational databases provide strong consistency. d) Consistency models depend solely on the application's configuration. Accepted Answers: d) Consistency models depend solely on the application's configuration. In a RESTful API, which HTTP status code indicates that a resource has been successfully created? a) 200 b) 201 c) 204 d) 400 Accepted Answers: b) 201 Which of the following best describes Google Cloud Endpoints? a) A managed service to store and retrieve large amounts of data b) A tool for monitoring and logging applications c) A distributed database service d) A fully managed service for creating, deploying, and managing APIs Accepted Answers: d) A fully managed service for creating, deploying, and managing APIs Which of the following tasks can be facilitated by managed messaging services? a) Distributing real-time analytics reports b) Triggering automated backups c) Processing and routing real-time events d) Storing large volumes of static data Accepted Answers: c) Processing and routing real-time events Which of the following is/are applicable for Cloud Pub/Sub? a) It is a software application that collects data from users b) It exchanges data directly between publisher and subscriber c) It cannot handle multiple applications d) None of the above Accepted Answers: d) None of the above We can use Cloud Pub/Sub while ___________ data in big-data processing model. a) analysing b) processing c) ingesting d) storing Accepted Answers: c) ingesting Which Google Cloud service is used for managing user identities and access to resources? a) Cloud Storage b) Cloud IAM c) Cloud SQL d) Cloud Pub/Sub Accepted Answers: b) Cloud IAM Which statement best describes Customer-Supplied Encryption Keys (CSEK) in Google Cloud? a) Encryption keys managed and provided by Google Cloud for customer data b) Keys that are automatically generated for each Cloud Storage bucket c) Keys provided by customers and used to encrypt data stored in Google Cloud d) Keys used only for encrypting VM instances in Google Compute Engine Accepted Answers: c) Keys provided by customers and used to encrypt data stored in Google Cloud Which encryption standard does Google Cloud use to encrypt data at rest? a) AES-128 b) RSA-2048 c) DES d) RSA-4096 Accepted Answers: a) AES-128 What does CMEK stand for in Google Cloud Platform (GCP) encryption? a) Cloud Managed Encryption Keys b) Customer Managed Encryption Keys c) Centralized Managed Encryption Keys d) Certified Managed Encryption Keys Accepted Answers: b) Customer Managed Encryption Keys Which Google Cloud service provides integration with GSuite for managing user identities and access? a) Cloud IAM b) Cloud Storage c) Cloud Identity d) Cloud Functions Accepted Answers: c) Cloud Identity If a host on a network has the address 172.16.45.14/30, what is the subnetwork this host belongs to? a) 172.16.45.0 b) 172.16.45.4 c) 172.16.45.8 d) 172.16.45.12 Accepted Answers: d) 172.16.45.12 Consider following statements and select the correct options: 1) In auto subnet mode range of addresses are expandable upto /16 only. 2) Custom subnet mode comes with predefined IP ranges. a) Only 1 is true. b) Only 2 is true. c) Both are true. d) Both are false. Accepted Answers: a) Only 1 is true. Match the following. 1. UDP Header's port number A. 16 2. Ethernet MAC address B. 48 3. IPv6 Next Header C. 8 4. TCP Header's Sequence number D. 32 a) 1-C 2-D 3-B 4-A b) 1-B 2-A 3-D 4-C c) 1-D 2-A 3-B 4-C d) 1-D 2-A 3-C 4-B Accepted Answers: c) 1-D 2-A 3-B 4-C What of the following are various types of routing algorithms? a) Non-adaptive Algorithm. b) Adaptive Algorithm. c) Accumulative Algorithm. d) Hybrid Algorithm. Accepted Answers: a) Non-adaptive Algorithm. b) Adaptive Algorithm. d) Hybrid Algorithm. Packet filtering firewalls are vulnerable to __________. a) Hardware vulnerabilities b) MiTM c) Phishing d) Spoofing Accepted Answers: d) Spoofing What is a VPC (Virtual Private Cloud) network? a) A physical network infrastructure that connects multiple data centers. b) A virtual network that provides isolation and control over cloud resources. c) A network protocol used for secure communication between servers. d) A cloud service provided by Google Cloud Platform. Accepted Answers: b) A virtual network that provides isolation and control over cloud resources. Which of the following is a characteristic of VPC peering in cloud environments? a) Allows direct network access to instances across different regions. b) Automatically routes traffic between peered VPCs without needing route table modifications. c) Requires each VPC to be in the same region to establish peering. d) Provides low-latency, high-bandwidth connection between peered VPCs. Accepted Answers: d) Provides low-latency, high-bandwidth connection between peered VPCs. “A hybrid cloud combines multiple public clouds from different providers.” The above statement is: a) True b) False Accepted Answers: b) False Which interconnection option provides a direct physical link between on-premises infrastructure and a public cloud provider? a) Virtual Private Network (VPN) b) Direct Connect c) Internet peering d) Cloud Load Balancer Accepted Answers: b) Direct Connect Which load balancing option operates at the Transport layer (Layer 4) of the OSI model? a) Network Load Balancer b) HTTP(S) Load Balancer c) Internal TCP/UDP Load Balancer d) SSL Proxy Load Balancer Accepted Answers: c) Internal TCP/UDP Load Balancer Select incorrect statements from following for VPC network peering? a) Peered VPC networks are administratively combined b) Each side of peering association is set up independently. c) Subnet ip range overlap between peered VPC networks. d) Works with compute engine and app engine. Accepted Answers: a) Peered VPC networks are administratively combined c) Subnet ip range overlap between peered VPC networks. Which of the following GCP services helps you to create a secure environment for the application deployments? a) Compute engine. b) Google App engine. c) Cloud load balancing. d) VPC. Accepted Answers: d) VPC. Traffic in a VPN is not _______ a) invisible from public network. b) logically separated from other traffic. c) accessible from unauthorized public networks. d) restricted to a single protocol in IPsec. Accepted Answers: c) accessible from unauthorized public networks. What are some of the factors that can affect the performance of dynamic routing? a) Reception’s MAC address. b) The number of routers in the network. c) The type of dynamic routing protocol being used. d) Ciphers used for encryption of data. Accepted Answers: b) The number of routers in the network. c) The type of dynamic routing protocol being used. In direct peering connection what is maximum capacity per link? a) 1 Gbps. b) 4 Gbps. c) 8 Gbps. d) 10 Gbps. Accepted Answers: d) 10 Gbps. How many types of global load balancers are there in GCP?? a) 3 b) 4 c) 5 d) 6 Accepted Answers: a) 3 Which protocol does Google Cloud Platform (GCP) primarily use for assigning internal IP addresses to virtual machines (VMs) within a Virtual Private Cloud (VPC)? a) DHCP b) APIPA c) RFC-1918 d) None of the above Accepted Answers: a) DHCP Peering between two VPC is possible only when a) Source allows connectivity to the destination b) Destination allows traffic from the source c) Source and destination are within same project d) Source and destination VPC belongs to same organization Accepted Answers: a) Source allows connectivity to the destination b) Destination allows traffic from the source Cloud VPN connects an on-premise network to a VPC through a) TCP/IP protocol b) Peering c) Shared network connectivity d) IPSec VPN tunnel Accepted Answers: d) IPSec VPN tunnel Which of the following is true? a) Subnets are regional features whereas VPCs are global b) VPCs are regional and subnets are zonal c) VPCs are regional but subnets are not used in GCP d) Both VPCs and subnets are global Accepted Answers: a) Subnets are regional features whereas VPCs are global Which cloud service provides a centralized platform for monitoring and managing resources in Google Cloud Platform (GCP)? a) Cloud Functions b) Cloud Pub/Sub c) Cloud Storage d) Cloud Monitoring Accepted Answers: d) Cloud Monitoring Stackdriver is a ____________ provided by Google Cloud Platform for monitoring, logging, and ____________ of applications and infrastructure. a) programming language, debugging b) cloud service, management c) database, scaling d) virtual machine, deployment Accepted Answers: b) cloud service, management Which cloud service provides a fully managed big data processing and analytics platform? a) Cloud Storage b) Cloud Spanner c) BigQuery d) Cloud Pub/Sub Accepted Answers: c) BigQuery Which of the following are features of Cloud Dataproc? a) Fully managed Apache Hadoop and Apache Spark service b) Auto-scaling to handle varying workloads c) Integrated machine learning capabilities d) Real-time data streaming Accepted Answers: a) Fully managed Apache Hadoop and Apache Spark service b) Auto-scaling to handle varying workloads What is the storage format used by BigQuery for storing data? a) JSON (JavaScript Object Notation) b) Parquet c) Avro d) Columnar storage Accepted Answers: d) Columnar storage What is YAML? a) YAML is a human-readable data serialization language. b) YAML is a programming language. c) YAML is a markup language. d) YAML is a configuration file format. Accepted Answers: a) YAML is a human-readable data serialization language. Which of the following is NOT a feature of Stackdriver? a) Monitoring b) Logging c) Error reporting d) Tracing Accepted Answers: c) Error reporting Which big data managed service is used to analyze streaming data in real time? a) Cloud Dataproc b) Cloud Dataflow c) BigQuery d) None of the above Accepted Answers: b) Cloud Dataflow Which of the following is the main purpose of BigQuery? a) To store and analyze large amounts of data very quickly. b) To provide a Hadoop-based data warehouse. c) To provide a NoSQL database. d) To provide a relational database. Accepted Answers: a) To store and analyze large amounts of data very quickly. Which of the following is NOT a characteristic of a data warehouse? a) It is a collection of data from different sources. b) It is stored in a way that makes it easy to analyze. c) It is designed to store historical data. d) It is updated in real time. Accepted Answers: d) It is updated in real time. Variables in TensorFlow are also known as ___________ a) tensor variable b) tensor keywords c) tensor attributes d) tensor objects Accepted Answers: d) tensor objects What is the full form of XLA in TensorFlow? a) Xtreme Linear Algebra b) Accelerated Linear Algebra c) Unknown Linear Algebra d) X Linear Algebra Accepted Answers: b) Accelerated Linear Algebra The last layer of deep neural network is called the ___________ a) hidden layer b) output layer c) input layer d) none of the above Accepted Answers: b) output layer Which of the following is NOT a feature of Cloud Vision API? a) Detecting objects in an image b) Analyzing text in an image c) Translating text in an image d) Converting audio into text Accepted Answers: d) Converting audio into text What is the purpose of sentiment analysis in natural language processing? a) To identify the author of a text b) To determine the tone or emotion expressed in a text c) To translate a text from one language to another d) To summarize the main points of a text Accepted Answers: b) To determine the tone or emotion expressed in a text Which GCP service enables scalable and distributed training of ML models using TensorFlow? a) Google Cloud Dataflow b) Google Cloud Pub/Sub c) Google Cloud BigQuery d) Google Cloud ML Engine Accepted Answers: d) Google Cloud ML Engine What is the purpose of TensorFlow's eager execution mode? a) To enable dynamic graph construction and execution b) To enable distributed training across multiple GPUs c) To optimize memory usage during model training d) To provide a high-level API for building ML models Accepted Answers: a) To enable dynamic graph construction and execution Cloud AutoML is a suite of _________ services offered by Google Cloud Platform. a) Machine learning b) Data analytics c) Big data d) Cloud computing Accepted Answers: a) Machine learning Fill in the blanks: Machine learning is a way to use standard _________ to derive _________ insights from data and make repeated decisions. a) intelligence, technical b) techniques, intelligent c) predictions, algorithmic d) algorithms, predictive Accepted Answers: d) algorithms, predictive Statement 1: Artificial intelligence is a subarea of machine learning Statement 2: Deep learning is a special type of machine learning Please select the correct option. a) Only Statement 1 is true b) Only Statement 2 is true c) Both Statement 1 and 2 are true d) Both Statement 1 and 2 are false Accepted Answers: b) Only Statement 2 is true