API’s Flashcards

1
Q

What is an API?

A

An API is a set of rules that allows one piece of software to interact with another.

It defines the methods and data formats that applications can use to communicate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are the types of APIs?

A

APIs include:
* REST (Representational State Transfer)
* SOAP (Simple Object Access Protocol)
* GraphQL
* Webhooks

Each type serves different purposes and has its own specifications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is REST?

A

REST uses standard HTTP methods (GET, POST, PUT, DELETE) and is stateless.

It is widely used due to its simplicity and scalability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is SOAP?

A

SOAP is a protocol that uses XML for messaging, providing more rigid specifications and standards.

It is often used in enterprise-level applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is GraphQL?

A

GraphQL is an open-source data query and manipulation language for APIs, providing a more flexible and efficient way to query data.

It allows clients to request exactly the data they need.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the importance of API documentation?

A

Clear and comprehensive documentation is essential for developers to understand how to use the API effectively.

It aids in reducing errors and improving integration speed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the components of API documentation?

A

Components include:
* Endpoints
* Methods
* Parameters
* Response Codes
* Example Requests/Responses

Each component plays a critical role in API usability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is API authentication?

A

Authentication ensures that only authorized users can access the API.

Common methods include API keys, Auth, and JWT (JSON Web Tokens).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is rate limiting in APIs?

A

Rate limiting controls the number of API requests a user can make in a given time period to prevent abuse.

It helps maintain service quality and availability.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the purpose of API versioning?

A

API versioning manages changes and updates to the API without disrupting existing users.

Common methods include URI versioning, query parameters, and custom headers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is API latency?

A

Latency refers to ensuring the API responds quickly to requests.

It is crucial for user experience.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is API caching?

A

Caching involves storing frequently accessed data temporarily to improve response times.

It reduces load on servers and enhances performance.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are RESTful principles?

A

RESTful principles include:
* Using nouns for endpoints
* Stateless operations
* Proper use of HTTP methods

Following these principles ensures a well-designed API.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is API monetization?

A

Monetization involves understanding how APIs can be monetized, such as through subscription models, pay-per-use, or freemium models.

This can enhance revenue streams for businesses.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What are API management tools?

A

API management tools include:
* API Gateways
* Monitoring tools

Examples are AWS API Gateway and Postman.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are internal APIs?

A

Internal APIs are used within an organization to enable different systems to communicate.

They help streamline operations and data sharing.

17
Q

What are external APIs?

A

External APIs are exposed to external developers and partners to enable integrations and extend functionality.

They are crucial for creating partnerships and expanding product capabilities.

18
Q

What is the significance of terms of service in API usage?

A

Terms of service define the legal use of the API.

They protect both the provider and the user by outlining acceptable uses.

19
Q

What does data privacy compliance involve?

A

Data privacy compliance involves ensuring adherence to regulations like GDPR and CCPA.

It is essential for protecting user data and avoiding legal issues.