1What is the first step when building a NoSQL mini project?
Building a Mini Project
Easy
A.Define the project requirements
B.Deploy the final application
C.Optimize every database query
D.Conduct the final viva
Correct Answer: Define the project requirements
Explanation:
Defining the requirements clarifies the project's goals, data needs, and expected features.
Incorrect! Try again.
2Why is sample data used during mini-project development?
Building a Mini Project
Easy
A.To eliminate data modeling
B.To test application behavior
C.To guarantee unlimited storage
D.To replace database security
Correct Answer: To test application behavior
Explanation:
Sample data helps developers verify that database operations and application features work correctly.
Incorrect! Try again.
3Which operation adds a new document to a NoSQL database?
Building a Mini Project
Easy
A.Update
B.Delete
C.Create
D.Read
Correct Answer: Create
Explanation:
Create is the CRUD operation used to add a new document or record.
Incorrect! Try again.
4What 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
Correct Answer: Organize stored data
Explanation:
A data model defines how information is structured, related, and stored in the database.
Incorrect! Try again.
5Which practice helps prevent unauthorized access to a production database?
Best Practices for Production
Easy
A.Share administrator passwords
B.Use authentication
C.Disable all backups
D.Store credentials in public files
Correct Answer: Use authentication
Explanation:
Authentication verifies user identities before granting access to the database.
Incorrect! Try again.
6Why are regular database backups important in production?
Best Practices for Production
Easy
A.They permanently prevent every possible hardware and software failure
B.They replace user authentication
C.They increase screen resolution
D.They support data recovery
Correct Answer: They support data recovery
Explanation:
Backups allow data to be restored after accidental deletion, corruption, or system failure.
Incorrect! Try again.
7What does database monitoring help a production team identify?
Best Practices for Production
Easy
A.Performance problems
B.The programming language preferred by every database user
C.Student attendance records
D.Project presentation colors
Correct Answer: Performance problems
Explanation:
Monitoring reveals issues such as slow queries, high resource usage, and service failures.
Incorrect! Try again.
8Which principle gives users only the permissions required for their tasks?
Best Practices for Production
Easy
A.Data duplication
B.Open access
C.Unlimited authorization
D.Least privilege
Correct Answer: Least privilege
Explanation:
The principle of least privilege limits each user to the minimum permissions needed.
Incorrect! Try again.
9What is a viva in an academic course?
Final Assessment, Viva, and Quiz
Easy
A.An oral examination
B.A deployment server
C.An automated indexing method
D.A database backup
Correct Answer: An oral examination
Explanation:
A viva is an oral assessment in which students answer questions about concepts or project work.
Incorrect! Try again.
10What 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.Overall course understanding
C.Classroom seating order
D.Internet connection speed
Correct Answer: Overall course understanding
Explanation:
A final assessment checks how well students understand and apply the main course concepts.
Incorrect! Try again.
11Which preparation method is most useful before a project viva?
Final Assessment, Viva, and Quiz
Easy
A.Change the database at random
B.Avoid testing the application
C.Review project decisions
D.Delete project documentation
Correct Answer: Review project decisions
Explanation:
Reviewing design choices and implementation details helps students explain their work clearly.
Incorrect! Try again.
12What 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.Database server ownership
C.Computer manufacturing quality
D.Knowledge of course concepts
Correct Answer: Knowledge of course concepts
Explanation:
A quiz checks understanding and recall of concepts covered in the course.
Incorrect! Try again.
13What is the main purpose of a course recap?
Course Recap and Discussion
Easy
A.Introduce an unrelated subject
B.Review key concepts
C.Replace all practical exercises
D.Remove completed assignments
Correct Answer: Review key concepts
Explanation:
A recap reinforces the important ideas and skills covered throughout the course.
Incorrect! Try again.
14Which 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.Mandatory fixed schemas
C.Only tabular storage
D.Flexible data models
Correct Answer: Flexible data models
Explanation:
Many NoSQL databases support flexible structures for storing varied or changing data.
Incorrect! Try again.
15Why is class discussion useful during a course recap?
Course Recap and Discussion
Easy
A.It clarifies doubts
B.It guarantees identical opinions
C.It disables assessment
D.It removes course content
Correct Answer: It clarifies doubts
Explanation:
Discussion lets students ask questions, compare ideas, and resolve misunderstandings.
Incorrect! Try again.
16What does CRUD stand for?
Course Recap and Discussion
Easy
A.Create, Record, Upgrade, Design, and permanently synchronize every database node
B.Create, Read, Update, Delete
C.Connect, Restore, Use, Deploy
D.Copy, Run, Upload, Download
Correct Answer: Create, Read, Update, Delete
Explanation:
CRUD names the four basic operations performed on stored data.
Incorrect! Try again.
17What is an AI-augmented database?
Future Trends: AI-Augmented Databases and AutoML
Easy
A.A database operated only through handwritten commands
B.A database enhanced by AI
C.A database limited to images
D.A database without stored data
Correct Answer: A database enhanced by AI
Explanation:
An AI-augmented database uses artificial intelligence to improve tasks such as optimization and management.
Incorrect! Try again.
18What 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.Replace database backups
D.Automate machine learning tasks
Correct Answer: Automate machine learning tasks
Explanation:
AutoML automates parts of the machine learning workflow, such as model selection and tuning.
Incorrect! Try again.
19Which database task can AI help automate?
Future Trends: AI-Augmented Databases and AutoML
Easy
A.Writing every business requirement without any input from users or stakeholders
B.Keyboard manufacturing
C.Classroom scheduling
D.Query optimization
Correct Answer: Query optimization
Explanation:
AI can analyze query patterns and help choose more efficient ways to execute queries.
Incorrect! Try again.
20How can anomaly detection assist database administrators?
Future Trends: AI-Augmented Databases and AutoML
Easy
A.Create physical storage devices
B.Identify unusual behavior
C.Remove all access controls
D.Convert every NoSQL database into a relational database
Correct Answer: Identify unusual behavior
Explanation:
Anomaly detection highlights unusual activity that may indicate errors, failures, or security threats.
Incorrect! Try again.
21A 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 all contact fields in one customer document
B.Encode contact fields inside a single text string
C.Duplicate contact fields across every application table
D.Store each contact field in a separate database
Correct Answer: Store all contact fields in one customer document
Explanation:
A document containing related contact fields can be updated as one logical unit, reducing unnecessary joins and synchronization problems.
Incorrect! Try again.
22A 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.A compound index on customer_id and created_at
B.An index on created_at only
C.An index on the order description
D.An index on the customer name only
Correct Answer: A compound index on customer_id and created_at
Explanation:
The compound index matches both the filtering field and the sorting field used by the dashboard query.
Incorrect! Try again.
23A 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
Correct Answer: A document model with flexible fields
Explanation:
Document databases commonly support variable fields within documents, making them suitable for evolving product attributes.
Incorrect! Try again.
24A 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.Embed the order items within the order document
B.Create one database for every order item
C.Reference the order items from separate documents
D.Store the order items in application logs
Correct Answer: Embed the order items within the order document
Explanation:
Embedding is efficient when related data is read together, has a bounded size, and does not need to be shared independently.
Incorrect! Try again.
25An application must remain available when one database node fails. Which production practice most directly addresses this requirement?
Best Practices for Production
Medium
A.Remove indexes from the primary node
B.Increase the font size of error messages
C.Store backups on the same disk
D.Enable replication across multiple nodes
Correct Answer: Enable replication across multiple nodes
Explanation:
Replication maintains additional copies of data so another node can serve requests or support recovery after a failure.
Incorrect! Try again.
26A 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.Add random indexes to every field
C.Delete older records without analysis
D.Inspect the query plan and access pattern
Correct Answer: Inspect the query plan and access pattern
Explanation:
Query-plan inspection identifies whether the issue is a missing index, inefficient filtering, excessive data retrieval, or another access-pattern problem.
Incorrect! Try again.
27Which backup strategy provides the strongest protection against accidental deletion and regional infrastructure failure?
Best Practices for Production
Medium
A.A single snapshot taken before deployment
B.Periodic backups stored in another region
C.Manual exports kept on a developer laptop
D.Daily backups stored on the same server
Correct Answer: Periodic backups stored in another region
Explanation:
Off-site or cross-region backups reduce the risk that a local hardware problem or regional outage destroys both primary data and backups.
Incorrect! Try again.
28A 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 read may temporarily return the previous value
C.The database permanently loses the new value
D.The write is guaranteed to be rejected
Correct Answer: The read may temporarily return the previous value
Explanation:
Under eventual consistency, replicas may need time to converge, so a read shortly after a write can temporarily observe stale data.
Incorrect! Try again.
29Which metric is most useful for detecting that a production NoSQL cluster is approaching capacity?
Best Practices for Production
Medium
A.The number of application comments
B.Database storage utilization
C.The number of source-code files
D.The color of the admin dashboard
Correct Answer: Database storage utilization
Explanation:
Storage utilization indicates how much capacity remains and can provide an early warning before writes begin to fail.
Incorrect! Try again.
30During 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 removes the need for data validation
B.It guarantees that every value is stored once
C.It reduces read-time joins for common access patterns
D.It makes every query independent of indexes
Correct Answer: It reduces read-time joins for common access patterns
Explanation:
Denormalization duplicates selected data to make frequent reads faster and simpler, although it introduces update and consistency trade-offs.
Incorrect! Try again.
31A quiz asks which situation is most appropriate for a graph database. Which scenario should be selected?
Final Assessment, Viva, and Quiz
Medium
A.Caching a single numeric configuration value
B.Archiving fixed-format monthly invoices
C.Storing independent session tokens by key
D.Tracking relationships among social network users
Correct Answer: Tracking relationships among social network users
Explanation:
Graph databases are designed for connected data and efficiently support traversals across relationships such as follows, friendships, or recommendations.
Incorrect! Try again.
32A project assessment requires evidence that an API handles duplicate requests safely. Which test best evaluates this property?
Final Assessment, Viva, and Quiz
Medium
A.Change the interface color and reload the page
B.Run the API with an empty documentation page
C.Submit the same operation twice and compare the result
D.Measure response size using unrelated input
Correct Answer: Submit the same operation twice and compare the result
Explanation:
Repeating the same request tests idempotency and reveals whether duplicate submissions create unintended duplicate records or effects.
Incorrect! Try again.
33Which explanation would best justify selecting a key-value database for a shopping-cart service?
Final Assessment, Viva, and Quiz
Medium
A.Cart data requires frequent multi-hop relationship traversal
B.Cart data is primarily analyzed through complex aggregations
C.Cart data is retrieved directly using a unique cart key
D.Cart data must use many fixed relational joins
Correct Answer: Cart data is retrieved directly using a unique cart key
Explanation:
Key-value databases are effective when records are accessed directly through a known unique key, such as a user or cart identifier.
Incorrect! Try again.
34A 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
Correct Answer: Schema flexibility combined with distributed partitioning
Explanation:
NoSQL systems often support changing record structures and distribute data across nodes to scale storage and traffic horizontally.
Incorrect! Try again.
35During 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 schema migration caused by a missing table
B.A syntax error caused by an invalid document
C.A backup failure caused by an expired certificate
D.A hot partition caused by poor key distribution
Correct Answer: A hot partition caused by poor key distribution
Explanation:
A low-cardinality or skewed partition key can send disproportionate traffic and data to one partition, creating a hot spot.
Incorrect! Try again.
36Which statement best summarizes the trade-off between strong and eventual consistency?
Course Recap and Discussion
Medium
A.Strong consistency prevents scaling, while eventual consistency prevents indexing
B.Strong consistency applies only to graphs, while eventual consistency applies only to documents
C.Strong consistency favors immediate accuracy, while eventual consistency favors availability or performance
D.Strong consistency removes replication, while eventual consistency removes all failures
Correct Answer: Strong consistency favors immediate accuracy, while eventual consistency favors availability or performance
Explanation:
Strong consistency provides the latest confirmed value, while eventual consistency can improve availability or latency by allowing temporary replica differences.
Incorrect! Try again.
37A 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.Replace every document with a relational table
D.Use one universal partition key for all records
Correct Answer: Redesign around the most frequent access patterns
Explanation:
NoSQL data models are usually query-driven, so common reads, writes, and scalability requirements should guide document and partition design.
Incorrect! Try again.
38An 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.Delete existing indexes before inspection
B.Disable monitoring to reduce database overhead
C.Apply every recommendation without testing
D.Validate its workload impact and maintenance cost
Correct Answer: Validate its workload impact and maintenance cost
Explanation:
An index may improve one query while increasing storage use and write overhead, so recommendations should be tested against the broader workload.
Incorrect! Try again.
39A 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.Train the model before checking missing values
C.Define a target variable and prepare relevant features
D.Use database keys as the only model features
Correct Answer: Define a target variable and prepare relevant features
Explanation:
AutoML still requires a clear prediction target and usable input features; data quality and feature preparation strongly affect model performance.
Incorrect! Try again.
40An 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.Aggregating records only by numeric totals
C.Matching documents only by exact product IDs
D.Similarity search over stored vector representations
Correct Answer: Similarity search over stored vector representations
Explanation:
Semantic search compares embedding vectors by similarity, allowing related meanings to match even when exact keywords differ.
Incorrect! Try again.
41A 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 events in an append-only collection and maintain a materialized latest-state collection
B.Store only the latest reading and reconstruct history from periodic database snapshots
C.Store one growing array of readings inside a document for each registered device
D.Store events in one collection and compute every latest state through runtime aggregation
Correct Answer: Store events in an append-only collection and maintain a materialized latest-state collection
Explanation:
The append-only collection supports scalable historical ingestion, while the materialized collection makes latest-state reads predictable and fast.
Incorrect! Try again.
42A 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.Share versioned feature definitions and use point-in-time-correct data for offline feature generation
B.Replicate the interaction collection across regions and read features from the nearest replica
C.Increase model complexity and retrain whenever the online accuracy falls below a threshold
D.Cache prediction results and invalidate each cached recommendation after a fixed expiration interval
Correct Answer: Share versioned feature definitions and use point-in-time-correct data for offline feature generation
Explanation:
Shared transformations reduce training-serving skew, and point-in-time joins prevent future information from leaking into historical training features.
Incorrect! Try again.
43A 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 graph store for relationships and a document store for profiles, linked by stable identifiers
B.Use a time-series store for relationships and encode customer profiles as timestamped measurements
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
Correct Answer: Use a graph store for relationships and a document store for profiles, linked by stable identifiers
Explanation:
Polyglot persistence matches graph traversal and profile lookup to suitable models, while stable identifiers preserve cross-store correspondence.
Incorrect! Try again.
44A 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.Run isolated insert benchmarks against an empty collection until the measured throughput stabilizes
D.Measure average throughput on a developer machine after warming every query and index cache
Correct Answer: Replay production-like skewed traffic on a replicated cluster while injecting failures and tracking tail latency
Explanation:
Production evidence must include realistic skew, replication costs, failure behavior, and tail latency rather than only average throughput.
Incorrect! Try again.
45A 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.Deploy dual-read and dual-write compatibility, backfill old documents, then remove phone support
B.Deploy code that writes only phoneNumber, immediately delete phone, then rebuild all indexes
C.Pause writes, export the collection, rename the field offline, and replace the original collection
D.Rename the field in every document first, then deploy code that reads only phoneNumber
Correct Answer: Deploy dual-read and dual-write compatibility, backfill old documents, then remove phone support
Explanation:
This expand-and-contract migration supports mixed application versions and allows backfilling before the legacy field is retired.
Incorrect! Try again.
46An 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.Retain tenantId partitioning and add secondary indexes for timestamp and order creation date
B.Partition only by timestamp so recent writes remain grouped within one continuously active partition
C.Add a bounded hash bucket to the tenant-time key and query the relevant buckets in parallel
D.Partition by order status so all pending orders are colocated for operational query processing
Correct Answer: Add a bounded hash bucket to the tenant-time key and query the relevant buckets in parallel
Explanation:
A bounded hash bucket spreads the heavy tenant's writes while preserving tenant-time access through controlled parallel fan-out.
Incorrect! Try again.
47A 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.Read from the nearest replica before every write and reject records with matching payment amounts
C.Acknowledge each message before database processing so the broker cannot deliver it more than once
D.Store a message identifier and payment mutation atomically using a conditional idempotency check
Correct Answer: Store a message identifier and payment mutation atomically using a conditional idempotency check
Explanation:
An atomic idempotency record ensures that redelivered messages cannot apply the same business effect twice.
Incorrect! Try again.
48A 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.Confirm that snapshots complete hourly and that archived log files continue increasing in size
B.Restore snapshots periodically, replay logs to selected timestamps, and measure verified data loss
C.Retain additional replicas across regions and compare their document counts once every business day
D.Monitor replica lag continuously and assume low lag guarantees successful point-in-time restoration
Correct Answer: Restore snapshots periodically, replay logs to selected timestamps, and measure verified data loss
Explanation:
Only tested restoration and timestamped log replay demonstrate that backups are usable and that actual data loss stays within the recovery objective.
Incorrect! Try again.
49During 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 preserve serializable transactions by increasing the replication factor in each region
B.The service can guarantee linearizable reads because both regions continue accepting independent writes
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
Correct Answer: The service must tolerate temporary divergence and define deterministic conflict detection or resolution
Explanation:
Accepting writes on both sides of a partition favors availability, so replicas can diverge and require explicit reconciliation.
Incorrect! Try again.
50A 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.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 { createdAt: -1, country: 1 } for every possible country value
Correct Answer: An index on { country: 1, createdAt: -1 } matching equality before sort order
Explanation:
Placing the equality field first lets the database scan one country's entries directly in the requested time order.
Incorrect! Try again.
51In 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 guarantees that every read observes the most recently completed write from any replica
C.It implies convergence when updates cease and communication continues, not a universal time bound
D.It guarantees convergence after a vendor-defined timeout, regardless of failures or continuing writes
Correct Answer: It implies convergence when updates cease and communication continues, not a universal time bound
Explanation:
Eventual consistency describes convergence under suitable conditions; it does not inherently specify a fixed convergence deadline.
Incorrect! Try again.
52A 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 may become 8 because reconciliation subtracts the smaller regional increment
C.The merged value may become 13 or 15, causing one concurrent increment to be discarded
D.The merged value must become 10 because simultaneous updates cancel under timestamp comparison
Correct Answer: The merged value may become 13 or 15, causing one concurrent increment to be discarded
Explanation:
Last-write-wins selects one absolute state rather than merging increment operations, so a concurrent update can be lost.
Incorrect! Try again.
53A 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.BASE, because soft state eliminates the need to choose between latency and consistency
C.CAP, because partition tolerance alone determines behavior during normal network operation
D.PACELC, because latency and consistency can trade off even when no partition is present
Correct Answer: PACELC, because latency and consistency can trade off even when no partition is present
Explanation:
PACELC extends partition-time reasoning by explicitly describing the latency-versus-consistency trade-off during normal operation.
Incorrect! Try again.
54An 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.Embed the entire current product document and rewrite every order whenever any attribute changes
C.Reference only the current product document and reconstruct historical names from application logs
D.Store no product information in orders and derive purchase-time values from the latest catalog state
Correct Answer: Embed an immutable product snapshot and reference a separately maintained current recall record
Explanation:
Purchase-time attributes belong in an immutable snapshot, while rapidly changing global status is better referenced from a canonical record.
Incorrect! Try again.
55Multiple 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
Correct Answer: A positive-negative counter CRDT with independently mergeable increment and decrement components
Explanation:
A positive-negative counter preserves concurrent increments and decrements through monotonic component-wise merging.
Incorrect! Try again.
56A 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.Change streams should carry versioned contracts, with compatibility checks and monitoring for feature drift
B.Model retraining should be disabled during migrations so historical features remain permanently unchanged
C.All nested fields should be flattened automatically because flat schemas guarantee semantic compatibility
D.Schema-flexible databases remove the need to version events consumed by downstream machine-learning systems
Correct Answer: Change streams should carry versioned contracts, with compatibility checks and monitoring for feature drift
Explanation:
Schema flexibility does not ensure semantic compatibility; versioned contracts and feature monitoring protect downstream models.
Incorrect! Try again.
57A 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.Assume the original error distribution remains valid because key ordering has not changed
B.Add bounded-error search and a conventional fallback index while monitoring distribution drift
C.Retrain only after lookup failures and allow unbounded local scans between training cycles
D.Remove conventional indexes so every lookup is forced through the learned position estimator
Correct Answer: Add bounded-error search and a conventional fallback index while monitoring distribution drift
Explanation:
A bounded search region, fallback structure, and drift monitoring preserve correctness and predictable performance when the learned model becomes inaccurate.
Incorrect! Try again.
58An 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.Use random cross-validation with more folds so post-outcome attributes are evenly distributed
C.Replace classification with clustering because unsupervised models cannot suffer temporal leakage
D.Create point-in-time snapshots and exclude attributes unavailable at each prediction timestamp
Correct Answer: Create point-in-time snapshots and exclude attributes unavailable at each prediction timestamp
Explanation:
The pipeline has temporal leakage. Training examples must contain only information that would have been available when each prediction was made.
Incorrect! Try again.
59An 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.Allow unrestricted execution only when the assistant assigns its own output high confidence
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.Use least-privilege credentials, static policy validation, dry runs, and approval for destructive actions
Correct Answer: Use least-privilege credentials, static policy validation, dry runs, and approval for destructive actions
Explanation:
Layered enforcement constrains the assistant independently of model confidence and blocks unsafe or ambiguous destructive operations.
Incorrect! Try again.
60A 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
Correct Answer: Apply tenant-aware filtering during candidate retrieval, then rerank the authorized candidates for relevance
Explanation:
Authorization must constrain candidate generation rather than depend on post-filtering or embedding semantics; reranking can then optimize relevance safely.
Incorrect! Try again.
Did this save you a night before the exam?
LPU Notes is free, and it stays free. Ads cover part of the server bill.
The rest comes out of a student's own pocket: the domain, the storage,
and keeping the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.
Nothing here is ever locked, and nothing unlocks. Chip in only if it was worth it.
What it pays for →