
TCS


TCS Gcp Data Engineer Interview Questions and Answers
Q1. write a python code to trigger a dataflow job in cloud function
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
Q2. Recursion function for factorial
Recursion function to calculate factorial of a number
Define a function that takes an integer as input
Base case: if input is 0, return 1
Recursive case: return input multiplied by factorial of input-1
Example: factorial(5) = 5 * factorial(4) = 5 * 4 * factorial(3) = ... = 5 * 4 * 3 * 2 * 1 = 120
Q3. Why you choose tcs
I chose TCS for its reputation, global presence, diverse opportunities, and focus on innovation.
TCS is a renowned company with a strong reputation in the IT industry
TCS has a global presence with offices in multiple countries, providing opportunities for international exposure
TCS offers diverse opportunities for career growth and development in various domains
TCS is known for its focus on innovation and cutting-edge technologies, which aligns with my career goals
Q4. create gcs bucket using python
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
Q5. string is palindrome or not
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
Q6. Reverser a number
Reverse a given number
Convert the number to a string
Reverse the string
Convert the reversed string back to a number
More about working at TCS







Interview Process at TCS Gcp Data Engineer

Top Gcp Data Engineer Interview Questions from Similar Companies




Reviews
Interviews
Salaries
Users/Month

