Skip to main content

1Z0-874 Real Exam Questions

MySQL 5.0 Database Administrator Certified Professional Exam, Part II

138 questions available · Page 1 of 14

Updated Exam DumpsVerified AnswersPass Guarantee

Get Complete Exam Dumps
Question 1 Single choice

Which of the following best describes what you might expect after disabling InnoDB at run time?

  1. A

    It will disable InnoDBs associated memory buffers and data structures, however it will not save any memory.

  2. B

    It will still enable InnoDBs associated memory buffers and data structures, however it will save memory.

  3. C

    It will disable InnoDBs associated memory buffers and data structures, which will save memory.

Show answer and explanation

Correct answer: C

Question 2 Single choice

Which of the following is true of the table cache if you mainly run simple queries on many tables?

  1. A

    The table cache should be decreased.

  2. B

    The table cache should be increased.

  3. C

    The table cache should not be changed.

Show answer and explanation

Correct answer: B

Question 3 Single choice

Which of the following best describes why one should use VARCHAR rather than CHAR in InnoDB?

  1. A

    The average amount of space used will be less.

  2. B

    Generally, there will be less disk I/O during processing.

  3. C

    VARCHAR columns provide better transaction support.

  4. D

    The optimizer always performs better with VARCHAR columns over CHAR columns.

Show answer and explanation

Correct answer: B

Question 4 Single choice

Which of the following best describes how the binary log might be helpful in query optimization?

  1. A

    By checking which queries it logs as slow.

  2. B

    By checking the processor load it records when a query is executed.

  3. C

    By identifying the WHERE clauses in queries for which indexes might be useful.

Show answer and explanation

Correct answer: C

Question 5 Single choice

You need to allow the user 'joe'@'example.com' the privilege to create and alter stored routines in the world database, but you do not want that user to be able to change any table definitions. The user already has the required permissions to access table data in the database.

Which of the following will achieve that?

  1. A

    mysql> GRANT ALL ROUTINE PRIVILEGES ON world.* TO 'joe'@'example.com';

  2. B

    mysql> GRANT ALL PRIVILEGES ON world.* TO 'joe'@'example.com';

  3. C

    mysql> GRANT ALL PRIVILEGES ON PROCEDURE world.* TO 'joe'@'example.com';mysql> GRANT
    ALL PRIVILEGES ON FUNCTION world.* TO 'joe'@'example.com';

  4. D

    mysql> GRANT CREATE ROUTINE ON world.* TO 'joe'@'example.com';mysql> GRANT ALTER
    ROUTINE ON world.* TO 'joe'@'example.com';

  5. E

    You must use GRANT ALL PRIVILEGES ON world.routine1_name, world.routine2_name ... TO 'joe'@'example.com', replacing routine1_name etc. with the names of each of the stored routines the user may want to create or alter

  6. F

    This cannot be done; permissions on tables and stored routines are always shared.

Show answer and explanation

Correct answer: D

Question 6 Single choice

Consider the following:

mysql> EXPLAIN SELECT Name FROM Country WHERE Population BETWEEN 1 AND 10000\G

*************************** 1. row ***************************

id: 1

select_type: SIMPLE

table: Country type:

range possible_keys:

i_pop key: i_pop

key_len: 4

ref: NULL

rows: 10

Extra: Using where

What is the meaning of the range value of the type column?

  1. A

    There is a range of indexes that can be used.

  2. B

    The type of index uses the range algorithm.

  3. C

    The index is used to select rows that fall between a range of index values.

  4. D

    The optimizer has determined that only data from the very beginning or the very end of the table is

    needed

Show answer and explanation

Correct answer: C

Question 7 Single choice

Is the following statement true or false? The username you use to connect to MySQL must be the same as the login used to access the operating system.

  1. A

    true

  2. B

    false

Show answer and explanation

Correct answer: B

Question 8 Single choice

In regards to security, which of the following statements are true?

  1. A

    mysqld should not be run as root or administrator.

  2. B

    mysqld should be run as root or administrator.

  3. C

    The user owning the server process should own all files and directories to which the server may write.

  4. D

    The root or admininistrator users should own all files related to the server process

Show answer and explanation

Correct answer: A

Question 9 Multiple choice

Which of the following statements are true regarding the slow query log?

  1. A

    The slow query log can be switched on with the log_slow_queries option.

  2. B

    The slow query log is always enabled.

  3. C

    The slow query log contains queries that don't utilize any index.

  4. D

    To have the slow query log contain queries that don't utilize any index, the log-queries-not-using- indexes option needs to be set.

  5. E

    The slow query log will contain queries that take more than 10 seconds.

  6. F

    The slow query log will contain queries that take more seconds than configured in the long_query_time option.

  7. G

    You can use the mysqldumpslow command line tool to summarize the content of the slow query log.

  8. H

    You can use the SHOW SLOW QUERIES statement to display all entries in the slow queries log.

Show answer and explanation

Correct answers: A, B, F, H

Question 10 Single choice
Consider the following:
mysql> SHOW STATUS LIKE 'Qcache%';

+-------------------------+--------+

| Variable_name | Value |

+-------------------------+--------+

| Qcache_free_blocks | 87 |

| Qcache_free_memory | 318442 |

| Qcache_hits | 11224 |

| Qcache_inserts | 19215 |

| Qcache_lowmem_prunes | 437 |

| Qcache_not_cached | 9155 |

| Qcache_queries_in_cache | 240 |

| Qcache_total_blocks | 924 |

+-------------------------+--------+

What can be derived from this output?

  1. A

    There is a low utilization of the query cache.

  2. B

    There is a normal utilization of the query cache.

  3. C

    There is a high utilization of the query cache.

Show answer and explanation

Correct answer: A