Allianz Financial Services (AFS) is a banking group offering end-to-end banking and financial solutions in South East Asia through its consumer banking, business banking, Islamic banking, investment finance and stock broking businesses as well as unit trust and asset administration, having served the financial community over the past five decades. AFS is looking to collect and process the log files in near real time that are generated from thousands of applications in their AWS cloud.
AFS is also collecting stock pricing information from stock price publishing data providers and using the information to recommend stocks to customers.
AFS is looking at querying streams and using Kinesis Analytics application to process all the stocks for recommendation if price changes greater than 10 percent.
What kind of Queries will help fulfill the requirement? select 1 option.
Click on the arrows to vote for the correct answer
A. B. C. D.Answer: D.
Option A is incorrect - Stagger windows query, A query that aggregates data using keyed time-basedwindows that open as data arrives.
The keys allow for multiple overlapping windows.
This is the recommended way to aggregate data using time-based windows
https://docs.aws.amazon.com/kinesisanalytics/latest/dev/stagger-window-Option B is incorrect -Tumbling Windows query, A query that aggregates data using distinct time-based windows that open and close at regular intervals.
https://docs.aws.amazon.com/kinesisanalytics/latest/dev/tumbling-window-Option C is incorrect -Sliding windows query, A query that aggregates data continuously, using a fixed time or rowcount interval.
https://docs.aws.amazon.com/kinesisanalytics/latest/dev/sliding-window-concepts.htmlOption D is correct -Continuous Query is a query over a stream executes continuously over streaming data.
This continuous execution enables scenarios, such as the ability for applications to continuously query a stream and generate alerts.
https://docs.aws.amazon.com/kinesisanalytics/latest/dev/continuous-queries-The requirement of AFS is to collect and process log files generated by thousands of applications in near real-time and to use the collected stock pricing information to recommend stocks to customers. AFS wants to use Kinesis Analytics application to process all the stocks for recommendation if price changes greater than 10 percent. To achieve this, AFS needs to use appropriate queries in Kinesis Analytics application.
Stagger Windows queries, Tumbling Windows queries, Sliding windows queries, and Continuous queries are different types of queries that can be used in Kinesis Analytics application to analyze and process streaming data.
Stagger Windows queries divide the data stream into staggered windows of equal duration but with an overlap between them. These queries are useful when the data stream is unevenly distributed across time and when the analysis needs to be performed on both old and new data.
Tumbling Windows queries divide the data stream into non-overlapping windows of equal duration. These queries are useful when the data stream is evenly distributed across time and when the analysis needs to be performed only on new data.
Sliding Windows queries divide the data stream into windows of fixed duration with an overlap between them. These queries are useful when the analysis needs to be performed on both old and new data.
Continuous queries process data as it arrives without dividing it into windows. These queries are useful when the analysis needs to be performed on individual data records rather than on batches of records.
In this scenario, AFS is collecting stock pricing information and wants to use Kinesis Analytics application to process all the stocks for recommendation if price changes greater than 10 percent. This requires the analysis of both old and new data, so Stagger Windows queries and Sliding Windows queries could be used. However, since the data is coming in near real-time, Sliding Windows queries would be a better option as they allow for continuous analysis of the data stream with a fixed window duration and an overlap between the windows.
Therefore, the type of queries that will help fulfill AFS's requirement is Sliding Windows queries.