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. Optimize every database query
C. Conduct the final viva
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 guarantee unlimited storage
C. To replace database security
D. To test application behavior

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

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

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

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

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

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

6 Why are regular database backups important in production?

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

7 What does database monitoring help a production team identify?

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

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

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

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. The ability to memorize one isolated definition without understanding the course
B. Classroom seating order
C. Internet connection speed
D. Overall course understanding

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

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

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. Introduce an unrelated subject
B. Remove completed assignments
C. Replace all practical exercises
D. Review key concepts

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. Mandatory fixed schemas
D. Only tabular storage

15 Why is class discussion useful during a course recap?

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

16 What does CRUD stand for?

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

17 What is an AI-augmented database?

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

18 What is the main goal of AutoML?

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

19 Which database task can AI help automate?

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

20 How can anomaly detection assist database administrators?

Future Trends: AI-Augmented Databases and AutoML Easy
A. Convert every NoSQL database into a relational database
B. Create physical storage devices
C. Remove all access controls
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. Duplicate contact fields across every application table
C. Store all contact fields in one customer document
D. Encode contact fields inside a single text string

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 order description
B. An index on created_at only
C. An index on the customer name only
D. A compound index on customer_id and created_at

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 document model with flexible fields
B. A relational model with strict columns
C. A key-value model with fixed keys
D. A graph model with mandatory edge types

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. Create one database for every order item
B. Embed the order items within the order document
C. Reference the order items from separate documents
D. Store the order items in application logs

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. Enable replication across multiple nodes
B. Store backups on the same disk
C. Remove indexes from the primary node
D. Increase the font size of error messages

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

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

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

Best Practices for Production Medium
A. Daily backups stored on the same server
B. Manual exports kept on a developer laptop
C. Periodic backups stored in another region
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 read always returns data from every replica
B. The database permanently loses the new value
C. The write is guaranteed to be rejected
D. The read may temporarily return the previous value

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 color of the admin dashboard
C. The number of application comments
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 guarantees that every value is stored once
B. It makes every query independent of indexes
C. It reduces read-time joins for common access patterns
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. Storing independent session tokens by key
B. Archiving fixed-format monthly invoices
C. Tracking relationships among social network users
D. Caching a single numeric configuration value

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. Run the API with an empty documentation page
C. Change the interface color and reload the page
D. Measure response size using unrelated input

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 must use many fixed relational joins
B. Cart data requires frequent multi-hop relationship traversal
C. Cart data is primarily analyzed through complex aggregations
D. Cart data is retrieved directly using a unique cart key

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. Schema flexibility combined with distributed partitioning
B. Manual backups combined with fixed row layouts
C. Single-node storage combined with static indexing
D. Strict normalization combined with vertical scaling

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 hot partition caused by poor key distribution
B. A schema migration caused by a missing table
C. A backup failure caused by an expired certificate
D. A syntax error caused by an invalid document

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

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

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. Redesign around the most frequent access patterns
B. Remove all fields that are not indexed
C. Use one universal partition key for all records
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. Disable monitoring to reduce database overhead
B. Validate its workload impact and maintenance cost
C. Delete existing indexes before inspection
D. Apply every recommendation without testing

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. Remove all historical records to avoid bias
B. Use database keys as the only model features
C. Train the model before checking missing values
D. Define a target variable and prepare relevant features

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. Matching documents only by exact product IDs
B. Aggregating records only by numeric totals
C. Similarity search over stored vector representations
D. Sorting records only by insertion order

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 one collection and compute every latest state through runtime aggregation
C. Store events in an append-only collection and maintain a materialized latest-state collection
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. Replicate the interaction collection across regions and read features from the nearest replica
B. Share versioned feature definitions and use point-in-time-correct data for offline feature generation
C. Cache prediction results and invalidate each cached recommendation after a fixed expiration interval
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 only a key-value store and perform every graph traversal in application memory
B. Use a graph store for relationships and a document store for profiles, linked by stable identifiers
C. Use a time-series store for relationships and encode customer profiles as timestamped measurements
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. Repeat the test with larger documents while retaining uniform keys and disabling replication
B. Replay production-like skewed traffic on a replicated cluster while injecting failures and tracking tail latency
C. Measure average throughput on a developer machine after warming every query and index cache
D. Run isolated insert benchmarks against an empty collection until the measured throughput stabilizes

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. Rename the field in every document first, then deploy code that reads only phoneNumber
C. Deploy dual-read and dual-write compatibility, backfill old documents, then remove phone support
D. Deploy code that writes only phoneNumber, immediately delete phone, then rebuild all indexes

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

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. Use a shorter message visibility timeout and retry each failed payment with exponential backoff
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. Read from the nearest replica before every write and reject records with matching payment amounts

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. Retain additional replicas across regions and compare their document counts once every business day
B. Monitor replica lag continuously and assume low lag guarantees successful point-in-time restoration
C. Restore snapshots periodically, replay logs to selected timestamps, and measure verified data loss
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 must reject every read because availability applies only to writes during network partitions
B. The service must tolerate temporary divergence and define deterministic conflict detection or resolution
C. The service can guarantee linearizable reads because both regions continue accepting independent writes
D. The service can preserve serializable transactions by increasing the replication factor in each region

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 { createdAt: -1, country: 1 } for every possible country value
B. Separate indexes on { country: 1 } and { createdAt: 1 } with forced intersection
C. A multikey index on { country: 1, createdAt: -1 } after converting both fields to arrays
D. An index on { country: 1, createdAt: -1 } matching equality before sort order

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 guarantees convergence after a vendor-defined timeout, regardless of failures or continuing writes
B. It implies convergence when updates cease and communication continues, not a universal time bound
C. It implies replicas may permanently disagree even after communication and all updates have stopped
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 may become 13 or 15, causing one concurrent increment to be discarded
B. The merged value must become 18 because last-write-wins combines all commutative updates
C. The merged value may become 8 because reconciliation subtracts the smaller regional increment
D. The merged value must become 10 because simultaneous updates cancel under timestamp comparison

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. PACELC, because latency and consistency can trade off even when no partition is present
B. ACID, because atomicity requires every globally distributed read to contact all replicas
C. CAP, because partition tolerance alone determines behavior during normal network operation
D. BASE, because soft state eliminates the need to choose between latency and consistency

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

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 replicated scalar protected by a distributed lock held throughout every offline interval
C. A positive-negative counter CRDT with independently mergeable increment and decrement components
D. A grow-only counter that stores increments and encodes decrements as negative timestamps

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

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. Retrain only after lookup failures and allow unbounded local scans between training cycles
B. Add bounded-error search and a conventional fallback index while monitoring distribution drift
C. Assume the original error distribution remains valid because key ordering has not changed
D. Remove conventional indexes so every lookup is forced through the learned position estimator

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. Increase regularization so the model assigns a smaller coefficient to post-outcome attributes
B. Replace classification with clustering because unsupervised models cannot suffer temporal leakage
C. Create point-in-time snapshots and exclude attributes unavailable at each prediction timestamp
D. Use random cross-validation with more folds so post-outcome attributes are evenly distributed

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. Use least-privilege credentials, static policy validation, dry runs, and approval for destructive actions
B. Execute generated queries immediately but increase logging verbosity for later forensic analysis
C. Train on additional query examples and remove database authorization checks to reduce false rejections
D. Allow unrestricted execution only when the assistant assigns its own output high confidence

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. Apply tenant-aware filtering during candidate retrieval, then rerank the authorized candidates for relevance
B. Encode tenant identifiers into document text and rely on embedding similarity to enforce authorization
C. Run global approximate vector search, return the top results, and remove unauthorized items afterward
D. Use a larger embedding model and assume improved semantic precision will eliminate cross-tenant matches