ASSOCIATE-REACTIVE-DEVELOPER practice question 21 of 35

In an Aggregate, the Sources section is used for...

Full set: 262 questions
Answer options
A: Defining values for testing the Aggregate's output records.
B: Defining conditions to get specific subsets of records.
C: Defining the Entities we want to retrieve records from. Correct answer
D: Defining the order of the Aggregate's output records.
Correct Answer:
C. Defining the Entities we want to retrieve records from.
Explanation

The "Sources" section of an Aggregate is the designated area within the Aggregate editor where developers define the origin of the data to be retrieved. This is accomplished by adding one or more database Entities or Static Entities. This section forms the foundation of the query, establishing the primary tables from which records will be fetched. All subsequent operations within the Aggregate, such as filtering, sorting, or creating calculated attributes, are performed on the data originating from the Entities defined in the "Sources" section.

Why Incorrect

A. Defining values for testing the Aggregate's output records is done in the "Test Values" tab of the Aggregate editor, not the "Sources" section.
B. Defining conditions to get specific subsets of records is the function of the "Filters" section within the Aggregate editor.
D. Defining the order of the Aggregate's output records is handled in the "Sorting" section of the Aggregate editor. ---

References

1. Outsystems Official Documentation - Aggregates: In the "Aggregate editor" section, it explicitly states: "The Sources area of an Aggregate, where you can add the Entities and Static Entities from where you want to fetch data." This directly confirms the purpose of the Sources section.

Source: Outsystems Inc. (2023). Aggregates. Outsystems Documentation. Retrieved from https://success.outsystems.com/documentation/11/developinganapplication/usedata/querydata/aggregates/

2. Outsystems Official Documentation - Fetch and display data from the database: This tutorial guides the user through creating an Aggregate. Step 2, "Create an Aggregate to fetch data," instructs the developer to "drag the Movie Entity to the Aggregate." The accompanying image clearly shows the Entity being placed in the "Sources" area.

Source: Outsystems Inc. (2023). Fetch and display data from the database. Outsystems Documentation. Retrieved from https://success.outsystems.com/documentation/11/developinganapplication/usedata/fetchanddisplaydatafromthedatabase/

3. Outsystems Guided Path - Data Queries in Reactive Web Apps: In the "Aggregates" lesson, the video and text demonstrate that the initial step to build a query is to add an Entity to the Aggregate's canvas, which corresponds to the "Sources" area. This establishes the data source for the query.

Source: Outsystems Inc. (2023). Data Queries in Reactive Web Apps - Aggregates. Outsystems Training. Retrieved from https://www.outsystems.com/training/courses/126/data-queries-in-reactive-web-apps/

Scroll to Top