1What 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
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 guarantee unlimited storage
C.To replace database security
D.To test application behavior
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.Delete
B.Read
C.Update
D.Create
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.Disable all backups
B.Share administrator passwords
C.Use authentication
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 replace user authentication
B.They increase screen resolution
C.They permanently prevent every possible hardware and software failure
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.The programming language preferred by every database user
B.Performance problems
C.Project presentation colors
D.Student attendance records
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.Least privilege
C.Unlimited authorization
D.Open access
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.A database backup
B.An oral examination
C.A deployment server
D.An automated indexing method
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.Classroom seating order
C.Internet connection speed
D.Overall course understanding
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.Review project decisions
C.Avoid testing the application
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.Knowledge of course concepts
C.Database server ownership
D.Computer manufacturing quality
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.Remove completed assignments
C.Replace all practical exercises
D.Review key concepts
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.Flexible data models
C.Mandatory fixed schemas
D.Only tabular storage
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 removes course content
B.It disables assessment
C.It guarantees identical opinions
D.It clarifies doubts
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.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
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 without stored data
C.A database limited to images
D.A database enhanced by AI
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.Automate machine learning tasks
D.Replace database backups
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.Keyboard manufacturing
B.Query optimization
C.Writing every business requirement without any input from users or stakeholders
D.Classroom scheduling
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.Convert every NoSQL database into a relational database
B.Create physical storage devices
C.Remove all access controls
D.Identify unusual behavior
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 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
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.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
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 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
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.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
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.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
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.Inspect the query plan and access pattern
C.Delete older records without analysis
D.Add random indexes to every field
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.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
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 database permanently loses the new value
C.The write is guaranteed to be rejected
D.The read may temporarily return the previous value
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 source-code files
B.The color of the admin dashboard
C.The number of application comments
D.Database storage utilization
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 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
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.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
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.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
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 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
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 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
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 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
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.Use one universal partition key for all records
D.Replace every document with a relational table
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.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
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.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
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.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
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 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
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.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
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 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
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.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
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.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
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.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
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.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
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.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
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 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
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 { 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
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 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
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 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
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.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
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.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
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.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
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.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
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.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
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.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
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.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
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 →