Find Interview Questions for Top Companies
Ques:- What are the different types of APIs
Right Answer:
The different types of APIs are:

1. **Open APIs (Public APIs)** - Available to developers and third parties.
2. **Internal APIs (Private APIs)** - Used within an organization.
3. **Partner APIs** - Shared with specific business partners.
4. **Composite APIs** - Combine multiple endpoints into a single call.
5. **Web APIs** - Accessible over the internet using HTTP/HTTPS.
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 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 the role of an API Gateway in microservices architecture
Right Answer:
An API Gateway acts as a single entry point for clients to access multiple microservices, handling requests, routing them to the appropriate services, managing authentication, rate limiting, and aggregating responses.
Ques:- What is the difference between GET, POST, PUT, and DELETE in HTTP
Right Answer:
GET is used to retrieve data from a server, POST is used to send data to a server to create a resource, PUT is used to update an existing resource on the server, and DELETE is used to remove a resource from the server.
Ques:- What are the different types of data distributions
Right Answer:
The different types of data distributions include:

1. Normal Distribution
2. Binomial Distribution
3. Poisson Distribution
4. Uniform Distribution
5. Exponential Distribution
6. Log-Normal Distribution
7. Geometric Distribution
8. Beta Distribution
9. Chi-Squared Distribution
10. Student's t-Distribution
Ques:- What are the steps involved in data cleaning
Right Answer:
1. Remove duplicates
2. Handle missing values
3. Correct inconsistencies
4. Standardize formats
5. Filter out irrelevant data
6. Validate data accuracy
7. Normalize data if necessary
Ques:- What is the difference between correlation and causation
Right Answer:
Correlation is a statistical measure that indicates the extent to which two variables fluctuate together, while causation implies that one variable directly affects or causes a change in another variable.
Ques:- What are some common data analysis tools and software
Right Answer:
Some common data analysis tools and software include:

1. Microsoft Excel
2. R
3. Python (with libraries like Pandas and NumPy)
4. SQL
5. Tableau
6. Power BI
7. SAS
8. SPSS
9. Google Analytics
10. Apache Spark
Ques:- What are outliers and how do you handle them in data analysis
Right Answer:
Outliers are data points that significantly differ from the rest of the dataset. They can skew results and affect statistical analyses. To handle outliers, you can:

1. Identify them using methods like the IQR (Interquartile Range) or Z-scores.
2. Remove them if they are errors or irrelevant.
3. Transform them using techniques like log transformation.
4. Use robust statistical methods that are less affected by outliers.
5. Analyze them separately if they provide valuable insights.
Ques:- I am on yahoo mail and start a forward thread to all my contacts. How long will it take for the same gossip to travel back to me?
Right Answer:
The time it takes for the gossip to travel back to you depends on the speed at which your contacts forward the message to others and how many people are involved. It could be immediate or take several hours or days, depending on their responsiveness and network.
AmbitionBox Logo

What makes Takluu valuable for interview preparation?

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