APIs and SDKs Flashcards

1
Q

Q: What is an API?

A

A: An Application Programming Interface (API) is a set of rules and protocols that allows applications to communicate with each other or with services.

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

Q: What are AWS SDKs?

A

A: Software Development Kits (SDKs) that provide libraries and tools for interacting with AWS services in various programming languages.

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

Q: Which programming languages are supported by AWS SDKs?

A

A: Java, Python (boto3), JavaScript/TypeScript, .NET, Ruby, PHP, Go, C++, and more.

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

Q: What is the AWS CLI?

A

A: A command-line tool for managing AWS services and resources through commands and scripts.

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

Q: What are AWS REST APIs?

A

A: APIs that allow interaction with AWS services over HTTP/HTTPS using standard RESTful conventions.

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

Q: What is boto3?

A

A: The AWS SDK for Python, providing tools to create, configure, and manage AWS services programmatically.

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

Q: How is the AWS SDK for JavaScript used?

A

A: For interacting with AWS services in web and mobile applications using Node.js or in the browser.

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

Q: What is the AWS SDK for Java?

A

A: A library for building scalable, high-performance applications that interact with AWS services using Java.

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

Q: What is Amazon API Gateway?

A

A: A managed service for creating, publishing, and managing RESTful or WebSocket APIs.

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

Q: What types of APIs does Amazon API Gateway support?

A

A: REST APIs, HTTP APIs, and WebSocket APIs.

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

Q: What are common use cases for API Gateway?

A

A: Backend integration, creating serverless applications, and exposing Lambda functions as APIs.

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

Q: What is AWS AppSync?

A

A: A managed GraphQL API service for building real-time, data-driven applications.

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

Q: What is the difference between REST and GraphQL APIs?

A

A: REST APIs use fixed endpoints for specific resources, while GraphQL allows clients to request only the data they need with flexible queries.

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

Q: How is API authentication handled in AWS?

A

A: Using API keys, Amazon Cognito, IAM roles and policies, or custom Lambda authorizers.

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

Q: How does AWS Lambda integrate with APIs?

A

A: Lambda functions can be invoked directly by API Gateway or AppSync to handle backend logic for APIs.

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

Q: What is throttling in API Gateway?

A

A: A mechanism to limit the number of API requests per second to protect backend systems from overuse.

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

Q: What are common configurations for AWS SDKs?

A

A: Region, credentials, timeout settings, and retry policies.

18
Q

Q: What is caching in API Gateway?

A

A: A feature to store API responses in a cache to improve performance and reduce backend load.

19
Q

Q: How can APIs be monitored in AWS?

A

A: Using Amazon CloudWatch for tracking metrics, logs, and setting up alarms for API Gateway and Lambda functions.

20
Q

Q: What are deployment stages in API Gateway?

A

A: Named environments (e.g., dev, staging, prod) where different versions of APIs can be deployed and tested.

21
Q

Q: How does AWS Amplify support APIs?

A

A: By simplifying API integration in web and mobile applications, including support for REST and GraphQL APIs.

22
Q

Q: What is the role of IAM policies in API access?

A

A: They control which users or roles can access or manage APIs and define specific permissions.

23
Q

Q: How is logging enabled for API Gateway?

A

A: Using CloudWatch Logs to capture request and response details, latency, and error rates.

24
Q

Q: What is SigV4 signing in AWS APIs?

A

A: A process to securely authenticate API requests using signed headers with IAM credentials.

25
Q

Q: What is CORS in API Gateway?

A

A: A security feature that controls which domains are allowed to access API resources from a browser.

26
Q

Q: How is error handling configured in API Gateway?

A

A: By defining custom error responses and mapping templates for different HTTP status codes.

27
Q

Q: What are regional endpoints in AWS SDKs?

A

A: Region-specific API endpoints to reduce latency and improve performance by connecting to the nearest AWS Region.

28
Q

Q: What are WebSocket APIs in API Gateway?

A

A: APIs that enable real-time, bi-directional communication between clients and servers.

29
Q

Q: What is the retry logic in AWS SDKs?

A

A: Built-in mechanisms to retry failed requests due to transient errors, following exponential backoff.

30
Q

Q: How is rate limiting managed in API Gateway?

A

A: By defining usage plans with quotas and rate limits for API clients.

31
Q

Q: How do AWS SDKs authenticate with AWS services?

A

A: Using IAM user access keys, roles, or environment variables.

32
Q

Q: What are the integration types in API Gateway?

A

A: Lambda proxy, HTTP proxy, and custom integrations with backend services.

33
Q

Q: Why is SDK versioning important?

A

A: To ensure compatibility with AWS service updates and avoid breaking changes in applications.

34
Q

Q: Which AWS services support real-time data APIs?

A

A: AWS AppSync, Amazon Kinesis, and WebSocket APIs in API Gateway.

35
Q

Q: How does API Gateway integrate with VPCs?

A

A: Using VPC links to securely connect to private resources hosted in a VPC.

36
Q

Q: How do AWS SDKs handle errors?

A

A: By throwing exceptions or returning error objects for client-side and server-side issues.

37
Q

Q: What is a mock integration in API Gateway?

A

A: An integration type that returns predefined responses without calling a backend service.

38
Q

Q: How can APIs be tested in AWS?

A

A: Using tools like Postman, curl, or the API Gateway test console in the AWS Management Console.

39
Q

Q: What are usage plans in API Gateway?

A

A: Configurations to manage API access for different API clients with quotas and rate limits.

40
Q

Q: How can AWS SDKs be debugged?

A

A: By enabling logging or debugging options in the SDK configuration, such as boto3.set_stream_logger(‘’) for Python.