In a design situation, there are multiple character sets that can properly encode your data.
Which three should influence your choice of character set?
Answer : C,D,E
What are two methods of taking a binary backup of a Mysql Server using InnoDB storage engine?
Answer : A,B
Reference: http://dev.mysql.com/doc/refman/5.5/en/innodb-backup.html
You need to replicate a table from a master to a slave. The master and slave copies of the table will have different number of columns.
Which two conditions must be true?
Answer : B,D
Assume that you want to know which Mysql Server options were set to custom values.
Which two methods would you use to find out?
Answer : C,D
Consider the Mysql Enterprise Audit plugin.
A CSV file called data.csv has 100 rows of data.
The stored procedure prepare_db ( ) has 10 auditable statements.
You run the following statements in the mydb database:
Mysql> CALL prepare_db ( );
Mysql> LOAD DATA INFILE /tmp/data.cav INTO TABLE mytable;
Mysql> SHOW TABLES;
How many events are added to the audit log as a result of the preceding statements?
Answer : B
Reference: http://dev.mysql.com/doc/mysql-security-excerpt/5.5/en/audit-log-plugin- logging-control.html
You attempt to connect to a Mysql Server by using the mysql program. However, you receive the following notice:
ERROR 2059 (HY000): Authentication plugin mysql_clear_password connot be loaded: plugin not enabled
What would you run to fix the issue?
Answer : C
Reference: http://planet.mysql.com/entry/?id=34077
A Mysql instance is running on a dedicated server. Developers access the server from the same network subnet. Users access the database through an application that is running on a separate server in a DMZ.
Which two will optimize the security of this setup?
Answer : E,F
Consider the following statement on a RANGE partitioned table:
ALTER TABLE orders DROP PARTITION p1, p3;
What is the outcome of executing the above statement?
Answer : D
Reference:
https://dev.mysql.com/doc/refman/5.5/en/partitioning-management.html
What is true regarding InnoDB locking?
Answer : E
Reference: http://dev.mysql.com/doc/refman/5.0/en/table-locking.html
Compare a typical Distributed Replicated Block Device (DRBD) with MySQL Standard
Replication using master-slave replication.
Which two statements are correct?
Answer : A,D
Explanation: A:
* Replication cannot use Unix socket files. You must be able to connect to the master
MySQL server using TCP/IP.
D: Time Delayed replication is however something quite helpful for some environments.
Though DRBD also could be extended to support one if needed.
Not B: DRBD (Distributed Replication Block Device), one of the leading solutions for
MySQL HA (High Availability), offering users:
/ An end-to-end, integrated stack of mature and proven open source technologies, fully supported by Oracle;
/ Automatic failover and recovery for service continuity;
/ Mirroring, via synchronous replication, to ensure failover between nodes without the risk of losing committed transactions;
/ Building of HA clusters from commodity hardware, without the requirement for shared- storage.
Consider the following:
Mysql> EXPLAIN SELECT * FROM City WHERE Name = Jacksonville AND CountryCode
= USA \G
******************************** 1. row ********************************
Id: 1 -
Select_type: SIMPLE -
Table: City -
Type: ref -
Possible_keys: name_country_index
Key: name_country_index -
Ref: const, const -
Rows: 1 -
Extra: Using where -
Which statement best describes the meaning of the value for the key_len column?
Answer : D
Consider the query:
Mysql> SET @run = 15;
Mysql> EXPLAIN SELECT objective, stage, COUNT (stage)
FROM iteminformation -
WHERE run=@run AND objective=7.1
GROUP BY objective,stage -
ORDER BY stage;
Answer : B
Which two statements are true about setting the per-thread buffers higher than required?
Answer : C,D
Which two statements are true about InnoDB auto-increment locking?
Answer : A,D
Explanation: A (not B): InnoDB uses a special lock called the table-level AUTO-INC lock for inserts into tables with AUTO_INCREMENT columns.
D (Not E): This lock is normally held to the end of the statement (not to the end of the transaction), to ensure that auto-increment numbers are assigned in a predictable and repeatable order for a given sequence of INSERT statements.
Reference: 14.6.5.2 Configurable InnoDB Auto-Increment Locking http://dev.mysql.com/doc/refman/5.6/en/innodb-auto-increment-configurable.html
The allplicationdb is using innoDB and consuming a large amount of file system space.
You have a /backup partition available on NFS where backups are stored.
You investigate and gather the following information:
[mysqld]
Datadir=/var/lib/mysql/
Innodb_file_per_table=0 -
Three tables are stored in the innoDB shared tablespace and the details are as follows:
-> The table data_current has 1,000,000 rows.
-> The table data_reports has 1,500,000 rows.
-> The table data_archive has 4,500,000 rows.
Shell> is -1 /var/lib/mysql/
-rw-rw---- 1 mysql mysql 744G Aug 26 14:34 ibdata1
-rw-rw---- 1 mysql mysql 480M Aug 26 14:34 ib_logfile0
-rw-rw---- 1 mysql mysql 480M Aug 26 14:34 ib_logfile1
You attempt to free space from ibdata1 by taking a mysqldump of the data_archive table and storting it on your backup partition.
Shell> mysqldump u root p applicationdb data_archive > /backup/data_archive.sql
Mysql> DROP TABLE data_archive;
Which set of actions will allow you to free disk space back to the file system?
Answer : C