ExamGecko
Question list
Search
Search

List of questions

Search

Question 162 - ARA-C01 discussion

Report
Export

An Architect is designing a solution that will be used to process changed records in an orders table. Newly-inserted orders must be loaded into the f_orders fact table, which will aggregate all the orders by multiple dimensions (time, region, channel, etc.). Existing orders can be updated by the sales department within 30 days after the order creation. In case of an order update, the solution must perform two actions:

1. Update the order in the f_0RDERS fact table.

2. Load the changed order data into the special table ORDER _REPAIRS.

This table is used by the Accounting department once a month. If the order has been changed, the Accounting team needs to know the latest details and perform the necessary actions based on the data in the order_repairs table.

What data processing logic design will be the MOST performant?

A.

Use one stream and one task.

Answers
A.

Use one stream and one task.

B.

Use one stream and two tasks.

Answers
B.

Use one stream and two tasks.

C.

Use two streams and one task.

Answers
C.

Use two streams and one task.

D.

Use two streams and two tasks.

Answers
D.

Use two streams and two tasks.

Suggested answer: B

Explanation:

The most performant design for processing changed records, considering the need to both update records in the f_orders fact table and load changes into the order_repairs table, is to use one stream and two tasks. The stream will monitor changes in the orders table, capturing both inserts and updates. The first task would apply these changes to the f_orders fact table, ensuring all dimensions are accurately represented. The second task would use the same stream to insert relevant changes into the order_repairs table, which is critical for the Accounting department's monthly review. This method ensures efficient processing by minimizing the overhead of managing multiple streams and synchronizing between them, while also allowing specific tasks to optimize for their target operations.

Reference: Snowflake's documentation on streams and tasks for handling data changes efficiently.

asked 29/10/2024
Lakshmana Mittadoddi
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first