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
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
3
A global temporary table cannot have a unique secondary index.
- TRUE
- False
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.
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.
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.
7
A USI typically accesses how many AMPs?
- 1
- 2
- 3
- A USI will always access every AMP via a Full Table Scan
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
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.
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.
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.
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.
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.
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.
15
What is the tradeoff that must be considered in making primary index choices?
- Row size
- Block size
- Column datatype
- Access and distribution
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
17
All roles assigned to a user can be enabled using the SET ROLE ALL statement
- True
- FALSE
18
To remove a profile from a member, the following statement is used –
- Drop Profile
- Modify profile
- Modify user
- Drop user
19
Single column NUSIs are stored in –
- TVM
- Tables
- Tables2
- DBC.Tvfields
20
When a DBA changes password features what table in DBC is updated?
- Acctg
- SecSysDefaults
- Security
- DBC.SysSecDefaults
21
What table would you access to see all the failed logon attempts?
- Logon
- LogonLog
- LogonFail
- DBC.LogonOff
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
23
Which API controls Teradata connectivity?
- C Preprocessor 2
- CLI
- PM/API
- BTEQWin
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
25
Select the correct order of clauses.
- GROUP BY, HAVING, WHERE
- HAVING, WHERE, GROUP BY
- GROUP BY, WHERE, HAVING
- WHERE, GROUP BY, HAVING
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
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.
28
Which type of table provides the DDL, but does not share the data?
- Global Temporary
- Permanent
- Derived
- Volatile
29
Which commands do the same thing?
- HAVING and GROUP BY
- HAVING and QUALIFY
- QUALIFY and QUANTIFY
- QUALIFY and ORDER BY
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
31
Which clause will limit the columns returned to Users in the CREATE VIEW statement?
- WHERE
- SELECT
- WITH CHECK OPTION
- WITH NO CHECK OPTION
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
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
34
Which one can’t be used to secure data?
- Privileges
- Views
- Macros
- Locking Modifiers
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)
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
37
Which function can change a column with TIMESTAMP data type to a DATE data type?
- EXTRACT
- SUBSTR
- INTERVAL
- CAST
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
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;
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)
41
What will be the result if you convert (100000.6) to SMALLINT?
- 100000.6
- 100000
- 100001
- Error numeric overflow
42
SELECT DATE+60 returns: (Assume DATE = 7/31/2001)
- 30-09-2001
- Error
- 9/31/2001
- 02-08-2001
43
The date 10th October, 2011 will be internally stored in TD as an integer:
- 1011010
- 1111010
- 1001110
- 1001011
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
45
Fast Export uses the support environment, can export from multiple locations and uses multiple sessions to complete its tasks.
- True
- FALSE
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
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
48
Which utility allows the constant updating of rows in a table?
- Multiload
- FastLoad
- TPump
- FastExport
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.
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
51
Which tool stops queries from running if they violate predefined rules?
- DBQL
- TDQM
- PMON
- MOSI
52
Sessions are obtained in what phase of MultiLoad?
- Acquisition
- Preliminary
- Final
- AGR-Init, AGR-Detail
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.
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.
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
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)