Find Interview Questions for Top Companies
EMudhra Interview Questions and Answers
Ques:- An asteroid is going to hit the earth and destroy 100% of it. You have several options: create a missile to destroy it (blowing it into several particles which will still impact the earth but destroy only 50%), or create a missile to push it out of the way (this only has a 50% chance of working though). Which alternative do you pick?
Right Answer:
I would choose to create a missile to push it out of the way, as it has a chance to completely avoid the impact.
Ques:- What are the common status codes in HTTP responses
Right Answer:
The common status codes in HTTP responses are:

- **200**: OK
- **201**: Created
- **204**: No Content
- **400**: Bad Request
- **401**: Unauthorized
- **403**: Forbidden
- **404**: Not Found
- **500**: Internal Server Error
- **502**: Bad Gateway
- **503**: Service Unavailable
Ques:- What is rate limiting in APIs and how is it implemented
Right Answer:
Rate limiting in APIs is a technique used to control the number of requests a user can make to an API within a specific time period. It is implemented by setting thresholds (e.g., requests per minute) and using mechanisms like tokens, counters, or IP address tracking to monitor and restrict access when the limit is exceeded.
Ques:- What are Webhooks and how do they differ from APIs
Right Answer:
Webhooks are user-defined HTTP callbacks that are triggered by specific events in a web application, allowing real-time data transfer. They differ from APIs in that APIs require a request to be made to receive data, while webhooks automatically send data when an event occurs without needing a request.
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 an API and how does it work
Right Answer:
An API (Application Programming Interface) is a set of rules and protocols that allows different software applications to communicate with each other. It defines the methods and data formats that applications can use to request and exchange information. APIs work by sending requests from one application to another, which then processes the request and sends back a response.
Ques:- How can I shift my focus and area of work from QC to QA?
Right Answer:
To shift your focus from Quality Control (QC) to Quality Assurance (QA), start by understanding the differences between the two. Gain knowledge in process improvement, risk management, and preventive measures. Pursue training or certifications in QA methodologies, such as Six Sigma or ISO standards. Collaborate with QA teams to learn about their practices, and seek opportunities to participate in process design and development. Finally, emphasize a proactive mindset focused on preventing defects rather than just identifying them.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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