Weekend Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dumps65

Oracle 1z0-908 Dumps

Page: 1 / 14
Total 140 questions

MySQL 8.0 Database Administrator Questions and Answers

Question 1

Which step or set of steps can be used to rotate the error log?

Options:

A.

Execute SET GLOBAL log_error = ‘’.

B.

Execute SET GLOBAL max_error_count = .

C.

Execute SET GLOBAL expire_logs_days=0 to enforce a log rotation.

D.

Rename the error log file on disk, and then execute FLUSH ERROR LOGS.

Question 2

You have an installation of MySQL 8 on Oracle Linux.

Consider the outputs:

as

Which statement is true about disk temporary tables for this installation?

Options:

A.

Only internal temporary tables from the optimizer will be created in tmpdir.

B.

Temporary tables will use the InnoDB temporary tablespace located in datadir.

C.

Temporary tables are created in tmpdir only if configured to use MyISAM.

D.

Temporary tables are created in tmpdir only after they reach tmp_tabie_size.

E.

Temporary tables will use the InnoDB temporary tablespace located in /tmp.

Question 3

Which statement is true about MySQL Enterprise Transparent Data Encryption (TDE)?

Options:

A.

MySQL TDE uses an appropriate keyring plugin to store the keys in a centralized location.

B.

Both MyISAM and InnoDB tables can be encrypted by setting the keyring_engine = ALL variable in the MySQL configuration file.

C.

Lost tablespace encryption keys can be regenerated only if the master database key is known or present in the Key Vault specification.

D.

TDE can encrypt InnoDB and MyISAM tables only when the tables are stored in the SYSTEM tablespace.

Question 4

You have a MySQL client installed on your Linux workstation with a default installation. You have your admin login credentials to connect to a MySQL server running Microsoft Windows on remote host 192.0.2.1:3306. You wish to connect directly to the world database.

Which four options need to be specified to complete this task with a single command? (Choose four.)

Options:

A.

--shared-memory-base-name=world

B.

--protocol=UDP

C.

--protocol=pipe

D.

--password

E.

--user=admin

F.

--host=192.0.2.1

G.

--socket=/tmp/mysql.sock

Question 5

You are using an existing server with a new configuration. MySQL Server fails to start.

Examine this snapshot of the error log:

as

Which action would allow the server to start?

Options:

A.

Remove ib_logfile0 and ib_logfile1 files from the file system.

B.

Execute mysqladmin flush-logs.

C.

First run mysqld --initialize to refresh the Size of ib_logfile.

D.

Create a new ib_logfile0 file of size 26214400.

Question 6

Examine this SQL statement:

mysql> GRANT r_read@localhost TO mark WITH ADMIN OPTION;

Which two are true? (Choose two.)

Options:

A.

Mark can grant the privileges assigned to the r_read@localhost role to another user.

B.

ADMIN OPTION causes the role to be activated by default.

C.

Mark can grant the r_read@localhost role to another user.

D.

Mark can revoke the r_read@localhost role from another role.

E.

ADMIN OPTION allows Mark to drop the role.

F.

Mark must connect from localhost to activate the r_read@localhost role.

Question 7

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 8

You issue this command:

SHOW SLAVE STATUS -

In the output, there is a value for Seconds_behind_master.

How is this time calculated?

Options:

A.

It is the time between the I/O thread receiving details of the master's last transaction and the time it was applied by the SQL thread.

B.

It is the time between the most recent transaction written to the relay logs and the time it was committed on the master.

C.

It is the time between the I/O thread receiving details of the master’s last transaction and the time it was written to the relay log on the slave.

D.

It is the time between the most recent transaction applied by a SQL thread and the time it was committed on the master.

Question 9

Which three settings control global buffers shared by all threads on a MySQL server? (Choose three.)

Options:

A.

sort_buffer_size

B.

key_buffer_size

C.

table_open_cache

D.

read_buffer_size

E.

innodb_buffer_pool_size

F.

tmp_table_size

Question 10

You encountered an insufficient privilege error in the middle of a long transaction.

The database administrator is informed and immediately grants the required privilege:

GRANT UPDATE ON world.city TO ‘user1’;

How can you proceed with your transaction with the least interruption?

Options:

A.

Roll back the transaction and start the transaction again in the same session.

B.

Re-execute the failed statement in your transaction.

C.

Change the default database and re-execute the failed statement in your transaction.

D.

Close the connection, reconnect, and start the transaction again.

Question 11

Which three requirements must be enabled for group replication? (Choose three.)

Options:

A.

slave updates logging

B.

semi-sync replication plugin

C.

primary key or primary key equivalent on every table

D.

binary log checksum

E.

binary log ROW format

F.

binary log MIXED format

G.

replication filters

Question 12

You have upgraded the MySQL binaries from 5.7.28 to 8.0.18 by using an in-place upgrade.

Examine the message sequence generated during the first start of MySQL 8.0.18:

as

Which step or set of steps will resolve the errors?

Options:

A.

Remove the redo logs. Replace the MySQL binaries with the 5.7.28 binaries. Prepare the tables for upgrade. Upgrade to 8.0.18 again.

B.

Execute: mysqlcheck --check-upgrade mysql columns_priv event proc proxies_priv tables_priv.

C.

Start mysqld again using the --upgrade=FORCE option.

D.

Execute: mysqlcheck --repair mysql columns_priv event proc proxies_priv tables_priv.

E.

Go to the /mysql directory and execute: myisamchk --update-state columns_priv event proc proxies_priv tables_priv.

Question 13

You want to check the values of the sort_buffer_size session variables of all existing connections.

Which performance_schema table can you query?

Options:

A.

user_variables_by_thread

B.

global_variables

C.

variables_by_thread

D.

session_variables

Question 14

MySQL is installed on a Linux server with this configuration:

as

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 15

Examine this partial output for InnoDB Cluster status:

as

Which statement explains the state of the instance deployed on host2?

Options:

A.

It can be recovered from a donor instance on host3 by cloning using the command cluster.rejoinInstance ('@host3:3377')

B.

It can rejoin the cluster by using the command cluster.addInstance('@host3:3377')

C.

It has been removed from the cluster by using the command STOP GROUP_REPLICATION;

D.

It can rejoin the cluster by using the command dba.rebootClusterFromCompleteOutage()

E.

It has been expelled from the cluster because of a transaction error.

Question 16

Where is the default data directory located after installing MySQL using RPM on Oracle Linux 7?

Options:

A.

/usr/mysql

B.

/usr/bin

C.

/etc/my.cnf

D.

/var/lib/mysql

E.

/usr

Question 17

You are considering using file-system snapshots to back up MySQL.

Which three statements are true? (Choose three.)

Options:

A.

They take roughly twice as long as logical backups.

B.

They allow direct copying of table rows with operating system copy commands.

C.

They work best for transaction storage engines that can perform their own recovery when restored.

D.

The backup window is almost zero from the perspective of the application.

E.

They do not back up views, stored procedures, or configuration files.

F.

There is a slight performance cost while the snapshot is active.

G.

They do not use additional disk space.

Question 18

There are five MySQL instances configured with a working group replication.

Examine the output of the group members:

as

Which two statements are true about network partitioning in the cluster? (Choose two.)

Options:

A.

The cluster will shut down to preserve data consistency.

B.

The cluster has built-in high availability and updates group_replication_ip_whitelist to remove the unreachable nodes.

C.

The group replication will buffer the transactions on the online nodes until the unreachable nodes return online.

D.

There could be both a 2 node and 3 node group replication still running, so shutting down group replication and diagnosing the issue is recommended.

E.

A manual intervention to force group members to be only the working two instances is required.

Question 19

You want to log only the changes made to the database objects and data on the MySQL system.

Which log will do this by default?

Options:

A.

general query log

B.

audit log

C.

slow query log

D.

binary log

E.

error log

Question 20

Examine this command, which executes successfully:

mysqlpump -–user=root --password > full_backup.sql

Which two databases will be excluded from this dump? (Choose two.)

Options:

A.

information_schema

B.

world

C.

employee

D.

sys

E.

mysql

Question 21

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.

Page: 1 / 14
Total 140 questions