APIs and SDKs Flashcards
Q: What is an API?
A: An Application Programming Interface (API) is a set of rules and protocols that allows applications to communicate with each other or with services.
Q: What are AWS SDKs?
A: Software Development Kits (SDKs) that provide libraries and tools for interacting with AWS services in various programming languages.
Q: Which programming languages are supported by AWS SDKs?
A: Java, Python (boto3), JavaScript/TypeScript, .NET, Ruby, PHP, Go, C++, and more.
Q: What is the AWS CLI?
A: A command-line tool for managing AWS services and resources through commands and scripts.
Q: What are AWS REST APIs?
A: APIs that allow interaction with AWS services over HTTP/HTTPS using standard RESTful conventions.
Q: What is boto3?
A: The AWS SDK for Python, providing tools to create, configure, and manage AWS services programmatically.
Q: How is the AWS SDK for JavaScript used?
A: For interacting with AWS services in web and mobile applications using Node.js or in the browser.
Q: What is the AWS SDK for Java?
A: A library for building scalable, high-performance applications that interact with AWS services using Java.
Q: What is Amazon API Gateway?
A: A managed service for creating, publishing, and managing RESTful or WebSocket APIs.
Q: What types of APIs does Amazon API Gateway support?
A: REST APIs, HTTP APIs, and WebSocket APIs.
Q: What are common use cases for API Gateway?
A: Backend integration, creating serverless applications, and exposing Lambda functions as APIs.
Q: What is AWS AppSync?
A: A managed GraphQL API service for building real-time, data-driven applications.
Q: What is the difference between REST and GraphQL APIs?
A: REST APIs use fixed endpoints for specific resources, while GraphQL allows clients to request only the data they need with flexible queries.
Q: How is API authentication handled in AWS?
A: Using API keys, Amazon Cognito, IAM roles and policies, or custom Lambda authorizers.
Q: How does AWS Lambda integrate with APIs?
A: Lambda functions can be invoked directly by API Gateway or AppSync to handle backend logic for APIs.
Q: What is throttling in API Gateway?
A: A mechanism to limit the number of API requests per second to protect backend systems from overuse.