Labour Day Special Limited Time Flat 70% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 70spcl

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

Page: 1 / 14
Total 140 questions

MySQL 8.0 Database Administrator Questions and Answers

Question 1

Examine this statement, which executes successfully:

Question # 1

Now examine this query:

Question # 1

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 2

User account baduser@hostname on your MySQL instance has been compromised.

Which two commands stop any new connections using the compromised account? (Choose two.)

Options:

A.

ALTER USER baduser@hostname PASSWORD DISABLED;

B.

ALTER USER baduser@hostname MAX_USER_CONNECTIONS 0;

C.

ALTER USER baduser@hostname ACCOUNT LOCK;

D.

ALTER USER baduser@hostname IDENTIFIED WITH mysql_no_login;

E.

ALTER USER baduser@hostname DEFAULT ROLE NONE;

Question 3

Which two statements are true about the mysql_config_editor program? (Choose two.)

Options:

A.

It manages the configuration of the MySQL Firewall feature.

B.

It manages the configuration of client programs.

C.

It can move datadir to a new location.

D.

It manages the configuration of user privileges for accessing the server.

E.

It will use [client] options by default unless you provide --login-path.

F.

It can be used to create and edit SSL certificates and log locations.

G.

It provides an interface to change my.cnf files.

Question 4

Which two statements are true about MySQL Enterprise Backup? (Choose two.)

Options:

A.

It supports backing up only table structures.

B.

It can perform hot or warm backups.

C.

It creates logical backups.

D.

It supports the creation of incremental backups.

E.

It supports backup of a remote MySQL system.

F.

It supports restoring to a remote MySQL system.

Question 5

You have configured MySQL Enterprise Monitor to monitor your MySQL server.

Which four features are available? (Choose four.)

Options:

A.

starting and stopping the MySQL instance

B.

tracing import and export with mysqidump

C.

deploying the MySQL agent on supported target operating system

D.

creating e-mail alerts and SNMP traps for MySQL warnings

E.

monitoring the availability of the MySQL instance

F.

analyzing executed MySQL queries

G.

monitoring of NDB Cluster API nodes

Question 6

Examine this statement and output:

Question # 6

You must try to reduce query execution time.

Which two queries should you focus on? (Choose two.)

Options:

A.

QN = 3

B.

QN = 5

C.

QN = 1

D.

QN = 4

E.

QN = 2

Question 7

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.

Question 8

Which two statements are true about the binary log encryption feature? (Choose two.)

Options:

A.

It encrypts any connecting slaves connection thread.

B.

It can be set at run time.

C.

It requires a keyring plugin.

D.

When enabled it encrypts existing binary logs.

E.

It can be activated per session.

Question 9

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 10

You plan to take daily full backups, which include the ndbinfo and sys (internal) databases.

Which command will back up the databases in parallel?

Options:

A.

mysqldump --single-transaction > full-backup-$(date +%Y%m%d).sql

B.

mysqlpump --include-databases=% > full-backup-$(date +%Y%m$d).sql

C.

mysqlpump --all-databases > full-backup-$(date +%Y%m%d).sql

D.

mysqldump --all-databases > full_backup-$(date +%Y%m%d).sql

Question 11

The data in this instance is transient; no backup or replication will be required. It is currently under performing.

  • The database size is static and including indexes is 19G.
  • Total system memory is 32G.

After profiling the system, you highlight these MySQL status and global variables:

Question # 11

The OS metrics indicate that disk is a bottleneck. Other variables retain their default values.

Which three changes will provide the most benefit to the instance? (Choose three.)

Options:

A.

innodb_flush_log_at_trx_commit=1

B.

buffer_pool_size=24G

C.

innodb_log_file_size=1G

D.

sync_binlog=0

E.

innodb_doublewrite=0

F.

max_connections=10000

G.

innodb_undo_directory=/dev/shm

Question 12

Which two statements are true about the mysqld-auto.cnf file? (Choose two.)

Options:

A.

This file is for storing MySQL Server configuration options in ISON format.

B.

This file is for logging purposes only and is never processed.

C.

It is read and processed at the beginning of startup configuration.

D.

It is read and processed at the end of startup configuration.

E.

It is always updated with changes to system variables.

F.

This file is for storing MySQL server_uuid values only.

Question 13

Examine the modified output:

Question # 13

Seconds_Behind_ Master value is steadily growing. What are two possible causes? (Choose two.)

Options:

A.

The master is most probably too busy to transmit data and the slave needs to wait for more data.

B.

One or more large tables do not have primary keys.

C.

This value shows only I/O latency and is not indicative of the size of the transaction queue.

D.

The master is producing a large volume of events in parallel but the slave is processing them serially.

E.

The parallel slave threads are experiencing lock contention.

Question 14

Which two queries are examples of successful SQL injection attacks? (Choose two.)

Options:

A.

SELECT user,passwd FROM members

WHERE user = ‘?’;INSERT INTO members(‘user’,’passwd’) VALUES

(‘bob@example.com’,‘secret’);--‘;

B.

SELECT id, name FROM user WHERE user.id=(SELECT members.id FROM members);

C.

SELECT id, name FROM user WHERE id=23 OR id=32 OR 1=1;

D.

SELECT id, name FROM user WHERE id=23 OR id=32 AND 1=1;

E.

SELECT email,passwd FROM members

WHERE email = ‘INSERT INTO members(‘email’,’passwd’) VALUES (‘bob@example.com’,

‘secret’);--‘;

F.

SELECT user, phone FROM customers WHERE name = ‘\; DROP TABLE users; --‘;

Question 15

Examine this snippet from the binary log file named binlog.000036:

Question # 15

The rental table was accidentally dropped, and you must recover the table.

You have restored the last backup, which corresponds to the start of the binlog.000036 binary log.

Which command will complete the recovery?

Options:

A.

mysqlbinlog --stop-position=500324 binlog.000036 | mysql

B.

mysqlbinlog --stop-datetime='2019-ll-20 14:55:18' binlog.000036 | mysql

C.

mysqlbinlog --stop-position=5004S3 binlog.000036 | mysql

D.

mysqlbinlog --stop-datetime='2019-ll-20 14:55:16' binlog.000036 | mysql

Question 16

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

Examine the output of the group members:

Question # 16

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 17

Examine this statement:

mysql> DROP ROLE r_role1, r_role2;

Which two are true? (Choose two.)

Options:

A.

It fails if any of the roles is specified in the mandatory_roles variable.

B.

You must revoke r_role1 and r_role2 from all users and other roles before dropping the roles.

C.

Existing connections can continue to use the roles’ privileges until they reconnect.

D.

You must revoke all privileges from r_role1 and r_role2 before dropping the roles.

E.

It fails if you do not have the ADMIN OPTION of the roles r_role1 and r_role2.

F.

It fails if at least one of the roles does not exist.

Question 18

MySQL is installed on a Linux server with this configuration:

Question # 18

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

Four nodes are configured to use circular replication.

Examine these configuration parameters for each node:

Question # 19

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 20

Examine these commands and output:

Question # 20

Which connection ID is holding the metadata lock?

Options:

A.

20

B.

24

C.

21

D.

25

E.

22

F.

6

Question 21

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.

Page: 1 / 14
Total 140 questions