WorksheetsHistory and Functionality of APIs
Total questions: 20
Worksheet time: 10mins
In which phase did commercial APIs like Salesforce, eBay, and Amazon first emerge?
Phase 1: Commercial APIs
Phase 2: Social Media APIs
Phase 3: Cloud APIs
Phase 4: APIs for Mobile Applications
Which company introduced APIs that changed how we share information in the mid-2000s?
Amazon
Apple
What marked a turning point in cloud computing APIs in 2006?
The launch of Twitter’s API
Amazon’s release of S3 and EC2
The introduction of the iPhone
Google’s release of Android
What role did APIs play in the rise of mobile applications?
They replaced the need for mobile apps entirely.
They enabled apps like Instagram and Twilio to function.
They were only used for gaming apps.
They were irrelevant to mobile development.
Which phase involved APIs connecting devices like Fitbit and Nest to the cloud?
Phase 2: Social Media APIs
Phase 3: Cloud APIs
Phase 5: APIs for Connected Devices
Phase 4: APIs for Mobile Applications
What is the first step in the API request-response cycle?
The API server processes the request.
The API client sends a request.
The API returns a status code.
The user receives the response.
Which of the following is NOT typically part of an API request?
Endpoint
HTTP Method
Response Body
Request Headers
What does a 404 status code indicate in an API response?
The request was successful.
The server created a new resource.
The requested resource was not found.
The request was unauthorized.
Which of the following is a benefit of using APIs?
Increased manual workload
Slower development cycles
Enhanced security through authentication
Higher costs due to third-party dependencies
What is the main difference between private and public APIs?
Private APIs are only for internal use, while public APIs are available to third-party developers.
Private APIs are always free, while public APIs are paid.
Public APIs are slower than private APIs.
Private APIs cannot be secured.
Which API architecture uses standard HTTP methods like GET and POST?
SOAP
REST
GraphQL
gRPC
What is a key advantage of GraphQL over REST?
It requires multiple requests to fetch related data.
It allows clients to request only the data they need in a single query.
It is slower due to XML-based messaging.
It is only used for legacy systems.
Which API type is best suited for event-driven automation?
SOAP
Webhooks
REST
gRPC
What is a common use case for APIs in IoT?
Sending printed letters
Connecting smart devices to the cloud
Replacing all mobile apps
Only used for gaming consoles
How do APIs help reduce costs for businesses?
By requiring manual data entry for all processes
By allowing reuse of existing third-party tools instead of building from scratch
By making systems less scalable
By increasing development time
Which of the following best describes a partner API?
An API that is freely available to the general public
An API that is used only within a single organization
An API that enables collaboration between specific authorized companies
An API that does not require authentication
What was a major innovation introduced by Amazon’s EC2 API in 2006?
It allowed developers to make phone calls from cloud apps.
It enabled API-driven infrastructure deployment for cloud applications.
It replaced the need for social media APIs.
It was the first API to use GraphQL.
In the restaurant metaphor for APIs, what does the "kitchen staff" represent?
The API client
The API server
The API endpoint
The API documentation
Which API architecture is known for using XML for structured messaging?
REST
SOAP
GraphQL
Webhooks
How do APIs contribute to automation in software development?
By requiring manual data entry for every task
By eliminating the need for any third-party tools
By allowing repetitive tasks to be handled programmatically
By making systems less efficient
