Weekend Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Oracle 1z0-908 MySQL 8.0 Database Administrator Exam Practice Test

Demo: 21 questions
Total 140 questions

MySQL 8.0 Database Administrator Questions and Answers

Question 1

You have semi-synchronous replication configured and working with one slave. rpl_semi_sync_master_timeout has never been reached.

You find that the disk system on the master has failed and as a result, the data on the master is completely unrecoverable.

Which two statements are true? (Choose two.)

Options:

A.

No committed transactions are lost.

B.

The slave automatically identifies that the master is unreachable and performs any required actions so that applications can start using the slave as the new master.

C.

As soon as the incident happens, application can read data from the slave and rely on it to return a full and current set of data.

D.

Reads from the slave can return outdated data until the value of the rpi_semi_sync_master_timeout variable is reached.

E.

Reads from the slave can return outdated data for some time, until it applies all transactions from its relay log.

F.

A small amount of committed transactions may be lost in case they were committed just before the disk failure.

Question 2

Examine this command, which executes successfully:

Which statement is true?

Options:

A.

Only files for MySQL or Its built-in storage engines are backed

B.

Only non-encrypted files are backed up.

C.

The backup includes only data files and their metadata.

D.

Only InnoDB data and log files are backed up.

E.

Only tables stored in their own tablespaces are backed up.

Question 3

Which three are types of information stored in the MySQL data dictionary? (Choose three.)

Options:

A.

performance metrics

B.

InnoDB buffer pool LRU management data

C.

access control lists

D.

view definitions

E.

server runtime configuration

F.

server configuration rollback

G.

stored procedure definitions

Question 4

Which two commands will display indexes on the parts table in the manufacturing schema? (Choose two.)

Options:

A.

DESCRIBE manufacturing.parts;

B.

SELECT * FROM information_schema.statistics WHERE table_schema=’manufacturing’ AND TABLE_NAME=’parts’;

C.

SHOW INDEXES FROM manufacturing.parts;

D.

SELECT * FROM information_schema.COLUMN_STATISTICS;

E.

EXPLAIN SELECT INDEXES FROM manufacturing.parts;

Question 5

You made some table definition changes to a schema in your MySQL Server.

Which two statements reflect how MySQL Server handles the table definition changes? (Choose two.)

Options:

A.

MySQL writes SDI to the binary log for distributed backups.

B.

MySQL keeps InnoDB metadata changes in .sdi files in datadir.

C.

The metadata is serialized in JSON format in Serialized Dictionary Information (SDI).

D.

MySQL Server stores a copy of the serialized data in the InnoDB user tablespace.

E.

MySQL implicitly executes FLUSH TABLES and stores a snapshot backup of the metadata.

Question 6

Examine this statement, which executes successfully:

Now examine this query:

Which two statements can do this? (Choose two.)

Options:

A.

ALTER TABLE employees -

ADD INDEX (birth_date DESC);

B.

ALTER TABLE employees -

ADD INDEX ((MONTH(birth_date)));

C.

ALTER TABLE employees -

ADD COLUMN birth_month tinyint unsigned GENERATED ALWAYS AS (MONTH(birth_date)) VIRTUAL NOT NULL,

ADD INDEX (birth_month);

D.

ALTER TABLE employees -

ADD COLUMN birth_month tinyint unsigned GENERATED ALWAYS AS (birth_date->>'$.month') VIRTUAL NOT NULL,

ADD INDEX (birth_month);

E.

ALTER TABLE employees -

ADD INDEX ((CAST(birth_date->>'$.month' AS unsigned)));

F.

ALTER TABLE employees -

ADD INDEX (birth_date);

Question 7

A user wants to connect without entering his or her username and password on the Linux command prompt.

Which three locations can be used to store the user’s mysql credentials to satisfy this requirement? (Choose three.)

Options:

A.

$HOME/.my.cnf file

B.

$MYSQL_HOME/my.cnf file

C.

DATADIR/mysqld-auto.cnf file

D.

$HOME/.mylogin.cnf file

E.

$HOME/.mysql/auth/login file

F.

/etc/my.cnf file

G.

$HOME/.mysqlrc file

Question 8

Which four connection methods can MySQL clients specify with the --protocol option when connecting to a MySQL server? (Choose four.)

Options:

A.

TCP

B.

SOCKET

C.

PIPE

D.

DIRECT

E.

IPv6

F.

FILE

G.

IPv4

Question 9

Examine this command, which executes successfully:

Which two statements are true? (Choose two.)

Options:

A.

A single-file backup is created.

B.

The backup operation will finish only when backup-and-apply-log is executed.

C.

The --backup-dir option holds temporary output, status, and metadata files.

D.

The backup operation will finish only when apply-log is executed.

E.

A raw backup is created.

Question 10

Which three are characteristics of a newly created role? (Choose three.)

Options:

A.

It can be dropped using the DROP ROLE statement.

B.

It is stored in the mysql.role table.

C.

It is created as a locked account.

D.

It can be renamed using the RENAME ROLE statement.

E.

It can be granted to user accounts.

F.

It can be protected with a password.

Question 11

Four nodes are configured to use circular replication.

Examine these configuration parameters for each node:

Which statement is true?

Options:

A.

Each slave thread is responsible for updating a specific database.

B.

Cross-database constraints can cause database inconsistency.

C.

Increasing slave_parallel_workers will improve high availability.

D.

Setting slave_preserve_commit_order to on will improve data consistency.

E.

Setting slave_parallel_type=DATABASE won't work for circular replication; it should be set to LOGICAL_CLOCK.

F.

Setting transaction_allow_batching to on will improve data consistency.

Question 12

Examine this MySQL Shell command:

dba.rebootClusterFromCompleteOutage()

Which two statements are true? (Choose two.)

Options:

A.

It reconfigures InnoDB Cluster if the cluster was stopped.

B.

It performs InnoDB Cluster instances rolling restart.

C.

It only starts all InnoDB Cluster instances.

D.

It is not mandatory that all instances are running and reachable before running the command.

E.

It stops and restarts all InnoDB Cluster instances and initializes the metadata.

F.

It only stops and restarts all InnoDB Cluster instances.

G.

It picks the minimum number of instances necessary to rebuild the quorum and reconfigures InnoDB Cluster.

Question 13

You want to dump all databases with names that start with "db".

Which command will achieve this?

Options:

A.

mysqlpump --include-tables=db.% --result-file=all_db_backup.sql

B.

mysqlpump > all_db_backup.sql

C.

mysqlpump --include-databases=db --result-file=all_db_backup.sql

D.

mysqlpump --include-databases=db% --result-file=all_db_backup.sql

Question 14

An attempt to recover an InnoDB Cluster fails.

Examine this set of messages and responses:

host3:3377 ssl JS > dba.rebootClusterFromCompleteOutage() Reconfiguring the default cluster from complete outage…

The instance ‘host1:3377'’ was part of the cluster configuration. Would you like to rejoin it to the cluster? [y/N]: y

The instance ‘host2:3377’ was part of the cluster configuration. Would you like to rejoin it to the cluster? [y/N]: y

Dba.rebootClusterFromCompleteOutage: The active session instance isn’t the most updated in comparison with the ONLINE instances of the Cluster’s metadata. Please use the most up to date instance: ‘host1:3377’. (RuntimeError)

Which statement is true?

Options:

A.

The instance deployed on host3 must be rebuilt with a backup from the primary instance.

B.

The cluster is running and there is at least one ONLINE instance.

C.

The instance deployed on host3 must be synchronized from a donor deployed on host1 by using the command cluster.addInstance(‘host1:3377’).

D.

It is possible to determine the most up-to-date instance by comparing different global transaction identifier (GTID) sets with GTID_SUBSET(set1,set2).

E.

The active session instance is invalid and must be re-created by using the command shell.connect (‘host3:3377’).

Question 15

Which three are requirements for a secure MySQL Server environment? (Choose three.)

Options:

A.

Restrict the number of OS users that have access at the OS level.

B.

Ensure appropriate file system privileges for OS users and groups.

C.

Minimize the number of non-MySQL Server-related processes running on the server host.

D.

Encrypt the file system to avoid needing exact file-system permissions.

E.

Keep the entire software stack on one OS host.

F.

Run MySQL server as the root user to prevent incorrect sudo settings.

Question 16

Examine this command, which executes successfull

mysqlbackup --defaults-file=/backups/server-my.cnf --backup-dir=/backups/full

copy-back

Which statement is true about the copy-back process?

Options:

A.

The copy-back process is used to overwrite a new backup over an existing backup.

B.

It restores files from the data directory to their original MySQL server locations.

C.

It restores files from the backup directory to their original MySQL server locations.

D.

The copy-back process makes inconsistent backups.

Question 17

Which statement is true about displaying and retrieving data with MySQL Enterprise Monitor Query Analyzer?

Options:

A.

The Query Analyzer graph view range selector can extend to cover the same hour over multiple days.

B.

It is possible to filter a Query Analyzer view graph by database and by table.

C.

The Query Analyzer can plot a CPU utilization graph for remote hosts with a MySQL Enterprise Service Manager's built-in Agent installation.

D.

It is possible to export statements included in a graph selection in CSV format.

Question 18

MySQL is installed on a Linux server with this configuration:

Which method sets the default authentication to SHA-256 hashing for authenticating user account passwords?

Options:

A.

Set validate-user-plugins=caching_sha2_password in the configuration file.

B.

Define CREATE USER ''@'%' IDENTIFIED WITH sha256_password in the MySQL instance.

C.

Add default_authentication_plugin=mysql_native_password in the configuration file.

D.

Add default_authentication_plugin=sha256_password in the configuration file.

Question 19

Your MySQL environment has asynchronous position based-replication with one master and one slave.

The slave instance had a disk I/O problem, so it was stopped.

You determined that the slave relay log files were corrupted and unusable, but no other files are damaged.

You restart MySQL Server.

How can replication be restored?

Options:

A.

The slave relay logs should be deleted; then execute START SLAVE;

B.

The relay logs from the master should be used to replace the corrupted relay logs.

C.

The slave relay logs should be deleted; execute CHANGE MASTER to adjust the replication relay log file name, then issue start SLAVE;

D.

The slave needs to be restored from backup.

Question 20

Examine this command and output:

Which two options will improve the security of the MySQL instance? (Choose two.)

Options:

A.

Remove group read/write privileges from the private_key.pem file.

B.

Remove world read privileges from the server-cert.pem certificate file.

C.

Change the group ownership of the mysql directory to the mysql user group.

D.

Remove world read privileges from the public_key.pem file.

E.

Change the parent directory owner and group to mysql.

F.

Remove the world read/execute privilege from the accounting directory.

Question 21

How can mysql_multi be configured to allow MySQL instances to use the same port number?

Options:

A.

The instances use different user accounts unique to each instance.

B.

The instances listen on different IP addresses.

C.

The instances use different socket names.

D.

The instances have appropriate net masks set.

Demo: 21 questions
Total 140 questions