Cloud computing has advanced along with technology and integrated significantly into our daily lives. There are many different cloud providers to pick from, which might initially be a bit intimidating. Google Cloud Platform (GCP) is a popular cloud computing platform known for its practical, user-friendly tools and services.
This blog covers the Top 30 GCP Interview Questions in three levels:-
- GCP Interview Questions for Beginners
- GCP Interview Questions for Intermediate
- GCP Interview Questions for Experienced
Top GCP Interview Questions for Beginners
1. What is GCP?
The Google Cloud Platform is a collection of cloud computing services that Google provides. These services are powered by the same infrastructure as Google’s consumer products, including YouTube, Gmail, and other services. The services that Google Cloud Platform provides include:
- Compute
- Network
- Processing of big data and machine learning etc.
2. Mention some best practices for Cloud Security.
From storing data to accessing productivity tools, cloud services are used for multiple purposes in corporate environments. Here are some of the best practices-
- Focus on understanding your current state and assessing risk
- Strategically apply protection to your cloud services as per the level of risk
- Adjust cloud access policies as new services emerge
- Remove malware from a cloud service.
3. How is data stored in buckets? What are objects?
Buckets are the basic containers in GCP where the data is stored in objects. Objects are the pieces of data stored inside the buckets. Objects store data in an unstructured format and inherit the storage class of the bucket they are part of.
4. What are the various methods for authentication of Google Compute Engine API?
There are different methods for the authentication of Google Compute Engine API:
- Using OAuth 2.0
- Through the client library
- Directly with an access token
5. What are the advantages or benefits of using Compute Engine?
Compute Engine offers better kernel-level control, and encryption, and makes it easier to create and configure high-performance-based virtual machines that can easily and quickly scale to any size workload. Advantages include:
- Storage Efficiency
- Stability
- Easy Integration
- Confidential Computing
- Security
- Compute globally as per requirement
6. Explain what instances are in GCP?
A virtual machine (VM) hosted on Google’s network is known as an instance. You can create an instance or a collection of managed instances using the Compute Engine API, Google Cloud CLI, or the Google Cloud console.
7. What is Compute Engine in GCP ?
Compute Engine is a service that is offered by Google Cloud Platform (GCP) that lets you create and run virtual machines on Google’s infrastructure.
8. What is the default bucket location if I do not specify a location constraint?
The default bucket location is within the US. If you do not specify a location constraint, then your bucket and the data added to it are stored on servers in the US.
9. What happens to disk data when the instance is no longer running?
The fate of the data depends on the type of disk used. In the case of a persistent disk, the data is retained even when the instance is stopped, shut down, or restarted. However, in the case of Local SSD being used, the data cannot be retained if the VM goes down for any reason.
10. What is the difference between basic roles and predefined roles?
Basic roles are the legacy Owner, Editor, and Viewer roles. IAM provides predefined roles, which enable more granular access than the basic roles.
Intermediate GCP Interview Questions
11. What is the difference between a project number and a project Id?
To identify the project there are two parameters:-
- Project number
- Project ID
When a project is created, the project id for it will be created automatically, while the project number will be created by the user. The project number is mandatory, whereas the project ID may be optional for the services, but the project ID is a must for the Google Compute Engine.
12. What is Google Cloud Storage & Data Services?
Google Cloud Platform (GCP) delivers various storage and database service offerings that remove much of the burden of building and managing storage and infrastructure.
13. Assume you accidentally deleted your instance. Are you going to be able to get it back?
No, Instances that have been destroyed once can never be recovered. If it has been stopped, however, it can be restarted to retrieve it.
14. How can we safeguard data during cloud transportation?
To safeguard data during cloud transportation GCP has Service Controls that restrict the network locations from which their users can access data
15. Which VMs can have a Persistent Disk (PD) attached to them?
VMs in GCE (Compute Engine) and GKE (Kubernetes Engine) can have Persistent Disks attached.
16. What libraries and tools are provided by GCP?
Google cloud platform provides vast kind libraries for programming languages like Java, Python, Ruby, etc. Google Cloud is also having a console and also it will support XML, API, and JSON API formats.
17. What is the use of MFA?
MFA stands for Multi-factor authentication. It helps you protect your user accounts and company data with a wide variety of MFA verification methods such as push notifications, Google Authenticator, phishing-resistant Titan Security Keys, and using your Android or iOS device as a security key.
18. Is that possible to share data across pipeline instances?
As there is no dataflow-specific cross-pipeline communication mechanism for sharing data or processing context between pipelines. So that, we can use durable storage like Cloud Storage or an in-memory cache like App Engine to share data between pipeline instances.
19. When is HDD the preferred mode of storing data?
HDDs are usually preferred when storing large amounts of data and performing batch operations that are less sensitive to disk latency than interactive applications.
20. Which NoSQL services does Google offer?
Below are the three NoSQL databases used in GCP:- a) Cloud Datastore
- Cloud Firestore
- Cloud Bigtable
Advanced GCP Interview Questions for Experienced
21. What is the function of a Bucket in Google Cloud Storage?
Buckets are the basic containers in GCP where the data is stored in objects. Objects are the pieces of data stored inside the buckets. Objects store data in an unstructured format and inherit the storage class of the bucket they are part of. Any data that is stored in Cloud Storage must first be organized into a bucket. There is no restriction on the number buckets.
22. Explain how pricing work on Google Cloud?
While working on the Google Cloud Platform, the user is charged on the basis of compute instance, network use, and storage by Google Compute Engine. Google Cloud charges virtual machines on the basis of per second with a limit of a minimum of 1 minute. Then, the cost of storage is charged on the basis of the amount of data that you store. The cost of the network is calculated as per the amount of data that has been transferred between the virtual machine instances communicating with each other over the network.
23. How can I move servers and virtual machines from another cloud or on-premises to the Google Cloud Platform’s Compute Engine?
Utilizing Google Cloud Migrate for Compute Engine, virtual machines (VMs) can be transferred from on-premises data centers, Azure, and Amazon Web Services (AWS) to Google’s Compute Engine. There are no additional costs or fees associated with this software.
24. How can a project be made?
Steps to create a project:-
- Open the Google Cloud Platform Console. When prompted, start a new project or choose an existing one. Set up billing as directed.
- Reminder: If you’re new to the Google Cloud Platform, you can pay with the free trial credit.
25. Assume you accidentally deleted your instance. Are you going to be able to get it back?
No, Instances that have been destroyed once can never be recovered. If it has been stopped, however, it can be restarted to retrieve it.
26.How would you define “Events and Triggers”?
- Events are occurrences in your cloud environment that you may want to respond to. These could include updates to database data, the addition of files to a storage system, or the creation of a new virtual machine instance.
- A trigger is used to produce a response to an event. Declaring your interest in a specific event or series of events is known as a trigger. You can record occurrences and take appropriate action by tying a function to a trigger.
27. Why do you employ subnets?
A subnetwork is a segmented portion of a larger network. More specifically, subnets divide an IP network logically into numerous, smaller network pieces. They are used by businesses to partition bigger networks into more manageable subnetworks. Splitting a huge network into a collection of smaller, interconnected networks to assist reduce traffic is one of the main objectives of a subnet. Traffic won’t have to take any extra detours, which will speed up the network.
28. Do I need to activate Cloud Storage and turn on billing if I was granted access to someone else’s bucket?
No, in this case, another individual has already set up a Google Cloud project and either added you as a project team member or granted you permission to their buckets and objects. Once you authenticate, typically with your Google account, you can read or write data according to the access that you were granted.
29. Does cloud storage offer upload and download acceleration features?
Yes. Customers can upload files and download files from cloud storage using a global DNS name. Google transfers data to/from the nearest POP using its private network while uploading or downloading data. As a result, the transfers typically perform far better than they would be able to via the open Internet. All Cloud Storage buckets come with these capabilities at no extra cost.
30. Assume that, I have a dedicated team that manages network and firewall rules. How can I maintain this separation of duty so that my development teams can manage instances but not make any network or firewall changes?
First, grant the Compute Network Admin role at the organization or the project level to your network administrators. Then, grant the Compute Instance Admin role to your developers. This separation of duty allows developers to carry out actions on instances while also preventing the developers from making any changes to the network resources associated with the project.
Related References
- Google Cloud Architect Q/A| Day 1 Live Session Overview
- Google Cloud Architect Q/A| Day 2 Live Session Overview
- Google Cloud Architect Q/A| Day 3 Live Session Overview
- Google Professional Cloud Architect: Step-By-Step Hands-On Guide
- Google Cloud Platform Console Walkthrough
- Google Cloud Functions
Next Task For You
If you are also interested and want to know more about the Google Professional Cloud Architect certification, register for our Free Class.
Leave a Reply