Teradata Expert Quiz
1
A table is having an INSERT/SELECT performed on it. When is it possible for an application to read a Primary Index Value on that table?
- When the INSERT/SELECT is on a volatile Table
- When the application uses NO WAIT
- When the INSERT/SELECT is from another application
- When the application uses LOCKING FOR ACCESS
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : When the application uses LOCKING FOR ACCESS[/bg_collapse]
2
Which statement is FALSE about Partitioned Primary Indexes?
- A PPI can act take the place of a Secondary Index.
- If there are a lot of Partitions a PPI could slow Joins
- A PPI requires current statistics
- A PPI can assist in the deletion of rows
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : A PPI requires current statistics[/bg_collapse]
3
A global temporary table cannot have a unique secondary index.
- TRUE
- False
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : False[/bg_collapse]
4
What is true about Non-Unique Primary Indexes (NUPIs)?
- Primary Indexes cannot be non unique
- There cannot be more than one row with the same Primary Index value.
- Rows in a NUPI will always have a Uniqueness value of one.
- There can be more than one row with the same Primary Index value.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : There can be more than one row with the same Primary Index value.[/bg_collapse]
5
Why would you pick a Primary Index that is different than the Primary Key?
- Performance.
- To avoid full table scans.
- Unknown Access Paths.
- You can’t pick a Primary Index that is different than the Primary Key because they are the same thing.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Performance[/bg_collapse]
6
When would you choose a NUPI over a UPI?
- You should never choose a NUPI over a UPI.
- To speed up query access and joins.
- To assist in NULL processing.
- To decrease overhead created by the UPI subtable.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : To speed up query access and joins.[/bg_collapse]
7
A USI typically accesses how many AMPs?
- 1
- 2
- 3
- A USI will always access every AMP via a Full Table Scan
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : 2[/bg_collapse]
8
When would you want to use a Join Index on tables?
- When a Cover Query is not a viable alternative.
- To speed up well-known queries by increasing the response time.
- When you are joining two tables in a View.
- As a result of poor Primary Index selection and uneven distribution
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : To speed up well-known queries by increasing the response time.[/bg_collapse]
9
Is it possible to archive Secondary Indexes?
- No
- Yes, but only if the Indexes are Unique.
- Yes, with a DD/D Index.
- Yes, with the All-AMP Index.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Yes, with the All-AMP Index.[/bg_collapse]
10
When you usE NOT IN what type of Join are you likely to have?
- An Inclusion Join.
- An Exclusion Join.
- A Cartesian Product Join.
- A Hash Join.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : An Exclusion Join.[/bg_collapse]
11
Matched rows from the left and right table and unmatched rows from the left table are returned to the User in which type of Join?
- Right Outer Join.
- Inner Join.
- Left Outer Join.
- Full Outer Join.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Left Outer Join.[/bg_collapse]
12
Identify the false statement specific to Global Temporary Table(GTT) .
- The definition for a Global Temporary table is persistent and stored in the data
- You can create the GTT with a ‘Partition by’ clause
- To create the base definition for a GTT, use the CREATE TABLE statement and specify the keywords GLOBAL TEMPORARY to describe the table type.
- There are only two occasions when an empty GTT is
materialized:
• A CREATE INDEX statement is issued on the table.
• A COLLECT STATISTICS statement is issued on the table.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : You can create the GTT with a ‘Partition by’ clause[/bg_collapse]
13
Identify the false statement specific to Volatile Table(VT) .
- Volatile tables are private to a session. This means that you can log on multiple sessions and create volatile tables with the same name in each session.
- General table creation options namely like Permanent Journaling, Referential Integrity constraints are not permitted.
- Volatile table can be populated using Fast Load and Multi Load utilities
- To create a volatile table, you do not need any privileges.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Volatile table can be populated using Fast Load and Multi Load utilities[/bg_collapse]
14
Which is true about a PPI(Partitioned Primary Index)?
- A PPI distributes data on the AMPs
- A PPI is best used for queries that specify range constraints
- A PPI causes the AMPs to create a PPI subtable
- PPI is mandatory for all tables because it better distributes the data.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : A PPI is best used for queries that specify range constraints[/bg_collapse]
15
What is the tradeoff that must be considered in making primary index choices?
- Row size
- Block size
- Column datatype
- Access and distribution
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Access and distribution[/bg_collapse]
16
Which is true about Primary keys?
- NULL data values are allowed
- Must be mentioned during table creation
- They are logical constructs that guarantee uniqueness
- They are physical mechanisms that distribute data
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : They are logical constructs that guarantee uniqueness[/bg_collapse]
17
All roles assigned to a user can be enabled using the SET ROLE ALL statement
- True
- FALSE
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : True[/bg_collapse]
18
To remove a profile from a member, the following statement is used –
- Drop Profile
- Modify profile
- Modify user
- Drop user
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Modify user[/bg_collapse]
19
Single column NUSIs are stored in –
- TVM
- Tables
- Tables2
- DBC.Tvfields
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : DBC.Tvfields[/bg_collapse]
20
When a DBA changes password features what table in DBC is updated?
- Acctg
- SecSysDefaults
- Security
- DBC.SysSecDefaults
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : DBC.SysSecDefaults[/bg_collapse]
21
What table would you access to see all the failed logon attempts?
- Logon
- LogonLog
- LogonFail
- DBC.LogonOff
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : DBC.LogonOff[/bg_collapse]
22
What is true about Teradata’s handling of Data Distribution?
- Partitioned Primary Indexes also distribute data.
- AMPs determine how data is distributed.
- PE distributes data
- The hash value is calculated using a mathematical algorithm
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : The hash value is calculated using a mathematical algorithm[/bg_collapse]
23
Which API controls Teradata connectivity?
- C Preprocessor 2
- CLI
- PM/API
- BTEQWin
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : CLI[/bg_collapse]
24
Find the false statement about the Shared Nothing architecture
- Each Unit of Parallelism is assigned a data portion
- Locks, buffers, etc not shared
- Highly Scalable with high Data Volumes
- A single logical data store is acessed by all Unit of Parallelisms
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : A single logical data store is acessed by all Unit of Parallelisms[/bg_collapse]
25
Select the correct order of clauses.
- GROUP BY, HAVING, WHERE
- HAVING, WHERE, GROUP BY
- GROUP BY, WHERE, HAVING
- WHERE, GROUP BY, HAVING
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : WHERE, GROUP BY, HAVING[/bg_collapse]
26
Which statement creates a table that is created with SQL and includes Data?
- CREATE TABLE t9 AS (SELECT * FROM t7) WITH NO DATA;
- CREATE TABLE t9 AS (SELECT * FROM t7) WITH DATA;
- CREATE TABLE t9 AS t7;
- CREATE TABLE t9 AS t7 WITH NO DATA
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : CREATE TABLE t9 AS (SELECT * FROM t7) WITH DATA;[/bg_collapse]
27
In a Join, when is the ON clause required?
- If the Join is a SELF JOIN.
- Only if the WHERE clause is not used.
- If the keyword INNER is specified.
- all the time.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : If the keyword INNER is specified.[/bg_collapse]
28
Which type of table provides the DDL, but does not share the data?
- Global Temporary
- Permanent
- Derived
- Volatile
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Global Temporary[/bg_collapse]
29
Which commands do the same thing?
- HAVING and GROUP BY
- HAVING and QUALIFY
- QUALIFY and QUANTIFY
- QUALIFY and ORDER BY
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : HAVING and QUALIFY[/bg_collapse]
30
What words in the EXPLAIN of an SQL statement tell you statistics have not been collected
- No Sampling Available
- No Statistics Collected
- No Confidence
- Statistic Not Available
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : No Confidence[/bg_collapse]
31
Which clause will limit the columns returned to Users in the CREATE VIEW statement?
- WHERE
- SELECT
- WITH CHECK OPTION
- WITH NO CHECK OPTION
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : SELECT[/bg_collapse]
32
What is true about the DROP TABLE statement?
- The statement remves any explicit privileges on the table
- Columns to be dropped can be specified
- Permanent Journal space used for the table is released
- Rows to be dropped can be specified
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : The statement remves any explicit privileges on the table[/bg_collapse]
33
In ANSI mode, which statements are used to close a transaction?
- BT or ET statements
- COMMIT or ROLLBACK statements
- COMMIT TRASACTION and ROLLBACK TRANSACTION statements
- BEGIN WORK or END WORK statements
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : COMMIT or ROLLBACK statements[/bg_collapse]
34
Which one can’t be used to secure data?
- Privileges
- Views
- Macros
- Locking Modifiers
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Locking Modifiers[/bg_collapse]
35
Assuming the value of num_employees is null, which expression returns 0?
- TRANSLATE(num_employees, 0)
- COALESCE(num_employees, 0)
- NULLIF(num_employees, 0)
- ZEROIFNULL(num_employees, 0)
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : COALESCE(num_employees, 0)[/bg_collapse]
36
What is the result of the following query? SELECT SUBSTR(SUBSTR(‘RALPH JOHNSON’ FROM 7 FOR 7) FROM 5 FOR 3);
- H J
- JOH
- NSO
- SON
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : SON[/bg_collapse]
37
Which function can change a column with TIMESTAMP data type to a DATE data type?
- EXTRACT
- SUBSTR
- INTERVAL
- CAST
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : CAST[/bg_collapse]
38
Which type of TD objects could be considered when users need to collect statistics?
- Global temporary tables
- Volatile tables
- Derived tables
- All three of A, B & C
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Global temporary tables[/bg_collapse]
39
Which SQL statement creates a table similar to an existing table and includes data:
- CREATE TABLE t9 AS (SEL * FROM t7) WITH ALL DATA;
- CREATE TABLE t9 AS (SEL * FROM t7) WITH DATA;
- CREATE TABLE t9 AS t7;
- CREATE TABLE t9 WITH DATA as t7;
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : CREATE TABLE t9 AS (SEL * FROM t7) WITH DATA;[/bg_collapse]
40
Which function return NULL when X=Y and X when it does not?
- NULLIF(X,Y)
- COALESCE(X,Y)
- ZEROIFNULL(X,Y)
- NULLIFZERO(X,Y)
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : NULLIF(X,Y)[/bg_collapse]
41
What will be the result if you convert (100000.6) to SMALLINT?
- 100000.6
- 100000
- 100001
- Error numeric overflow
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Error numeric overflow[/bg_collapse]
42
SELECT DATE+60 returns: (Assume DATE = 7/31/2001)
- 30-09-2001
- Error
- 9/31/2001
- 02-08-2001
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Error[/bg_collapse]
43
The date 10th October, 2011 will be internally stored in TD as an integer:
- 1011010
- 1111010
- 1001110
- 1001011
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : 1111010[/bg_collapse]
44
Which of the following is true about an Atomic Upsert in Tpump –
- The UPDATE should partially specify the primary index
- The INSERT should use a subquery to specify any of the inserted values.
- The primary index value in the INSERT row must be the same as the primary value in the targeted UPDATE row
- All of the above
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : The primary index value in the INSERT row must be the same as the primary value in the targeted UPDATE row[/bg_collapse]
45
Fast Export uses the support environment, can export from multiple locations and uses multiple sessions to complete its tasks.
- True
- FALSE
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : True[/bg_collapse]
46
TSET is –
- A tool which gives an administrator the ability to monitor access requests in the system
- A tool which imports data demographics and system characteristics from one system to another
- A tool which is helpful in recommending Secondary Indexes
- A tool which provides a graphical representation of performance data
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : A tool which imports data demographics and system characteristics from one system to another[/bg_collapse]
47
The statistics wizard –
- Controls when queries are executed based on whether or not statistics have been collected
- Looks at table demographics and makes recommendations
- Schedules ResUsage collections
- Will set ResUsage rates to optimize RDBMS performance
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Looks at table demographics and makes recommendations[/bg_collapse]
48
Which utility allows the constant updating of rows in a table?
- Multiload
- FastLoad
- TPump
- FastExport
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : TPump[/bg_collapse]
49
How do you update a table using MultiLoad with a Join Index?
- Update the table with MultiLoad as MultiLoad will now rebuild Join Indexes automatically.
- Drop the Join Index and then run MultiLoad to update the table with the REBUILD INDEXES command.
- You would use FastLoad to update a table with a Join Index, not MultiLoad.
- Drop the Join Index, Use MultiLoad to update the table and then re-build the Join Index.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Drop the Join Index, Use MultiLoad to update the table and then re-build the Join Index.[/bg_collapse]
50
Which tool will show you the best possible set of secondary indexes?
- Teradata Dynamic Query Manager (TDQM)
- Teradata Index Wizard
- Teradata Secondary Index Optimizer (TSIO)
- PMON
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Teradata Index Wizard[/bg_collapse]
51
Which tool stops queries from running if they violate predefined rules?
- DBQL
- TDQM
- PMON
- MOSI
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : TDQM[/bg_collapse]
52
Sessions are obtained in what phase of MultiLoad?
- Acquisition
- Preliminary
- Final
- AGR-Init, AGR-Detail
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Preliminary[/bg_collapse]
53
How can you lessen TPump’s affect on system resources?
- By changing the Rate Parameter.
- By dropping all Secondary Indexes, Triggers and Referential Integrity.
- By using TPump only in an OLTP environment.
- By changing Priority Scheduler settings.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : By changing the Rate Parameter.[/bg_collapse]
54
What is the prelimenary step to perform or setup to be done, before running Visual Explain tool?
- Execute Collect Statistics
- Set up Query Capture Database (QCD)
- Preperation of the complex Query
- Install Visual Explain Tool in Customized Mode.
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Set up Query Capture Database (QCD)[/bg_collapse]
55
The ability of the Teradata Manager to create a view to configure a specific set of Teradata Applications for a specific monitoring is called..
- Profiler
- Profile Maker
- Profile Builder
- View Profiler
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Profile Builder[/bg_collapse]
56
The Teradata Manager application which perform database administration tasks on the associated Teradata RDBMS computer is called ..
- Unix Data Dictionary (UniDDI)
- Windows Data Dictionary (WinDDI)
- Legacy Data Dictionary(LgcyDDI)
- AS400 Data Dictionary(AS400DDI)
[bg_collapse view=”button-green” color=”#FFF” icon=”arrow” expand_text=”Show Answer” collapse_text=”Hide Answer” ]Answer : Windows Data Dictionary (WinDDI)[/bg_collapse]