Qlik QSDA2024 Qlik Sense Data Architect Certification Exam - 2024 Exam Practice Test

Page: 1 / 14
Total 50 questions
Question 1

Refer to the exhibit.

A company stores the employee data within a key composed of Country, UserlD, and Department. These fields are separated by a blank space. The UserlD field is composed of two characters that indicate the country followed by a unique code of two or three digits. A data architect wants to retrieve only that unique code.

Which function should the data architect use?

A)

B)

C)

D)



Answer : A

In this scenario, the key is composed of three components: Country, UserID, and Department, separated by spaces. The UserID itself consists of a two-character country code followed by a unique code of two or three digits. The objective is to extract only this unique numeric code from the UserID field.

Explanation of the Correct Function:

Option A: RIGHT(SUBFIELD(Key, ' ', 2), 3)

SUBFIELD(Key, ' ', 2): This function extracts the second part of the key (i.e., the UserID) by splitting the string using spaces as delimiters.

RIGHT(..., 3): After extracting the UserID, the RIGHT() function takes the last three characters of the string. This works because the unique code is either two or three digits, and the RIGHT() function will retrieve these digits from the UserID.

This combination ensures that the data architect extracts the unique code from the UserID field correctly.


Question 2

Exhibit.

Refer to the exhibit.

The data architect needs to build a model that contains Sales and Budget data for each customer. Some customers have Sales without a Budget, and other customers have a Budget with no Sales.

During loading, the data architect resolves a synthetic key by creating the composite key.

For validation, the data architect creates a table that contains Customer, Month, Sales, and Budget columns.

What will the data architect see when selecting a month?



Answer : A

In the scenario where the data model is built with a composite key (keyYearMonthCustNo) to resolve synthetic keys, the following outcomes occur:

Sales and Budget Data Integration:

The composite key ensures that each combination of Year, Month, and Customer is uniquely represented in the combined Sales and Budget data.

During data selection (e.g., when a specific month is selected), Qlik Sense will show all the customer names that have either Sales or Budget data associated with that month.

Resulting Data View:

For the selected month, customers with sales records will display their Sales data. However, if the corresponding Budget data is missing, the Budget column will contain null values.

Similarly, if a customer has a Budget but no Sales data for the selected month, the Sales column will show null values.

Validation Outcome: When the data architect selects a month, they will see the following:

Customer Names and Sales records for the selected month, where the Sales column will have values and the Budget column may contain null or non-null values depending on the data availability.


Question 3

A data architect needs to load large amounts of data from a database that is continuously updated.

* New records are added, and existing records get updated and deleted.

* Each record has a LastModified field.

* All existing records are exported into a QVD file.

* The data architect wants to load the records into Qlik Sense efficiently.

Which steps should the data architect take to meet these requirements?



Answer : D

When dealing with a database that is continuously updated with new records, updates, and deletions, an efficient data load strategy is necessary to minimize the load time and keep the Qlik Sense data model up-to-date.

Explanation of Steps:

Load the existing data from the QVD:

This step retrieves the already loaded and processed data from a previous session. It acts as a base to which new or updated records will be added.

Load new and updated data from the database. Concatenate with the table loaded from the QVD:

The next step is to load only the new and updated records from the database. This minimizes the amount of data being loaded and focuses on just the changes.

The new and updated records are then concatenated with the existing data from the QVD, creating a combined dataset that includes all relevant information.

Create a separate table for the deleted rows and use a WHERE NOT EXISTS to remove these records:

A separate table is created to handle deletions. The WHERE NOT EXISTS clause is used to identify and remove records from the combined dataset that have been deleted in the source database.


Question 4

A data architect executes the following script:

Which values does the OrderDate field contain after executing the script?



Answer : D

In the script provided, the alt() function is used to handle various date formats. The alt() function in Qlik Sense evaluates a list of expressions and returns the first valid expression. If none of the expressions are valid, it returns the last argument provided (in this case, '31/12/2022').

Step-by-step breakdown:

The alt() function checks the Date field for three different formats:

YYYYMMDD

YYYY/MM/DD

DD/MM/YYYY

If none of these formats match the value in the Date field, the default date '31/12/2022' is assigned.

Values in the Date field:

20210131: Matches the first format YYYYMMDD.

2020/01/31: Matches the second format YYYY/MM/DD.

31/01/2019: Matches the third format DD/MM/YYYY.

9999: Does not match any of the formats, so the alt() function returns the default value '31/12/2022'.


Question 5

Refer to the exhibit.

Refer to the exhibits.

On executing a load script of an app, the country field needs to be normalized. The developer uses a mapping table to address the issue. The script runs successfully but the resulting table is not correct.

What should the data architect do?



Answer : D

In this scenario, the issue arises from using the applymap() function to normalize the country field values, but the result is incorrect. The reason is most likely related to the values in the source mapping table not matching the values in the Fact_Table properly.

The applymap() function in Qlik Sense is designed to map one field to another using a mapping table. If the source values in the mapping table are inconsistent or incorrect, the applymap() will not function as expected, leading to incorrect results.

Steps to resolve:

Review the mapping table (MAP_COUNTRY): The country field in the CountryTable contains values such as 'U.S.', 'US', and 'United States' for the same country. To correctly normalize the country names, you need to ensure that all variations of a country's name are consistently mapped to a single value (e.g., 'USA').

Apply Mapping: Review and clean up the mapping table so that all possible variants of a country are correctly mapped to the desired normalized value.

Key Reference:

Mapping Tables in Qlik Sense: Mapping tables allow you to substitute field values with mapped values. Any mismatches or variations in source values should be thoroughly reviewed.

Applymap() Function: This function takes a mapping table and applies it to substitute a field value with its mapped equivalent. If the mapped values are not correct or incomplete, the output will not be as expected.


Question 6

Refer to the exhibit.

A data architect needs to build a dashboard that displays the aggregated sates for each sales representative. All aggregations on the data must be performed in the script.

Which script should the data architect use to meet these requirements?

A)

B)

C)

D)



Answer : C

The goal is to display the aggregated sales for each sales representative, with all aggregations being performed in the script. Option C is the correct choice because it performs the aggregation correctly using a Group by clause, ensuring that the sum of sales for each employee is calculated within the script.

Data Load:

The Data table is loaded first from the Sales table. This includes the OrderID, OrderDate, CustomerID, EmployeeID, and Sales.

Next, the Emp table is loaded containing EmployeeID and EmployeeName.

Joining Data:

A Left Join is performed between the Data table and the Emp table on EmployeeID, enriching the data with EmployeeName.

Aggregation:

The Summary table is created by loading the EmployeeName and calculating the total sales using the sum([Sales]) function.

The Resident keyword indicates that the data is pulled from the existing tables in memory, specifically the Data table.

The Group by clause ensures that the aggregation is performed correctly for each EmployeeName, summarizing the total sales for each employee.

Key Qlik Sense Data Architect Reference:

Resident Load: This is a method to reuse data that is already loaded into the app's memory. By using a Resident load, you can create new tables or perform calculations like aggregation on the existing data.

Group by Clause: The Group by clause is essential when performing aggregations in the script. It groups the data by specified fields and performs the desired aggregation function (e.g., sum, count).

Left Join: Used to combine data from two tables. In this case, Left Join is used to enrich the sales data with employee names, ensuring that the sales data is associated correctly with the respective employee.

Conclusion: Option C is the most appropriate script for this task because it correctly performs the necessary joins and aggregations in the script. This ensures that the dashboard will display the correct aggregated sales per employee, meeting the data architect's requirements.


Question 7

A data architect receives an error while running script.

What will happen to the existing data model?



Answer : B

In Qlik Sense, when a data load script is executed and an error occurs, the script execution is halted immediately, and any tables that were being loaded at the time of the error are discarded. However, the existing data model---i.e., the last successfully loaded data model---remains intact and is not affected by the failed script. This ensures that the application retains the last known good state of the data, avoiding any partial or inconsistent data loads that could occur due to an error.

When the script encounters an error:

The tables that were successfully loaded prior to the error are retained in the session, but these tables are not merged with the existing data model.

The existing data model before the script was executed remains unchanged and is maintained.

No partial or incomplete data is loaded into the application; hence, the data model remains consistent and reliable.

Qlik Sense Data Architect Reference This behavior is designed to protect the integrity of the data model. In scenarios where script execution fails, the user can debug and fix the script without risking the data integrity of the existing application. The key references include:

Qlik Help Documentation: Provides detailed information on how Qlik Sense handles script errors, highlighting that the existing data model remains unchanged after an error.

Data Load Editor Practices: Best practices dictate ensuring that the script is fully functional before executing it to avoid data inconsistency. In cases where an error occurs, understanding that the current data model is maintained helps in strategic debugging and script correction.


Page:    1 / 14   
Total 50 questions