i
Persistent
Systems
Work with us
Filter interviews by
Flattening an array in JavaScript without using the flat method can be achieved using recursion or iteration.
Use recursion to iterate through each element and check if it's an array. Example: `function flatten(arr) { return arr.reduce((acc, val) => Array.isArray(val) ? acc.concat(flatten(val)) : acc.concat(val), []); }`
Utilize a loop to push elements into a new array. Example: `function flatten(arr) { let resul...
Debouncing and throttling are techniques to control the rate of function execution in JavaScript, improving performance.
Debouncing: Delays execution until after a specified wait time has passed since the last invocation.
Example of debouncing: A search input that waits for 300ms after the user stops typing before sending a request.
Throttling: Ensures a function is executed at most once in a specified time interval,...
Redux is a predictable state container for JavaScript apps, enabling centralized state management and unidirectional data flow.
Redux consists of three core principles: Single Source of Truth, State is Read-Only, and Changes are Made with Pure Functions.
The flow of Redux can be summarized in four steps: Action, Reducer, Store, and View.
An Action is a plain JavaScript object that describes a change in the applicatio...
Unmounting components in React involves removing them from the DOM, typically during component lifecycle events.
Use the componentWillUnmount lifecycle method in class components to perform cleanup tasks.
In functional components, use the useEffect hook with a return function to handle cleanup.
Example: In a class component, you can clear timers or cancel network requests in componentWillUnmount.
Example: In a functio...
Event looping in JavaScript manages asynchronous operations, allowing non-blocking execution of code.
JavaScript is single-threaded, meaning it can execute one command at a time.
The event loop allows JavaScript to perform non-blocking I/O operations by using a callback queue.
When an asynchronous operation completes, its callback is pushed to the queue, waiting for the call stack to be empty.
Example: setTimeout(() =...
Context in React allows for sharing values between components without prop drilling.
Context provides a way to pass data through the component tree without having to pass props down manually at every level.
It is created using React.createContext() which returns a Context object.
Components can subscribe to this Context object to read its current value using the useContext hook or Context.Consumer.
Example: const MyCo...
Code splitting in React allows loading parts of an application on demand, improving performance and reducing initial load time.
Use React.lazy() to dynamically import components: `const LazyComponent = React.lazy(() => import('./LazyComponent'));`
Wrap lazy-loaded components with Suspense to handle loading states: `<Suspense fallback={<div>Loading...</div>}><LazyComponent /></Suspense&g...
In React, keys are unique identifiers for elements in a list, helping React optimize rendering and updates.
Keys help React identify which items have changed, are added, or are removed.
They should be unique among siblings but can be reused across different lists.
Using indexes as keys can lead to issues with component state and performance.
Example: <Component key={item.id} /> where item.id is a unique identifi...
State and props are core concepts in React for managing data and component behavior.
State is a mutable object that holds data specific to a component.
Props (short for properties) are immutable data passed from parent to child components.
State can be updated using the setState method, while props are read-only.
Example of state: <Component state={{ count: 0 }} />; state can change with user interaction.
Example...
Components in React re-render when state or props change, or when a parent component re-renders.
1. State Change: When a component's state is updated using setState, it triggers a re-render. Example: <MyComponent state={this.state} />.
2. Props Change: If a parent component passes new props to a child, the child re-renders. Example: <ChildComponent prop={newValue} />.
3. Context Change: If a component sub...
I appeared for an interview in Jan 2025.
The Java Virtual Machine (JVM) is an abstract computing machine that enables a computer to run Java programs.
JVM is platform-independent and converts Java bytecode into machine code.
It consists of class loader, runtime data areas, execution engine, and native method interface.
JVM memory is divided into method area, heap, stack, and PC register.
Examples of JVM implementations include Oracle HotSpot, OpenJ9, and GraalVM.
The default connection pooling in Spring Boot is HikariCP, which can be customized through properties in the application.properties file.
HikariCP is the default connection pooling library in Spring Boot, known for its high performance and low overhead.
To customize the connection pooling, you can modify properties like 'spring.datasource.hikari.*' in the application.properties file.
For example, you can set maximum pool ...
Best practices for optimizing a Spring Boot application
Use Spring Boot Actuator to monitor and manage application performance
Implement caching mechanisms like Spring Cache to reduce database calls
Optimize database queries and indexes for better performance
Use asynchronous processing with Spring's @Async annotation for non-blocking operations
Profile and analyze application performance using tools like VisualVM or JProfi...
A heap dump is a snapshot of the memory usage of a Java application at a specific point in time.
Heap dumps can be generated using tools like jmap or VisualVM.
They provide detailed information about objects in memory, their sizes, and references.
Analyzing a heap dump can help identify memory leaks by pinpointing objects that are consuming excessive memory.
Common signs of memory leaks in a heap dump include a large numbe...
Diagonally iterate through and print elements of a 2D array of strings.
Use nested loops to iterate through rows and columns of the 2D array.
Calculate the diagonal elements by incrementing row and column indices together.
Print the elements as you iterate through the diagonal of the array.
I appeared for an interview in Feb 2025.
Flattening an array involves converting a multi-dimensional array into a single-dimensional array without using the flat method.
Use reduce: You can use the reduce method to iterate through the array and concatenate elements. Example: `arr.reduce((acc, val) => acc.concat(val), [])`.
Use recursion: Create a function that checks if an element is an array and flattens it recursively. Example: `function flatten(arr) { ret...
Implementing a counter in React without useState can be achieved using refs for mutable state management.
Using useRef: You can create a mutable reference using useRef to store the counter value, which persists across renders.
Example: const countRef = useRef(0); to initialize the counter.
Updating the Counter: Use a function to increment the value, e.g., countRef.current += 1; to update the counter.
Triggering Re-renders:...
Using Context API to manage API data in a React application.
Create a Context using React.createContext().
Build a Provider component that fetches data from an API.
Use useEffect to make the API call when the component mounts.
Store the fetched data in a state variable using useState.
Pass the data and any necessary functions through the Provider's value.
Consume the context in child components using useContext.
I applied via Walk-in and was interviewed in Nov 2024. There were 3 interview rounds.
It's walkin, so they conducted 1 technical mcqs round.
Microservices communicate with each other through various communication protocols like HTTP, messaging queues, and gRPC.
Microservices can communicate over HTTP using RESTful APIs.
Messaging queues like RabbitMQ or Kafka can be used for asynchronous communication between microservices.
gRPC is a high-performance, open-source RPC framework that can be used for communication between microservices.
Service discovery mechanism...
Microservices allow for modular, scalable, and flexible software development by breaking down applications into smaller, independent services.
Microservices enable easier maintenance and updates as each service can be developed, deployed, and scaled independently.
They improve fault isolation, as failures in one service do not necessarily affect the entire application.
Microservices promote agility and faster time-to-mark...
I applied via Naukri.com and was interviewed in Dec 2024. There were 3 interview rounds.
Use Java Streams to find pairs in an array that sum to 11.
Use IntStream.range to iterate through the array indices.
For each element, check if there's a complement (11 - current element) in the array.
Use a Set to store seen numbers for efficient lookup.
Example: For array [1, 10, 2, 9, 3, 8], pairs are (10, 1), (9, 2), (8, 3).
I appeared for an interview in Jan 2025.
In Linux shell scripting, use the -e flag to check if a file exists.
Use the command: if [ -e $filename ]; then echo 'File exists'; fi
The -e flag checks for the existence of a file or directory.
You can also use -f for regular files: if [ -f $filename ]; then echo 'Regular file exists'; fi
For directories, use -d: if [ -d $dirname ]; then echo 'Directory exists'; fi
This task involves removing a specified number of characters from a string based on asterisks indicating the count.
Identify the number of asterisks in the string to determine how many characters to remove.
Use string slicing to remove the specified characters from the original string.
Example: For 'Persis****', remove 4 characters to get 'Pe'.
Consider edge cases, such as when the number of asterisks exceeds the length of...
I applied via Naukri.com and was interviewed in Oct 2024. There were 2 interview rounds.
Business Analyst (BA) focuses on understanding business needs and requirements, while Product Owner (PO) focuses on defining and prioritizing product features.
BA analyzes business processes and systems to identify areas for improvement, while PO works closely with stakeholders to define product features and prioritize the product backlog.
BA typically works on multiple projects simultaneously, while PO is dedicated to a...
I appeared for an interview in Jan 2025.
A Java program to find and replace specified characters with corresponding numbers in an array of strings.
Iterate through each string in the array
Count the occurrences of specified characters
Replace the characters with corresponding numbers
Return the modified array of strings
Separate even and odd numbers in an array, placing even numbers on the right side and odd numbers on the left side.
Iterate through the array and check if each element is even or odd.
Create two separate arrays to store even and odd numbers.
Append even numbers to one array and odd numbers to another.
Finally, combine the two arrays with even numbers on the right and odd numbers on the left.
I applied via Naukri.com and was interviewed in Aug 2024. There were 2 interview rounds.
I am a Senior Data Engineer with experience in developing data pipelines and optimizing data storage for various projects.
Developed data pipelines using Apache Spark for real-time data processing
Optimized data storage using technologies like Hadoop and AWS S3
Worked on a project to analyze customer behavior and improve marketing strategies
My day-to-day job in the project involved designing and implementing data pipelines, optimizing data workflows, and collaborating with cross-functional teams.
Designing and implementing data pipelines to extract, transform, and load data from various sources
Optimizing data workflows to improve efficiency and performance
Collaborating with cross-functional teams including data scientists, analysts, and business stakeholde...
DAGs handle fault tolerance by rerunning failed tasks and maintaining task dependencies.
DAGs rerun failed tasks automatically to ensure completion.
DAGs maintain task dependencies to ensure proper sequencing.
DAGs can be configured to retry failed tasks a certain number of times before marking them as failed.
Shuffling is the process of redistributing data across partitions in a distributed computing environment.
Shuffling is necessary when data needs to be grouped or aggregated across different partitions.
It can be handled efficiently by minimizing the amount of data being shuffled and optimizing the partitioning strategy.
Techniques like partitioning, combiners, and reducers can help reduce the amount of shuffling in MapRed...
Repartition increases or decreases the number of partitions in a DataFrame, while Coalesce only decreases the number of partitions.
Repartition can increase or decrease the number of partitions in a DataFrame, leading to a shuffle of data across the cluster.
Coalesce only decreases the number of partitions in a DataFrame without performing a full shuffle, making it more efficient than repartition.
Repartition is typically...
Incremental data is handled by identifying new data since the last update and merging it with existing data.
Identify new data since last update
Merge new data with existing data
Update data warehouse or database with incremental changes
SCD stands for Slowly Changing Dimension, a concept in data warehousing to track changes in data over time.
SCD is used to maintain historical data in a data warehouse.
There are three types of SCD - Type 1, Type 2, and Type 3.
Type 1 SCD overwrites old data with new data.
Type 2 SCD creates a new record for each change, preserving history.
Type 3 SCD maintains both old and new values in the same record.
SCD is important for...
Reverse a string using SQL and Python codes.
In SQL, use the REVERSE function to reverse a string.
In Python, use slicing with a step of -1 to reverse a string.
Use Spark and SQL to find the top 5 countries with the highest population.
Use Spark to load the data and perform data processing.
Use SQL queries to group by country and sum the population.
Order the results in descending order and limit to top 5.
Example: SELECT country, SUM(population) AS total_population FROM table_name GROUP BY country ORDER BY total_population DESC LIMIT 5
To find different records for different joins using two tables
Use the SQL query to perform different joins like INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL JOIN
Identify the key columns in both tables to join on
Select the columns from both tables and use WHERE clause to filter out the different records
A catalyst optimizer is a query optimization tool used in Apache Spark to improve performance by generating an optimal query plan.
Catalyst optimizer is a rule-based query optimization framework in Apache Spark.
It leverages rules to transform the logical query plan into a more optimized physical plan.
The optimizer applies various optimization techniques like predicate pushdown, constant folding, and join reordering.
By o...
Used query optimization techniques to improve performance in database queries.
Utilized indexing to speed up search queries.
Implemented query caching to reduce redundant database calls.
Optimized SQL queries by restructuring joins and subqueries.
Utilized database partitioning to improve query performance.
Used query profiling tools to identify and optimize slow queries.
Merging two schemas in PySpark involves combining DataFrames with different structures into a unified format.
Use the `unionByName()` method to merge DataFrames with different column names.
Example: df1.unionByName(df2, allowMissingColumns=True) merges df1 and df2, filling missing columns with nulls.
For schema evolution, use `mergeSchema` option when reading from Parquet files.
Example: spark.read.option('mergeSchema', 't...
Use the len() function to check the length of the data frame.
Use len() function to get the number of rows in the data frame.
If the length is 0, then the data frame is empty.
Example: if len(df) == 0: print('Data frame is empty')
Cores and worker nodes are decided based on the workload requirements and scalability needs of the data processing system.
Consider the size and complexity of the data being processed
Evaluate the processing speed and memory requirements of the tasks
Take into account the parallelism and concurrency needed for efficient data processing
Monitor the system performance and adjust cores and worker nodes as needed
Enforcing schema ensures that data conforms to a predefined structure and rules.
Ensures data integrity by validating incoming data against predefined schema
Helps in maintaining consistency and accuracy of data
Prevents data corruption and errors in data processing
Can lead to rejection of data that does not adhere to the schema
I applied via Recruitment Consulltant and was interviewed in Dec 2024. There was 1 interview round.
Terraform daily tasks involve infrastructure provisioning, configuration management, and automation.
Creating and managing infrastructure using Terraform scripts
Updating and modifying existing infrastructure as needed
Automating deployment processes for applications
Implementing version control for Terraform configurations
Monitoring and troubleshooting Terraform deployments
RPA stands for Robotic Process Automation, which involves using software robots to automate repetitive tasks.
RPA uses software robots to automate repetitive tasks, mimicking human actions.
It can be used to streamline business processes, increase efficiency, and reduce human error.
RPA tools can interact with existing applications, extract data, and perform tasks across multiple systems.
Examples of RPA tools include UiPa...
RE-Framework is a Robotic Enterprise Framework for automating business processes using UiPath.
RE-Framework is a template designed by UiPath for building scalable and efficient automation projects.
It includes pre-built workflows for exception handling, logging, and reusability of components.
RE-Framework follows a state machine design pattern to manage the flow of automation.
It allows for easy integration of new processe...
What people are saying about Persistent Systems
The duration of Persistent Systems interview process can vary, but typically it takes about less than 2 weeks to complete.
based on 591 interview experiences
Difficulty level
Duration
based on 4.4k reviews
Rating in categories
Software Engineer
4.6k
salaries
| ₹2.5 L/yr - ₹11 L/yr |
Senior Software Engineer
4.5k
salaries
| ₹5.1 L/yr - ₹18.8 L/yr |
Lead Software Engineer
3.6k
salaries
| ₹7.4 L/yr - ₹19.3 L/yr |
Lead Engineer
3.5k
salaries
| ₹10 L/yr - ₹27.4 L/yr |
Project Lead
2.1k
salaries
| ₹12.6 L/yr - ₹40 L/yr |
Cognizant
TCS
IBM
LTIMindtree