数据库理论与技术复习题

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

《数据库理论与技术》期终考试复习题

一、选择题:

1.Chubby presents itself to clients as this service:

a) Centralized mutual exclusion b) Hierarchical mutual exclusion

c) Token-based mutual exclusion d) Contention-based mutual exclusion.

2.Which statement best describes a client's interaction with Chubby?

a) A client contacts any Chubby server, which then forwards the request to the appropriate

server in the Chubby cell.

b) A client contacts any Chubby server, which can process the request since all Chubby

servers are replicated.

c) A client contacts the Chubby master, which then forwards the request to the appropriate

server in the Chubby cell.

d) A client contacts the Chubby master, which handles all client requests.

3.By sending messages through Paxos, processes can ensure that concurrent messages become:

a) Global time ordered multicasts. b) Totally ordered multicasts.

c) Causally ordered multicasts. d) Unordered multicasts.

4.Based on their vector timestamps, which event causally precedes (4, 2, 8, 5)?

a) (3, 1, 7, 7) b) (5, 1, 6, 2) c) (4, 2, 8, 4) d) (4, 3, 8, 5)

5.With Paxos, message sequence numbers are assigned by the:

a) Acceptor b) Client c) Learner d) Proposer

6.Paxos reaches agreement when:

a)All proposers agree on a value to send to the acceptors.

b)All acceptors agree to a proposed value.

c)The majority proposers agree on a value to send to the acceptors.

d)The majority of acceptors agree to a proposed value.

7. A write-ahead log does NOT enable a process to:

a) Undo changes in case of an abort. b) Record that a transaction has committed.

c) Record the response that was sent to a vote in a commit protocol.

d) Achieve higher performance by prefetching data.

8.To abort a distributed transaction:

a)At least one participant must vote to abort.

b)The majority of participants must vote to abort.

c)All of the participants must vote to abort.

d)All live participants must vote to abort.

9.The motivation for an eventual consistency model was:

a)It is impossible to have highly available replicated data that is fully consistent in a

system that can survive network partitioning.

b)Data inconsistencies are highly undesirable, so the primary focus should be on ensuring

that all replicas are consistent.

c)Distributed commit protocols can never work reliably, so data is bound to become

inconsistent on some participants.

d)Data might be in an inconsistent state during the execution of transactions but will be

made consistent when they commit.

相关文档
最新文档