Certbus > Oracle > Oracle Database Application Development > 1Z0-883 > 1Z0-883 Online Practice Questions and Answers

1Z0-883 Online Practice Questions and Answers

Questions 4

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?

A. Only the first partition (p1) will be dropped as only one can be dropped at any time.

B. All data in p1 and p3 partitions are removed, but the table definition remains unchanged.

C. A syntax error will result as you cannot specify more than one partition in the same statement.

D. All data in pi and p3 partitions are removed and the table definition is changed.

Browse 100 Q&As
Questions 5

You inherit a legacy database system when the previous DBA, Bob, leaves the company. You are notified that users are getting the following error:

mysql> CALL film_in_stock (40, 2, @count);

ERROR 1449 (HY000): The user specified as a definer (`bon'@'localhost') does not exist

How would you identify all stored procedures that pose the same problem?

A. Execute SELECT * FROM mysql.routines WHERE DEFINER='bob@localhost';.

B. Execute SHOW ROUTINES WHERE DEFINER='bob@localhost'.

C. Execute SELECT * FROM INFORMATION_SCHEMA. ROUTINES WHERE DEFINER='bob@localhost';.

D. Execute SELECT * FROM INFORMATION_SCHEMA. PROCESSLIST WHERE USER='bob' and HOST=' localhost';.

E. Examine the Mysql error log for other ERROR 1449 messages.

Browse 100 Q&As
Questions 6

Which two statements are true about InnoDB auto-increment locking?

A. The auto-increment lock can be a table-level lock.

B. InnoDB never uses table-level locks.

C. Some settings for innodb_autoinc_lock_mode can help reduce locking.

D. InnoDB always protects auto-increment updates with a table-level lock.

E. InnoDB does not use locks to enforce auto-increment uniqueness.

Browse 100 Q&As
Questions 7

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?

A. 102; top-level statements are logged, but LOAD DATA INFILE is logged as a separate event.

B. 3; only the top-level statements are logged.

C. 111; top-level statements and all lower-level statements are logged.

D. 12; only top-level statements and stored procedure events are logged.

Browse 100 Q&As
Questions 8

You execute the following statement in a Microsoft Windows environment. There are no conflicts in the path name definitions.

C:

\> mysqld install Mysql56 defaults file = C : \my opts.cnf What is the expected outcome?

A.

Mysqld acts as an MSI installer and installs the Mysql 5.6 version, with the c: \my-opts.cnf configuration file.

B.

Mysql is installed as the Windows service name Mysql56, and uses c: \my-opts.cnf as the configuration file

C.

An error message is issued because install is not a valid option for mysqld.

D.

A running Mysql 5.6 installation has its runtime configuration updated with the server variables set in c: \my-opts.cnf.

Browse 100 Q&As
Questions 9

Which hardware storage option, when set up with redundant disks, offers the least stability, availability, and reliability for Mysql data?

A. RAID 5

B. iSCSI

C. SAN (Storage Area Network)

D. NFS (Networked File System)

Browse 100 Q&As
Questions 10

Consider the following table:

REATE TABLE ‘game’ (

‘id’ int (10) unsigned NOT NULL AUTO_INCREMENT,

‘keyword’ varchar (45) DEFAULT NULL,

‘date’ datetime NOT NULL,

PRIMARY KEY (‘id’ , ‘date’),

UNIQUE KEY ‘keyword_idx’ (‘keyword’ , ‘date’)

) ENGINE=InnoDB DEFAULT CHARSET=latin1

PARTITION BY RANGE (TO_DAYS (date) ) (

PARTITION g201301 VALUES LESS THAN (TO_DAYS (‘2013-01-01 00:00:00’) ),

PARTITION g201302 VALUES LESS THAN (TO_DAYS (‘2013-02-01 00:00:00’) ),

PARTITION g201303 VALUES LESS THAN (TO_DAYS (‘2013-03-01 00:00:00’) ),

PARTITION g201304 VALUES LESS THAN (TO_DAYS (‘2013-04-01 00:00:00’) ),

PARTITION gMORES VALUES LESS THAN (MAXVALUE) );

Which method should used to add a new g201305 partition to the table?

A. ALTER TABLE games REORGANIZE PARTITION (gMORES) INTO g01305 VALUES LESS THAN (TO_DAYS (`2013-05-01 00:00:00') ), gMORES VALUES LESS THAN (MAXVALUE) );

B. ALTER TABLE games ADD PARTITION g201350 VALUES LESS THAN (TO_DAYS (`2013-05-01 00:00:00') );

C. ALTER TABLE games COALESCE PARTITION (gMORES) INTO g01305 VALUES LESS THAN (TO_DAYS (`2013-05-01 00:00:00') ), gMORES VALUES LESS THAN (MAXVALUE) );

D. ALTER TABLE games SPLIT PARTITION (gMORES) INTO g201305 VALUES LESS THAN (TO_DAYS (`2013-05-01 00:00:00') ), gMORES VALUES LESS THAN (MAXVALUE) );

E. ALTHER TABLE games DROP PATITION gMORES, ADD PARTITION g201305 VALUES LESS THAN (TO_DAYS (`2013-05-01 00:00:00') ), gMORES VALUES LESS THAN (MAXVALUE) );

Browse 100 Q&As
Questions 11

You want a record of all queries that are not using indexes. How would you achieve this?

A. By enabling the Slow Query Log because all queries that are not using indexes will be logged automatically

B. By enabling the Error Log because not using indexes is an error

C. By enabling the Slow Query Log and using the log-queries-not-using-indexes option

D. By enabling the Error Log and using the log-queries-not-using-indexes option

Browse 100 Q&As
Questions 12

Which MySQL utility program should you to process and sort the slow Query log based on query time or average query time?

A. Mysqlslow

B. Mysqldumpslow

C. Mysqlshow

D. Mysqldump

E. Mysqlaccess

Browse 100 Q&As
Questions 13

Which High Availability solution can provide a consistent, time-delayed (for example, one hour) snapshot of the live production database?

A. MySQL Replication

B. Distributed Replication Block Device

C. Windows Server Failover Clustering

D. MySQL Cluster

Browse 100 Q&As
Questions 14

Compare a typical Distributed Replicated Block Device (DRBD) with MySQL Standard Replication using master-slave replication.

Which two statements are correct?

A. Both technologies use the TCP/IP stack as their primary transmission medium.

B. DRBD uses shared-disk technology.

C. Both technologies guarantee an identical copy of data on the secondary node.

D. Only MySQL can maintain a time-delayed copy of data on the secondary node.

Browse 100 Q&As
Questions 15

A MySQL replication slave is set up as follows: User all InnoDB tables Receives ROW-based binary logs Has the read-only option

The replication slave has been found in an error state.

You check the MySQL error log file and find the following entries:

2013-08-27 13:55:44 9056 [ERROR] Slave SQL: Could not execute Write_rows event on table test.tl; Duplicate entry `3' for key'PRIMARY' , Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log 56_master-bin.000003, end_log_pas 653, Error_code: 1062 2013-08-27 13:55:44 9056 [Warning] Salve: Duplicate entry `3' for key `PRIMARY' Error_code: 1062 2013-08-27 13:55:44 9056 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START", We stopped at log `56_master- bin.000003' position

What are two possible causes for this error to occur?

A. The slave was created with mysqldump u root p skip-lock-table--all-databases > /data/data.sql

B. The slave user does have INSERT, UPDATE, or DELETE permission and cannot execute the write_rows function.

C. For tables with UNIQUE keys, statement-based replication must be used maintain integrity.

D. The root user on the slave has executed FLUSH LOGS, causing the relay-log to doublewrite.

E. The applications have the SUPER privilege, which allows them to update rows.

Browse 100 Q&As
Questions 16

Which two statements describe the behavior of the server's SQL mode?

A. The server's SQL mode determines how the server should behave when performing data validation check and interpreting different forms of syntax.

B. The server's SQL mode determines whether the server should be read-only or should accept commands such as INSERT and UPDATE.

C. The server's SQL mode can be changed at the session level with a SET SESSION sql_mode="new_value" command.

D. The server's SQL mode, when globally set on a slave server, applies to events sent from the master.

Browse 100 Q&As
Questions 17

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?

A. It shows the total size of the index row.

B. It shows how many columns in the index are examined.

C. It shows the number of characters indexed in the key.

D. It shows how many bytes will be used from each index row.

Browse 100 Q&As
Questions 18

You have a server that has very limited memory but has a very large table.

You will use mysqldump to back up this table.

Which option will ensure mysqldump will process a row at a time instead of buffering a set of rows?

A. -- quick

B. -- skip-buffer

C. -- single-transaction

D. -- tab

Browse 100 Q&As
Exam Code: 1Z0-883
Exam Name: MySQL 5.6 Database Administrator
Last Update: Apr 22, 2024
Questions: 100 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99