Find Interview Questions for Top Companies
Tsb bank Interview Questions and Answers
Ques:- What is the difference between synchronous and asynchronous API calls
Right Answer:
Synchronous API calls wait for the response before moving on to the next task, while asynchronous API calls allow the program to continue executing other tasks while waiting for the response.
Ques:- What are RESTful principles and how do they apply to API design
Right Answer:
RESTful principles include:

1. **Statelessness**: Each API call must contain all the information needed to understand and process the request, with no stored context on the server.
2. **Client-Server Architecture**: The client and server are separate, allowing for independent development and scalability.
3. **Uniform Interface**: A consistent way to interact with resources, typically using standard HTTP methods (GET, POST, PUT, DELETE).
4. **Resource-Based**: APIs should expose resources (data entities) through URIs, and clients interact with these resources.
5. **Representation**: Resources can be represented in various formats (like JSON or XML), and clients can request the format they prefer.
6. **Cacheability**: Responses should indicate whether they can be cached to improve performance and reduce server load.

These principles guide the design of APIs to be scalable, efficient, and easy to use.
Ques:- What is API authentication and what are common methods
Right Answer:
API authentication is the process of verifying the identity of a user or application trying to access an API. Common methods include:

1. **API Keys**: Unique keys provided to users to access the API.
2. **Basic Authentication**: Uses a username and password encoded in Base64.
3. **OAuth**: A token-based authentication method that allows users to grant limited access to their resources without sharing credentials.
4. **JWT (JSON Web Tokens)**: A compact, URL-safe means of representing claims to be transferred between two parties, often used for stateless authentication.
5. **HMAC (Hash-based Message Authentication Code)**: Uses a secret key to create a hash of the request, ensuring data integrity and authenticity.
Ques:- What is CORS and how does it affect API development
Right Answer:
CORS, or Cross-Origin Resource Sharing, is a security feature implemented by web browsers that allows or restricts web applications from making requests to a domain different from the one that served the web page. It affects API development by requiring developers to configure their APIs to specify which origins are allowed to access their resources, ensuring that only trusted domains can interact with the API.
Ques:- What is OAuth and how does it work in API authentication
Right Answer:
OAuth is an open standard for access delegation commonly used for token-based authentication and authorization. It allows third-party applications to access a user's resources without sharing their credentials.

In API authentication, OAuth works by having the user authorize the application to access their data. The process involves:

1. The user is redirected to an authorization server to log in and grant permission.
2. The authorization server issues an access token to the application.
3. The application uses this access token to make API requests on behalf of the user.
4. The API validates the token and grants access to the requested resources.
Ques:- What is the Disadvantage of StoredProcedure?
Right Answer:
The disadvantages of stored procedures include:

1. **Complexity**: They can become complex and difficult to maintain as business logic grows.
2. **Portability**: Stored procedures are often database-specific, making it harder to switch database systems.
3. **Debugging**: Debugging stored procedures can be more challenging compared to application code.
4. **Version Control**: Managing versions of stored procedures can be cumbersome.
5. **Performance**: Poorly written stored procedures can lead to performance issues.
6. **Security**: They can introduce security risks if not properly managed, such as SQL injection vulnerabilities.
Ques:- What is subreport? In one report maximum how many subreportwe can insert?
Asked In :- OIP, tsb bank,
Right Answer:
A subreport is a report embedded within another report, allowing for detailed data presentation related to the main report. The maximum number of subreports that can be inserted in a report varies by reporting tool, but commonly it can be up to 10 or more, depending on the specific software used.
Ques:- What can we do more to improve relations with our customers?
Right Answer:
To improve relations with our customers, we can enhance communication by actively listening to their feedback, providing personalized support, and regularly checking in to understand their needs. Additionally, we can offer loyalty programs, ensure timely responses to inquiries, and create opportunities for customer engagement through events or surveys.
Ques:- A company manufactures hair products. It’s thinking about entering the sunscreen market. Is this a good idea?
Right Answer:
It could be a good idea if there is market demand, the company can leverage its existing distribution channels, and it has the resources to develop and market sunscreen products effectively. However, thorough market research and analysis of competition and consumer preferences are essential before making a decision.
Ques:- What will you do when client is asking you to provide something which has no meaning?
Right Answer:
I would ask the client for clarification on their request, explain why it may not have meaning, and suggest alternative solutions that align with their goals.
Ques:- The client is a high tech company that manufactures crystal giftware. The market for crystal giftware is growing at 3% a year yet the client is experiencing declining sales and shrinking market share. Why is market share declining? What can we do about it?
Right Answer:
The client's market share may be declining due to factors such as increased competition, changing consumer preferences, lack of innovation, poor marketing strategies, or pricing issues. To address this, the client can conduct market research to understand customer needs, improve product quality and design, enhance marketing efforts, explore new distribution channels, and consider competitive pricing strategies.
Ques:- I am a manufacturer of railroad cars in a declining market. My firm is losing market share and money but I think the industry may rebound in the near future. What should I do?
Right Answer:
Focus on cost reduction and efficiency improvements, invest in innovation and technology, diversify your product offerings, strengthen customer relationships, and explore new markets or partnerships. Prepare for a potential rebound by maintaining a flexible and adaptive business strategy.
Ques:- How do you debug a failed graph in a production environment
Right Answer:
To debug a failed graph in a production environment, follow these steps:

1. **Check Logs**: Review the error logs generated by the graph for any specific error messages.
2. **Identify the Failure Point**: Determine which component or transformation caused the failure by analyzing the logs and the graph's execution flow.
3. **Validate Input Data**: Ensure that the input data is in the expected format and does not contain any anomalies.
4. **Run in Debug Mode**: If possible, run the graph in debug mode to step through the execution and observe the behavior of each component.
5. **Check Environment Variables**: Verify that all necessary environment variables and configurations are correctly set.
6. **Test Components Individually**: Isolate and test individual components or transformations to identify issues.
7. **Consult Documentation**: Refer to Ab Initio documentation for error codes and troubleshooting tips related to the specific error encountered.
8. **Engage with Team**: Collaborate with team members
Ques:- What is the role of APIs in modern software development
Right Answer:
APIs (Application Programming Interfaces) allow different software systems to communicate and interact with each other, enabling developers to integrate functionalities, access data, and build applications more efficiently by reusing existing services and resources.
Ques:- What is the role of Apache Sling in AEM development
Right Answer:
Apache Sling is a web framework used in AEM development that maps HTTP requests to content resources based on the URL. It allows developers to create and manage content in a flexible way, enabling the use of Java servlets, scripts, and other components to deliver dynamic web applications.
Ques:- What are commonly used compiler flags for ARM compilation
Right Answer:
Commonly used compiler flags for ARM compilation include:

1. `-mcpu=<cpu-type>`: Specify the target ARM CPU architecture.
2. `-mthumb`: Generate Thumb code.
3. `-mfpu=<fpu-type>`: Specify the floating-point unit.
4. `-mfloat-abi=<abi-type>`: Define the floating-point ABI.
5. `-O<n>`: Set optimization level (e.g., `-O0`, `-O1`, `-O2`, `-O3`).
6. `-g`: Include debug information.
7. `-Wall`: Enable all compiler warnings.
8. `-Werror`: Treat warnings as errors.
9. `-D<macro>`: Define a macro.
10. `-I<directory>`: Add a directory to the include path.
Ques:- How does RTE integrate with OS and BSW layers
Right Answer:
The RTE (Runtime Environment) acts as a middleware layer that facilitates communication between the application layer and the underlying OS (Operating System) and BSW (Basic Software) layers in AUTOSAR. It abstracts the details of the OS and BSW, allowing application components to interact with services like communication, memory management, and hardware access without needing to know the specifics of the underlying layers. The RTE generates code that connects application software components to the BSW modules and manages their lifecycle, ensuring that they operate correctly within the constraints of the OS.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users