没有合适的资源?快使用搜索试试~ 我知道了~
MySQL 5.7 OCP考试认证题库包含答案及解析
需积分: 0 8 下载量 140 浏览量
2023-03-02
17:41:41
上传
评论
收藏 22.03MB DOCX 举报
温馨提示
试读
135页
MySQL 5.7 OCP考试认证题库包含答案及解析
资源推荐
资源详情
资源评论
Question: 1
A MySQL database uses all InnoDB tables and is configured as follows:
#MySQL 数据库使用所有 InnoDB 表,配置如下:
shell>cat/ etc/ my.cnf
[mysqld]
log-bin
server-id=1
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 to active
database connections.
Which two arguments will you pass to mysqldump to achieve this?
#您将使用 mysqldump 设置复制从机。您将需要从正在运行的生产服务器上获取一致的备份。
该进程应该对活动数据库连接的影响最小。为了实现这一点,您将把哪两个参数传递给
mysqldump?
A. --skip-opt
B. --lock-all-tables
C. --create-apply-log
D. --single-transaction
E. --master-data
Answer: DE
Question: 2
Consider the key buffer in a MySQL server. Which two statements are true about this feature?
#考虑 MySQL 服务器中的 key buffer。关于这个特性,哪两种说法是正确的?
A. It caches index blocks for MyISAM tables only.
#它只缓存 MyISAM 表的索引块。
B. It caches index blocks for all storage engine tables.
#它缓存所有存储引擎表的索引块。
C. It is a global buffer.
#它是一个全局缓冲区。
D. It is set on a per-connection basis.
# D.按每个连接设置。
E. It caches index blocks for InnoDB tables only.
# E.它只缓存 InnoDB 表的索引块。
Answer: A,C
Question: 3
You have a MySQL replication setup and you intentionally stop the SQL thread on the slave.
#您有一个 MySQL 复制设置,并且有意停止从机上的 SQL 线程。
mysql> SHOW SLAVE STATUS\ G
Slave_IO_Running: Yes
Slave_SQL_Running: No
What are two reasons that you may stop the SQL thread on the slave while keeping the I/ O
thread running?
#在保持 I/O 线程运行的同时,可以停止从机上的 SQL 线程的两个原因是什么?
A. to allow the remaining events to be processed on the slave while not receiving new events
from the master
#允许在从机上处理剩余的事件,而不从主机接收新事件
B. to allow a backup to be created under reduced load
#允许在减少负载的情况下创建备份
C. to allow for point-in-time recovery on the slave
#允许从机上的时间点恢复
D. to prevent schema changes from propagating to the slave before they are validated
# D.防止模式更改在验证之前传播到从属服务器
E. to prevent any transaction experiencing a deadlock
Answer:BC
Question: 4
Which three statements correctly describe MySQL InnoDB Cluster?
#哪三个语句正确地描述了 MySQL InnoDB 集群?
A. The cluster can be operated in multimaster mode with conflict detection for DML statements.
# A.集群可以在多主机模式下运行,并对 DML 语句进行冲突检测。
B. All MySQL client programs and connectors can be used for executing queries.
#所有 MySQL 客户端程序和连接器都可以用于执行查询。
C. It provides fully synchronous replication between the nodes.
#它在节点之间提供完全同步的复制。
D. There is support for automatic failover when one node fails.
#当一个节点发生故障时,支持自动故障转移。
E. The data is automatically shared between the nodes.
# E.数据在节点之间自动共享。
F. Each query will be executed in parallel across the nodes.
# F.每个查询将跨节点并行执行。
Answer: ABD
Question: 5
How does the InnoDB storage engine handle deadlocks when they are detected?
#当检测到死锁时,InnoDB 存储引擎如何处理它们?
A. Both the affected transactions will be rolled back.
# A.两个受影响的事务都将回滚。
B. The affected transactions wait for innodb_lock_wait_timeout seconds, and then roll back.
# B.受影响的事务等待 innodb_lock_wait_超时秒,然后回滚。
C. One of the affected transactions will be rolled back, the other is allowed to proceed.
#一个受影响的事务将回滚,另一个允许继续。
D. The transaction isolation level determines which transaction is rolled back.
# D.事务隔离级别决定回滚哪个事务。
E. The innodb_locks_unsafe_for_binlog setting determines which transaction is rolled back.
# E.innodb_locks_unsafe_for_binlog 设置确定回滚哪个事务。
Answer: C
Question: 6
Which three allocate memory per thread in MySQL?
#在 MySQL 中,哪三个线程分配内存?
A. query cache
B. thread cache
C. read buffer
D. internal temporary table
E. sort buffer
F. InnoDB buffer pool instance
Answer: C,D,E
Question: 7
You are setting up a new installation of MySQL Server 5.7 (a GA release.) You have used a ZIP or
TAR package to ensure that the mysqld binary, along with its support files, such as plug-ins and
error messages, now exist on the host.
Assume that the default datadir exists on the host. You installed the binary in the default
location (the default --basedir value) for your operating system.
Which step should you perform before defining your own databases and database tables?
#您正在安装 MySQL Server 5.7(GA 释放)的新安装。您已经使用了 ZIP 或 TAR 包,以确保
MySQL 二进制文件及其支持文件(例如插件和错误消息)现在存在于主机上。
假设默认 DATADIR 存在于主机上。您将二进制文件安装在操作系统的默认位置(默认值
--basedir 值)。在定义自己的数据库和数据库表之前,应该执行哪一步?
A. Execute a command with a minimal form of: mysqld --initialize
# 执行一个最小形式的命令:mysqld--initialize
B. Register mysqld as a service that will start automatically on this host machine.
# B.将 mysqld 注册为将在此主机上自动启动的服务。
C. Create a configuration file containing default-storage-engine=InnoDB.
# C.创建一个包含默认存储引擎 InnoDB 的配置文件。
D. Set an exception in the host machine’s firewall to allow external users to talk to mysqld.
# D.在主机防火墙中设置一个例外,允许外部用户与 mysqld 对话。
E. Create additional login accounts (so that everyone does not need to log in as root) and
assign them appropriate privileges.
# E.创建额外的登录帐户(这样每个人都不需要以根用户身份登录)并为他们分配适当的权
限。
Answer: A
Question: 8
Which two options describe how MySQL Server allocates memory?
#哪两个选项描述 MySQL 服务器如何分配内存?
A. Each connection may have its own per-thread memory allocations.
# A.每个连接可能有自己的每线程内存分配。
B. Thread memory is pre-allocated up to thread_cache_size for performance.
# B.为了提高性能,线程内存被预先分配到线程缓存大小。
C. Each thread allocates memory from a global pool.
#每个线程从全局池分配内存。
D. Global memory resources are allocated at server startup.
# D.全局内存资源在服务器启动时分配。
Answer: A,D
Question: 9
Which two statements are true about InnoDB auto-increment locking?
#关于 InnoDB 自动增量锁定,哪两种说法是正确的?
A. InnoDB never uses table_level locks.
# A.InnoDB 从不使用表级锁。
B. InnoDB always protects auto-increment updates with a table-level lock
# B.InnoDB 总是使用表级锁保护自动增量更新
C. InnoDB does not use locks to enforce auto-increment uniqueness.
# C.InnoDB 不使用锁来强制自动增量唯一性。
剩余134页未读,继续阅读
资源评论
kuifeng.dong
- 粉丝: 57
- 资源: 90
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- #P0015. 全排列 超级简单
- pta题库答案c语言之排序4统计工龄.zip
- pta题库答案c语言之树结构7堆中的路径.zip
- pta题库答案c语言之树结构3TreeTraversalsAgain.zip
- pta题库答案c语言之树结构2ListLeaves.zip
- pta题库答案c语言之树结构1树的同构.zip
- 基于C++实现民航飞行与地图简易管理系统可执行程序+说明+详细注释.zip
- pta题库答案c语言之复杂度1最大子列和问题.zip
- 三维装箱问题(Three-Dimensional Bin Packing Problem,3D-BPP)是一个经典的组合优化问题
- 以下是一些关于Linux线程同步的基本概念和方法.txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功