Oracle: Question & Answers
Oracle: Question & Answers
1Z0-908
MySQL 8.0 Database Administrator
QUESTION & ANSWERS
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
QUESTION: 1
Option D : It flushes dirty pages in the buffer pool to the REDO logs.
Correct Answer: B
QUESTION: 2
On a master server that is using Statement-based replication a table of log data has become very large. You
decide to delete 100,000 rows.Which two methods can be independently invoked to ensure that the delete is
properly propagated to the slave? (Choose two.)
Option A : Use the LIMIT clause to limit the deletion to 100,000 rows.
Option B : Change the replication mode to MIXED before issuing any delete statements when the LIMIT
clause is used.
Option C : Use the LIMIT clause in conjunction with the ORDER BY clause.
Option D : Use the data modification is non-deterministic, the query optimizer will resolve any potential
issues.
QUESTION: 3
When the backup is taken, there are no errors.Why are triggers missing from the backup?
Option A : The FILE privilege is required to back up the TRG files stored in the database directory.
Option B : The PROCESS privilege will allow the user access to process items such as triggers and
functions.
Option C : The ALL privilege is required to back up triggers because triggers have a wide variety of
abilities.
Option D : The TRIGGER privilege Is required to create, execute, and show triggers in a database.
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Correct Answer: D
QUESTION: 4
You want to shutdown a running Mysql Server cleanly.Which three commands that are valid on either
Windows or Linux will achieve this?
QUESTION: 5
Which query would you use to find connections that are in the same state for longer than 100 seconds?
Correct Answer: C
QUESTION: 6
Which three methods will show the storage engine for the Country table? (Choose three.)
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option B : SHOW ENGINE Country STATUS;
QUESTION: 7
You are attempting to secure a MySQL server by using SSL encryption.On starting MySQL, you get this
error:[ERROR] mysqld: unknown option ‘--ssl’What is the cause of the error?
Option B : The server was not started with the --enable–ssl-plugin option.
Option D : The mysqld binary was not compiled with SSL support.
Correct Answer: D
QUESTION: 8
You have a MySQL replication setup and you intentionally stop the SQL thread on the slave.mysql> SHOW
SLAVE STATUS\G... Slave_IO_Running: YesSlave_SQL_Running: NoWhat are two reasons that you may stop
the SQL thread on the slave while keeping the I/O thread running? (Choose two.)
Option A : to allow the remaining events to be processed on the slave while not receiving new events
from the master
Option D : to prevent schema changes from propagating to the slave before they are validated
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Correct Answer: B,C
QUESTION: 9
Consider the three binary log files bin.00010, bin.00011, and bin.00012 from which you want to restore
data.Which method would use mysqlbinlog for greater consistency?
Option A : shell> mysqlbinlog bin.00010 | mysql shell> mysqlbinlog bin.00011 | mysql shell> mysqlbinlog
bin.00012 | mysql
Correct Answer: B
QUESTION: 10
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? (Choose two.)
Option A : Each extra column in the copy with more columns must not have a default value.
Option B : Columns that are common to both versions of the table must be defined in the same order on
the master and the slave.
Option C : The slave database cannot have more columns than the master. Only the master database can
have more columns.
Option D : Columns that are common to both versions of the table must come first in the table definition,
before any additional columns are additional columns are defined on either server.
Option E : The master database cannot have more columns than the slave. Only the slave deatbase can
have more columns.
QUESTION: 11
Which three statements are true about memory buffer allocation by a MySQL Server? (Choose three.)
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option A : Global buffers such as the InnoDB buffer pool are allocated after the server starts, and are
never freed.
Option B : Thread buffers are allocated when a client connects, and are freed when the client disconnects.
Option C : Buffers that are needed for certain operation are allocated when the operation starts, and freed
when it ends.
Option D : User buffers are allocated at server startup and freed when the user is dropped.
Option E : All dynamic buffers that are set with a SET GLOBAL statement immediately get allocated
globally, and are never freed.
QUESTION: 12
You want to create a temporary table named OLD_INVENTORY in the OLD_INVENTORY database on the
master server. This table is not to be replicated to the slave server.Which two changes would ensure that the
temporary table does not propagate to the slave? (Choose two.)
Option B : Use the –replicate-do-db, –replicate-do-table, or –replicate-wild-do-table option with the value
equal to OLD_INVENTORY.
Option C : Change the binlog_format option to ROW and restart mysqld before you create the
OLD_INVENTORY table.
Option D : Stop SQL_THREAD on the slave until you have finished using the OLD_INVENTORY temporary
table.
QUESTION: 13
How can we start MySQL when it was installed using RPM in Oracle Enterprise Linux 7?
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option D : mysqladmin -u root start
Correct Answer: B
QUESTION: 14
In a test database, you issue the SELECT … INTO OUTFLLE statement to create a file with your t1 table
data.You then TRUNCATE this table to empty it.mysql> SELECT * INTO OUTFILE ‘/tmp/t1.sql’ from t1;mysql>
TRUNCATE t1;Which two methods will restore data to the t1 table? (Choose two.)
QUESTION: 15
Option A : Mysqld uses internal configuration versioning and reverts to the previous configuration.
Option B : When using mysql_config_editor for configuration adjustments, it detects incorrect syntax and
typing mistakes.
Option C : The mysqld_safe script skips the unknown variable and starts using the remaining
configuration changes.
Option D : Mysqld prints to the error log about an unknown variable, and then exits.
Correct Answer: D
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
QUESTION: 16
You are setting up a new server and you want to reserve 50GB of RAM for InnoDB use. What option would
you set
Option A : innodb_ram_size=50GB
Option B : innodb_buffer_pool_size=50GB
Option C : innodb_buffer_pool=50G
Correct Answer: B
QUESTION: 17
You enable binary logging on MySQL Server with the configuration: binlog-format=STATEMENT log-binWhich
database updates are logged on the master server to the binary log by default?
Correct Answer: A
QUESTION: 18
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 help avoid data loss in a major
catastrophe? (Choose two.)
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option F : Use on-site network-attached storage to separate service from data.
QUESTION: 19
When using MySQL Group Replication you can use the following storage engines:
Option B : InnoDB
Option C : MyISAM
Correct Answer: B
QUESTION: 20
Which three are properties of the MyISAM storage engine? (Choose three.)
QUESTION: 21
Why should you be selective when granting the PROCESS privilege to an account?
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option A : It allows a client to process scripts.
Option C : It allows a client to see another user's queries with the SHOW PROCESSLIST command.
Correct Answer: C
Explanation/Reference:
https://dev.mysql.com/doc/refman/8.0/en/privileges-provided.html#priv_process
QUESTION: 22
Which two methods will provide the total number of partitions on a table? (Choose two.)
Correct Answer: A
QUESTION: 23
You have forgotten the root user account password. You decide to reset the password and execute:
Option A : --old-passwords, to start MySQL to use the old password format while running without the grant
tables.
Option B : --reset-grant-tables, to start the server with only the mysql database accessible.
Option C : --read-only, to set all data to read-only except for super users
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option D : --skip-networking, to prohibit access from remote locations
Correct Answer: D
QUESTION: 24
You have just created a replication slave from a backup of the master made with mysqldump:
You try to log in to the slave with the application user, but fail as follows:
The login works on the master.Which two changes to the process can fix the issue?
Option A : After the restore, log in to the database and execute FLUSH PRIVILEGES.
Option C : Add a second dump for the 'mysql' database; --all-databases does not include it.
Option D : Use the --grants option to include GRANT statements in the dump.
Correct Answer: B
Explanation/Reference:
https://dev.mysql.com/doc/refman/5.7/en/mysqldump.html#option_mysqldump_flush-privileges
QUESTION: 25
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.Assume that all instruments and consumers are enabled and
all threads are instrumented.Which two facts can be concluded from the given output? (Choose two.)
Option A : The salve has two intermediate relay slaves connected to it.
Option E : The slave cannot process the relay log fast enough to use all threads.
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option F : The server needs more cores to use all slave threads.
Explanation/Reference:
https://dev.mysql.com/doc/refman/5.7/en/replication-options-slave.html#sysvar_slave_parallel_type
QUESTION: 26
You execute mysqladmin shutdown on a MySQL server that is decribed as follows:- It is running with both
active and idle client connections.- It has open transactions against InnoDB.- It has active multi-row inserts
into MyISAM engine tables.- Innodb_fast_shitdown is set to 1.What are three effects of shutting down the
server by using a mysqladmin shutdown command?
Option B : Connections with statements running against MyISAM tables wait for completion.
Option C : New client connections are not accepted after shutdown is initiated.
Option D : Connections are accepted during the shutdown process because a graceful shutdown can take
large amounts of time.
QUESTION: 27
A MySQL replication master is set up by using global reansaction identifiers(GTIDs). You execute this
statement:mysql> CREATE TABLE datatarget SELECT * FROM datasource;ERROR 1786 (HY000): CREATE
TABLE ... SELECT is forbidden when @@GLOBAL.ENFORCE_GTID_CONSISTENCY = 1.Why is this statment
forbiden?
Option A : GTIDs have detected thar a slave is inconsistent and therefore, disallow upadtes until the
problem is resolved.
Option B : The datasource table is using an older InnoDB tablespace format, which is not compatible with
GTIDs.
Option C : The datasource table is using the MyISAM engine, which is not compatible with GTIDs.
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Correct Answer: D
Explanation/Reference:
https://dev.mysql.com/doc/refman/8.0/en/replication-options-gtids.html
QUESTION: 28
User bob@% has the following roles granted: app_read and app_write.How would you show the privileges for
bob@% when it uses app_write? (Choose one).
Correct Answer: B
Explanation/Reference:
Roles can be not enabled by default, you will need to usie the SHOW GRANTS FOR… USING syntax to show privileges for non-
default roles.
QUESTION: 29
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:
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Which two statements are true? (Choose two.)
Option B : Executing ALTER TABLE transactions will enable you to free up disk space.
Option C : Truncating the sales and leads table will free up disk space.
Option D : Truncating the transactions table will free up the most disk space.
Correct Answer: A
QUESTION: 30
Which two statements are true about using MySQL Enterprise Monitor Query Analyzer? (Choose two.)
Option A : The single query QRTi pie chart in the Query Analyzer view is based on the average execution
of all statements.
Option B : It is possible to retrieve a normalized statement, but never the exact statement that was
executed.
Option C : It is possible to configure the Query Analysis built-in advisor to get notified about slow query
execution.
Option D : It is possible to list and analyze statements in an arbitrary graph range selection from
timeseries graphs.
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option E : It is possible to import data into the Query Analyzer from heterogeneous sources, such as CSV.
QUESTION: 31
Option B : It creates a logical backup of all metadata, but contains no table data.
Option C : It returns an error because the mysqldump command should have been used.
Correct Answer: B
QUESTION: 32
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 theSSL/TLS connection to MySQL?
Option A : REQUIRED
Option B : VERIFY_CA
Option C : VERIFY_IDENTITY
Option D : PREFERRED
Option E : DISABLED
Correct Answer: A
QUESTION: 33
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? (Choose two.)
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option B : Data files could be deleted.
Option C : SQL injections could be used to insert bad data into the database.
Option E : Extra startup time would be required for the MySQL server to reset the privileges.
QUESTION: 34
You have an InnoDB Cluster configured with three servers.Examine this command, which executes
successfully:mysqldump -uroot -p -d mydatabase > mydatabase_backup.sqlDue 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 runningWhich two actions, either one of which, can fix this
error and allow a successful restore of the cluster? (Choose two.)
Option A : Stop all instances except the primary read/write master instance and run the restore.
Option D : Remove the group replication plugin from each instance before restoring.
QUESTION: 35
You have just installed MySQL on Oracle Linux and adjusted your /etc/my.cnf parameters to suit your
installation.Examine the output:
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
What statement is true about the start attempt?
Option A : MySQL server was not started due to a problem while executing process 2732.
Option B : MySQL server continued to start up even though another process existed.
Option C : systemd found the mysqld service disabled and failed to start it.
Option D : systemd waited for 30 seconds before timing out and start up failed.
Option E : systemd attempted to start mysqld, found another systemd mysqld process running, and shut
it down.
Correct Answer: A
QUESTION: 36
Which change enables the query to succeed while accessing fewer rows?
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option B : ALTER TABLE world.city ADD SPATIAL INDEX (Population);
Correct Answer: B
QUESTION: 37
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?
Option A : The slave relay logs should be deleted; then execute START SLAVE;
Option B : The relay logs from the master should be used to replace the corrupted relay logs.
Option C : The slave relay logs should be deleted; execute CHANGE MASTER to adjust the replication relay
log file name, then issue start SLAVE;
Correct Answer: B
QUESTION: 38
You are considering using file-system snapshots to back up MySQL.Which three statements are true?
(Choose three.)
Option B : They allow direct copying of table rows with operating system copy commands.
Option C : They work best for transaction storage engines that can perform their own recovery when
restored.
Option D : The backup window is almost zero from the perspective of the application.
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html
Option F : There is a slight performance cost while the snapshot is active.
QUESTION: 39
Option A : Firewall_cached_entries is the number of statements found in the query cache for users in
DETECTING mode.
Option B : Firewall_access_denied is the number of connection attempts from prohibited hosts that are
denied.
Correct Answer: C
QUESTION: 40
Which two are valid uses for binary logs on a MySQL instance? (Choose two.)
Option D : replication
https://www.oracledumpsfree.com/1Z0-908-exam-dumps.html