Tag: Google Cloud
Google Cloud Interview/Certification Sample Questions
Read below Google Cloud interview and certification sample questions to cross check your knowledge. 1.By default, how long PubSub Subscription will retain unacknowledged messages. 2. There is a requirement to do a DML experiment on a table, which modify a large number of rows, but analysts are not sure about the results. What options will…
Monitoring Alerts for GCP IAM Policy Changes
In this quick demo, we are going setup Monitoring Alerts for GCP IAM Policy changes, meaning we will get alerts for GCP IAM Role assignments and removals to users, service accounts and groups. To setup alerts for IAM changes first we need to create log based metric for logs which contains setIamPolicy method. I’m going…
Rotate Service Account Key using Terraform and Secret Manager
In this quick demo, we will create a service account and key file and store the key into secret manager and rotate the key. We are going to use Terraform code to do all these tasks. What is Service Account? GCP IAM offers two types of accounts for authentication and authorization, they are user accounts,…
GCP BigQuery Dynamic Data Masking
GCP BigQuery offers dynamic data masking at column level. By using data masking we obscure columns that holds sensitive data for users, groups and service accounts, while still allowing access to data in those columns. What is Data Masking? Data masking is a method of modifying sensitive data while presenting it to an end user…
Terratest: Writing Automated Tests for Terraform Code
Why Terraform Code Testing is important? We prefer to modularise Terraform code to avoid repetition and to combine multiple resources that are used together. These modules then get consumed in other terraform configuration blocks. Testing Terraform code is very important especially when we have Terraform modules, that are being used in many places to deploy…
How to Deploy a GKE Cluster with Spot Instance Node Pool
Google Kubernetes Engine (GKE) GKE service allows users to provision Kubernetes clusters to host containerized applications on Google Cloud infrastructure. GKE cluster consists of one or more Compute Engine Instances. With GKE, users can gain benefit of advanced cluster management features like load-balancing, node pools, automatic scaling, automatic upgrades, auto-repair, logging and monitoring. GKE clusters…
GCP BigQuery Python Code Samples
In this quick demo of how to handle BgiQuery resources using Python SDK, we are going to create Datasets/Tables/Snapshots and load data into tables. Import Python BigQuery Module & Initializing a client Create a BigQuery Dataset create a BigQuery dataset called “demo_dataset” in EU location with 2 days default table expiry. Note: if you don’t…
Application Performance Profiling by using GCP Cloud Profiler
What is Profiling and GCP Cloud Profiler? Performance profiling allows to discover which unit of application, is misbehaving in terms of execution time and system resource usage. For example, if a function in an application takes 80% of time, it’s worth investigating and fixing it to improve overall app performance. Analysing performance of production application…
How to Deploy a VPC on GCP with Terraform
GCP Virtual Private Cloud(VPC) network overview and deployment using Terraform. Creating primary and secondary subnets for Kubernetes clusters deployments and basic firewall rules.
Search Indexes in BigQuery
Search Indexes in BigQuery lets you easily find unique data elements without having to know the table schemas in advance.By using this feature we can create indexes on log tables and search for specific error codes or identifying the rows of tables that contain a specific user’s PII for GDPR reporting. How to create search…