Q2 — AWS SAA-C03 Ch.1

Question 2 of 65 | ← Chapter 1

Q2. A bicycle sharing company is developing a multi-tier architecture to track the location of its bicycles during peak operating hours.The company wants to use these data points in its existing analytics platform A solutions architect must determine the most viable multi-tier option to support this architecture. The data points must be accessible from the REST API. Which action meets these requirements for storing and retrieving location data?

Correct Answer: B. Use Amazon API Gateway with AWS Lambda

Explanation

To determine the most viable multi-tier option for the bicycle sharing company to store and retrieve location data while ensuring accessibility via a REST API, let's analyze each option based on the requirements:A. Use Amazon Athena with Amazon S3:Storage: Amazon S3 provides durable and scalable storage for the location data.Querying: Amazon Athena enables querying the data stored in S3 using standard SQL, making it convenient for analysis.REST API Access: However, Athena is not designed to directly expose a REST API for data retrieval. It's primarily an interactive query service.Suitability: This option is not ideal for direct REST API access to the location data.B. Use Amazon API Gateway with AWS Lambda:REST API: Amazon API Gateway provides a fully managed service to create, publish, maintain, monitor, and secure REST, HTTP, and WebSocket APIs.Serverless Backend: AWS Lambda can be used as the backend for the API Gateway, processing data requests without requiring you to manage servers.Data Storage and Retrieval: The actual storage and retrieval of location data would depend on how Lambda is integrated with other services (e.g., S3, DynamoDB) for data persistence.Suitability: This option provides a robust and scalable solution for exposing a REST API to retrieve location data, with the flexibility to integrate with various AWS services for data storage and processing.C. Use Amazon QuickSight with Amazon Redshift:Analytics Platform: Amazon QuickSight is a cloud-native, serverless BI service that enables data visualization and analysis.Data Warehouse: Amazon Redshift is a fully managed, petabyte-scale data warehouse service.REST API Access: While QuickSight and Redshift are powerful for analytics, they do not directly provide a REST API for retrieving raw location data.Suitability: This option is better suited for data analytics and visualization rather than as a direct solution for storing and retrieving location data via REST API.D. Use Amazon API Gateway with Amazon Kinesis Data Analytics:REST API: Similar to option B, Amazon API Gateway provides the REST API functionality.Real-time Data Processing: Amazon Kinesis Data Analytics enables real-time data processing on streaming data.Suitability: While this option can be useful for real-time analytics, it might be an overkill for simply storing and retrieving location data via REST API, especially if the data does not need to be processed in real-time.Conclusion:Based on the requirements of storing and retrieving location data via a REST API, the most viable option is:B. Use Amazon API Gateway with AWS Lambda.This option provides a scalable and flexible solution that can handle data retrieval requests via a REST API and can integrate with various AWS services for data storage and processing.