Docsity

CERTIFIED APACHE CASSANDRA PROFESSIONAL 300 COMPLETE MULTIPLE.pdf, Exams of Nursing

Toggle sidebar
bg1
1 | P a g e
CERTIFIED APACHE CASSANDRA
PROFESSIONAL 300 COMPLETE
MULTIPLE-CHOICE QUESTIONS WITH
CORRECT DETAILED ANSWERS
Instructions: This practice exam contains 300 questions covering the
core domains of the Certified Apache Cassandra Professional
certification. Each question is followed by the correct answer and a
detailed rationale. The exam covers Cassandra Architecture, Data
Modeling, CQL, Installation and Configuration, Performance Tuning,
Security, and Maintenance.
Exam Domains and Weighting (Based on Official Objectives):
- Cassandra Architecture (20%)
- Data Modeling and CQL (25%)
- Installation and Configuration (15%)
- Performance Tuning (15%)
- Security and Roles (10%)
- Maintenance and Operations (15%)
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28

Partial preview of the text

Download CERTIFIED APACHE CASSANDRA PROFESSIONAL 300 COMPLETE MULTIPLE.pdf and more Exams Nursing in PDF only on Docsity!

CERTIFIED APACHE CASSANDRA

PROFESSIONAL 300 COMPLETE

MULTIPLE-CHOICE QUESTIONS WITH

CORRECT DETAILED ANSWERS

Instructions: This practice exam contains 300 questions covering the core domains of the Certified Apache Cassandra Professional certification. Each question is followed by the correct answer and a detailed rationale. The exam covers Cassandra Architecture, Data Modeling, CQL, Installation and Configuration, Performance Tuning, Security, and Maintenance. Exam Domains and Weighting (Based on Official Objectives):

  • Cassandra Architecture (20%)
  • Data Modeling and CQL (25%)
  • Installation and Configuration (15%)
  • Performance Tuning (15%)
  • Security and Roles (10%)
  • Maintenance and Operations (15%)

SECTION 1: CASSANDRA ARCHITECTURE (Questions 1-60)

  1. In Cassandra's peer-to-peer architecture, which of the following statements is true? A) Every node can act as a coordinator but not as a data holder B) There is a single master node that handles writes C) All nodes are equal and can both store data and coordinate requests D) Only seed nodes store data while others are stateless Answer: C) All nodes are equal and can both store data and coordinate requests Explanation: Cassandra's design is master-less; each node can store data and act as a coordinator for client requests, ensuring no single point of failure.

Answer: B) Single-rack, single-datacenter clusters Explanation: SimpleSnitch assumes uniform latency and is ideal for clusters where all nodes are in the same rack or data center.

  1. When configuring a keyspace with NetworkTopologyStrategy, what does the replication factor (RF) value represent? A) Number of replicas per data center B) Total number of replicas across the entire cluster C) Number of virtual nodes per physical node D) Number of shards per table Answer: A) Number of replicas per data center Explanation: With NetworkTopologyStrategy, RF is specified per data center, ensuring the desired number of replicas in each location.
  1. Which partitioner provides the most uniform token distribution and is the default in Cassandra 3.x and later? A) RandomPartitioner B) ByteOrderedPartitioner C) Murmur3Partitioner D) OrderPreservingPartitioner Answer: C) Murmur3Partitioner Explanation: Murmur3Partitioner uses a 128-bit hash function that yields a near-uniform distribution of tokens across the ring.
  1. Virtual nodes (vNodes) improve which aspect of Cassandra clusters? A) Reduce write latency by avoiding commit logs B) Simplify bootstrapping and load balancing C) Enable automatic schema migrations
  1. What happens during a write operation in Cassandra? A) Data is written directly to the SSTable on disk B) Data is written to the commit log and then to the memtable C) Data is written to a centralized master node D) Data is written to a cache only Answer: B) Data is written to the commit log and then to the memtable Explanation: Cassandra writes data to the commit log for durability and then to an in-memory memtable for fast access. The memtable is later flushed to an SSTable on disk.
  1. What is the role of a seed node in a Cassandra cluster? A) It stores all the data for the cluster

B) It is the only node that can coordinate requests C) It provides an initial contact point for new nodes joining the cluster D) It performs all compactions Answer: C) It provides an initial contact point for new nodes joining the cluster Explanation: Seed nodes are used for bootstrapping new nodes; they help new nodes discover the cluster topology. They do not have special data responsibilities.

  1. What is hinted handoff in Cassandra? A) A technique for load balancing B) A mechanism to temporarily store writes for an unavailable node C) A method for compressing data D) A type of secondary index
  1. What is the difference between a node and a rack in Cassandra? A) A node is a single machine; a rack is a group of nodes in the same physical location B) A rack is a single machine; a node is a group of racks C) They are the same thing D) A node is a virtual machine; a rack is a physical machine Answer: A) A node is a single machine; a rack is a group of nodes in the same physical location Explanation: A node is a single Cassandra instance, while a rack is a logical grouping of nodes, often corresponding to a physical rack in a data center.
  1. What is the purpose of the system keyspace in Cassandra? A) To store user data B) To store cluster metadata and internal information

C) To store secondary indexes D) To store materialized views Answer: B) To store cluster metadata and internal information Explanation: The system keyspace contains metadata about the cluster, including node information, schema, and authentication data.

  1. What is the difference between the system and system_auth keyspaces? A) system stores user data; system_auth stores metadata B) system stores metadata; system_auth stores authentication and authorization data C) They are the same D) system_auth stores user data Answer: B) system stores metadata; system_auth stores authentication and authorization data

A) To transfer data between nodes B) To exchange state information about nodes in the cluster C) To encrypt communication between nodes D) To compress data Answer: B) To exchange state information about nodes in the cluster Explanation: The gossip protocol is used for peer-to-peer communication to share information about node status, load, and schema.

  1. What is the role of the snitch in Cassandra? A) To determine the topology and network proximity of nodes B) To store data C) To manage compactions D) To authenticate users

Answer: A) To determine the topology and network proximity of nodes Explanation: Snitches inform Cassandra about the network topology, enabling it to route requests efficiently and place replicas strategically.

  1. Which snitch is recommended for multi-datacenter deployments? A) SimpleSnitch B) RackInferringSnitch C) GossipingPropertyFileSnitch D) PropertyFileSnitch Answer: C) GossipingPropertyFileSnitch Explanation: GossipingPropertyFileSnitch is recommended for multi- datacenter clusters as it uses the gossip protocol to propagate topology information.

B) To store data C) To manage compactions D) To authenticate users Answer: A) To determine the fastest replica to read from Explanation: The dynamic snitch monitors read latency and routes requests to the fastest replicas, improving performance.

Data Replication and Consistency

  1. What is the purpose of replication in Cassandra? A) To increase storage capacity B) To ensure data durability and availability C) To reduce write latency D) To compress data Answer: B) To ensure data durability and availability

Explanation: Replication stores multiple copies of data across nodes, ensuring data is not lost if a node fails and improving read performance.

  1. What does a replication factor of 3 mean? A) Data is stored on 3 nodes in the cluster B) Data is stored on 3 nodes per data center C) Data is replicated 3 times across the cluster D) Both A and B depending on the strategy Answer: D) Both A and B depending on the strategy Explanation: With SimpleStrategy, RF=3 means 3 nodes in the cluster. With NetworkTopologyStrategy, RF=3 means 3 nodes per data center.

B) The ability to change the replication factor C) The ability to change the partitioner D) The ability to change the snitch Answer: A) The ability to adjust the consistency level per query Explanation: Cassandra allows you to specify the consistency level for each read or write operation, balancing consistency and availability.

  1. What does consistency level ONE mean? A) All replicas must respond B) At least one replica must respond C) A majority of replicas must respond D) All replicas in the local datacenter must respond Answer: B) At least one replica must respond

Explanation: Consistency level ONE requires only one replica to acknowledge the operation, providing the highest availability but lowest consistency.

  1. What does consistency level QUORUM mean? A) All replicas must respond B) At least one replica must respond C) A majority of replicas must respond D) All replicas in the local datacenter must respond Answer: C) A majority of replicas must respond Explanation: QUORUM requires a majority of replicas (RF/2 + 1) to acknowledge the operation, balancing consistency and availability.
  1. What does consistency level ALL mean?