Oracle 1z0-883 Exam Practice Questions (P. 2)
- Full Access (100 questions)
- Six months of Premium Access
- Access to one million comments
- Seamless ChatGPT Integration
- Ability to download PDF files
- Anki Flashcard files for revision
- No Captcha & No AdSense
- Advanced Exam Configuration
Question #6
Mysqldump was used to create a single schema backup;
Shell> mysqldump u root p sakila > sakila2013.sql
Which two commands will restore the sakila database without interfering with other running database?
Shell> mysqldump u root p sakila > sakila2013.sql
Which two commands will restore the sakila database without interfering with other running database?
- AMysql> USE sakila; LOAD DATA INFILE ‘sakila2013.sql’;
- BShell> mysql –u root –p sakila <sakila2013.sql
- CShell> mysqlimport –u root –p sakila sakila2013.sql
- DShell> mysql –u root -p –e ‘use sakila; source sakila2013.sql’
- EShell> mysql –u root –p –silent < sakila2013.sql
Correct Answer:
BD
C: If you need to restore a database that already exists, you'll need to use mysqlimport command. The syntax for mysqlimport is as follows: mysqlimport -u [uname] -p[pass] [dbname] [backupfile.sql]
E: Basic syntax to restore:
mysql -u root -p[root_password] [database_name] < dumpfilename.sql
Reference: How to Back Up and Restore a MySQL Database
BD
C: If you need to restore a database that already exists, you'll need to use mysqlimport command. The syntax for mysqlimport is as follows: mysqlimport -u [uname] -p[pass] [dbname] [backupfile.sql]
E: Basic syntax to restore:
mysql -u root -p[root_password] [database_name] < dumpfilename.sql
Reference: How to Back Up and Restore a MySQL Database
send
light_mode
delete
Question #7
Consider the Mysql Enterprise Audit plugin.
You are checking user accounts and attempt the following query:
Mysql> SELECT user, host, plugin FROM mysql.users;
ERROR 1146 (42S02): Table mysql.users doesnt exist
Which subset of event attributes would indicate this error in the audit.log file?
You are checking user accounts and attempt the following query:
Mysql> SELECT user, host, plugin FROM mysql.users;
ERROR 1146 (42S02): Table mysql.users doesnt exist
Which subset of event attributes would indicate this error in the audit.log file?
- ANAME="Query" STATUS="1146" SQLTEXT="select user,host from users"/>
- BNAME="Error" STATUS="1146" SQLTEXT="Error 1146 (42S02): Table ‘mysql.users’ doesn’t exist"/>
- CNAME="Query" STATUS="1146" SQLTEXT=" Error 1146 (42S02): Table ‘mysql.users’ doesn’t exist"/>
- DNAME="Error" STATUS="1146" SQLTEXT="select user,host from users"/>
- ENAME="Error" STATUS="0" SQLTEXT="Error 1146 (42S02): Table ‘mysql.users’ doesn’t exist"/>
Correct Answer:
A
A
send
light_mode
delete
Question #8
Which query would you use to find connections that are in the same state for longer than 180 seconds?
- ASHOW FULL PROCESSLIST WHEER Time > 180;
- BSELECT * FROM INFORMATION_SCHEMA.EVENTS SHERE STARTS < (DATE_SUB (NOW ( ), INTERVAL 180 SECOND) );
- CSELECT * FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE STATE < (DATE_SUB (NOW ( ), INTERVAL 180 SECOND) );
- DSELECT * FROM INFORMATION_SCHEMA.PROCESSLIST WHERE TIME > 180;
Correct Answer:
D
The show processlist cannot use where clause.
mysql> show full processlist where time>0;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where time>0' at line 1
D
The show processlist cannot use where clause.
mysql> show full processlist where time>0;
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'where time>0' at line 1
send
light_mode
delete
Question #9
A database exists as a read-intensive server that is operating with query_cachek_type = DEMAND.
The database is refreshed periodically, but the resultset size of the queries does not fluctuate.
Note the following details about this environment:
✑ A web application uses a limited set of queries.
✑ The Query Cache hit rate is high.
✑ All resultsets fit into the Query Cache.
✑ All queries are configured to use the Query Cache successfully.
The response times for queries have recently started to increase. The cause for this has correctly been identified as the increase in the number of concurrent users accessing the web service.
Based solely on the information provided, what is the most likely cause for this slowdown at the database level?
The database is refreshed periodically, but the resultset size of the queries does not fluctuate.
Note the following details about this environment:
✑ A web application uses a limited set of queries.
✑ The Query Cache hit rate is high.
✑ All resultsets fit into the Query Cache.
✑ All queries are configured to use the Query Cache successfully.
The response times for queries have recently started to increase. The cause for this has correctly been identified as the increase in the number of concurrent users accessing the web service.
Based solely on the information provided, what is the most likely cause for this slowdown at the database level?
- AThe Query Cache is pruning queries due to an increased number of requests.
- BQuery_cache_min_res_unit has been exceeded, leading to an increased performance overhead due to additional memory block lookups.
- CMutex contention on the Query Cache is forcing the queries to take longer due to its single-threaded nature.
- DThe average resultset of a query is increasing due to an increase in the number of users requiring SQL statement execution.
Correct Answer:
C
C
send
light_mode
delete
Question #10
You have a login-path named "adamlocal" that was created by using the mysql_config_editor command.
You need to check what is defined for this login_path to ensure that it is correct for you deployment.
You execute this command:
$ mysql_config_editor print login-path=adamlocal
What is the expected output of this command?
You need to check what is defined for this login_path to ensure that it is correct for you deployment.
You execute this command:
$ mysql_config_editor print login-path=adamlocal
What is the expected output of this command?
- AThe command prints all parameters for the login-path. The password is printed in plain text.
- BThe command prints all parameters for the login-path. The password is shown only when you provide the –password option.
- CThe command prints all parameter for the login-path. The password is replaced with stars.
- DThe command prints the encrypted entry for the login-path. The is only possible to see if an entry exists.
Correct Answer:
C
C
send
light_mode
delete
All Pages