










































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











































Question 1. Which component in Apache NiFi is responsible for maintaining shared resources such as database connection pools? A) Processor B) Controller Service C) FlowFile Repository D) Provenance Repository Answer: B Explanation: Controller Services provide reusable, shared resources (e.g., DB connections) that can be referenced by multiple processors. Question 2. In NiFi, what mechanism prevents a downstream processor from being overwhelmed when upstream processors generate data faster than it can consume? A) Prioritized Queuing B) Backpressure C) Load Balancing D) FlowFile Expiration Answer: B Explanation: Backpressure applies thresholds on queue size or data size, pausing upstream processors when limits are reached. Question 3. Which NiFi processor would you use to ingest data from a relational database using a SQL query? A) GetFile B) GenerateFlowFile C) ExecuteSQL D) PutHDFS Answer: C Explanation: ExecuteSQL runs a provided query against a DB and creates FlowFiles for each result set.
Question 4. When designing a NiFi flow that must guarantee exactly-once delivery to a target system, which feature should be enabled? A) Stateless Flow B) Provenance Event Logging C) Remote Process Group Transactional Mode D) Content Claim Compression Answer: C Explanation: Remote Process Groups support transactional delivery, ensuring each FlowFile is transferred exactly once. Question 5. In the context of NiFi, what does the “Provenance” UI primarily provide? A) Real-time metrics of processor CPU usage B) Visualization of data lineage and history of each FlowFile C) Automatic schema detection for incoming data D) User authentication and role management Answer: B Explanation: The Provenance UI shows the lineage, events, and timestamps for every FlowFile, aiding troubleshooting. Question 6. Which of the following is NOT a valid NiFi backpressure setting? A) Maximum Queue Size (in objects) B) Maximum Queue Size (in bytes) C) Maximum Processor Thread Count D) Maximum Queue Size (in time) Answer: C Explanation: Backpressure is configured on queues (size, bytes, or time), not on processor thread counts.
Question 10. Which storage level in Spark persists data only in memory and discards it when the JVM runs out of memory? A) MEMORY_ONLY_SER B) MEMORY_ONLY C) DISK_ONLY D) OFF_HEAP Answer: B Explanation: MEMORY_ONLY stores RDD/DataFrames in deserialized form in RAM; if memory is insufficient, partitions are recomputed. Question 11. When a Spark job experiences data skew, which technique is most effective at mitigating the problem? A) Increasing executor memory B) Using broadcast joins for the smaller table C) Reducing the number of partitions D) Disabling caching Answer: B Explanation: Broadcasting the smaller dataset avoids shuffling the large skewed key, reducing skew impact. Question 12. Which Spark configuration property controls the default number of partitions created when reading a file from HDFS? A) spark.sql.shuffle.partitions B) spark.default.parallelism C) spark.sql.files.maxPartitionBytes D) spark.hadoop.mapreduce.input.fileinputformat.split.maxsize Answer: C Explanation: spark.sql.files.maxPartitionBytes determines how HDFS block sizes map to Spark partitions.
Question 13. In Spark on YARN, which mode runs the driver inside the Application Master container? A) client mode B) cluster mode C) local mode D) standalone mode Answer: B Explanation: Cluster mode launches the driver within the YARN Application Master, providing better resource isolation. Question 14. Which of the following is a best practice for managing dependencies of a Spark job in CDP? A) Copy all JARs to /usr/lib/spark/lib on every node B) Use the --packages flag with Maven coordinates C) Embed all dependencies inside the main application JAR D) Install Python packages globally on the cluster Answer: B Explanation: The --packages flag resolves and distributes Maven artifacts automatically to executors. **Question 15. In Hive LLAP, what component enables low-latency query execution? ** A) Tez Application Master B) Impala Daemon C) LLAP Daemon (LLAPD) D) Hive Metastore Server Answer: C Explanation: LLAP Daemon caches data and runs vectorized query execution, reducing latency.
Question 19. When using Impala to query data stored in an S3 bucket, which component of CDP provides the necessary credentials and connectivity? A) Ranger B) SDX (Shared Data Experience) C) Ozone D) Atlas Answer: B Explanation: SDX abstracts cloud storage access, handling authentication and mount points for Impala. Question 20. In a Hive external table, where is the data physically stored? A) Inside the Hive warehouse directory B) In a location defined by the LOCATION clause, outside Hive’s control C) In HBase tables automatically created by Hive D) In the Hive Metastore database Answer: B Explanation: External tables point to data outside the Hive warehouse; Hive manages only metadata. Question 21. Which of the following statements about HDFS and Apache Ozone is true? A) Ozone stores data as a single flat namespace without directories B) Ozone is a next-generation object store that supports key-value semantics and bucket isolation C) HDFS provides built-in columnar storage formats while Ozone does not D) Ozone can only be deployed on top of S3, not on-premises Answer: B Explanation: Ozone introduces buckets and key-value storage, offering object-store semantics on-prem.
Question 22. Which CDP feature enables automatic movement of cold data from HDFS to cloud object storage? A) Data Lifecycle Management (DLM) B) Ranger Policies C) Cloudera Navigator D) Oozie Scheduler Answer: A Explanation: DLM defines policies to tier data between hot (HDFS/Ozone) and cold (S3/ADLS) storage. Question 23. In a Kerberized CDP environment, which ticket is used by a Spark driver to authenticate to HDFS? A) Service ticket B) Ticket-Granting Ticket (TGT) C) Delegation Ticket (DT) D) Refresh Token Answer: B Explanation: The driver obtains a TGT during login, which it uses to request service tickets for HDFS. Question 24. Which Apache Ranger feature allows row-level security based on user attributes? A) Column Masking B) Row Filter Policies C) Tag-Based Access Control D) Auditing Answer: B Explanation: Row Filter Policies let administrators define predicates that filter rows per user/group.
A) spark-submit B) cde job submit C) cde-cli submit-job D) airflow trigger_dag Answer: C Explanation: The cde-cli (or cde job submit) interacts with the CDE API to launch jobs on a virtual cluster. Question 29. When orchestrating workflows in CDE, which service provides built-in DAG scheduling? A) Oozie B) Airflow C) Azkaban D) Chronos Answer: B Explanation: CDE includes an Apache Airflow instance for defining and scheduling complex pipelines. Question 30. Which metric in the Spark UI indicates the amount of data shuffled between stages? A) Task Duration B) Shuffle Read Size C) Executor Memory D) Input Records Answer: B Explanation: Shuffle Read Size shows how much data each stage reads from previous stages’ shuffle files. Question 31. In Cloudera Manager, which service health indicator alerts you to a “heap usage > 80%” condition?
A) Critical Alert B) Warning Alert C) Info Alert D) No Alert – it is considered normal Answer: A Explanation: Exceeding 80% heap usage triggers a critical health alert for the affected service. **Question 32. Which log source is primarily used to troubleshoot NiFi flow failures? ** A) /var/log/hadoop/hdfs/hdfs.log B) nifi-app.log C) spark-driver.log D) impala-server.log Answer: B Explanation: nifi-app.log contains processor errors, provenance failures, and other NiFi runtime messages. Question 33. What does the “load balancing” feature in NiFi achieve? A) Distributes FlowFiles evenly across multiple remote NiFi nodes B) Balances CPU usage among processors on a single node C) Ensures equal disk usage across all HDFS DataNodes D) Automatically scales the number of NiFi instances in a cluster Answer: A Explanation: Load balancing sends FlowFiles to remote NiFi instances to spread processing load. Question 34. Which of the following is a valid reason to use the “PutKafka” processor instead of “PublishKafka_2_0”? A) Need to produce messages to a Kafka 0.8 cluster
Answer: B Explanation: ORC provides columnar compression and supports transactional writes efficiently. Question 38. Which Impala setting enables query result caching for repeated SELECT statements? A) impala_query_cache_size B) impala_use_columnar_cache C) impala_cache_invalidations D) impala_query_options_cache_enabled Answer: D Explanation: impala_query_options_cache_enabled toggles the result cache feature. Question 39. In the context of CDP, what does SDX stand for? A) Secure Data Exchange B) Shared Data Experience C) Scalable Data eXecution D) Service-Driven X-Platform Answer: B Explanation: SDX provides a unified data access layer across on-prem and cloud storage. Question 40. Which of the following is a primary benefit of using Apache Ozone over traditional HDFS for object storage? A) Built-in support for MapReduce jobs B) Hierarchical namespace with directories C) Multi-tenant bucket isolation and key-value API
D) Automatic data replication across regions Answer: C Explanation: Ozone introduces bucket-level isolation and a key-value interface suitable for object-store semantics. Question 41. Which Ranger policy type can enforce column-level masking for sensitive fields? A) Row Filter Policy B) Masking Policy C) Tag-Based Policy D) Data Classification Policy Answer: B Explanation: Masking Policies define how specific columns are transformed (e.g., redacted) for particular users. Question 42. In NiFi, what does the “GenerateFlowFile” processor primarily help with? A) Reading data from an external database B) Creating synthetic FlowFiles for testing or placeholder data C) Splitting large files into smaller chunks D) Encrypting FlowFile content Answer: B Explanation: GenerateFlowFile produces empty or templated FlowFiles, useful for testing or triggering downstream logic. Question 43. Which Spark API is best suited for processing semi-structured JSON data with nested fields? A) sparkContext.textFile B) spark.read.json with DataFrames C) spark.createRDD
D) Need to execute Python UDFs exclusively Answer: B Explanation: LLAP caches data in memory and uses vectorized processing, delivering low-latency responses. Question 47. Which CDP component provides fine-grained audit logs for data access across services? A) Ranger Auditing B) Atlas Lineage Viewer C) Cloudera Manager Event Service D) NiFi Provenance Answer: A Explanation: Ranger captures detailed audit events for every access request it authorizes. Question 48. In a CDE virtual cluster, which resource quota controls the maximum number of concurrent Spark executors? A) Executor Memory Limit B) CPU Core Quota C) Executor Instance Quota D) Spark Driver Memory Answer: C Explanation: Executor Instance Quota limits how many executor containers a virtual cluster may launch simultaneously. Question 49. Which Spark UI tab helps you identify stages that spend excessive time on shuffles? A) Jobs B) Stages C) Executors
Answer: B Explanation: The Stages tab displays shuffle read/write metrics per stage, highlighting bottlenecks. Question 50. What is the default checkpoint interval for a Structured Streaming query if not explicitly set? A) 1 second B) Every micro-batch (trigger interval) C) Every 10 minutes D) No checkpointing is performed automatically Answer: B Explanation: By default, Structured Streaming checkpoints after each micro-batch based on the trigger. Question 51. Which of the following statements about Hive ACID transaction isolation is correct? A) It uses READ UNCOMMITTED isolation level B) It provides snapshot isolation using write-id and transaction-id metadata C) It locks the entire table for any UPDATE operation D) It does not support concurrent reads Answer: B Explanation: Hive ACID tracks write-ids and transaction-ids to provide snapshot isolation, allowing concurrent reads. Question 52. In NiFi, which relationship type is used to route FlowFiles that encounter an error during processing? A) Success B) Failure C) Retry
Answer: B Explanation: The KAS (often MIT KDC) manages principal creation and keytab distribution. Question 56. In the context of data lifecycle management, which tier is typically used for archival data that is rarely accessed? A) Hot tier B) Warm tier C) Cold tier D) Cache tier Answer: C Explanation: Cold tier stores infrequently accessed data, often on cheaper object storage. Question 57. Which NiFi processor can be used to convert incoming JSON data into Avro format using a registered schema? A) ConvertRecord B) ConvertJSONToAvro C) AvroSchemaRegistry D) TransformJson Answer: A Explanation: ConvertRecord works with a RecordReader (JSON) and RecordWriter (Avro) to perform schema-based conversion. Question 58. When using Spark on Kubernetes, what resource defines the compute allocation for each executor pod? A) spark.kubernetes.driver.pod.name B) spark.executor.instances C) spark.kubernetes.executor.request.cores D) spark.kubernetes.container.image
Answer: C Explanation: spark.kubernetes.executor.request.cores specifies CPU cores requested for executor pods. Question 59. Which Hive feature allows you to define a table that automatically inherits its schema from a source system like Kafka? A) External Table with AvroSerDe B) CREATE TABLE ... STORED BY 'org.apache.hive.kafka.KafkaStorageHandler' C) Materialized View D) Partitioned Table Answer: B Explanation: The KafkaStorageHandler enables Hive to read directly from Kafka topics, using the topic’s schema. Question 60. In Impala, what does the “EXPLAIN PLAN” command display? A) The physical execution plan with estimated costs and row counts B) The logical query rewrite steps only C) The list of tables accessed by the query D) The runtime statistics after query execution Answer: A Explanation: EXPLAIN PLAN shows the detailed physical plan Impala will use, including cost estimates. Question 61. Which of the following is a valid way to enforce column-level encryption in Hive? A) Using Ranger’s Column Masking with a custom masking function that encrypts values B) Setting hive.exec.encrypt.column=true C) Storing data in encrypted Parquet files only D) Hive does not support column-level encryption natively