Top GCP (Google Cloud Platform) Security Interview Questions(2021) | CodeUsingJava
















Most frequently asked GCP (Google Cloud Platform) Security Interview Questions


  1. What is GCP (Google Cloud Platform)?
  2. What is Google Cloud Console?
  3. Why do we choose GCP?
  4. What are the core products in Google Cloud Platform?
  5. How can we configure GCP with Load Balancing?
  6. What are the Google Cloud storage services?
  7. What is Google Cloud SDK?
  8. How can we authenticate API with GCP?
  9. How can we export GCP Security Command Center Finding to BigQuery?
  10. How does GCP supports Multiple Network Interfaces?
  11. What is Command-line interface?
  12. What are the types of migrations in GCP?


What is GCP (Google Cloud Platform)?

Google Cloud Platform is a cloud computing service that includes hosted dervices for computing, storing and application developing which runs on Google Hardware.GCP is used in accessing by software developers and enterprises.It contains a set of physical assets like hard disk and computers, such as VMs which are contained in Google's Data Centers.All the data centers locations are placed in one region and each region acts as a collection of zones, that are isolated from each other in the region.

What is Google Cloud Console?

Google Cloud Console helps us by providing a graphical user interface which we can use in managing oy Google Cloud Projects and Resources.We can use console in creating new projects and using resources which we can create in context of the project.We also can create multiple projects in using projects for separating our work in the way it makes sense.

Why do we choose GCP?

We choose GCP for building and running application for leveraging the power of hyperscale data centers.

GCP


What are the core products in Google Cloud Platform?

GCP includes products such as:
  • Google Compute Engine is used in providing us with virtual machine instances in worloading host.
  • Google App Engine provides access to Google Scalable hosting and also all the developers can use SDK in developing software products.
  • Google Cloud Storage used in designing and storing large unstructured data sets and also offers database storage options containing Cloud Datastore.
  • Google Container Engine is a system which runs in Google Public Cloud.

How can we configure GCP with Load Balancing?

Google Cloud Load Balancer acts as a globally distributed load balancer, which enables all the users in distributing applications and scaling compute up/down with configuration and cost.

GCP


What are the Google Cloud storage services?

GCP storage helps in providing services in business which are running in GCP infrastructure.GCP contains services such as:
Cloud Storage
Persistent disk
Local SSD
Cloud Storage
Filestore
Data Transfer Services

What is Google Cloud SDK?

Google Cloud Software Development Kit is used in maintaining, managing and monitoring GCP and is a set of tools in accessing GCP in a secure way.It consists of gcloud, bq command line tools rhat are used for accessing Compute Engine, Cloud Storage, BigQuery, etc.

How can we authenticate API with GCP?

GCP uses OAuth protocol in authenticating the users account and service accounts.

GCP


How can we export GCP Security Command Center Finding to BigQuery?

We can export findings in Security Command Center in BigQuery that we can easily use the data we need and generate customs reports.
from googlecloud import securitycenter
from googlecloud import bigquery

JSONPath = "Path to JSON File For Service Account"
client = securitycenter.SecurityCenter().from_service_account_json(JSONPath)
BQclient = bigquery.Client().from_service_account_json(JSONPath)
table_id = "project.security_center.assets"
org_name = "organizations/12345678910111213"
all_sources = "{org_name}/sources/-".format(org_name=org_name)
finding_result_iterator = client.list_findings(request={"parent": all_sources})
for i, finding_result in enumerate(finding_result_iterator):
    errors = BQclient.insert_rows_json(table_id, finding_result)
    if errors == []:
        print("New rows have been added.")
    else:
        print("Encountered errors while inserting rows: {}".format(errors))


How does GCP supports Multiple Network Interfaces?

We can give different instances access in Google Cloud and cannot attach multiple network interfaces to the same VPC Network.

GCP


What is Command-line interface?

Command Line Interface is used in performing Google Cloud tasks and can manage development workflow and Google Cloud resources in a terminal window.
gcloud compute instances create example-google \
    --image-family=rhel-8 \
    --image-project=rhel-cloud\
    --zone=us-central1-a


What are the types of migrations in GCP?

There are 3 types of Migrations:
Lift and shift
Rip and replace
Improve and move