Gcp Data Engineer

filter-iconFilter interviews by

10+ Gcp Data Engineer Interview Questions and Answers for Freshers

Updated 17 Jul 2024

Popular Companies

search-icon

Q1. How to migrate the datawarehouse with gcp services using real time data services

Ans.

Real-time data services can be used to migrate datawarehouse with GCP services.

  • Use Cloud Dataflow to ingest and transform data in real-time

  • Use Cloud Pub/Sub to stream data to BigQuery or Cloud Storage

  • Use Cloud Dataproc to process data in real-time

  • Use Cloud Composer to orchestrate data pipelines

  • Use Cloud Spanner for real-time transactional data

  • Use Cloud SQL for real-time relational data

  • Use Cloud Bigtable for real-time NoSQL data

Q2. How to create data pipeline in gcp

Ans.

Data pipelines in GCP can be created using various tools like Dataflow, Dataproc, and Cloud Composer.

  • Choose the appropriate tool based on the use case and data volume

  • Define the data source and destination

  • Create a pipeline using the chosen tool and define the data transformations

  • Test and deploy the pipeline

  • Monitor and troubleshoot the pipeline for any issues

Q3. What services in gcp u have used

Ans.

I have used various services in GCP including BigQuery, Dataflow, Cloud Storage, and Pub/Sub.

  • BigQuery for data warehousing and analytics

  • Dataflow for data processing and ETL

  • Cloud Storage for storing and accessing data

  • Pub/Sub for messaging and event-driven architectures

Q4. write a python code to trigger a dataflow job in cloud function

Ans.

Python code to trigger a dataflow job in cloud function

  • Use the googleapiclient library to interact with the Dataflow API

  • Authenticate using service account credentials

  • Submit a job to Dataflow using the projects.locations.templates.launch endpoint

Are these interview questions helpful?

Q5. Case Study: Using GCP's tool make a pipeline to transfer file from one GCS bucket to another

Ans.

Use GCP Dataflow to transfer files between GCS buckets

  • Create a Dataflow pipeline using Apache Beam to read from source bucket and write to destination bucket

  • Use GCS connector to read and write files in Dataflow pipeline

  • Set up appropriate permissions for Dataflow service account to access both buckets

Q6. SQL: Find keys present in table A but not in B(B is old copy of A)

Ans.

Use SQL to find keys present in table A but not in table B (old copy of A).

  • Use a LEFT JOIN to combine tables A and B based on the key column

  • Filter the results where the key column in table B is NULL

  • This will give you the keys present in table A but not in table B

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. Write code to find max number of product by customer

Ans.

Code to find max number of product by customer

  • Iterate through each customer's purchases

  • Keep track of the count of each product for each customer

  • Find the product with the maximum count for each customer

Q8. What types on nosql databases in gcp

Ans.

Types of NoSQL databases in GCP include Firestore, Bigtable, and Datastore.

  • Firestore is a flexible, scalable database for mobile, web, and server development.

  • Bigtable is a high-performance NoSQL database service for large analytical and operational workloads.

  • Datastore is a highly scalable NoSQL database for web and mobile applications.

Gcp Data Engineer Jobs

Associate_GCP Data Engineer_Data & Analaytics 4-8 years
Pricewaterhouse Coopers Private Limited
3.4
Bangalore / Bengaluru
Senior Associate_ GCP Data Engineer_D&A_Advisory 4-8 years
Pricewaterhouse Coopers Private Limited
3.4
Hyderabad / Secunderabad
Hybrid Mode| Openings For GCP Data Engineer 4-8 years
Getronics
4.2
Chennai

Q9. What is windows function bigquery

Ans.

Window functions in BigQuery are used to perform calculations across a set of table rows related to the current row.

  • Window functions allow you to perform calculations on a set of rows related to the current row

  • They are used with the OVER() clause in SQL queries

  • Common window functions include ROW_NUMBER(), RANK(), and NTILE()

  • They can be used to calculate moving averages, cumulative sums, and more

Q10. Discuss other orchestration tool in GCP

Ans.

Cloud Composer is another orchestration tool in GCP

  • Cloud Composer is a fully managed workflow orchestration service built on Apache Airflow

  • It allows you to author, schedule, and monitor workflows that span across GCP services

  • Cloud Composer provides a rich set of features like DAGs, plugins, and monitoring capabilities

  • It integrates seamlessly with other GCP services like BigQuery, Dataflow, and Dataproc

Q11. create gcs bucket using python

Ans.

Use Python to create a GCS bucket

  • Import the necessary libraries like google.cloud.storage

  • Authenticate using service account credentials

  • Use the library functions to create a new bucket

Q12. string is palindrome or not

Ans.

Check if a string is a palindrome or not

  • Compare the string with its reverse to check for palindrome

  • Ignore spaces and punctuation marks when comparing

  • Examples: 'racecar' is a palindrome, 'hello' is not

Q13. Create dataframe

Ans.

Creating a dataframe in GCP Data Engineer

  • Use the pandas library to create a dataframe

  • Provide data in the form of a dictionary or list of lists

  • Specify column names if needed

Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Interview Questions for Gcp Data Engineer Related Skills

Interview experiences of popular companies

3.7
 • 10.5k Interviews
3.8
 • 8.2k Interviews
3.7
 • 5.6k Interviews
3.7
 • 5.6k Interviews
3.7
 • 4.8k Interviews
3.5
 • 3.8k Interviews
3.8
 • 2.8k Interviews
3.9
 • 362 Interviews
3.8
 • 215 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Recently Viewed
JOBS
Thoucentric
No Jobs
SALARIES
Infosys
JOBS
Marktine Technology Solutions
No Jobs
SALARIES
Wipro
JOBS
BOLD Technology Systems
No Jobs
SALARIES
Lowe's
JOBS
Ul Technology Solutions
No Jobs
JOBS
HTC Global Services
No Jobs
INTERVIEWS
Bornemindz Software Solutions
No Interviews
JOBS
Tech Stalwart Solution
No Jobs
Gcp Data Engineer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter