Pass the Oracle MySQL Database Administration 1z0-888 Questions and answers with CertsForce

Viewing page 1 out of 4 pages
Viewing questions 1-10 out of questions
Questions # 1:

You have a config file for a running DB with this excerpt:

[mysqld]

tmp_table_size=16M

sort_buffer_size=256k

To address a query performance problem of connecting to the DB from an application on another host, you log in and make these changes to the DB:

mysql> SET GLOBAL tmp_table_size=32000000;

mysql> SET sort_buffer_size=2000000;

This solves the problem with your queries. However, later the DB instance is restarted and the performance problem returns.

Which three best describe this scenario?

Options:

A.

Global variables are not persistent across server restarts.


B.

Session variables are not persistent across server restarts.


C.

The query benefited from sort_buffer_size increase.


D.

sort_buffer_size should match tmp_table_size to be optimal.


E.

The query benefited from tmp_table_size increase.


F.

The query benefited from sort_buffer_size and tmp_table_size increases.


Questions # 2:

A MySQL database uses all InnoDB tables and is configured as follows;

Question # 2

You will be setting up a replication slave by using mysqldump. You will need a consistent backup taken from your running production server. The process should have minimal impact to active database connections.

Which two arguments will you pass to mysqldump to achieve this? (Choose two.)

Options:

A.

--skip-opt


B.

--lock-all-tables


C.

--create-apply-log


D.

--single-transaction


E.

--master-data


Questions # 3:

Consider the table people with this definition:

Question # 3

The application uses a query such as:

SELECT * FROM people WHERE YEAR(Birthday) = 1980;

The query is not using an index.

Which two methods can be used to allow the query to use an index? (Choose two.)

Options:

A.

Change the WHERE clause to Birthday BETWEEN 1980-01-01 AND 1980-12-31.


B.

Add a functional index for YEAR(Birthday).


C.

Execute ANALYZE TABLE to update the index statistics.


D.

Add a generated column calculating YEAR(Birthday) and index that column.


E.

Add FORCE INDEX (Birthday) to the query.


Questions # 4:

Which three allocate memory per thread in MySQL? (Choose three.)

Options:

A.

query cache


B.

thread cache


C.

read buffer


D.

internal temporary table


E.

sort buffer


F.

InnoDB buffer pool instance


Questions # 5:

When you examine a new MySQL installation with default configuration, you find a file called ibdata1 in the database directory. Which two statements are true about this file? (Choose two.)

Options:

A.

it contains the binary log.


B.

it contains a general tablespace.


C.

it is the default location for all new tables that you create.


D.

it contains the system tablespace.


E.

it contains the redo log.


F.

it contains the undo log.


Questions # 6:

Examine the mysqldumpslow output:

Question # 6

Which two options could explain the slow query? (Choose two.)

Options:

A.

There is network congestion between client and server.


B.

No index has been defined on the filtered column.


C.

There are 108 queries still being executed.


D.

A table lock is causing delays.


E.

A full table scan is being used.


Questions # 7:

Question # 7

What does the possible_keys column in this output denote?

Options:

A.

if it is possible for you to include any indexes in your query


B.

whether there are any indexes on the tables that you are querying


C.

if there are any indexes that may be used to solve this query


D.

whether you are using any indexes in your query


Questions # 8:

You need to dump the data from the master server and import it into a new slave server.

Which mysqldump option can be used when dumping data from the master server in order to include the master server’s binary log information?

Options:

A.

include-log-file


B.

master-binlog


C.

include-master-info


D.

master-data


Questions # 9:

You are using GTIDS in replication. You need to skip a transaction with the GTID of aaa-bbb-ccc-ddd-eee:3 on a slave.

Which procedure would you execute from a MySQL prompt?

Options:

A.

1z0-888 Question 9 Option 1


B.

9


C.

9


D.

9


Questions # 10:

You want to immediately stop access to a database server for remote user ‘mike’@’client.example.com’. This user is currently not connected to the server.

Which two actions can you take to stop any access from the user?

Options:

A.

Use ALTER USER ‘mike’@’client.example.com’ PASSWORD EXPIRE;


B.

Use REVOKE ALL PRIVILEGES FROM ‘mike’@’client.example.com’;


C.

Execute the mysql_secure_installation command.


D.

Use DROP USER ‘mike’@’client.example.com’;


E.

Use GRANT USAGE ON *.* TO ‘mike’@’client.example.com’ MAX_USER_CONNECTIONS=0;


F.

Use ALTER USER ‘mike’@’client.example.com’ ACCOUNT LOCK;


Viewing page 1 out of 4 pages
Viewing questions 1-10 out of questions