Free Oracle 1z0-908 Exam Questions (page: 5)

Examine this command, which executes successfully:

$ mysqlrouter --bootstrap user@hostname:port --directory=directory_path

Which activity is performed?

  1. MySQL Router is configured based on the information in files in directory_path.
  2. MySQL Router configures itself based on the information retrieved from the InnoDB cluster metadata server.
  3. MySQL Router is restarted.
  4. MySQL Router configures all the cluster nodes based on the information retrieved from the InnoDB cluster metadata server.

Answer(s): B


Reference:

https://dev.mysql.com/doc/mysql-router/8.0/en/mysqlrouter.html



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?

  1. Roll back the transaction and start the transaction again in the same session.
  2. Re-execute the failed statement in your transaction.
  3. Change the default database and re-execute the failed statement in your transaction.
  4. Close the connection, reconnect, and start the transaction again.

Answer(s): B



Examine these statements, which execute successfully:

CREATE ROLE r_world_rd;
GRANT SELECT ON world.* TO r_world_rd;
CREATE USER john IDENTIFIED BY `P@ssw0rd';
GRANT r_world_rd TO john;

Examine these statements issued by user John:



What is the reason for the error?

  1. The statement was blocked by MySQL Firewall.
  2. John has not activated the role.
  3. John needs to reconnect to the database.
  4. The DBA needs to execute FLUSH PRIVILEGES.

Answer(s): B



Binary log events for the `mydb1' schema must be copied to a different schema name `mydb2'.

Which command will do this?

  1. mysqlbinlog --rewrite-db='mydb1->mydb2' | mysql
  2. mysqlbinlog --datebase=mydb1 --database=mydb2 | mysql
  3. mysqlbinlog --rewrite-db='mydb1' --rewrite-db='mydb2' | mysql
  4. mysqlbinlog --read-from-remote-server --raw | sed `s/mydb1/mydb2/g' | mysql

Answer(s): D



Viewing page 5 of 36



Post your Comments and Discuss Oracle 1z0-908 exam prep with other Community members:

1z0-908 Exam Discussions & Posts