New Year Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Oracle 1z0-888 Practice Exam with Questions & Answers | Set: 3

Questions 21

MySQL is installed on a Linux server and has this configuration:

[mysqld]

user=mysql

datadir=/data/mysql/

As the ‘root’ user, you change the datadir location by executing:

shell> cp –R /var/lib/mysql /data/mysql/

shell> chown –R mysql /data/mysql

What is the purpose of changing ownership of datadir to the ‘mysql’ user?

Options:
A.

MySQL needs to be run as the root user, but files cannot be owned by it.

B.

The mysqld process requires all permissions within datadir to be the same.

C.

MySQL cannot be run as the root user.

D.

MySQL requires correct file ownership while remaining secure.

Oracle 1z0-888 Premium Access
Questions 22

Suppose you are adding rows to a MyISAM table and the --datadir location runs out of disk space. What will happen when this occurs?

Options:
A.

The server will crash.

B.

The server suspends that INSERT operation until space becomes available.

C.

An error message will be returned to the client .Server Error: ER_IO

D.

The server suspends operations for all storage engines until space becomes available.

Questions 23

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

Questions 24

Where does MySQL Linux RPM install the mysqld binary?

Options:
A.

/usr/libexec/

B.

/usr/local/mysql/bin/

C.

/usr/sbin/

D.

/usr/bin/

E.

/opt/mysql/server/bin/

Questions 25

How does the InnoDB storage engine handle deadlocks when they are detected?

Options:
A.

Both the affected transactions will be rolled back.

B.

The affected transactions wait for innodb_lock_wait_timeout seconds, and then roll back.

C.

One of the affected transactions will be rolled back, the other is allowed to proceed.

D.

The transaction isolation level determines which transaction is rolled back.

E.

The innodb_locks_unsafe_for_binlog setting determines which transaction is rolled back.

Questions 26

You are creating a strategy for backing up MySQL using a cold binary backup. The MySQL instance is a replication master with global transaction identifiers (GTIDs) enabled and it uses Transparent Data Encryption (TDE). Other than the configuration required to make the instance a replication master and enabled GTIDs and TDE, the instance is using all default settings.

The requirements for the backup are:

  • It must be possible to rebuild the instance using the backup.
  • It must be verified.
  • It must allow for a catastrophic hardware failure.

Which four steps must be included in the backup strategy? (Choose four.)

Options:
A.

Include the keyring data and/or configuration in the backup.

B.

Restore the backup to a clean MySQL instance.

C.

Copy the backup to a remote host.

D.

Include the MySQL socket file in the backup.

E.

Include the ibtmp1 file in the backup.

F.

Include the relay logs in the backup.

G.

Include the operating system disk encryption key in the backup.

Questions 27

Group Replication uses global transaction identifiers to track executed transactions and are fundamental in avoiding transaction conflict. Which additional three steps help in avoiding conflicts in group replication? (Choose three.)

Options:
A.

Set isolation level to be SERIALIZABLE.

B.

Use the binary log row format.

C.

Set isolation level to be READ COMMITTED.

D.

Configure IPv6 network for hosts.

E.

Guarantee a secondary index on every table.

F.

Guarantee a primary key on every table.

G.

Set multiple slave parallel worker threads.

Questions 28

A MySQL replication slave is set up as follows:

  • Uses all InnoDB tables
  • Receives ROW-based binary logs
  • Has the read-only option

The replication slave has been found in an error state.

You check the MySQL error log file and find these entries:

1z0-888 Question 28

What are two possible causes for this error to occur? (Choose two.)

Options:
A.

The applications have the SUPER privilege, which allows them to update rows.

B.

The root user on the slave has executed FLUSH LOGS, causing the relay-log to doublewrite.

C.

For tables with UNIQUE keys, statement-based replication must be used to maintain integrity.

D.

The slave was created with mysqldump –u root –p --skip-lock-tables –all-databases > /data/data.sql

E.

The slave user does not have INSERT, UPDATE, or DELETE permission and cannot execute the Write_rows function.

Questions 29

You are receiving complaints from your application administrators that they are seeing periodic stalls in database response (no queries to any table are returning results for several seconds or longer). You monitor your system and notice that the durations of those stalls correspond to peaks in disk I/O.

Which 2 things should you investigate?

Options:
A.

Check the rate of change in the status value Aborted_connects and compare to the rate of change in Connections.

B.

Check the difference between the InnoDB status values “Log Sequence number” and “Last Checkpoint” positions then compare that to the total size of the redo log.

C.

Check the rate of change in the status value Select_scan and compare to the rate of change in Com_select.

D.

Check the difference between the InooDB status values “Trx id counter” and “Purge done for” and compare to the state substatus of the main “Main thread”

E.

Check the rate of change in the statis value Qcache_hits and compare that to the rate of change of Qcache_not_cached.

Questions 30

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

1z0-888 Question 30

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.

Exam Code: 1z0-888
Certification Provider: Oracle
Exam Name: MySQL 5.7 Database Administrator
Last Update: Mar 28, 2025
Questions: 124