Unit 6: Project - Practice Quiz

CSE494 — Intelligent Nosql Databases 60 Questions
0 Correct 0 Wrong 60 Left
0/60

1 What is the first step when building a NoSQL mini project?

Building a Mini Project Easy
A. Deploy the final application
B. Conduct the final viva
C. Optimize every database query
D. Define the project requirements

2 Why is sample data used during mini-project development?

Building a Mini Project Easy
A. To eliminate data modeling
B. To replace database security
C. To test application behavior
D. To guarantee unlimited storage

3 Which operation adds a new document to a NoSQL database?

Building a Mini Project Easy
A. Delete
B. Create
C. Update
D. Read

4 What is the main purpose of a database schema or data model in a mini project?

Building a Mini Project Easy
A. Automatically replace all application code with a complete production system
B. Design presentation slides
C. Measure network cable length
D. Organize stored data

5 Which practice helps prevent unauthorized access to a production database?

Best Practices for Production Easy
A. Share administrator passwords
B. Disable all backups
C. Store credentials in public files
D. Use authentication

6 Why are regular database backups important in production?

Best Practices for Production Easy
A. They permanently prevent every possible hardware and software failure
B. They increase screen resolution
C. They replace user authentication
D. They support data recovery

7 What does database monitoring help a production team identify?

Best Practices for Production Easy
A. Project presentation colors
B. Performance problems
C. Student attendance records
D. The programming language preferred by every database user

8 Which principle gives users only the permissions required for their tasks?

Best Practices for Production Easy
A. Least privilege
B. Unlimited authorization
C. Open access
D. Data duplication

9 What is a viva in an academic course?

Final Assessment, Viva, and Quiz Easy
A. A database backup
B. An oral examination
C. A deployment server
D. An automated indexing method

10 What does a final assessment mainly evaluate?

Final Assessment, Viva, and Quiz Easy
A. Classroom seating order
B. The ability to memorize one isolated definition without understanding the course
C. Overall course understanding
D. Internet connection speed

11 Which preparation method is most useful before a project viva?

Final Assessment, Viva, and Quiz Easy
A. Delete project documentation
B. Avoid testing the application
C. Review project decisions
D. Change the database at random

12 What is a quiz commonly used to check?

Final Assessment, Viva, and Quiz Easy
A. Long-term performance under every possible production workload and failure condition
B. Knowledge of course concepts
C. Database server ownership
D. Computer manufacturing quality

13 What is the main purpose of a course recap?

Course Recap and Discussion Easy
A. Replace all practical exercises
B. Review key concepts
C. Remove completed assignments
D. Introduce an unrelated subject

14 Which feature is commonly associated with NoSQL databases?

Course Recap and Discussion Easy
A. A requirement that every database must run on exactly one physical server
B. Flexible data models
C. Only tabular storage
D. Mandatory fixed schemas

15 Why is class discussion useful during a course recap?

Course Recap and Discussion Easy
A. It disables assessment
B. It removes course content
C. It guarantees identical opinions
D. It clarifies doubts

16 What does CRUD stand for?

Course Recap and Discussion Easy
A. Copy, Run, Upload, Download
B. Connect, Restore, Use, Deploy
C. Create, Read, Update, Delete
D. Create, Record, Upgrade, Design, and permanently synchronize every database node

17 What is an AI-augmented database?

Future Trends: AI-Augmented Databases and AutoML Easy
A. A database enhanced by AI
B. A database operated only through handwritten commands
C. A database limited to images
D. A database without stored data

18 What is the main goal of AutoML?

Future Trends: AI-Augmented Databases and AutoML Easy
A. Replace database backups
B. Require experts to manually configure every model parameter and training step
C. Automate machine learning tasks
D. Design computer hardware

19 Which database task can AI help automate?

Future Trends: AI-Augmented Databases and AutoML Easy
A. Keyboard manufacturing
B. Writing every business requirement without any input from users or stakeholders
C. Query optimization
D. Classroom scheduling

20 How can anomaly detection assist database administrators?

Future Trends: AI-Augmented Databases and AutoML Easy
A. Remove all access controls
B. Convert every NoSQL database into a relational database
C. Create physical storage devices
D. Identify unusual behavior

21 A mini project stores customer profiles in a document database. Which design best supports frequent updates to a customer's contact information?

Building a Mini Project Medium
A. Store each contact field in a separate database
B. Encode contact fields inside a single text string
C. Duplicate contact fields across every application table
D. Store all contact fields in one customer document

22 A project dashboard frequently retrieves orders by customer_id and sorts them by created_at. Which index is most appropriate?

Building a Mini Project Medium
A. An index on the customer name only
B. An index on the order description
C. A compound index on customer_id and created_at
D. An index on created_at only

23 A mini project must allow users to add new product attributes without changing a fixed table schema. Which NoSQL model is most suitable?

Building a Mini Project Medium
A. A graph model with mandatory edge types
B. A document model with flexible fields
C. A relational model with strict columns
D. A key-value model with fixed keys

24 A team is choosing between embedding and referencing order items. Order items are usually retrieved only with their order and are rarely shared. Which choice is generally better?

Building a Mini Project Medium
A. Store the order items in application logs
B. Embed the order items within the order document
C. Create one database for every order item
D. Reference the order items from separate documents

25 An application must remain available when one database node fails. Which production practice most directly addresses this requirement?

Best Practices for Production Medium
A. Store backups on the same disk
B. Remove indexes from the primary node
C. Increase the font size of error messages
D. Enable replication across multiple nodes

26 A production NoSQL query becomes slow after the dataset grows substantially. What should be done first?

Best Practices for Production Medium
A. Delete older records without analysis
B. Inspect the query plan and access pattern
C. Add random indexes to every field
D. Increase client-side request retries

27 Which backup strategy provides the strongest protection against accidental deletion and regional infrastructure failure?

Best Practices for Production Medium
A. Periodic backups stored in another region
B. Manual exports kept on a developer laptop
C. Daily backups stored on the same server
D. A single snapshot taken before deployment

28 A service uses an eventually consistent read immediately after writing a user's email address. What outcome should the application be prepared to handle?

Best Practices for Production Medium
A. The database permanently loses the new value
B. The read may temporarily return the previous value
C. The read always returns data from every replica
D. The write is guaranteed to be rejected

29 Which metric is most useful for detecting that a production NoSQL cluster is approaching capacity?

Best Practices for Production Medium
A. The number of source-code files
B. The number of application comments
C. The color of the admin dashboard
D. Database storage utilization

30 During a viva, a student is asked why denormalization is common in NoSQL databases. Which answer is most accurate?

Final Assessment, Viva, and Quiz Medium
A. It reduces read-time joins for common access patterns
B. It makes every query independent of indexes
C. It guarantees that every value is stored once
D. It removes the need for data validation

31 A quiz asks which situation is most appropriate for a graph database. Which scenario should be selected?

Final Assessment, Viva, and Quiz Medium
A. Tracking relationships among social network users
B. Storing independent session tokens by key
C. Caching a single numeric configuration value
D. Archiving fixed-format monthly invoices

32 A project assessment requires evidence that an API handles duplicate requests safely. Which test best evaluates this property?

Final Assessment, Viva, and Quiz Medium
A. Submit the same operation twice and compare the result
B. Measure response size using unrelated input
C. Run the API with an empty documentation page
D. Change the interface color and reload the page

33 Which explanation would best justify selecting a key-value database for a shopping-cart service?

Final Assessment, Viva, and Quiz Medium
A. Cart data is retrieved directly using a unique cart key
B. Cart data must use many fixed relational joins
C. Cart data is primarily analyzed through complex aggregations
D. Cart data requires frequent multi-hop relationship traversal

34 A team chooses a NoSQL database mainly because its workload requires horizontal scaling and flexible records. Which concept supports this decision?

Course Recap and Discussion Medium
A. Strict normalization combined with vertical scaling
B. Single-node storage combined with static indexing
C. Manual backups combined with fixed row layouts
D. Schema flexibility combined with distributed partitioning

35 During a course discussion, a team reports that a partition key creates an uneven distribution of records. What problem does this indicate?

Course Recap and Discussion Medium
A. A syntax error caused by an invalid document
B. A hot partition caused by poor key distribution
C. A schema migration caused by a missing table
D. A backup failure caused by an expired certificate

36 Which statement best summarizes the trade-off between strong and eventual consistency?

Course Recap and Discussion Medium
A. Strong consistency applies only to graphs, while eventual consistency applies only to documents
B. Strong consistency favors immediate accuracy, while eventual consistency favors availability or performance
C. Strong consistency prevents scaling, while eventual consistency prevents indexing
D. Strong consistency removes replication, while eventual consistency removes all failures

37 A team reviews a NoSQL design and discovers that its data model follows table structure instead of application queries. What improvement should be discussed?

Course Recap and Discussion Medium
A. Use one universal partition key for all records
B. Redesign around the most frequent access patterns
C. Remove all fields that are not indexed
D. Replace every document with a relational table

38 An AI-augmented database detects that a query is repeatedly slow and recommends a new index. What should an administrator do before applying it automatically?

Future Trends: AI-Augmented Databases and AutoML Medium
A. Apply every recommendation without testing
B. Disable monitoring to reduce database overhead
C. Delete existing indexes before inspection
D. Validate its workload impact and maintenance cost

39 A company uses AutoML to predict customer churn from NoSQL records. Which step is essential before training the model?

Future Trends: AI-Augmented Databases and AutoML Medium
A. Define a target variable and prepare relevant features
B. Use database keys as the only model features
C. Train the model before checking missing values
D. Remove all historical records to avoid bias

40 An AI system generates vector embeddings for product descriptions. What database capability is needed to support semantic product search?

Future Trends: AI-Augmented Databases and AutoML Medium
A. Sorting records only by insertion order
B. Similarity search over stored vector representations
C. Aggregating records only by numeric totals
D. Matching documents only by exact product IDs

41 A mini-project must ingest millions of immutable IoT readings while serving the latest state of each device with single-digit-millisecond latency. Which data model best separates these conflicting access patterns?

Building a Mini Project Hard
A. Store only the latest reading and reconstruct history from periodic database snapshots
B. Store events in an append-only collection and maintain a materialized latest-state collection
C. Store events in one collection and compute every latest state through runtime aggregation
D. Store one growing array of readings inside a document for each registered device

42 A recommendation project trains a model from NoSQL interaction data and computes features again during online inference. Offline accuracy is high, but production accuracy is poor because feature values differ between training and serving. Which design most directly prevents this failure?

Building a Mini Project Hard
A. Cache prediction results and invalidate each cached recommendation after a fixed expiration interval
B. Share versioned feature definitions and use point-in-time-correct data for offline feature generation
C. Replicate the interaction collection across regions and read features from the nearest replica
D. Increase model complexity and retrain whenever the online accuracy falls below a threshold

43 A fraud-detection mini-project stores customer profiles, transactions, and relationships. It requires frequent variable-depth traversals to identify circular money flows, while profile retrieval remains document-oriented. Which architecture is most appropriate?

Building a Mini Project Hard
A. Use a time-series store for relationships and encode customer profiles as timestamped measurements
B. Use a graph store for relationships and a document store for profiles, linked by stable identifiers
C. Use only a key-value store and perform every graph traversal in application memory
D. Use only a document store and recursively scan all transactions for each fraud request

44 A team claims its mini-project will sustain 20,000 writes per second after observing that rate from uniformly distributed synthetic keys on a single-node test environment. Which evaluation provides the strongest evidence for the claim?

Building a Mini Project Hard
A. Replay production-like skewed traffic on a replicated cluster while injecting failures and tracking tail latency
B. Measure average throughput on a developer machine after warming every query and index cache
C. Run isolated insert benchmarks against an empty collection until the measured throughput stabilizes
D. Repeat the test with larger documents while retaining uniform keys and disabling replication

45 A production document database must rename field phone to phoneNumber without downtime while old and new application versions overlap. Which migration sequence is safest?

Best Practices for Production Hard
A. Pause writes, export the collection, rename the field offline, and replace the original collection
B. Deploy code that writes only phoneNumber, immediately delete phone, then rebuild all indexes
C. Rename the field in every document first, then deploy code that reads only phoneNumber
D. Deploy dual-read and dual-write compatibility, backfill old documents, then remove phone support

46 An orders collection is partitioned by tenantId. One large tenant generates 70% of all writes, creating a hot partition, but queries usually filter by tenant and recent time range. Which redesign best addresses the hotspot?

Best Practices for Production Hard
A. Add a bounded hash bucket to the tenant-time key and query the relevant buckets in parallel
B. Partition only by timestamp so recent writes remain grouped within one continuously active partition
C. Retain tenantId partitioning and add secondary indexes for timestamp and order creation date
D. Partition by order status so all pending orders are colocated for operational query processing

47 A message consumer writes payment results to a NoSQL database. It may crash after the database commit but before acknowledging the message, causing redelivery. Which mechanism most reliably prevents duplicate payment effects?

Best Practices for Production Hard
A. Read from the nearest replica before every write and reject records with matching payment amounts
B. Store a message identifier and payment mutation atomically using a conditional idempotency check
C. Acknowledge each message before database processing so the broker cannot deliver it more than once
D. Use a shorter message visibility timeout and retry each failed payment with exponential backoff

48 A replicated NoSQL cluster has hourly snapshots and continuous write-ahead-log archiving. The stated recovery point objective is five minutes. Which practice most convincingly verifies that objective?

Best Practices for Production Hard
A. Restore snapshots periodically, replay logs to selected timestamps, and measure verified data loss
B. Retain additional replicas across regions and compare their document counts once every business day
C. Monitor replica lag continuously and assume low lag guarantees successful point-in-time restoration
D. Confirm that snapshots complete hourly and that archived log files continue increasing in size

49 During a network partition, a NoSQL service must accept writes in both regions and cannot coordinate synchronously. What consequence should a strong viva answer identify?

Final Assessment, Viva, and Quiz Hard
A. The service can guarantee linearizable reads because both regions continue accepting independent writes
B. The service can preserve serializable transactions by increasing the replication factor in each region
C. The service must tolerate temporary divergence and define deterministic conflict detection or resolution
D. The service must reject every read because availability applies only to writes during network partitions

50 A query filters on country, sorts by createdAt descending, and returns the newest 20 records. country has low cardinality, while createdAt is highly selective by range. Which compound index most directly supports filtering and ordered retrieval?

Final Assessment, Viva, and Quiz Hard
A. An index on { country: 1, createdAt: -1 } matching equality before sort order
B. An index on { createdAt: -1, country: 1 } for every possible country value
C. A multikey index on { country: 1, createdAt: -1 } after converting both fields to arrays
D. Separate indexes on { country: 1 } and { createdAt: 1 } with forced intersection

51 In a viva, a student says, "Eventual consistency means every replica becomes identical after a fixed number of seconds." Which correction is most accurate?

Final Assessment, Viva, and Quiz Hard
A. It implies replicas may permanently disagree even after communication and all updates have stopped
B. It implies convergence when updates cease and communication continues, not a universal time bound
C. It guarantees convergence after a vendor-defined timeout, regardless of failures or continuing writes
D. It guarantees that every read observes the most recently completed write from any replica

52 A quiz presents two replicated counters updated concurrently from initial value 10. Region A increments by 3, while Region B increments by 5. A last-write-wins register stores only the resulting absolute values. What failure can occur after reconciliation?

Final Assessment, Viva, and Quiz Hard
A. The merged value must become 18 because last-write-wins combines all commutative updates
B. The merged value must become 10 because simultaneous updates cancel under timestamp comparison
C. The merged value may become 8 because reconciliation subtracts the smaller regional increment
D. The merged value may become 13 or 15, causing one concurrent increment to be discarded

53 A globally distributed database remains fully operational without network partitions. It can either synchronously coordinate writes for lower staleness or avoid coordination for lower latency. Which principle best captures this trade-off?

Course Recap and Discussion Hard
A. ACID, because atomicity requires every globally distributed read to contact all replicas
B. CAP, because partition tolerance alone determines behavior during normal network operation
C. BASE, because soft state eliminates the need to choose between latency and consistency
D. PACELC, because latency and consistency can trade off even when no partition is present

54 An e-commerce document model embeds all product details in every order. Product names must reflect their value at purchase time, but a product's current safety-recall status must update immediately across all orders. Which redesign best preserves both semantics?

Course Recap and Discussion Hard
A. Embed the entire current product document and rewrite every order whenever any attribute changes
B. Store no product information in orders and derive purchase-time values from the latest catalog state
C. Reference only the current product document and reconstruct historical names from application logs
D. Embed an immutable product snapshot and reference a separately maintained current recall record

55 Multiple offline replicas must increment and decrement an inventory adjustment value, then merge without losing concurrent operations. Assuming every operation is eventually delivered, which data type is most suitable?

Course Recap and Discussion Hard
A. A last-write-wins register containing the latest absolute inventory adjustment
B. A grow-only counter that stores increments and encodes decrements as negative timestamps
C. A replicated scalar protected by a distributed lock held throughout every offline interval
D. A positive-negative counter CRDT with independently mergeable increment and decrement components

56 A fraud model consumes a change-data-capture stream from a NoSQL database. After a schema migration, the field amount becomes transaction.amount, and predictions silently degrade. Which course-level lesson best addresses this failure?

Course Recap and Discussion Hard
A. Model retraining should be disabled during migrations so historical features remain permanently unchanged
B. Schema-flexible databases remove the need to version events consumed by downstream machine-learning systems
C. All nested fields should be flattened automatically because flat schemas guarantee semantic compatibility
D. Change streams should carry versioned contracts, with compatibility checks and monitoring for feature drift

57 A learned index predicts record positions accurately under the training distribution, but incoming keys later become highly skewed. Which production design best limits worst-case lookup degradation?

Future Trends: AI-Augmented Databases and AutoML Hard
A. Remove conventional indexes so every lookup is forced through the learned position estimator
B. Retrain only after lookup failures and allow unbounded local scans between training cycles
C. Add bounded-error search and a conventional fallback index while monitoring distribution drift
D. Assume the original error distribution remains valid because key ordering has not changed

58 An AutoML pipeline predicts customer churn using historical NoSQL documents. Each document is later updated with retentionOfferAccepted, which is known only after the prediction date. Cross-validation reports unrealistically high accuracy. What is the best correction?

Future Trends: AI-Augmented Databases and AutoML Hard
A. Use random cross-validation with more folds so post-outcome attributes are evenly distributed
B. Create point-in-time snapshots and exclude attributes unavailable at each prediction timestamp
C. Increase regularization so the model assigns a smaller coefficient to post-outcome attributes
D. Replace classification with clustering because unsupervised models cannot suffer temporal leakage

59 An AI database assistant generates executable NoSQL queries from natural language. It occasionally proposes unrestricted updates when users ask ambiguous questions. Which control offers the strongest production safeguard?

Future Trends: AI-Augmented Databases and AutoML Hard
A. Execute generated queries immediately but increase logging verbosity for later forensic analysis
B. Use least-privilege credentials, static policy validation, dry runs, and approval for destructive actions
C. Allow unrestricted execution only when the assistant assigns its own output high confidence
D. Train on additional query examples and remove database authorization checks to reduce false rejections

60 A vector search system retrieves semantically similar documents but often returns records from unauthorized tenants. The team also needs high relevance within the permitted tenant. Which pipeline is most appropriate?

Future Trends: AI-Augmented Databases and AutoML Hard
A. Run global approximate vector search, return the top results, and remove unauthorized items afterward
B. Use a larger embedding model and assume improved semantic precision will eliminate cross-tenant matches
C. Apply tenant-aware filtering during candidate retrieval, then rerank the authorized candidates for relevance
D. Encode tenant identifiers into document text and rely on embedding similarity to enforce authorization