没有合适的资源?快使用搜索试试~ 我知道了~
MySQL5.7考试题.pdf
需积分: 33 25 下载量 109 浏览量
2019-09-22
23:38:03
上传
评论 2
收藏 811KB PDF 举报
温馨提示
试读
33页
mysql5.7 dba ocp试题(85题纠错版)。答案有纠错,但不可全信,只能参考
资源推荐
资源详情
资源评论
NO.1 To satisfy a securit y requirement , you have created or altered some user accounts to include
REQU I RE X5 0 9 .
Which addit ional t ask needs to be performed for those user accounts to fulfill the requirement t o use
X50 9?
A. Install the X509 plug-in on t he server.
B. Set t he X509 opt ion in the [client] section of the MySQL server's configuration file.
C. Restart the server with the --require-x509 option.
D. Distribute client digital cert ificates to the client computers being used to log in by t he user
account s.
E. Provide users access to the server's private key.
Answer: B
NO.2 A master-slave replication setup has the slave showing this error:
On t he mast er ser ver , t he bi nar y l ogs show:
What could explain this error? (Choose t wo.)
A. binlog_cache_size=1024 is too small and transactions are lost.
B. binlog_format=STATEMENT and a non-deterministic query was executed.
C. enforce_gt id_consistency=ON and consistency is broken between the master and t he slave.
D. The sync_relay_log=1000 sett ing on t he slave is t oo small.
E. sync_binlog=0 and the mast er server crashed.
Answer: A,C
NO.3 You attempt t o connect to a MySQL Server by using the mysql client program. However, you
receive this notice:
What would you run to fix t he issue?
A. the mysql_upgrade script
B. the mysql client with t he --ignore-password-hashing option
C. the mysql_secure_inst allation script to update server security settings
D. the mysql client with the --enable-cleartext-plugin option
E. the inst all plugin command for the mysql_cleartext_password plugin
Answer: C
Re f e r e n c e : h t t p : / / p l a n e t . m y sq l . c o m / e n t r y / ? i d = 3 4 0 7 7
IT Certification Guaranteed, The Easy Way!
2
NO.4 You are using the Performance Schema to invest igate replication on a slave which has a single
master. The option slave-parallel-type is set to DATABASE.
Assume t hat all inst rument s and consumer s are enabled and all t hreads are inst rument ed.
Which t wo fact s can be concluded from the given out put?
A. The salve has t wo intermediate relay slaves connected to it .
B. The slave is configured with slave_parallel_workers = 4
C. At most, two schemas are being updates concurrently.
D. THREAD_ID 21 has stopped running.
E. The slave cannot process the relay log fast enough to use all t hreads.
F. The server needs more cores to use all slave threads.
Answer: B,E
NO.5 One of your colleagues is trying to make a change using the mysql command-line client for his
or her application session.
The col l eague i nst ant messages you t hi s command:
mysql> SET SESSION max_connections = 200;
Why does the command fail?
A. max_connections requires t he GLOBAL scope.
B. Its current user does not have t he SUPER privilege.
C. max_connections is not a dynamic variable. You need to change the config file and restart the
database.
IT Certification Guaranteed, The Easy Way!
3
D. Users can control only the max_user_connections variable.
Answer: A
NO.6 You have a consist ent InnoDB backup created with mysqldump, the largest table is 50 GB in
size.
Yo u s t a r t t o r e s t o r e y o u r b a c k u p w i t h t h i s c o m m a n d ;
shel l > mysql -u r oot -p < backup.sql
Aft er 30 minut es, you not ice t hat t he rat e of r est or e seems t o have slowed down. No ot her processes
or external factors are affecting server performance.
Which is t he most likely explanation for t his slowdown?
A. The MySQL server has stopped inserting dat a to check index consist ency.
B. InnoDB is doing CRC32 checks over the tablespace data as it grows.
C. The MySQL server is taking a periodical snapshot of data so it can resume the restore if it is
interrupted mid-way.
D. InnoDB has filled t he redo log and now must flush the pages.
E. Secondary indexes no longer fit into the buffer pool.
Answer: A
NO.7 Aft er analysis on t he slow query log on a high-end OLTP service, the table identified in the slow
queries is:
What are the two most likely reasons for the slowness given t his out put?
A. Date should be a TIMESTAMP field for better performance.
B. The User field is too long for most names.
C. The engine type is not appropriat e to the applicat ion use.
D. Using default values for DATETIME causes t able scans.
E. No indexes are defined.
Answer: C,E
NO.8 An admin attempts to enforce stronger security by using these commands:
IT Certification Guaranteed, The Easy Way!
4
The admi n t hen l eaves t he syst em r unni ng wi t h t he speci f i ed changes. What ar e t w o r emai ni ng
secur i t y concer ns?
A. validat e_password_policy cannot be set without restart ing the MySQL instance.
B. The name of the dict ionary file is t oo obvious.
C. The dictionary file word list is too short.
D. validat e_password_dictionary_file cannot be set without restart ing the MySQL instance.
E. The validate_password plug-in has not been loaded.
F. The dictionary file is an insecure location.
Answer: B,F
NO.9 These details are shown when logged in t o an account:
Which set of stat ement s would match t he accounts shown?
A. mysql> CREATE USER 'employee'@'localhost ' IDENTIFIED BY 'more_secrets'; mysql> CREATE USER
''@'' IDENTIFIED BY 'valid_password' WITH PROXY
IT Certification Guaranteed, The Easy Way!
5
'employee'@'localhost';
B. mysql> CREATE USER 'employee'@'localhost' IDENTIFIED BY 'more_secrets'; mysql> GRANT PROXY
ON ' empl oyee' @' l ocal host ' TO ' r ober t ' @' localhost ' ;
C. mysql> CREATE USER 'robert '@'localhost' IDENTIFIED BY 'secret_password'; mysql>CREATE USER
'employee'@'localhost' IDENTIFIED BY 'more_secrets';
D. mysql> CREATE_USER ''@'' IDENTIFIED WITH authentication_pam ACCOUNT
LOCK;
mysql> CREATE USER 'employee'@'localhost' IDENTIFIED BY 'more_secrets'; mysql> GRANT PROXY
ON ' empl oyee' @' l ocal host ' TO ' ' @' ' ;
Answer: D
NO.10 You have a MySQL inst ance wit h the following variables in the / etc/ my.cnf file:
Yo u i ss u e t h e s e s t a t e m e n t s :
USE prices;
UPDATE sales.january SET amount =amount +1000;
An hour af t er excluding t he st at ement s, you realize t hat you made a mist ake and you want t o go t o
the binary log and look at the statements again.
Which stat ement is t rue? (Choose two.)
A. You would receive an error on the stat ement because you cannot update a different database that
what is specified with the USE statement.
B. The changes caused by the UPDATE stat ement are logged to the binary log because the instance is
using --binlog-format = ROW
C. The statement would fail because you cannot update more than one row at a t ime when using -
binlogformat = ROW.
D. Nothing is logged because you are executing an UPDATE st atement t hat will cause changes to
more than one row, and you do not have the --binlog-format value set to STATEMENT.
E. Nothing was written to t he binary log because you cannot perform a calculation in a query without
enclosing the st atement in single quot ation marks.
Answer: D,E
NO.11 On a mast er server t hat is using stat ement-based replication, a table of log dat a has become
very large. You decide to delete 100.000 rows.
Which t wo met hods can be independent ly invoked to ensure that t he delete is properly propagated
to the slave? (Choose two.)
A. Change the replication mode to mixed before issuing any delete statements when t he limit clause
is used.
B. If t he data modification is non-determinist ic, the query optimizer will resolve any potential issues.
IT Certification Guaranteed, The Easy Way!
6
剩余32页未读,继续阅读
资源评论
genie2014
- 粉丝: 17
- 资源: 17
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功