In a relational database, which normal form eliminates partial dependencies and is considered essential for most practical database designs?
Answer: B
3NF eliminates partial and transitive dependencies, making it the standard for practical database design. BCNF is stricter but 3NF is the most commonly implemented normalization form.
Q.95Easy
Which of the following is a characteristic of NoSQL databases that makes them suitable for handling big data in cloud environments?
Answer: B
NoSQL databases like MongoDB and Cassandra are designed for horizontal scaling and flexible schemas, making them ideal for cloud-based big data applications with varying data structures.
Q.96Medium
In database indexing, which type of index structure provides the best average-case performance for range queries in modern database systems?
Answer: B
B+ Tree indexes maintain sorted order and support efficient range queries, point queries, and prefix searches. Hash indexes are faster for exact matches but cannot handle range queries efficiently.
Q.97Medium
Which of the following SQL query optimization techniques is most effective when dealing with large fact tables in a data warehouse environment?
Answer: B
Data warehouses use materialized views to pre-aggregate data and strategic denormalization for faster analytical queries. These techniques significantly improve performance on large fact tables.
Q.98Medium
In the context of distributed databases, which consistency model is used by most cloud-native databases like DynamoDB and offers eventual consistency?
Answer: C
Cloud-native NoSQL databases prioritize availability and partition tolerance (CAP theorem), implementing eventual consistency to handle distributed system challenges while maintaining horizontal scalability.
Q.99Easy
Which of the following represents a vulnerability in SQL query construction that can be exploited through malicious user input, and can be prevented using parameterized queries?
Answer: C
SQL injection occurs when untrusted input is concatenated into SQL queries. Parameterized queries/prepared statements separate code from data, preventing attackers from modifying query logic.
Q.100Hard
In a sharded database architecture deployed on cloud infrastructure, which of the following represents the most critical challenge that must be addressed?
Answer: A
Shard key selection determines data distribution and performance. Poor shard key choices lead to hotspots, uneven load distribution, and performance degradation across the sharded cluster.