Searce Cosourcing Services
20+ Genpact Interview Questions and Answers
Q1. DSA question asked: Two types of bricks are in lengths 5 and 1, and both are in limited quantity. A target is given. Create a function with parameters - no of 5, no of 1, target. And return true if the target i...
read moreCreate a function to check if a target can be achieved using limited quantities of bricks of lengths 5 and 1.
Calculate the maximum number of 5-length bricks required to reach the target
Iterate through all possible combinations of 5-length and 1-length bricks
Check if the combination adds up to the target
Return true if achievable, false otherwise
Q2. Puzzle asked: 1. 5 bread slice machines are there. One of the Machines is not working and it makes 128 g slice; the rest all make 20 g slice. Determine the machine that is not working using 1 weighing scale tha...
read more1. Identify the bread slice machine that makes 128 g slice using 1 weighing scale. 2. Increase the population of White Fish to 99% in a pond with 200 fishes.
For the bread slice machine puzzle, weigh one slice from the first machine, two slices from the second machine, three slices from the third machine, and so on. The difference in weight will identify the faulty machine.
To increase the population of White Fish, remove one non-White Fish from the pond. This will make the pop...read more
Q3. Write a code for finding number of solutions for jumps problem in array.
Code to find number of solutions for jumps problem in array.
Use dynamic programming to keep track of number of ways to reach each index.
Initialize an array to store number of ways to reach each index.
Iterate through the array and update the number of ways based on previous indices.
Return the number of ways to reach the last index.
Q4. What is HTML, CSS, JS?
HTML, CSS, and JS are essential languages used in web development to create and style web pages.
HTML (Hypertext Markup Language) is used for creating the structure of web pages.
CSS (Cascading Style Sheets) is used for styling the appearance of web pages.
JS (JavaScript) is used for adding interactivity and dynamic behavior to web pages.
Q5. 5. Which tool you are using to do Patch management ?
Q6. find the longest palindromic substring in the string.
Use dynamic programming to find the longest palindromic substring in a given string.
Iterate through the string and consider each character as the center of a potential palindrome
Expand around the center to check for palindromes of odd and even lengths
Keep track of the longest palindrome found
Q7. 13. How to monitor and maintain Alarm and Alerts to particular server and application ?
Q8. 3. How to configure and access private Server ( DB Instance ) ?
Q9. 9. What is Route53 and how to configure it ? Different Records type.
Q10. 10. How to recover lost key (Access key/ Key Pair)?
Q11. Explain a batch datapipeline that you have built?
Built a batch datapipeline to process and analyze customer transaction data.
Used Apache Spark for distributed data processing
Ingested data from various sources like databases and files
Performed data cleaning, transformation, and aggregation
Utilized SQL for querying and analyzing data
Generated reports and visualizations for stakeholders
Q12. 2. What is VPC and why it used ? Why VPC Peering ?
Q13. Why dataflow is used?
Dataflow is used to efficiently process and analyze large volumes of data in real-time.
Dataflow allows for parallel processing of data, enabling faster analysis and insights.
It provides a scalable and reliable way to handle streaming and batch data processing.
Dataflow can be used for tasks such as ETL (Extract, Transform, Load), real-time analytics, and machine learning.
It helps in managing and optimizing data pipelines for better performance and resource utilization.
Q14. 8. Why Load balancing and how to configure ?
Q15. 7. Port numbers for SSH, HTTP, HTTPS, RDS (DB) etc.
Q16. 11. How to check open ports on Linux ?
Q17. 4. S3 different storage classes and bucket policies.
Q18. 12. Difference between SG and NACL.
Q19. data migration from on-premise to gcp
Data migration from on-premise to GCP involves transferring data from local servers to Google Cloud Platform.
Assess the data to be migrated, including volume, complexity, and dependencies.
Choose the appropriate migration method - lift and shift, re-platforming, or re-architecting.
Utilize GCP tools like Transfer Appliance, Storage Transfer Service, or Data Transfer Service for efficient migration.
Ensure data security and compliance during the migration process.
Test the migrate...read more
Q20. What is terraform
Terraform is an open-source infrastructure as code software tool created by HashiCorp.
Terraform allows users to define and provision infrastructure using a declarative configuration language.
It supports multiple cloud providers such as AWS, Azure, and Google Cloud Platform.
Terraform manages infrastructure resources as code, enabling automation and version control.
It helps in creating, updating, and deleting infrastructure resources efficiently.
Terraform uses a state file to k...read more
Q21. What is ansbible
Ansible is an open-source automation tool used for configuration management, application deployment, and orchestration.
Ansible uses YAML syntax for its playbooks
It does not require agents to be installed on managed nodes
Ansible can automate tasks across multiple servers simultaneously
Q22. What is jdbc explain in detail
JDBC (Java Database Connectivity) is an API for connecting Java programs to databases.
JDBC allows Java programs to interact with databases using SQL queries.
It provides a set of classes and interfaces for database operations.
JDBC drivers enable communication between Java applications and databases.
Common JDBC methods include getConnection(), createStatement(), executeQuery(), etc.
Top HR Questions asked in Genpact
Interview Process at Genpact
Top Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month