DEA-C01 practice question 25 of 25

A financial services company stores financial data in Amazon Redshift. A data engineer wants to run real-time queries on the financial data to support a web-based trading application. The data engineer wants to run the queries from within the trading application. Which solution will meet these requirements with the LEAST operational overhead?

Full set: 287 questions
Answer options
A: Establish WebSocket connections to Amazon Redshift.
B: Use the Amazon Redshift Data API. Correct answer
C: Set up Java Database Connectivity (JDBC) connections to Amazon Redshift.
D: Store frequently accessed data in Amazon S3. Use Amazon S3 Select to run the queries.
Correct Answer:
B. Use the Amazon Redshift Data API.
Explanation

The Amazon Redshift Data API provides a secure HTTP endpoint to access Amazon Redshift without needing to manage persistent database connections or configure JDBC/ODBC drivers. This is ideal for web-based applications, as it simplifies access, eliminates the overhead of connection pool management, and integrates with AWS IAM for authentication. By using the Data API, the application can run queries asynchronously, which is suitable for real-time web interfaces. This approach significantly reduces operational overhead compared to traditional connection methods.

Why Incorrect

A. Amazon Redshift does not natively support WebSocket connections. Implementing this would require a complex and costly intermediary service, increasing operational overhead.
C. Setting up JDBC connections requires managing drivers, connection pools, and network security from the application server to the database, which is a significant operational burden.
D. The data is already in Amazon Redshift. Moving it to Amazon S3 for querying adds an unnecessary data movement step and bypasses Redshift's powerful query engine.

References

1. Amazon Redshift Management Guide. (n.d.). Using the Amazon Redshift Data API. AWS Documentation. Retrieved from https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html (See the section "Benefits of using the Data API," which highlights not needing to "configure drivers and manage database connections.")

2. Amazon Redshift Database Developer Guide. (n.d.). Connecting to an Amazon Redshift cluster. AWS Documentation. Retrieved from https://docs.aws.amazon.com/redshift/latest/dg/cconnectingtoclusters.html (This page describes the traditional JDBC/ODBC connection methods, illustrating the setup they require.)

Scroll to Top