Exam 1Z0-908: MySQL 8.0 Database Administrator Question Bank

अब Quizwiz के साथ अपने होमवर्क और परीक्षाओं को एस करें!

Examine this snippet from the binary log file named binlog.000036: 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? A. mysqlbinlog --stop-position=500324 binlog.000036 | mysql B. mysqlbinlog --stop-datetime='2019-11-20 14:55:16' binlog.000036 | mysql C. mysqlbinlog --stop-datetime='2019-11-20 14:55:18' binlog.000036 | mysql D. mysqlbinlog --stop-position=500453 binlog.000036 | mysql

A

Which statement is true about MySQL Enterprise Transparent Data Encryption (TDE)? A. MySQL TDE uses an appropriate keyring plugin to store the keys in a centralized location. B. TDE can encrypt InnoDB and MyISAM tables only when the tables are stored in the SYSTEM tablespace. C. Lost tablespace encryption keys can be regenerated only if the master database key is known or present in the Key Vault specification. D. Both MyISAM and InnoDB tables can be encrypted by setting the keyring_engine = All variable in the MySQL configuration file.

A

You are having performance issues with MySQL instances. Those servers are monitored with MySQL Enterprise Monitor. Using Query Analyzer, where do you begin to look for problem queries? A. Sort the "Exec" column and check for SQL queries with low Query Response Time index (QRTi) values. B. Look for queries with low total latency times in the Latency section in the times series graph. C. Sort the "Exec" column and check for SQL queries with high Query Response Time index (QRTi) values. D. Look for queries with big prolonged spikes in a row activity/access graph in the times series graph.

A

You plan to take daily full backups, which include the ndbinfo and sys (internal) databases. Which command will back up the databases in parallel? A. mysqldump --all-databases > 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 --single-transaction > full-backup-$(date + %Y%m%d).sql

A

You plan to upgrade your MySQL 5.7 instance to version 8.You have installed the 8 build of MySQL Shell. Examine this command executed from the operating system shell prompt: mysqlsh --uri root@localhost:3306 -- util check-for-server-upgrade Which statement is true? A. It documents any problems with your 5.7 tables to make them ready to upgrade to 8. B. It fails because the operation name must be in camelCase. C. It fixes any problems with your 5.7 tables to make them ready to upgrade to 8. D. It is mandatory to clear the history of prior results before executing this process a second time or later. E. It fails because checkForServerUpgrade must be executed only within an active shell session as a method of the util object. F. It is mandatory to run this command so that MySQL 8.0 software's auto-upgrade process has the details it needs to operate properly.

A

Your MySQL Server is running locally on your Linux installation, and has SSL connections configured but not mandatory: (image) What is the reason for SSL not being used? A. It is connected via a UNIX socket. B. A current database is not selected. There is nothing to encrypt. C. The root user cannot use encryption. D. The root user must use ssl_fips_mode = ON.

A

Which two MySQL Server accounts are locked by default? A. any new ROLE accounts B. any internal system accounts C. any user created with a username, but missing the host name D. any user set as DEFINER for stored programs E. any user created without a password

A, B

Which two are contained in the InnoDB system tablespace (ibdata1) by default? A. doublewrite buffer B. change buffer C. InnoDB Data Dictionary D. primary indexes E. table data F. user privileges

A, B

Which two statements are true about InnoDB data-at-rest encryption? A. It supports all indexes transparently. B. It decrypts data for use in memory. C. It supports only non-blob datatypes. D. It does not support the transportable tablespaces feature. E. It enforces encryption from disk to memory and over network transmission.

A, B

You must export data from a set of tables in the world_x database. Examine this set of tables: Tables (country, countryinfo, location) Which two options will export data into one or more files? A. shell> mysqldump world_x country countryinfo location > mydump.sql B. mysql> SELECT * INTO OUTFILE '/output/country. txt' FROM world_x.country; mysql> SELECT * INTO OUTFILE '/output/countryinfo. txt' FROM world_x.countryinfo; mysql> SELECT * INTO OUTFILE '/output/location. txt' FROM world_x.location; C. shell> mysqlexport world_x country countryinfo location > mydump.sql D. mysql> CLONE LOCAL DATA DIRECTORY = '/var/lib/mysql/world_x/country' ; mysql> CLONE LOCAL DATA DIRECTORY = '/var/lib/mysql/world_x/countryinfo' ; mysql> CLONE LOCAL DATA DIRECTORY = '/var/lib/mysql/world_x/location' ; E. shell> mysql --batch world_x.country world_x.countryinfo world_x.1ocation > mydump.sql

A, B

A MySQL server is monitored using MySQL Enterprise Monitor 's agentless installation. Which three features are available with this installation method? A. MySQL Replication monitoring B. security-related advisor warnings C. CPU utilization D. disk usage and disk characteristics including disk advisors warnings E. MySQL Query Analysis data F. operating system memory utilization G. network-related information and network characteristics

A, B, E

Which two are features of MySQL Enterprise Firewall? A. blocking of potential threats by configuring pre- approved whitelists B. modifying SQL statement dynamically with substitutions C. recording incoming SQL statement to facilitate the creation of a whitelist of permitted commands D. automatic locking of user accounts who break your firewall E. provides stateless firewall access to TCP/3306

A, C

Which two methods allow a DBA to reset a user's password? A. SET PASSWORD statement B. mysql_secure_installation utility C. ALTER USER statement D. GRANT statement E. mysqladmin client program

A, C

A scientific data gathering application uses a MySQL instance back end for data management. There is a high concurrency of transactions at thousands of transactions per second of volatile data. A restore from binary logs is planned using the command: (image) Which two characteristics cause the restore to be inconsistent to the original data? A. Transaction rate is too high to get a consistent restore. B. Multiple binary logs cannot be specified on the command line. C. Temporary tables cannot persist across binary logs. D. The temporal values do not offer high enough precision. E. The time span of binary logs is too long to restore.

A, D

Which two authentication plugins require the plaintext client plugin for authentication to work? A. LDAP authentication B. SHA256 authentication C. Windows Native authentication D. PAM authentication E. MySQL Native Password F. LDAP SASL authentication

A, D

You are backing up raw InnoDB files by using mysqlbackup. Which two groups of files will be backed up during a full backup? A. *.ibd files B. ibbackup files C. *.CSM files D. ib_logfile* files E. *.sdi files

A, D

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? A. MySQL Server stores a copy of the serialized data in the InnoDB user tablespace. B. MySQL writes SDI to the binary log for distributed backups. C. MySQL implicitly executes FLUSH TABLES and stores a snapshot backup of the metadata. D. The metadata is serialized in Serialized Dictionary Information (SDI). E. MySQL keeps InnoDB metadata changes in .sdi files in datadir.

A, D

Which two are use cases of MySQL asynchronous replication? A. You can scale reads by adding multiple slaves. B. MySQL Enterprise Backup will automatically back up from an available slave. C. You can scale writes by creating a replicated mesh. D. It guarantees near real-time replication between a master and a slave. E. It allows backup to be done on the slave without impacting the master.

A, E

Which two storage engines provide a view of the data consistent with the storage system at any moment? A. InnoDB B. ARCHIVE C. MyISAM D. MEMORY E. NDB

A, E

Examine these commands and results: (image) Jane must create a temporary table named TOTALSALES in the SALES database. Which statement will provide Jane with the required privileges based on the principle of least privilege? A. GRANT CREATE TEMPORARY TABLES, INSERT, UPDATE, DELETE, SELECT ON sales.totalsales TO jane; B. GRANT CREATE TEMPORARY TABLES ON sales.* TO jane; C. GRANT CREATE TEMPORARY TABLES ON sales.totalsales TO jane; D. GRANT ALL ON sales.* TO jane;

B

Examine these entries from the general query log: (image) All UPDATE statements reference existing rows. Which describes the outcome of the sequence of statements? A. All statements execute without error. B. A deadlock occurs immediately. C. Connection 25 experiences a lock wait timeout. D. A deadlock occurs after innodb_lock_wait_timeout seconds. E. Connection 24 experiences a lock wait timeout.

B

Examine this command and output: (image) Which statement is true? A. Firewall_cached_entries is the number of statements found in the query cache for users in DETECTING mode. B. Firewall_access_suspicious is the number of statements logged as suspicious for users in DETECTING mode. C. Firewall_access_denied is the number of connection attempts from prohibited hosts that are denied. D. Firewall_access_granted is the number of connections granted from whitelisted hosts.

B

Examine this command, which executes successfully: mysqlbackup --defaults-file=/backups/server-my.cnf --backup-dir=/backups/full copy-back Which statement is true about the copy-back process? A. It restores files from the data directory to their original MySQL server locations. B. It restores files from the backup directory to their original MySQL server locations. C. The copy-back process is used to overwrite a new backup over an existing backup. D. The copy-back process makes inconsistent backups.

B

Four nodes are configured to use circular replication. Examine these configuration parameters for each each node: slave_parallel_type=DATABASE ; slave_parallel_workers=4 slave_preserve_commit_order=0 Which statement is true? A. Each slave thread is responsible for updating a specific database. B. Cross-database constraints can cause database inconsistency. C. Setting slave_parallel_type=DATABASE won't work for circular replication; it should be set to LOGICAL_CLOCK. D. Increasing slave_parallel_workers will improve high availability. E. Setting slave_preserve_commit_order to ON will improve data consistency. F. Setting transaction_allow_batching to ON will improve data consistency.

B

MySQL is installed on a Linux server with this configuration: [mysqld]user=mysqldatadir=/data/mysql Which method sets the default authentication to SHA-256 hashing for authenticating user account passwords? A. Define CREATE USER ' '@'%' IDENTIFIED WITH sha256_password in the MySQL instance. B. Add default_authentication_plugin=sha256_password in the configuration file. C. Add default_authentication_plugin=mysql_native_password in the configuration file. D. Set validate-user-plugins=caching_sha2_password in the configuration file.

B

Users report errors when trying to connect from 192.0.2.5 and is connecting using the mysql_native password authentication plugin. Examine these commands and output: (image) (image) Which statement identifies the cause of the errors? A. max_connections is too small. B. Network connectivity issues occurring between client and the MySQL instance. C. Connections are attempted without a valid user account or password. D. User accounts are defined using the mysql_native_pasword plugin for password authentication. E. thread_cache is too small. F. skip_name_resolve is enabled.

B

Which statement is true about the my.ini file on a Windows platform while MySQL server is running? A. MySQL server does not use the my.ini option file for server configuration options. B. The option file is read by the MySQL server service only at start up. C. Editing the file will immediately change the running server configuration. D. Using SET PERSIST will update the my.ini file.

B

Which step or set of steps can be used to rotate the error log? A. Execute SET GLOBAL max_error_count = <number of messages of point to rotate>. B. Rename the error log file on disk, and then execute FLUSH ERROR LOGS. C. Execute SET GLOBAL log_error = ' <new error log file> '. D. Execute SET GLOBAL expire_logs_days=0 to enforce a log rotation.

B

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? A. slow query log B. binary log C. error log D. general query log E. audit log

B

Examine this query and its output: (image) Which two statements are true? A. User bob had a significantly higher ratio of SELECT + INSERT statements to QUIT than both app and root users. B. User bob had the largest total time waiting for locks. C. The app user had the highest total number of rows read from storage engines. D. The root user had the largest number of modified rows for a SELECT statement. E. The root user had the largest single wait time.

B, C

Which two are true about binary logs used in asynchronous replication? A. They contain events that describe all queries run on the master. B. They contain events that describe database changes. C. They are pushed from the master to the slave. D. They contain events that describe only administrative commands run on the master. E. They are pulled from the master to the slave.

B, C

Examine this command, which executes successfully: cluster.addInstance( ' @:' , {recoveryMethod: ' clone '}) Which three statements are true? A. It is always slower than {recoveryMethod: ' incremental ' }. B. InnoDB tablespaces outside the datadir are able to be cloned. C. A target instance must exist, then it will be provisioned with data from an instance already in the cluster and joined to the cluster. D. The account used to perform this recovery needs the BACKUP_ADMIN privilege. E. A new instance is installed, initialized, and provisioned with data from an instance already in the cluster and joined to the cluster. F. InnoDB redo logs must not rotate for the duration of the execution; otherwise, the recovery will fail

B, C, D

Which three are requirements for a secure MySQL Server environment? A. Minimize the number of non-MySQL Server-related processes running on the server host. B. Restrict the number of OS users that have access at the OS level. C. Ensure appropriate file system privileges for OS users and groups. D. Keep the entire software stack on one OS host. E. Encrypt the file system to avoid needing exact file-system permissions. F. Run MySQL server as the root user to prevent incorrect sudo settings.

B, C, D

Which four connection methods can MySQL clients specify with the --protocol option when connecting to a MySQL server? A. IPv4 B. SOCKET C. MEMORY D. PIPE E. IPv6 F. FILE G. TCP H. DIRECT

B, C, D, G

Which three settings control global buffers shared by all threads on a MySQL server? A. tmp_table_size B. innodb_buffer_pool_size C. table_open_cache D. sort_buffer_size E. key_buffer_size F. read_buffer_size

B, C, E

You must store connection parameters for connecting a Linux-based MySQL client to a remote Windows-based MySQL server listening on port 3309. Which four methods can be used to configure user, host, and database parameters? A. Embed login information into the SSH tunnel definition. B. Execute mysql_config_editor to configure the user connection. C. Configure ~/.my.cnf. D. Execute the mysqladmin command to configure the user connection. E. Execute the command in a bash script. F. Configure environment variables. G. Define a UNIX socket. H. Use the usermod program to store static user information. I. Configure ~/.ssh/config for public key authentication.

B, C, E, F

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? A. $HOME/.mysqlrc file B. /etc/my.cnf file C. DATADIR/mysqld-auto.cnf file D. $HOME/.my.cnf file E. $HOME/.mylogin.cnf file F. $MYSQL_HOME/my.cnf file G. $HOME/.mysql/auth/login file

B, D, E

Which three are characteristics of a newly created role? A. It is stored in the mysql.role table. B. It can be dropped using the DROP ROLE statement. C. It can be protected with a password. D. It can be granted to user accounts. E. It can be renamed using the RENAME ROLE statement. F. It is created as a locked account.

B, D, F

Your MySQL server is running on the Microsoft Windows platform. Which three local connection protocols are available to you? A. UDP B. shared memory C. SOCKET D. named pipes E. X Protocol F. TCP/IP

B, D, F

Examine this SQL statement: mysql> GRANT r_read@localhost TO mark WITH ADMIN OPTION; Which two are true? A. Mark can grant the privileges assigned to the r_read@localhost role to another user. B. Mark can grant the r_read@localhost role to another user. C. ADMIN OPTION causes the role to be activated by default. D. Mark must connect from localhost to activate the r_read@localhost role. E. Mark can revoke the r_read@localhost role from another role. F. ADMIN OPTION allows Mark to drop the role.

B, E

Examine this command, which executes successfully: mysqlpump --user=root --password > full_backup.sql Which two databases will be excluded from this dump? A. mysql B. information_schema C. world D. employee E. sys

B, E

Identify two ways to significantly improve data security. A. Configure mysqld to run as the system admin account, such as root. B. Use a private network behind a firewall. C. Configure mysqld to use only networked disks. D. Configure MySQL to have only one administrative account. E. Configure mysqld to use only local disks or attached disks and to have its own account in the host system.

B, E

A colleague complains about slow response time on your website. Examine this query and output: (image) What is the most likely cause for the high number of lock waits? A. You use the InnoDB storage engine and statements wait while data is inserted. B. The Innodb Buffer pool is full. C. You use the MyISAM storage engine for most common tables. D. Your table accesses wait for the operating system level flush.

C

What does the binlog dump thread do? A. It monitors and schedules the rotation/deletion of the binary logs. B. It connects to the master and asks it to send updates recorded in its binary logs. C. It acquires a lock on the binary log for reading each event to be sent to the slave. D. It reads the relay log and executes the events contained in them.

C

You must configure the MySQL command-line client to provide the highest level of trust and security when connecting to a remote MySQL Server. Which value of --ssl-mode will do this? A. VERIFY_CA B. PREFERRED C. VERIFY_IDENTITY D. REQUIRED

C

You want to check the values of the sort_buffer_size session variables of all existing connections. Which performance_schema table can you query? A. user_variables_by_thread B. global_variables C. variables_by_thread D. session_variables

C

You wish to store the username and password for a client connection to MySQL server in a file on a local file system. Which is the best way to encrypt the file? A. Use mysql_secure_installation to encrypt stored login credentials. B. Use a text editor to create a new defaults file and encrypt it from Linux prompt. C. Use mysql_config_editor to create an encrypted file. D. Use the AES_ENCRYPT() MySQL function on the option file.

C

Your my.cnf file contains these settings: [mysqld] log_output=FILE slow_query_log long_query_time=2.01 log_queries_not_using_indexes You want to log queries that looked at a minimum of 5000 records and either took longer than 5 seconds to run or did not use indexes. Which contains all the settings that you need to add to or modify the slow log configuration? A. log_throttle_queries_not_using_indexes=5 B. long_query_time=5. log_throttle_queries_not_using_indexes=5 C. long_query_time=5 min_examined_row_limit=5000 D. long_query_time=5 log_throttle_queries_not_using_indexes=5 min_examined_row_limit=5000 E. log_throttle_queries_not_using_indexes=5 min_examined_row_limit=5000 F. long_query_time=5 G. min_examined_row_limit=5000

C

Examine this MySQL Shell command: dba.rebootClusterFromCompleteOutage() Which two statements are true? A. It stops and restarts all InnoDB Cluster instances and initializes the metadata. B. It only stops and restarts all InnoDB Cluster instances. C. It is not mandatory that all instances are running and reachable before running the command. D. It performs InnoDB Cluster instances rolling restart. E. It reconfigures InnoDB Cluster if the cluster was stopped. F. It picks the minimum number of instances necessary to rebuild the quorum and reconfigures InnoDB Cluster. G. It only starts all InnoDB Cluster instances.

C, D

Examine this command and output: select *from table_lock_waits_summary_by_table where COUNT_STAR>0 limit 1\G (image) Which two are true? A. I/O distribution is approximately 50/50 read/write. B. The I/O average time is 532728. C. 22902028 rows were deleted. D. Average read times are approximately three times faster than writes. E. The longest I/O wait was for writes.

C, D

Which two actions can obtain information about deadlocks? A. Run the SHOW ENGINE INNODB MUTEX command from the mysql client. B. Enable the innodb_status_output_locks global parameter C. Enable the innodb_print_all_deadlocks global parameter. D. Run the SHOW ENGINE INNODB STATUS command from the mysql client. E. Use the sys.innodb_lock_waits view.

C, D

Which two are characteristics of snapshot-based backups? A. The frozen file system can be cloned to another virtual machine immediately into active service. B. There is no need for InnoDB tables to perform its own recovery when restoring from the snapshot backup. C. Snapshot-based backups greatly reduce time during which the database and applications are unavailable. D. A separate physical copy must be made before releasing the snapshot backup. E. Snapshot backups can be used only in virtual machines.

C, D

Which two are true about binary logs used in asynchronous replication? A. The master connects to the slave and initiates log transfer. B. They contain events that describe all queries run on the master. C. They contain events that describe database changes on the master. D. They are pulled from the master to the slave. E. They contain events that describe only administrative commands run on the master.

C, D

Which two commands will display indexes on the parts table in the manufacturing schema? A. EXPLAIN SELECT INDEXES FROM manufacturing.parts; B. SELECT * FROM information_schema.statistics WHERE table_schema= 'manufacturing' AND TABLE_NAME= 'parts' ; C. DESCRIBE manufacturing.parts; D. SHOW INDEXES FROM manufacturing.parts; E. SELECT * FROM information_schema.COLUMN_STATISTICS;

C, D

Which two statements are true about using backups of the binary log? A. Binary logs are relatively small, and therefore, excellent for long-term storage and disaster recovery. B. Binary logs can always be used to unapply unwanted schema changes. C. Multiple binary logs can be used to restore data. D. They allow for point-in-time recovery of the data. E. Multiple binary logs can be applied in parallel for faster data restoration.

C, D

Examine this MySQL client command to connect to a remote database: mysql -h remote.example.org -u root -p --protocol=TCP --ssl-mode= Which two --ssl-mode values will ensure that an X.509-compliant certificate will be used to establish the SSL/TLS connection to MySQL? A. DISABLED B. REQUIRED C. VERIFY_IDENTITY D. PREFERED E. VERIFY_CA

C, E

Your MySQL installation is running low on space due to binary logs. You need to reduce your log space usage urgently. Which two sets of actions when completed will accomplish this? A. Use SET PERSIST binlog_expire_logs_seconds=. B. Use SET GLOBAL binlog_expire_logs_seconds= and restart the server. C. Use PURGE BINARY LOGS to . D. Set binlog_expire_logs_seconds in my.cnf E. Use SET GLOBAL binlog_expire_logs_seconds= and run the FLUSH BINARY LOGS command. F. Set binlog_expire_logs_seconds = 0 in my.cnf and restart the server.

C, E

Examine this statement, which executes successfully: CREATE TABLE employees ( emp_no int unsigned NOT NULL, birth_date date NOT NULL, first_name varchar(14) NOT NULL, last_name varchar(16) NOT NULL, hire_date date NOT NULL, PRIMARY KEY (emp_no) )ENGINE=InnoDB; Now examine this query: SELECT emp_no, first_name, last_name, birth_date FROM employees WHERE MONTH (birth_date) = 4; You must add an index that can reduce the number of rows processed by the query. Which two statements can do this? A. ALTER TABLE employees ADD INDEX ((CAST (birth_date ->>'$.month' AS unsigned))); B. ALTER TABLE employees ADD INDEX (birth_date DESC) ; 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 INDEX (birth_date); E. ALTER TABLE employees ADD COLUMN birth_month tinyint unsigned GENERATED ALWAYS AS (birth_date ->>'$.month') VIRTUAL NOT NULL, ADD INDEX (birth_month) ; F. ALTER TABLE employees ADD INDEX ((MONTH (birth_date)));

C, F

Examine this statement: mysql>DROP ROLE r_role1, r_role2; Which two are true? A. You must revoke r_role1 and r_role2 from all users and other roles before dropping the roles. B. You must revoke all privileges from r_role1 and r_role2 before dropping the roles. C. It fails if at least one of the roles does not exist. D. Existing connections can continue to use the roles' privileges until they reconnect. E. It fails if you do not have the ADMIN OPTION of the roles r_role1 and r_role2. F. It fails if any of the roles is specified in the mandatory_roles variable.

C, F

Which two statements are true about MySQL Enterprise Backup? A. It creates logical backups. B. It supports backing up only table structures. C. It can perform hot or warm backups. D. It supports backup of a remote MySQL system. E. It supports restoring to a remote MySQL system. F. It supports the creation of incremental backups.

C, F

Which three statements are true about MySQL replication? A. Each slave must have its own MySQL user for replication. B. A replication user must have the SELECT privilege for all tables that need to be replicated. C. Each instance in a replication topology must have a unique server ID. D. Any instance can have multiple slaves, but it can have only one master. E. Binary logs contain only transactions originating from a single MySQL instance. F. Replication can use only TCP/IP connections. G. Binary logging must be enabled on the master in order to replicate to other instances.

C, F, G

Which two statements are true about the mysql_config_editor program? A. It provides an interface to change my.cnf files. B. It can move datadir to a new location. C. It will use [client] options by default unless you provide --login-path. D. It can be used to create and edit SSL certificates and log locations. E. It manages the configuration of user privileges for accessing the server. F. It manages the configuration of the MySQL Firewall feature. G. It manages the configuration of client programs.

C, G

Examine these two reports taken 100 seconds apart: (image) Your MySQL system normally supports 50-75 concurrent connections. Which configuration change will improve performance? A. increase max_connections B. decrease open_files_limit C. decrease table_definition_cache D. increase table_open_cache

D

It is a non-empty InnoDB table. Examine these statements, which are executed in one session: BEGIN SELECT * FROM t FOR UPDATE; Which is true? A. mysqlcheck --analyze --all-databases will execute normally on all tables and return a report. B. If ANALYZE TABLE; is invoked from the same session, it hangs until the transaction is committed or rolled back. C. If OPTIMIZE LOCAL TABLE t; is invoked from another session, it executes normally and returns the status. D. If OPTIMIZE TABLE; is invoked, it will create a table lock on t and force a transaction rollback.

D

Where is the default data directory located after installing MySQL using RPM on Oracle Linux 7? A. /usr B. /usr/mysql C. /etc/my.cnf D. /var/1ib/mysql E. /usr/bin

D

Which command enables rule-based MySQL Auditing capabilities? A. shell> mysqld --initialize --log-raw=audit.log B. mysql> INSTALL COMPONENT audit_log; C. mysql> INSTALL PLUGIN audit_log; D. shell> mysql < audit_log_filter_linux_install.sql

D

You execute this command: shell> mysqlpump --exclude-databases=% --users Which statement is true? A. It creates a logical backup of all metadata, but contains no table data. B. It returns an error because the mysqldump command should have been used. C. It creates a logical backup of only the users database. D. It creates a logical backup of all MySQL user accounts.

D

You have a MySQL system with 500 GB of data that needs frequent backups. You use a mix of MyISAM and InnoDB storage engines for your data. Examine your backup requirements: -- The MySQL system being backed up can never be unavailable or locked to the client applications. -- The recovery from the backup must work on any system. -- Only 1 hour of data can be lost on recovery of the backup. Which option fulfills all backup requirements? A. Take a physical backup of the MySQL system. B. Take a logical backup of the MySQL system. C. Use the Clone Plugin to copy the data to another MySQL system. D. Take your backup from a slave of the MySQL system.

D

You have an installation of MySQL 8 on Oracle Linux. Consider the outputs: (image) Which statement is true about disk temporary tables for this installation? A. Only internal temporary tables from the optimizer will be created in tmpdir. B. Temporary tables are created in tmpdir only after they reach tmp_table_size. C. Temporary tables are created in tmpdir only if configured to use MyISAM. D. Temporary tables will use the InnoDB temporary tablespace located in datadir. E. Temporary tables will use the InnoDB temporary tablespace located in /tmp.

D

You have configured MySQL Enterprise Transparent Data Encryption (TDE). What command would you use to encrypt a table? A. UPDATE SET ENCRYPTION= 'Y'; B. ALTER INSTANCE ROTATE INNODB MASTER KEY; C. UPDATE information_schema.tables SET encryption='Y' WHERE table_name='table'; D. ALTER TABLE ENCRYPTION='Y';

D

You recently upgraded your MySQL installation to MySQL 8.0. Examine this client error: ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/local/mysql/lib/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory Which option will allow this client to connect to MySQL Server? A. ALTER USER user IDENTIFIED WITH caching_sha2_password BY 'password'; B. [mysqld] default_authentication_plugin=sha256_password C. [mysqld] default_authentication_plugin=caching_sha2_password D. ALTER USER user IDENTIFIED WITH mysql_native_password BY 'password' ; E. ALTER USER user IDENTIFIED WITH sha256_password BY 'password' ; F. [mysqld] default_authentication_plugin=mysql_native_password

D

Examine these InnoDB Cluster parameter settings: cluster.setInstanceOption('host1:3377', 'memberWeight', 40) cluster.setInstanceOption('host2:3377', 'memberWeight', 30) cluster.setInstanceOption('host3:3377', 'memberweight', 40) cluster.setInstanceOption('host3:3377', 'exitstateAction', "ABORT_SERVER") cluster.setOption ("expelTimeout",1) Now examine the partial status: (image) A permanent network failure isolates host3. Which two statements are true? A. The instance deployed on host3 will automatically rejoin the cluster when connectivity is re-established. B. Failure of the instance deployed on host1 provokes an outage. C. The instance deployed on host3 is expelled from the cluster and must be rejoined using cluster.addInstance('host3:3377'). D. The primary instance can be specified by using the command cluster.setPrimaryInstance (:). E. The instance deployed on host2 is elected as the new primary instance. F. The issuing command cluster.switchToMultiPrimaryMode() will fail to enable multi-primary mode.

D, E

Examine this command, which executes successfully: shell> mysqldump --master-data=2 --single-transaction --result-file=dump.sql mydb Which two statements are true? A. This option uses the READ COMMITTED transaction isolation mode. B. It enforces consistent backups for all storage engines. C. It is a cold backup. D. The backup created is a consistent data dump. E. It executes flush tables with read lock.

D, E

On examination, your MySQL installation datadir has become recursively world read/write/ executable. What are two major concerns of running an installation with incorrect file privileges? A. Extra startup time would be required for the MySQL server to reset the privileges. B. MySQL binaries could be damaged, deleted, or altered. C. SQL injections could be used to insert bad data into the database. D. Data files could be deleted. E. Users could overwrite configuration files.

D, E

User account baduser@hostname on your MySQL instance has been compromised. Which two commands stop any new connections using the compromised account? A. ALTER USER baduser@hostname PASSWORD DISABLED; B. ALTER USER baduser@hostname DEFAULT ROLE NONE; C. ALTER USER baduser@hostname MAX_USER_CONNECTIONS 0; D. ALTER USER baduser@hostname IDENTIFIED WITH mysql_no_login; E. ALTER USER baduser@hostname ACCOUNT LOCK;

D, E

Which two statements are true about using MySQL Enterprise Monitor Query Analyzer? A. It is possible to retrieve a normalized statement, but never the exact statement that was executed. B. The single query QRTi pie chart in the Query Analyzer view is based on the average execution of all statements. C. It is possible to import data into the Query Analyzer from heterogeneous sources, such as CSV D. It is possible to list and analyze statements in an arbitrary graph range selection from timeseries graphs. E. It is possible to configure the Query Analysis built-in advisor to get notified about slow query execution.

D, E

You are using mysqlcheck for server maintenance. Which two statements are true? A. The mysqlcheck --check --all-databases command takes table write locks while performing a series of checks. B. The mysqlcheck --repair --all-databases command can repair an InnoDB corrupted table. C. The mysqlcheck --analyze --all-databases command performs a series of checks to spot eventual table corruptions. D. The mysqlcheck command can be renamed mysqlrepair so that it repairs tables by default. E. The mysqlcheck --optimize --all-databases command reclaims free space from table files.

D, E

You must run multiple instances of MySQL Server on a single host. Which three methods are supported? A. Use system tools to lock each instance to its own CPU. B. Use resource groups to lock different instances on separate CPUs. C. Run mysqld with --datadir defined for each instance. D. Run MySQL Server docker containers. E. Start mysqld or mysqld_safe using different option files for each instance. F. Use systemd with different settings for each instance.

D, E, F

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: (image) The OS metrics indicate that disk is a bottleneck. Other variables retain their default values. Which two changes will provide the most benefit to the instance? A. sync_binlog=0 B. buffer_pool_size=24G C. innodb_flush_log_at_trx_commit=1 D. innodb_doublewrite=0 E. max_connections=10000 F. innodb_log_file_size=1G

D, F

You administer a three node, single primary InnoDB Cluster. Examine cluster.status() displayed here: "statusText": "Cluster is ONLINE and can tolerate up to ONE failure." Which two statements are true? A. If two instances are unreachable because of network failure, the cluster will reconfigure to work with a single instance. B. Reconfiguring the cluster as multi-primary, will increase tolerance to two failures. C. There is a quorum and transactions can be committed normally. D. If two instances crash, it will produce an outage. E. Restarting an arbitrary instance will always provoke primary instance failover. F. Shutting down two instances with the SHUTDOWN command will produce an outage.

D, F

Which four are types of information stored in the MySQL data dictionary? A. server runtime configuration B. server configuration rollback C. performance metrics D. stored procedure definitions E. InnoDB buffer pool LRU management data F. view definitions G. table definitions H. access control lists

D, F, G, H

Which two MySQL Shell commands are excluded from the InnoDB Cluster creation procedure? A. cluster.addInstance() B. dba.configureLocalInstance() C. dba.checkInstanceConfiguration() D. cluster.setPrimaryInstance() E. dba.configureInstance() F. dba.createCluster() G. cluster.forceQuorumUsingPartitionOf()

D, G

Examine this output: (image) Which change should optimize the number of buffer pool instances for this workload? A. Decrease the number of buffer pool instances to 4. B. Increase the number of buffer pool instances to 16. C. Increase the number of buffer pool instances to 32. D. Decrease the number of buffer pool instances to 1. E. Increase the number of buffer pool instances to 12.

E

Which statement is true about InnoDB persistent index statistics? A. Increasing innodb_stats_persistent_sample_pages determines higher pages scanning speed, at the cost of increased memory usage. B. Execution plans based on transient index statistics improve precision when innodb_stats_persistent_sample_pages is increased. C. Index statistics are calculated from pages buffered in the buffer pool for tables with InnoDB storage engine. D. Setting innodb_stats_auto_recalc=ON causes statistics to be updated automatically when a new index is created. E. Updating index statistics is an I/O expensive operation.

E

Your MySQL instance is capturing a huge amount of financial transactions every day in the finance database. Company policy is to create a backup every day. The main tables being updated are prefixed with transactions-. These tables are archived into tables that are prefixed with archives- each month. mysqlbackup --optimistic-busy-tables="^finance\. transactions-.*" backup Which optimization process best describes what happens with the redo logs? A. The redo logs are backed up first, then the transaction and archive tables. B. The redo logs are backed up only if there are changes showing for the transactions tables. C. The redo logs are not backed up at all. D. The transaction tables are backed up first, then the archive tables and redo logs. E. The archive tables are backed up first, then the transaction tables and redo logs.

E

An existing asynchronous replication setup is running MySQL 8. Which two steps are a part of implementing GTID replication? A. Enable GTID by executing this on the master and the slave: SET GLOBAL GTID_ENABLED=on; B. On the slave, alter the MySQL master connection setting with: ALTER channel CHANGE MASTER TO MASTER_AUTO_POSITION = 1; C. Execute this on the slave to enable GTID: RESET SLAVE; START SLAVE GTID_NEXT=AUTOMATIC; D. Execute this on the slave to enable GTID: START SLAVE IO_THREAD WITH GTID; E. Restart MySQL (master and slave) with these options enabled: --gtid_mode=ON --log-bin --log-slave-updates --enforce-gtid-consistency F. On the slave, alter the MySQL master connection setting with: CHANGE MASTER TO MASTER_AUTO_POSITION = 1;

E, F

Which two are true about differences between logical and physical upgrades of MySQL databases? A. Logical upgrades are much faster because they do not require restarting the mysqld process. B. Physical upgrades are much faster because they do not require restarting the mysqld process. C. Physical upgrades are performed for current instances on bare metal deployments, whereas logical upgrades are used for virtual machines or containerized instances. D. Post-upgrade table storage requirements after physical upgrades are usually smaller than that after logical upgrades. E. Post-upgrade table storage requirements after logical upgrades are usually smaller than that after physical upgrades. F. Physical upgrades leave data in place, whereas logical upgrades require data to be restored from mysqldump-type backups taken before the upgrades.

E, F

Which two statements are true about MySQL server multi-source replication? A. It must use GTID replication. B. It is not compatible with auto- positioning. C. It needs to be re-instanced after a crash to maintain consistency. D. It uses only time-based replication conflict resolution. E. It does not attempt to detect or resolve replication conflicts. F. It relies on relay_log_recovery for resilient operations.

E, F

You plan to install MySQL Server by using the RPM download. Which two statements are true? A. You must manually initialize the data directory. B. You can provide the root password interactively C. The MySQL RPM package installation supports deploying multiple MySQL versions on the same host. D. MySQL uses the RPM relocatable installation target feature. E. You can find the root password in the error log after the first start. F. The functionality is split among several RPM package files.

E, F

Which three actions are effective in capacity planning? A. adding circular replication nodes for increased DML capability B. buying more RAM C. buying more disk D. buying more CPU E. basing expected growth on an average of the last 3 years F. upgrading to the latest application version G. monitoring OS resources for patterns H. consulting the application team about any future projects and use

E, G, H

Examine this statement, which executes successfully: (image) You want to improve the performance of this query: SELECT Name FROM world.city WHERE Population BETWEEN 1000000 AND 2000000; Which change enables the query to succeed while accessing fewer rows? A. ALTER TABLE world.city ADD INDEX (Name) ; B. ALTER TABLE world.city ADD SPATIAL INDEX (Name) ; C. ALTER TABLE world.city ADD FULLTEXT INDEX (Name) ; D. ALTER TABLE world.city ADD FULLTEXT INDEX (Population) ; E. ALTER TABLE world.city ADD SPATIAL INDEX (Population) ; F. ALTER TABLE world.city ADD INDEX (Population) ;

F

Examine the command, which executes successfully: shell> mysqld --initialize Which statement is true? A. The root password is created in the error log in plain text. B. The installation creates a temporary test environment with data in the /tmp directory. C. The installation is created without enforcing or generating SSL certificates. D. The root password is not created allowing easy access from the same host.

A

Examine this command, which executes successfully: $ mysqlrouter --bootstrap user@hostname :port --directory=directory_path Which activity is performed? A. MySQL Router configures itself based on the information retrieved from the InnoDB cluster metadata server. B. MySQL Router configures all the cluster nodes based on the information retrieved from the InnoDB cluster metadata server. C. MySQL Router is restarted. D. MySQL Router is configured based on the information in files in directory_path.

A

Examine this parameter setting: audit_log=FORCE_LOG_PERMANENT What effect does this have on auditing? A. It prevents the audit plugin from being removed from the running server. B. It prevents the audit log from being removed or rotated. C. It causes the audit log to be created if it does not exist. D. It will force the load of the audit plugin even in case of errors at server start.

A

Examine this partial report: mysql> SHOW FULL PROCESSLIST; (image) Examine this query: SELECT SUM(m.CURRENT_NUMBER_OF_BYTES_USED) AS TOTAL FROM performance_schema.memory_summary_by_thread_by_event_name m INNER JOIN performance_schema.threads t ON m.THREAD_ID = t.THREAD_ID WHERE t.PROCESSLIST_ID = 10; What information does this query provide? A. total memory used by connection number 10 B. total memory used across all connections associated with the user on connection number 10 C. total memory used by the first 10 threads D. total memory used by thread number 10 E. total memory used across all connections associated with the user on thread number 10 F. total memory used by the first 10 connections

A

How can mysql_multi be configured to allow MySQL instances to use the same port number? A. The instances listen on different IP addresses. B. The instances use different user accounts unique teach instance. C. The instances use different socket names. D. The instances have appropriate net masks set.

A

Which characters are most commonly used in a SQL injection attack? A. ' and " B. < and > C. null (\0) and newline (\n) D. ^ and $ E. + and -

A

You are upgrading a MySQL instance to the latest 8.0 version. Examine this output: (image) You plan to add this parameter to the configuration: innodb_directories= ' /innodb_extras ' Which statement is true? A. It allows scanning of other locations to discover more innodb tablespaces. B. It defines all innodb tablespace options relative to a starting parent directory. C. It adds more temporary workspace in addition to the innodb_tmpdir location. D. It is not necessary because innodb_data_home_dir is already defined. E. It moves all innodb tablespaces to the /innodb_extras directory to enable a new innodb_data_home_dir to be defined.

A

You issue this command: SHOW SLAVE STATUS In the output, there is a value for seconds_behind_master. How is this time calculated? 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.

A

Which two queries are examples of successful SQL injection attacks? A. SELECT user, passwd FROM members WHERE user = ' ? ' ; INSERT INTO members ('user' , 'passwd' ) VALUES ('[email protected]' , 'secret' ) ;-- '; B. SELECT user, phone FROM customers WHERE name = ' \; DROP TABLE users; -- '; C. SELECT id, name FROM user WHERE user.id= (SELECT members.id FROM members) ; D. SELECT id, name FROM user WHERE id=23 OR id=32 OR 1=1; E. SELECT email, passwd FROM members WHERE email = 'INSERT INTO members('email' , ' passwd ' ) VALUES ('[email protected]' , 'secret') ;-- ';

A, B

You are asked to review possible options for a new MySQL instance. It will be a large, busy reporting data warehousing instance. [mysql]innodb_data_file_path= Which two configurations would satisfy long-term storage demands? A. ibdata1:12M: autoextend B. ibdata1:12M; ibdata2:12M: autoextend C. ibdata1:12M; ibdata2:12M; ibdata3:12M D. ibdata1:12M; /tmp/ibdata2 :12M:autoextend E. ibdata1:12M F. ibdata1:12M: autoextend; ibdata2:12M: autoextend

A, B

Your MySQL installation is running low on space due to binary logs. You need to reduce your log space usage urgently. Which two sets of actions when completed will accomplish this? A. Use PURGE BINARY LOGS to <binlog_name>. B. Use SET GLOBAL binlog_expire_logs_seconds=<value> and run the FLUSH BINARY LOGS command. C. Use SET GLOBAL binlog_expire_logs_seconds=<value> and restart the server. D. Use SET PERSIST binlog_expire_logs_seconds=<value>. E. Set binlog_expire_logs_seconds = 0 in my.cnf and restart the server. F. Set binlog_expire_logs_seconds in my.cnf.

A, B

Your MySQL server was upgraded from an earlier major version. The sales database contains three tables, one of which is the transactions table, which has 4 million rows. You are running low on disk space on the datadir partition and begin to investigate. Examine these commands and output: (image) Which two statements are true? A. The transactions table was created with innodb_file_per_table=OFF. B. Truncating the sales and leads table will free up disk space. C. Executing SET GLOBAL innodb_row_format=COMPRESSED and then ALTER TABLE transactions will free up disk space. D. Executing ALTER TABLE transactions will enable you to free up disk space. E. Truncating the transactions table will free up the most disk space.

A, B

Which three sets of item information are visible in the mysql system database? A. time zone information and definitions B. help topics C. plugins D. audit log events E. performance monitoring information F. rollback segments G. information about table structures

A, B, C

You are considering using file-system snapshots to back up MySQL. Which three statements are true? A. There is a slight performance cost while the snapshot is active. B. The backup window is almost zero from the perspective of the application. C. They allow direct copying of table rows with operating system copy commands. D. They do not back up views, stored procedures, or configuration files. E. They take roughly twice as long as logical backups. F. They work best for transaction storage engines that can perform their own recovery when restored. G. They do not use additional disk space.

A, B, F

Examine this command and output: (image) Which two options will improve the security of the MySQL instance? A. Remove the world read/execute privilege from the accounting directory. B. Remove world read privileges from the public_key.pem file. C. Change the group ownership of the mysql directory to the mysql user group. D. Change the parent directory owner and group to mysql. E. Remove world read privileges from the server-cert.pem certificate file. F. Remove group read/write privileges from the private_key.pem file.

A, C

Examine this command and output: (image) Which two statements are true? A. The lock is an exclusive lock. B. The lock is a shared lock. C. The lock is a row-level lock. D. The lock is an intentional lock. E. The lock is at the metadata object level. F. The lock is at the table object level.

A, C

Mary connects to a Linux MySQL Server from a client on a Windows machine. Examine this statement and output: (image) Which two are true? A. Mary connected from a client machine whose IP address is 192.0.2.101. B. Mary connected to the database server whose IP address is 192.0.2.101. C. Mary has the privileges of account mary@%. D. Mary connected using a UNIX socket. E. Mary authenticated to the account [email protected].

A, C

Which two statements are true about the binary log encryption feature? A. It requires a keyring plugin. B. When enabled it encrypts existing binary logs. C. It can be set at run time. D. It can be activated per session. E. It encrypts any connecting slaves connection thread.

A, C

Examine these statements, which execute successfully: TRUNCATE test; BEGIN; INSERT INTO test (id, name) VALUES(1, "Hello") ; ROLLBACK; SELECT id FROM test; Which three storage engines would return a nonempty recordset for the test table when executing the statements? A. MEMORY B. BLACKHOLE C. ARCHIVE D. NDB E. MyISAM F. InnoDB

A, C, E

Identify three functions of MySQL Enterprise Monitor. A. Analyze query performance. B. Start a logical backup. C. Determine the availability of monitored MySQL servers. D. Centrally manage users. E. Start a MySQL Enterprise backup. F. Centrally manage server configurations. G. Start and stop MySQL Server. H. Create customized alerts and provide notification alerts.

A, C, H

Examine the modified output: mysql> SHOW SLAVE STATUS\G ******************1. row******************** Slave_IO_Running: Yes Slave_SQL_Running: Yes Seconds_Behind_Master: 1612 Seconds_Behind_Master value is steadily growing. What are two possible causes? A. The master is producing a large volume of events in parallel but the slave is processing them serially. B. This value shows only I/O latency and is not indicative of the size of the transaction queue. C. One or more large tables do not have primary keys. D. The master is most probably too busy to transmit data and the slave needs to wait for more data. E. The parallel slave threads are experiencing lock contention.

A, D

Which two tools are available to monitor the global status of InnoDB locking? A. SHOW ENGINE INNODB STATUS; B. SHOW TABLE STATUS; C. INEORMATION_SCHEMA.INNODB_TABLESTATS D. SHOW STATUS; E. INFORMATION_SCHEMA.STATISTICS F. INFORMATION_SCHEMA.INNODB_METRICS

A, D

Which three are types of InnoDB tablespaces? A. data tablespaces B. schema tablespaces C. redo tablespaces D. temporary table tablespaces E. undo tablespaces F. encryption tablespaces

A, D, E

Examine Joe's account: CREATE USER 'joe'@'%' IDENTIFIED BY '*secret*'GRANT ALL PRIVILEGES ON *.* TO 'joe'@'%' All existing connections for joe are killed. Which two commands will stop joe establishing access to the MySQL instance? A. ALTER USER 'joe'@'%' ACCOUNT LOCK B. ALTER USER 'joe'@'%' PASSWORD HISTORY 0 C. REVOKE ALL PRIVILEGES ON *.* FROM 'joe'@'%' D. ALTER USER 'joe'@'%' SET password='*invalid*' E. ALTER USER 'joe'@'%' IDENTIFIED BY '*invalid*' PASSWORD EXPIRE F. REVOKE USAGE ON *.* FROM 'joe'@'%'

A, E

Examine this list of MySQL data directory binary logs: binlog.000001 binlog.000002 . . . . . . . binlog.000289 binlog.000300 binlog.000301 binlog.index Now examine this command, which executes successfully: mysqldump --delete-master-logs --all-databases > /backup/db_backup.sql Which two are true? A. All databases are backed up to the output file. B. All non-active binary logs are removed from the master. C. All binary logs are backed up and then deleted. D. All binary logs are deleted from the master. E. All databases, excluding master metadata, are backed up to the output file. F. All details regarding deleted logs and master metadata are captured in the output file.

A, E

Examine this query and output: mysql> EXPLAIN ANALYZE SELECT city.CountryCode, country.Name AS Country_Name , city.Name, city.District, city.Population FROM world.city INNER JOIN world.country ON country.Code = city.CountryCode WHERE country.Continent = ' Asia ' AND city.Population > 1000000 ORDER BY city.Population DESC\G Which two statements are true? A. The country table is accessed as the first table, and then joined to the city table. B. 35 rows from the city table are included in the result. C. The optimizer estimates that 51 rows in the country table have Continent = ' Asia '. D. It takes more than 8 milliseconds to sort the rows. E. The query returns exactly 125 rows

A, E

Which two statements are true about the data dictionary object cache? A. The dictionary object caches use a Least Recently Used (LRU) algorithm to manage entries in each cache. B. Character set and collation definition objects are not cached. C. All dictionary object caches have a hard-coded size. D. If the dictionary object cache becomes full, MySQL server will be unable to create any more tables/objects. E. tablespace_definition_cache sets the number of tablespace objects that can be stored in the dictionary object cache.

A, E

You are investigating performance problems in a MySQL database; all data fits in memory. You determine that SELECT queries to one table is the main cause for poor response times. Which two have the biggest potential for eliminating the problem? A. high concurrency B. operating system resources C. column definitions D. innodb mutexes E. non-transaction storage engine F. table indexes

A, E

A valid raw backup of the shop.customers MyISAM table was taken. You must restore the table. You begin with these steps: 1. Confirm that secure_file_priv= '/var/tmp ' 2. mysql> DROP TABLE shop.customers; 3. shell> cp /backup/customers.MY* /var/lib/mysql/shop/ Which two actions are required to complete the restore? A. shell> cp /backup/customers.sdi /var/tmp B. mysql> SOURCE '/var/tmp/customers.sdi C. shell> cp /backup/customers.sdi /var/lib/mysql/shop/ D. mysql> ALTER TABLE shop.customers DISCARD TABLESPACE E. shell> cp /backup/customers.frm /var/lib/mysql/shop/ F. mysql> IMPORT TABLE FROM /var/lib/mysql/shop/customers.sdi G. mysql> IMPORT TABLE FROM /var/tmp/customers.sdi H. mysql> ALTER TABLE shop.customers IMPORT TABLESPACE

A, G

Binary log events for the 'mydb1' schema must be copied to a different schema name 'mydb2'. Which command will do this? A. mysqlbinlog --read- from-remote-server --raw | sed 's/mydb1/mydb2/g' | mysql B. mysqlbinlog --rewrite-db= 'mydb1->mydb2' | mysql C. mysqlbinlog --datebase=mydb1 --database=mnydb2 | mysql D. mysqlbinlog --rewrite-db='mydb1' --rewrite-db='mydb2' | mysql

B

Database test contains a table named city that has the InnoDB storage engine. (image) What is the content of the test folder in the data directory? A. city.MYD, city.MYI, and city.sdi B. city.ibd C. city.ibd and city.sdi D. city.ibd and city.frm E. city.ibd, city.frm, and city.sdi

B

Which condition is true about the use of the hash join algorithm? A. At least one of the tables in the join must have a hash index. B. No index can be used for the join. C. The query must access no more than two tables. D. The smallest of the tables in the join must fit in memory as set by join_buffer_size.

B

Which feature is provided by multi-source replication? A. providing a common source for the same data to be replicated to other servers B. allowing multiple servers to back up to one server C. managing conflicts between two sets of the same data D. providing multi-source replication where all servers act as the master

B

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? A. Close the connection, reconnect, and start the transaction again. B. Re-execute the failed statement in your transaction. C. Roll back the transaction and start the transaction again in the same session. D. Change the default database and re- execute the failed statement in your transaction.

B

You have configured a working MySQL InnoDB Cluster in single-primary mode. What happens when the primary instance goes down due to a network problem? A. The cluster will continue to function with read-only members. B. A new primary is automatically elected. C. The cluster goes into wait mode until a new member is manually promoted as primary. D. The cluster detects network partitioning and shuts down to remain consistent. E. All remaining members in the cluster are automatically set to read-write mode

B

You use Row Based Replication and need to see "pseudo-SQL" statements for the replication event that is located in the log_file position NNNNN file. Which command should you use? A. mysqlshow --debug --stop-position=NNNNN log_file B. mysqlbinlog --verbose --start-position=NNNN log_file C. mysqlbinlog --debug --start-position=NNNNN log_file D. mysqlbinlog --debug -- stop-position=NNNNN log_file E. mysqlshow --verbose --stop-position=NNNNN log_file F. mysqlbinlog --verbose - - stop-position=NNNNN log_file G. mysqlshow --debug --start-position=NNNNN log_file H. mysqlshow --verbose --start-position=NNNNN log_file

B

You want to dump all databases with names that start with "db". Which command will achieve this? A. mysqlpump > all_db_backup.sql B. mysqlpump --include-databases=db% --result-file=all_db_backup.sql C. mysqlpump --include-databases=db -- result-file=all_db_backup.sql D. mysqlpump -- include-tables-db.% --result-file=all_db_backup.sql

B

Which three commands can report all the current connections running on the MySQL server? A. SELECT * FROM performance_schema.events_transactions_current B. SELECT * FROM performance_schema.threads C. SHOW FULL PROCESSLIST D. SELECT * FROM information_schema.processlist E. SHOW EVENTS F. SELECT * FROM sys.metrics G. SELECT * FROM information_schema.events H. SELECT * FROM sys.statement_analysis

B, C, D

Which three statements are true about MySQL Enterprise Firewall? A. On Windows systems, it is controlled and managed using the Windows Internet Connection Firewall control panel. B. System tables named firewall_users and firewall_whitelist in the mysql database provide persistent storage of firewall data. C. It is available only in MySQL Enterprise versions. D. It provides INFORMATION_SCHEMA tables that enable views into firewall data. E. Firewall functionality is dependent on SHA-256 and ANSI-specific functions built in to the mysql.firewall table. F. It shows only notifications for blocked connections, which originated outside of your network's primary domain.

B, C, D

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 to connect to the world database. Which four options need to be specified to complete this task with a single command? A. --port=3306 B. --protocol=pipe C. --host=192.0.2.1 D. --protocol=UDP E. --user=admin F. --password G. --socket=/tmp/mysql.sock H. --shared-memory-base-name=world I. --database=world

B, C, E, F

A newly deployed replication master database has a 10/90 read to write ratio. The complete dataset is currently 28G but will never fluctuate beyond +-10%. The database storage system consists of two locally attached PCI- E Enterprise grade disks (mounted as /data1 and /data2). The server is dedicated to this MySQL Instance. System memory capacity is 64G. The my.cnf file contents are displayed here: [mysqld] datadir=/data1/ innodb_buffer_pool_size=28G innodb_log_file_size=150M Which four changes provide the most performance improvement, without sacrificing data integrity? A. innodb-doublewrite=off B. innodb_log_group_home_dir=/data2/ C. innodb_log_file_size=1G D. innodb_undo_directory=/dev/shm E. log-bin=/data2/ F. innodb_flush_log_at_trx_commit=0 G. sync_binlog=0 H. innodb_buffer_pool_size=32G I. disable-log-bin

B, C, E, H

Examine this statement and output: (image) Which two SQL statements can j smith execute? A. UPDATE world.country SET Name=CONCAT ('New ' ,Name) ; B. UPDATE world.country SET Name='one' LIMIT 1; C. UPDATE world.country SET Name=' first ' ORDER BY Name LIMIT 1; D. UPDATE world.country SET Name='all'; E. UPDATE world.country SET Name=' new' WHERE Name='old';

B, D

There are five MySQL instances configured with a working group replication. Examine the output of the group members: mysql> SELECT MEMBER_ID, MEMBER_STATE FROM performance_schema.replication_group_members; (image) Which two statements are true about network partitioning in the cluster? A. The group replication will buffer the transactions on the online nodes until the unreachable nodes return online. B. A manual intervention to force group members to be only the working two instances is required. C. The cluster will shut down to preserve data consistency. 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. The cluster has built-in high availability and updates group_replication_ip_whitelist to remove the unreachable nodes.

B, D

Examine this command, which executes successfully on InnoDB Cluster: dba.dropMetadataschema() Which two statements are true? A. The mysql_innodb_cluster_metadata schema is dropped from the instance where the connection was established. B. Group Replication is still operational, but InnoDB Cluster must be reimported under MySQL Shell. C. The command drops the mysql_innodb_cluster_metadata schema and re-creates it. D. Connections driven by MySQL Router are not affected by the command. E. The mysql_innodb_cluster_metadata schema is dropped from all reachable members of the cluster. F. Group Replication will be dissolved and all metadata purged.

B, E

Which three actions will secure a MySQL server from network-based attacks? A. Construct a perimeter network to allow public traffic. B. Place the MySQL instance behind a firewall. C. Use network file system (NFS) for storing data. D. Change the listening port to 3307. E. Use MySQL Router to proxy connections to the MySQL server. F. Allow connections from the application server only.

B, E, F

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? A. The cluster is running and there is at least one ONLINE instance. B. The instance deployed on host3 must be synchronized from a donor deployed on host1 by using the command cluster.addInstance('host1:3377'). C. It is possible to determine the most up-to-date instance by comparing different global transaction identifier (GTID) sets with GTID_SUBSET (set1, set2). D. The active session instanceis invalid and must be re-created by using the command shell.connect ('host3:3377'). E. The instance deployed on host3 must be rebuilt with a backup from the primary instance.

C

Consider this shell output and executed commands: [root@oel7~] # ps aux | grep mysqldmysql 2076 3.5 24.6 1386852 372572 2 Ssl 12:01 0:01 /usr/sbin/mysqld[root@oel7 ~]# kill -15 2076 Which statement is true about MySQL server shutdown? A. kill -15 and kill -9 are effectively the same forced shutdown that risk committed transactions not written to disk. B. mysqld safe prohibits commands that would harm the operation of the server. An error would be returned by the kill command. C. kill -15 carries out a normal shutdown process, such as mysqladmin shutdown. D. kill -15 should be avoided. Use other methods such as mysqladmin shutdowm or systemctl stop mysqld.

C

Examine these commands, which execute successfully on the ic1 host: mysqlsh> dba.createCluster( 'cluster1' , {memberWeight:35}) mysqlsh> var mycluster = dba.getCluster () mysqlsh> mycluster.addInstance ( 'ic@ic2' , {memberWeight:25}) mysqlsh> mycluster.addInstance( 'ic@ic3' , {memberWeight:50}) Now examine this configuration setting, which is the same on all nodes: group_replication_consistency=BEFORE_ON_PRIMARY_FAILOVER Which statement is true if primary node ic1 fails? A. Node ic2 becomes the new primary and existing transactions are considered stale and rolled back B. Node ic3 becomes the new primary and existing transactions are considered stale and rolled back. C. Node ic3 becomes the new primary and is ignored until any backlog of transactions is completed. D. Only two nodes remain so the election process is uncertain and must be done manually E. Node ic2 becomes the new primary and is ignored until any backlog of transactions is completed.

C

Examine this SQL statement: UPDATE world.city SET Population = Population * 1.1 WHERE CountryCode IN (SELECT Code FROM world.country WHERE Continent = ' Asia ' ) Which set of privileges will allow Tom to execute this SQL statement? A. GRANT UPDATE ON `world`.* TO `tom`@`%`; GRANT ALL PRIVILEGES ON `world`.`country` TO `tom`@`%`; B. GRANT UPDATE ON `world`.`city` TO `tom`@`%` GRANT SELECT ON `world`.* TO `tom`@`%` C. GRANT UPDATE ON `world`.`city` TO `tom`@`%` GRANT SELECT ON `world`.`country` TO `tom`@`%` D. GRANT ALL PRIVILEGES ON `world`.`city` TO `tom`@`%` GRANT SELECT (`code`) ON `world`.`country` TO `tom`@`%`

C

Examine this partial output for InnoDB Cluster status: (image) Which statement explains the state of the instance deployed on host2? A. It can rejoin the cluster by using the command cluster.addInstance ('@host3:3377'). B. It has been expelled from the cluster because of a transaction error. C. It can be recovered from a donor instance on host3 by cloning using the command cluster.rejoinInstance ('@host3:3377'). D. It has been removed from the cluster by using the command STOP GROUP_REPLICATION;. E. It can rejoin the cluster by using the command dba. rebootClusterFromCompleteOutage().

C

There has been an accidental deletion of data in one of your MySQL databases.You determine that all entries in the binary log file after position 1797 must be replayed. Examine this partial command: mysqlbinlog binlog.000008 --start-position=1798 Which operation will complete the command? A. --write-to-remote-server must be added to the command line to update the database tables. B. No changes required. It automatically updates the MySQL Server with the data. C. It can be piped into the MySQL Server via the command-line client. D. You must use --stop position=1797 to avoid the DELETE statement that caused the initial problem.

C

What is the correct syntax for using transparent data encryption with an existing InnoDB table? A. ALTER TABLE t1 SET TDE = 'ON'; B. ALTER TABLE t1 ADD ENCRYPTED_TABLESPACE = 'Y'; C. ALTER TABLE t1 ENCRYPTION='Y'; D. ALTER TABLE t1 WITH ENCRYPTION USING MASTER KEY;

C

You are using an existing server with a new configuration. MySQL Server fails to start. Examine this snapshot of the error log: 190925 12:49:05 InnoDB: Initializing buffer pool, size = 3.0G 190925 12:49:05 InnoDB: Completed initialization of buffer pool InnoDB: Error: log file ./ib_logfile0 is of different size 0 5242880 bytes InnoDB: than specified in the .cnf file 0 26214400 bytes! 190925 12:49:05 [ERROR] Plugin 'InnoDB' init function returned error. 190925 12:49:05 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 190925 12:49:05 [ERROR] Aborting 190925 12:49:05 [Note] /usr/sbin/mysqld: Shutdown complete Which action would allow the server to start? A. Execute mysqladmin flush-logs. B. Create a new ib_logfile0 file of size 26214400. C. Remove ib_logfile0 and ib_logfile1 files from the file system. D. First run mysqld --initialize to refresh the size of ib_logfile.

C

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: (image) Which step or set of steps will resolve the errors? A. Start mysqld again using the --upgrade=FORCE option. B. Go to the /mysql directory and execute: myisamchk --update-state columns_priv event proc proxies_priv tables_priv. C. Execute: mysqlcheck --repair mysql columns_priv event proc proxies_priv tables_priv. D. 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. E. Execute: mysqlcheck --check-upgrade mysql columns_priv event proc proxies_priv tables_priv.

C

You reconfigure and start a slave that was not replicating for several days. The configuration file and CHANGE MASTER command are correct. Examine the GTID information from both master and slave: (image) Which statement is true? A. Replication will fail because the master has already purged transactions with ccccc-cccc-cccc-ccc-cccccccccc GTIDs. B. Replication will work. C. Replication will fail because the master does not have the required transaction with bbbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbb GTIDs in its binary logs. D. Replication will fail because the slave has purged more aaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa transactions than the master. E. Replication will fail because of inconsistent numbers in ccccccc-cccc-cccc-ccccccccccccc GTIDs.

C

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? A. The slave relay logs should be deleted; then execute START SLAVE; B. The slave needs to be restored from backup. 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 relay logs from the master should be used to replace the corrupted relay logs.

C

A clean shutdown was performed with innodb_fast_shutdown=0. While you were manipulating files, all files were accidentally deleted from the top-level data directory. Which two files must be restored from backup to allow the DB to restart cleanly? A. ib_buffer_pool B. ib_logfile0 C. mysql.ibd D. ibdata1 E. ibtmp1 F. undo_001

C, D

Which two statements are true about MySQL Installer? A. It provides only GUI-driven, interactive installations. B. It installs most Oracle MySQL products. C. Manual download of separate product packages is required before installing them through MySQL Installer. D. It provides a uniform installation wizard across multiple platforms. E. It performs product upgrades.

C, D

Which two statements are true about general tablespaces? A. General tablespaces support temporary tables. B. Dropping a table from a general tablespace releases the space back to the operating system. C. A new table can be created explicitly in a general tablespace. D. An existing table can be moved into a general tablespace. E. A general tablespace can have multiple data files.

C, D

Which two statements are true about the mysqld-auto.cnf file? A. It is always updated with changes to system variables. B. This file is for logging purposes only and is never processed. C. It is read and processed at the end of startup configuration. D. This file is for storing MySQL Server configuration options in JSON format. E. It is read and processed at the beginning of startup configuration. F. This file is for storing MySQL server_uuid values only.

C, D

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? A. 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. B. Reads from the slave can return outdated data until the value of the rpl_semi_sync_master_timeout variable is reached. C. No committed transactions are lost. D. Reads from the slave can return outdated data for some time, until it applies all transactions from its relay log. E. A small amount of committed transactions may be lost in case they were committed just before the disk failure. F. 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.

C, D

Which are three benefits of using mysqlbackup instead of mysqldump? A. mysqlbackup can perform partial backup of stored programs. B. mysqlbackup allows logical backups with concurrency resulting in faster backups and restores. C. mysqlbackup integrates tape backup and has the virtual tape option. D. mysqlbackup can back up tables with the InnoDB engine without blocking reducing wait times due to contention. E. mysqlbackup does not back up MySQL system tables, which shortens backup time. F. mysqlbackup restores data from physical backups, which are faster than logical backups.

C, D, F

Which three methods display the complete table definition of an InnoDB table? A. hexdump -v -C table.frm B. REPAIR TABLE table USE_FRM C. mysqldump --no-data schema table D. Query the Information Schema. E. SELECT * FROM table 1\G F. SHOW CREATE TABLE

C, D, F

All MySQL Server instances belonging to InnoDB Cluster have SSL configured and enabled. You must configure InnoDB Cluster to use SSL for group communication. Which two statements are true? A. An existing InnoDB Cluster must be dissolved and created from scratch to enable SSL for group communication. B. If only some InnoDB Cluster members are enabled for SSL group communication, and --ssl-mode=PREFERRED, communication will fall back to unencrypted connection. C. SSL group communication must be enabled at cluster creation time by specifying createCluster ({memberSslMode: 'REQUIRED'}). D. SSL group communication can be enabled for an existing cluster, one instance at time, by setting group_replication_ssl_mode. E. SSL group communication requires the use of an additional set of parameters group_replication_recovery_*. F. Configuring SSL group communication also configures SSL distributed recovery.

C, E

Examine this statement and output: mysql> SELECT ROW_NUMBER() OVER() AS QN, query, exec_count, avg_latency, lock_latency FROM sys.statement_analysis ORDER BY exec_count; (image) You must try to reduce query execution time. Which two queries should you focus on? A. QN=2 B. QN=3 C. QN=4 D. QN=1 E. QN=5

C, E

Examine this statement, which executes successfully: CREATE USER [email protected] IDENTIFIED BY 'P@SSw0rd' REQUIRE NONE PASSWORD EXPIRE; Which two are true? A. Mary must connect using the username '[email protected]'. B. Mary requires no password to connect to the MySQL server. C. Mary must connect from the client machine 192.0.2.100. D. Mary cannot connect to the MySQL server until the DBA resets her password. E. Mary cannot query data until she changes her password.

C, E

Which two methods can be used to determine whether a query uses the hash join algorithm? A. EXPLAIN FORMAT=JSON B. EXPLAIN FORMAT=TRADITIONAL C. EXPLAIN FORMAT=TREE D. EXPLAIN without any formatting argument E. EXPLAIN ANALYZE

C, E

Which two statements are true about general tablespaces? A. General tablespaces support temporary tables. B. Dropping a table from a general tablespace releases the space back to the operating system. C. An existing table can be moved into a general tablespace. D. A general tablespace can have multiple data files. E. A new table can be created explicitly in a general tablespace.

C, E

Which three requirements must be enabled for group replication? A. replication filters B. semi-sync replication plugin C. slave updates logging D. binary log checksum E. primary key or primary key equivalent on every table F. binary log MIXED format G. binary log ROW format

C, E, G

User `fwuser`@`localhost` is registered with the MySQL Enterprise Firewall and has been granted privileges for the SAKILA database. Examine these commands that you executed and the results: mysql> SELECT MODE FROM INFORMATION_SCHEMA.MYSQL_FIREWALL_USERS WHERE USERHOST = 'fwuser@localhost' ; (image) mysql> SELECT RULE FROM INFORMATION_SCHEMA.MYSQL_FIREWALL_WHITELIST WHERE USERHOST = 'fwuser@localhost' ; (image) You then execute this command: mysql> CALL mysql.sp_set_firewall_mode('fwuser@localhost' , 'RESET') ; Which two are true? A. The fwuser@localhost account is removed from the mysql.user table. B. The information_schema.MYSQL_FIREWALL_WHITELIST table is truncated. C. The whitelist of the fwuser@localhost account is truncated. D. The mysql.firewall_users table is truncated. E. The firewall resets all options to default values. F. The fwuser@localhost account mode is set to DETECTING. G. The fwuser@localhost account mode is set to OFF.

C, G

A developer accidentally dropped the InnoDB table Customers from the Company database. There is a datadir copy from two days ago in the dbbackup directory. Which set of steps would restore only the missing table? A. Stop the MySQL Server process and restart it with the command:mysqld --basedir=/usr/local/mysql --datadir=/dbbackupRun mysqldump on this table and restore the dump file. B. Stop the MySQL Server process and restart it with the command:mysqld --basedir=/usr/local/mysql --datadir=/var/lib/mysqlRun mysqldump on this table and restore the dump file. C. Stop the MySQL Server process, copy the Customers.ibd file from the dbbackup directory, and start the mysqld process. D. Stop the MySQL Server process, and execute:mysqlbackup --datadir=/var/lib/mysql --backup-dir=/dbbackup -- include-tables= 'Company\. Customers' copy-backStart the mysqld process.

D

Examine this command, which executes successfully: $ mysqlbackup --user=dba --password --port=3306 --with-timestamp --only-known-file-types --backup-dir=/export/backups backup Which statement is true? A. Only tables stored in their own tablespaces are backed up. B. Only InnoDB data and log files are backed up. C. Only non-encrypted files are backed up. D. Only files for MySQL or its built-in storage engines are backed up. E. The backup includes only data files and their metadata.

D

Examine this command: shell> mysqldump --no-create-info --all-databases --result-file=dump.sql Which statement is true? A. It will not write CREATE TABLESPACE statements. B. It will not write CREATE LOGFILE GROUP statements. C. It will not write CREATE DATABASE statements. D. It will not write CREATE TABLE statements.

D

MySQL Enterprise Monitor Query Analyzer is configured to monitor an instance. Which statement is true? A. The Query Response Time index (QRTi) is fixed to 100ms and cannot be customized. B. Enabling the events_statements_history_long consumer allows tracking the longest running query. C. An agent must be installed locally on the instance to use the Query Analyzer. D. The Query Analyzer can monitor an unlimited number of normalized statements. E. The slow query log must be enabled on the monitored server to collect information for the Query Analyzer.

D

The mysqld instance has the connection control plugin enabled with these settings: connection_control_min_connection_delay=1000 connection_control_max_connection_delay=2000 The minimum and maximum delays need to be increased to 3000 and 5000, respectively. A command is executed: mysql> SET GLOBAL connection_control_min_connection_delay=3000; What is the result? A. Only the minimum connection value is increased to 3000. B. The minimum connection value is changed to 2000. C. The minimum value increases to 3000 and the maximum value increases to 4000. D. An error is returned.

D

You have configured GTID-based asynchronous replication with one master and one slave. A user accidentally updated some data on the slave. To fix this, you stopped replication and successfully reverted the accidental changes. Examine the current GTID information: (image) You must fix GTID sets on the slave to avoid replicating unwanted transactions in case of failover. Which set of actions would allow the slave to continue replicating without erroneous transactions? A. RESET MASTER; SET GLOBAL gtid_purged=aaaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaaa:1-2312; SET GLOBAL gtid_executed=aaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa:1-10167; B. RESET MASTER; SET GLOBAL gtid_purged=aaaaaaa-aaaa-aaaa-aaaa-aaaaaaaaaa:1-10167; C. RESET SLAVE;SET GLOBAL gtid_purged=aaaaa-aaa-aaaa-aaaa-aaaaaaaa:1-3820; SET GLOBAL gtid_executed=aaaaaa-aaaa-aaa-aaaa-aaaaaaaaaaa:1-10300; D. SET GLOBAL gtid_purged=aaaaaa-aaa-aaa-aaaa-aaaaaaaa:1-2312, bbbbbb-bbbb-bbbb-bbbb-bbbbbbbbbb:1-9; SET GLOBAL gtid_executed=aaaaaaa-aaaa-aaaa-aaaa-aaaaaa:1-10167; E. RESET SLAVE; SET GLOBAL gtid_purged=aaaaaaa-aaa-aaaa-aaa-aaaaaaaa:1-10167;

D

You must replay the binary logs on your MySQL server. Which command do you use? A. cat binlog.000003 binlog.000004 binlog.000005 | mysql -h 127.0.0.1 B. mysqlpump -h 127.0.0.1 binlog.000003 binlog.000004 binlog.000005 C. mysql -h 127.0.0.1 --local-infile binlog.000003 binlog.000004 binlog.000005 D. mysqlbinlog binlog.000003 binlog.000004 binlog.000005 | mysql -h 127.0.0.1 E. mysqlbinlog -h 127.0.0.1 binlog.000003 binlog.000004 binlog.000005

D

You wish to protect your MySQL database against SQL injection attacks. Which method would fail to do this? A. using stored procedures for any database access B. avoiding concatenation of SQL statements and user-supplied values in an application C. using PREPARED STATEMENTS D. installing and configuring the Connection Control plugin

D

Which two statements are true about raw binary backups? A. They are converted to a highly compressible binary format. B. They are required to obtain FIPS security compliance C. The resulting files are easily human readable D. The data format is identical to how MySQL stores the data on disk. E. They are faster than logical backups because the process is a simple file or file system copy.

D, E

Examine these commands and output: mysql> SHOW FULL PROCESSLIST; (image) mysql> SELECT object_type, object_schema, object_name, lock_type, lock_status, owner_thread_id, owner_event_id -> FROM performance_schema.metadata_locks WHERE object_schema != 'performance_schema' ; (image) mysql> SELECT thread_id, processlist_id, processlist_user, parent_thread_id -> FROM per formance_schema.threads WHERE processlist_user=' root'; (image) Which connection ID is holding the metadata lock? A. 21 B. 25 C. 6 D. 22 E. 20 F. 24

E

Examine these statements and output: mysql> GRANT PROXY ON accounting@localhost TO ' '@'%' ; mysql> SELECT USER(), CURRENT_USER(), @@proxy_user; (image) Which statement is true? (Choose one) A. The user failed to define a username and the connecting username defaulted to ' '@'%'. B. The user is authorized as the rsmith@localhost user. C. The user is authenticated as the anonymous proxy user ' '@'%'. D. The user is logged in with --user=accounting as an option. E. The user is authorized as the accounting@localhost user.

E

Which utility would you use to view the queries in the slow query log sorted by average query time? A. mysqlcheck B. mysqlshow C. mysqlimport D. mysqldump E. mysqldumpslow

E

You have just installed MySQL on Oracle Linux and adjusted your /etc/my.cnf parameters to suit your installation. Examine the output: # systemctl start mysqld Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details. # systemctl status mysqld.service mysqld.service - MySQL Server Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Thu 2019-12-12 07:54:53 ACDT; 33s agoDocs: man:mysqld(8) https://dev.mysql.com/a/doc/refman/en/using-systend.html Process: 2732 Execstart=/usr/ sbin/mysqld $MYSQLD_OPTS (code=exited, status=1/ FAILURE) Process: 2705 ExecStartPre=/usr/bin/mysqld_pre_systemd (code=exited, status=0/ SUCCESS) Main PID: 2732 (code=exited, status=1/FAILURE) Status: "Server startup in progress " Dec 12 07:54:49 oel7 systemd[1]: Starting MySQL Server... Dec 12 07:54:53 oel7 systemd[1] : mysqld.service: main process exited, code=exited, status=1/ FAILURE Dec 12 07 :54:53 oel7 systemd[1] : Failed to start MySQL Server Dec 12 07 :54:53 oel7 systemd[1] :Unit mysqld.service entered failed state. Dec 12 07:54:53 oel7 systemd[1]: mysqld.service failed. What statement is true about the start attempt? A. systemd attempted to start mysqld, found another systemd mysqld process running, and shut it down. B. MySQL server continued to start up even though another process existed. C. systemd waited for 30 seconds before timing out and start up failed. D. systemd found the mysqld service disabled and failed to start it. E. MySQL server was not started due to a problem while executing process 2732.

E

You have an InnoDB Cluster configured with three servers. Examine this command, which executes successfully: mysqldump -uroot -p -d mydatabase > mydatabase_backup.sql Due to data loss, the cluster is initialized and a restore is attempted resulting in this error: ERROR 13176 (HY000) at line 23: Cannot update GTID_PURGED with the Group Replication plugin running Which two actions, either one of which, can fix this error and allow a successful restore of the cluster? A. Remove the group replication plugin from each instance before restoring. B. Remove the @@GLOBAL.gtid_executed statement from the dump file. C. Stop all instances except the primary read/write master instance and run the restore. D. Restore using the --set-gtid-purged=OFF option. E. Remove the @@GLOBAL.gtid_purged statement from the dump file. F. Create the backup by using the --set-gtid-purged=OFF option.

E, F


संबंधित स्टडी सेट्स

Chapter 84: Allergic, Immune, and Autoimmune Disorders and Chapter 24: The Immune System

View Set

OSHA - Personal Fall Arrest Systems

View Set

APUSH Vol. 1 to 1877 Ch. 14 Forging the National Economy, 1790-1860

View Set

Op. Mangt. Ch. 11 & Ch. 11 Supplement

View Set