1Z0-888 Exam Questions
94 real 1Z0-888 exam questions with expert-verified answers and explanations. Page 1 of 2.
- Question #1Backup and Recovery
You have just executed a manual backup by using this command: mysqldump -u root -P --socket=/tmp/my.sock --backup-dir=/my/backup/ backup The operation completed without error. What...
MySQL Enterprise BackupPhysical Backup StatesPost-backup OperationsBackup Directory Management - Question #2Performance Tuning
Which MySQL utility program should you use to process and sort the Slow Query Log based on query time or average query time?
Slow Query LogPerformance DiagnosticsMySQL UtilitiesQuery Analysis - Question #3Performance Tuning
Consider: mysql> EXPLAIN SELECT * FROM City WHERE Name = 'Jacksonville' AND CountryCode = 'USA'\G *************************** 1. row *************************** id: 1 select_type:...
EXPLAIN statementIndex optimizationKey lengthQuery execution - Question #4MySQL Architecture
Examine the mydata table and SELECT statements: CREATE TABLE `mydata` ( `id` int (11) NOT NULL AUTO_INCREMENT, `a` int (11) DEFAULT NULL, `b` int (11) DEFAULT NULL, PRIMARY KEY (`i...
InnoDB LockingTransaction Isolation LevelsGap LocksIndex Scanning - Question #5Security
A particular government's security policy is to have very strict data encryption and safety settings. This is done by restricting access based on their own CA authority and limitin...
X.509 certificatesREQUIRE clauseCertificate-based authenticationCA validation - Question #6Performance Tuning
Exhibit: mysql> EXPLAIN SELECT * FROM City Where CountryCode = 'USA'\G ***************************1.row*************************** id: 1 select_type: SIMPLE table: City type: ALL p...
EXPLAINQuery OptimizationIndexesExecution Plans - Question #7Backup and Recovery
Is it true that binary backups always take less space than text backups?
binary backupslogical backupsInnoDB pagesbackup size optimization - Question #8Backup and Recovery
You have a consistent InnoDB backup created with mysqldump, the largest table is 50 GB in size. You start to restore your backup with this command: shell> mysql -u root -P < backup...
InnoDB bulk insertsindex consistencyconstraint checkingrestore performance - Question #9MySQL Architecture
Which two options describe how MySQL Server allocates memory?
Memory AllocationPer-thread MemoryGlobal MemoryServer Startup - Question #10Replication
Which three are key advantages of standard MySQL replication?
MySQL ReplicationRead ScalingAsynchronous ReplicationConfiguration - Question #11Performance Tuning
After analysis on the slow query log on a high-end OLTP service, the table identified in the slow queries is: CREATE TABLE transactions ( User VARCHAR (255) NOT NULL, Amount DECIMA...
Schema DesignStorage EnginesOLTP PerformanceData Types - Question #12Security
A database database, 'db_prod', just disappeared from your production MySQL instance. In reviewing the available MySQL logs (General, Audit, or Slow) and your own application-level...
SQL InjectionInput ValidationAccount SecurityPrivilege Management - Question #13High Availability
Which three statements correctly describe MySQL InnoDB Cluster?
MySQL InnoDB ClusterHigh AvailabilityGroup ReplicationAutomatic Failover - Question #14High Availability
Force Majeure is a catastrophic failure on a major level of the database operation. Regular backups are key to helping avoid data loss in such situations. Which two other steps can...
Disaster RecoveryGeographic FailoverHigh AvailabilityData Center Redundancy - Question #15Monitoring
Consider these global status variables: mysql> SELECT * FROM performance_schema.global_status WHERE VARIABLE_NAME LIKE '%connection%' OR VARIABLE_NAME LIKE '%thread%'; +-----------...
Connection ManagementThread MonitoringStatus VariablesSystem Performance - Question #16Performance Tuning
You inherited a busy InnoDB OLTP Instance with 100 schemas and 100 active users per schema. - Total dataset size is 200G with an average schema size of 2G. - The data is transient...
InnoDB configurationbuffer pool sizingmemory allocationOLTP performance - Question #17Security
You have the following in my.cnf configuration file: [mysqld] default_authentication_plugin=sha256_password You want to create a new user who will be connecting from the IP address...
authentication pluginsSHA-256 hashingCREATE USER syntaxuser management - Question #18Replication
You will be setting up a replication slave by using mysqldump. You will need a consistent backup taken from your running production server. The process should have minimal impact t...
mysqldump optionsbackup consistencyreplication setuptable locking - Question #19Installation and Configuration
The /myfolder/my.cnf file has option set: [mysqld] skip-log-bin /myfolder2/my.cnf has this option set: [mysqld] log-bin = /valid/path/to/mysqlbinlog All mentioned paths are accessi...
configuration filescommand-line optionsoption precedenceMySQL startup - Question #20Replication
An existing master-slave setup is currently using a delayed replication of one hour. The master has crashed and the slave must be "rolled forward" to provide all the latest data. T...
delayed replicationCHANGE MASTER TOslave recoveryroll-forward procedure - Question #21Replication
A simple master-to-slave replication is currently being used. This information is extracted from the SHOW SLAVE STATUS output: Last_SQL_Error: Error 'Duplicat entry '8' for key 'PR...
GTIDReplication Error HandlingDuplicate Key ErrorSlave Synchronization - Question #22Installation and Configuration
After rebooting the host, you attempt to start the mysqld service. You get the following error: Can't start server: Bind on TCP/IP port: Address already in use What is the most lik...
socket filesport bindingservice startuptroubleshooting - Question #23Replication
You enable binary logging on MySQL Server with the configuration: binlog-format=STATEMENT log-bin Which database updates are logged on the master server to the binary log by defaul...
binary loggingtemporary tablesdefault databaseSTATEMENT format - Question #24Backup and Recovery
What two statements are true regarding FLUSH TABLES FOR EXPORT?
FLUSH TABLES FOR EXPORTInnoDB tablespacesTable exportTemporary tables - Question #25Performance Tuning
Examine the mysqldumpslow output: Count: 109 Time=66.73s (6183s) Lock-0.00s (0s) Rows=3990419.2 (434955691), appuser[appuser]@localhost SELECT id, firstname, surname, address, age,...
mysqldumpslowquery performance diagnosisfull table scannetwork bandwidth - Question #26Replication
Group Replication uses global transaction identifiers to track executed transactions and are fundamental in avoiding transaction conflict. Which additional three steps help in avoi...
Group ReplicationTransaction Conflict PreventionIsolation LevelsPrimary Keys - Question #27MySQL Architecture
Which statement best describes the purpose of the InnoDB buffer pool?
InnoDB buffer poolMemory cachingData structuresPerformance - Question #28Installation and Configuration
One of your colleagues is trying to make a change using the mysql command-line client for his or her application session: mysql> SET SESSION max_connections = 200; Why does the com...
variable scopeSESSION vs GLOBALmax_connectionsdynamic variables - Question #29Installation and Configuration
MYSQL is installed on a Linux server and has this configuration: [mysqld] user=mysql datadir=/data/mysql/ As the 'root' user, you change the datadir location by executing: shell> c...
File ownershipMySQL user configurationDatadir setupProcess permissions - Question #30Replication
There is a problem with the slave replicating from the master. Which statement describes the cause of the problem?
Binary LoggingReplication ConfigurationMaster-Slave ReplicationSlave Troubleshooting - Question #31Monitoring
What is the best method for monitoring Group Replication conflict resolution?
Group ReplicationConflict ResolutionPERFORMANCE_SCHEMAMonitoring - Question #32Security
To satisfy a security requirement, you have created or altered some user accounts to include REQUIRE X509. Which additional task needs to be performed for those user accounts to fu...
X509 certificatesSSL/TLSuser authenticationserver configuration - Question #33Backup and Recovery
You created a backup of the world database with this command: `shell> mysqldump --opt world > dump.sql` Which two will import the data from dump.sql?
backup restoredata importmysqlimportLOAD DATA INFILE - Question #34MySQL Architecture
How does the InnoDB storage engine handle deadlocks when they are detected?
InnoDB deadlocksTransaction rollbackConcurrency controlLock management - Question #35Backup and Recovery
Which two statements describe how InnoDB recovery works?
InnoDB recoveryinnodb_force_recoverycrash recoverytransaction recovery - Question #36Performance Tuning
The query is not using an index. Which two methods can be used to allow the query to use an index?
Index usageQuery optimizationFunction-based expressionsExecution plans - Question #37MySQL Architecture
Consider this statement on a RANGE-partitioned table: `mysql> ALTER TABLE orders DROP PARTITION p1, p3;` What is the outcome of executing this statement?
partitioningALTER TABLEDDLDROP PARTITION - Question #38MySQL Architecture
When you examine a new MySQL installation with default configuration, you find a file ibdata1 in the database directory. Which two statements are true about this file?
InnoDB system tablespacetablespace architecturedata storage filesMySQL innodb - Question #39Performance Tuning
Consider the join_buffer_size parameter in MySQL Server. Which two statements are true about the join buffer?
join_buffer_sizequery optimizationjoin algorithmsmemory allocation - Question #40Backup and Recovery
A single InnoDB table has been dropped by accident. You are unable to use an additional intermediate MySQL instance to restore the table. Which two backup methods can be used to re...
backup methodstable restorationInnoDB recoveryonline backups - Question #41Security
The following grants were executed: `GRANT CREATE ROUTING ON sales.* TO 'webadmin'@'%';` `GRANT ALTER ON PROCEDURE sales.myproc TO 'webadmin'@'%';` A user successfully connects to...
stored proceduresprivilege grantsobject ownershipDROP permissions - Question #42Performance Tuning
A MySQL server was initialized with separate UNDO tablespaces. Users complain that when they roll back large transactions, the time to process the reverts takes too long. The DBA w...
UNDO tablespacesinnodb_undo_directoryTablespace relocationInnoDB configuration - Question #43Performance Tuning
The MySQL error log shows: InnoDB: Warning: a long semaphore wait The relevant parts of the InnoDB monitor output shows: ---Thread 140259946129152 has waited at btr0sea.cc line 658...
InnoDB latchesAdaptive hash indexBuffer pool optimizationI/O threading - Question #44Backup and Recovery
Which two statements are true regarding the creating of new MySQL physical and logical backups?
Physical backupsLogical backupsBackup characteristicsBackup speed - Question #45Replication
You are using the Performance Schema to investigate replication on a slave which has a single master. The option slave-parallel-type is set to DATABASE. mysql> SELECT THREAD_ID, th...
Performance SchemaParallel ReplicationSlave WorkersReplication Bottlenecks - Question #46Backup and Recovery
There are multiple instances of MySQL Server running on a single OS that is backed up using the mysqldump command. The /etc/my.cnf contains default values, for example, datadir=/va...
mysqlbackuprestore operationsmulti-instance setup--defaults-file - Question #47Security
You have created a new user with this statement: `CREATE USER 'erika'@'localhost' IDENTIFIED BY 'first#1Pass' PASSWORD EXPIRE;` What is the outcome?
User ManagementPassword ExpirationAuthenticationCREATE USER - Question #48Installation and Configuration
An administrator installs MySQL to run under a mysql OS account. The administrator decides to disable logins to the mysql account by using /nologin or /bin/false as the user's shel...
OS account configurationLogin securityDaemon executionInstallation prerequisites - Question #49Monitoring
Consider the CHECK TABLE command. In which two situations should this command be used? (Choose two.)
CHECK TABLETable MaintenanceIntegrity CheckingCorruption Detection - Question #50Replication
You are using replication and the binary log files on your master server consume a lot of disk space. Which two steps should you perform to safely remove some of the older binary l...
binary logsreplicationmaster-slavePURGE BINARY LOGS