Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: cramtreat

1z0-888 MySQL 5.7 Database Administrator Questions and Answers

Questions 4

An administrator installs MySQL to run under a mysql OS account. The administrator decides to disable logins to the mysql account by using /nologin or /bin/false as the user’s shell setting.

Which statement is true?

Options:

A.

The mysql user needs a login and its home directory must be the base directory of the installation.

B.

The OS needs to allow logging in as mysql so that administrative tasks can be performed.

C.

This prevents mysqld from starting when standard startup scripts are used.

D.

This prevents creation of a command shell with the mysql account, while allowing mysqld to run.

Buy Now
Questions 5

You are investigating the performance of the server and see this information:

  • events_waits_summary_global_by_event_name in the Performance Schema shows that the wait/synch/mutex/sql/LOCK_table_cache event is dominating other wait events.
  • The Table_open_cache_overflows status variable is 0.

Which action should be taken to remove the performance bottleneck described here?

Options:

A.

Increase the value of table_open_cache_instances.

B.

Decrease the value of table_definition_cache.

C.

Decrease the value of table_open_cache.

D.

Increase the value of table_definition_cache.

E.

Increase the value of table_open_cache.

F.

Decrease the value of table_open_cache instances.

Buy Now
Questions 6

These details are shown when logged in to an account:

Which set of statements would match the accounts shown?

Options:

A.

mysql> CREATE USER ‘employee’@’localhost’ IDENTIFIED BY ‘more_secrets’;

mysql> CREATE USER ’’@’’ IDENTIFIED BY ‘valid_password’ WITH PROXY ‘employee’@’localhost’;

B.

mysql> CREATE USER ‘employee’@’localhost’ IDENTIFIED BY ‘more_secrets’;

mysql> GRANT PROXY ON ‘employee’@’localhost’ TO ‘robert’@’localhost’;

C.

mysql> CREATE USER ‘robert’@’localhost’ IDENTIFIED BY ‘secret_password’;

mysql>CREATE USER ‘employee’@’localhost’ IDENTIFIED BY ‘more_secrets’;

D.

mysql> CREATE_USER ’’@’’ IDENTIFIED WITH authentication_pam ACCOUNT LOCK;

mysql> CREATE USER ‘employee’@’localhost’ IDENTIFIED BY ‘more_secrets’;

mysql> GRANT PROXY ON ‘employee’@’localhost’ TO ’’@’’;

Buy Now
Questions 7

Which three statements correctly describe MySQL InnoDB Cluster? (Choose three.)

Options:

A.

The cluster can be operated in multimaster mode with conflict detection for DML statements.

B.

All MySQL client programs and connectors can be used for executing queries.

C.

It provides fully synchronous replication between the nodes.

D.

There is support for automatic failover when one node fails.

E.

The data is automatically shared between the nodes.

F.

Each query will be executed in parallel across the nodes.

Buy Now
Questions 8

Consider the index information for the dept_emp table in the employee’s schema:

Which two conclusions can be made based on the output of the query? (Choose two.)

Options:

A.

There are three indexes on the table.

B.

There is a redundant index on the dept_no column.

C.

The secondary indexes are optimized for unique key look-ups.

D.

The values on the emp_no column must be unique.

E.

The selectivity of the dept_no column is the best of the indexed columns.

F.

There is a redundant index on the emp_no column.

Buy Now
Questions 9

There are multiple instances of MySQL Server running on a single OS that is backed up using the mysqlbackup command.

The /etc/my/cnf contains default values, for example, datadir=/var/lib/mysql/, with extra instances having their own separate my.cnf file (for example /etc/mysql/instanceN.cnf) overriding the defaults.

A restore of the second instance is attempted from the mysqlbackup archive using this command:

mysqlbackup --backup-dir=/opt/backup/mysql/instance2 copy-back

Upon starting the second MySQL instance, you notice that the data does not match the expected backup. Which command-line option is required to successfully update the second instance?

Options:

A.

--restore=2

B.

--copy-back-from-log

C.

--backup-instance=/var/lib/mysql/instance2

D.

--instance=/var/lib/mysql/instance2

E.

--defaults-file=/etc/mysql/instance2.cnf

Buy Now
Questions 10

You are remotely logged in to MySQL as the user “backup”.

The account has temporarily been granted full privileges WITH GRANT to perform the actions required.

You want to change the password for the locally existing “backup” user.

Select the three commands which will perform the required action. (Choose three.)

Options:

A.

SET PASSWORD FOR ‘backup’@’localhost’ = ‘password’;

B.

SET PASSWORD = ‘password’;

C.

SET PASSWORD FOR ‘backup’@’localhost’ = PASSWORD (‘password’)

D.

ALTER USER USER() IDENTIFIED BY ‘password’;

E.

CREATE USER ‘backup’@’localhost’ IDENTIFIED BY ‘password’;

F.

ALTER USER ‘backup’ IDENTIFIED BY ‘password’;

G.

ALTER USER ‘backup’@’localhost’ IDENTIFIED BY ‘password’;

Buy Now
Questions 11

You want to dump only data from the userdata table.

Which mysqldump command argument is required to accomplish this?

Options:

A.

- -no-create-info to skip writing CREATE TABLE statements

B.

- -single-transaction as this obtains a consistent view of data only

C.

- -data-only as this specifies that only data is to be dumped

D.

- -table=userdata in order to dump only the data from the userdata table

Buy Now
Questions 12

old_alter_table is disabled as shown.

mysql> SELECT @@old_alter_table;

Consider this statement on a RANGE-partitioned table:

mysql> ALTER TABLE orders DROP PARTITION p1, p3;

What is the outcome of executing this statement?

Options:

A.

All data in p1 and p3 partitions is removed and the table definition is changed.

B.

All data in p1 and p3 partitions is removed, but the table definition remains unchanged.

C.

Only the first partition (p1) will be dropped because only one partition can be dropped at any time.

D.

It results in a syntax error because you cannot specify more than one partition in the same statement.

Buy Now
Questions 13

Consider the two partial outputs of the SHOW GLOBAL VARIABLES command from a master and slave server:

Master:

Slave:

There is a problem with the slave replicating from the master. Which statement describes the cause of the problem?

Options:

A.

The log_bin variable is set to OFF on the slave.

B.

server_id is not unique.

C.

The max_connections variable on the slave needs to be increased.

D.

The shared_memory_base_name variable must match the master.

E.

The version of the slave is newer that the version of the master.

Buy Now
Questions 14

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.

Buy Now
Questions 15

Why should you be selective when granting the PROCESS privilege to an account?

Options:

A.

It allows a client to process scripts.

B.

It allows the use of stored routines.

C.

It allows a client to see another user’s queries with the SHOW PROCESSLIST command.

D.

It allows a client to control running processes on a server.

Buy Now
Questions 16

Consider the CHECK TABLE command.

In which two situations should this command be used? (Choose two.)

Options:

A.

to find out why a query takes a long time to execute on a given table

B.

to make sure a table has no structural problems

C.

to improve performance by updating index distributing statistics on InnoDB tables

D.

to repair table structure problem

E.

to make sure that no table indexes are corrupted

Buy Now
Questions 17

Consider the table people with this definition:

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.

Buy Now
Questions 18

A MySQL instance is running on a dedicated server. Developers access the server from the same network subnet. Users access the database through an application that is running on a separate server in a DMZ.

Which two will optimize the security of this setup? (Choose two.)

Options:

A.

enabling and using SSL for connections to the MySQL database

B.

running the server with –-skip-networking specified

C.

disabling connections from named pipes or socket files (depending on the operating system of the server)

D.

starting the server with –-bind-address=0.0.0.0 specified

E.

limiting logins to originate from the application server or the server’s subnet

F.

installing MySQL on the application server, and running the database and application on the same server

Buy Now
Exam Code: 1z0-888
Exam Name: MySQL 5.7 Database Administrator
Last Update: Jun 15, 2025
Questions: 124
1z0-888 pdf

1z0-888 PDF

$29.75  $84.99
1z0-888 Engine

1z0-888 Testing Engine

$35  $99.99
1z0-888 PDF + Engine

1z0-888 PDF + Testing Engine

$47.25  $134.99