Made with ScholarlyMake flashcards like these from your own notes
Question:What is a key difference between NoSQL and relational databases?
Answer:NoSQL models data differently, fitting specific use cases without fixed schemas.
Question:Define the ACID principles of relational databases.
Answer:Atomicity, Consistency, Isolation, Durability—ensuring reliable and safe transactions.
Question:What does the CAP theorem state about distributed databases?
Answer:A database can only satisfy two of the: consistency, availability, partition tolerance.
Question:Why do NoSQL databases typically follow the BASE principles?
Answer:Because distributed NoSQL systems choose availability and partition tolerance over strict consistency.
Question:Which NoSQL database type is best suited for highly interconnected data like social networks?
Answer:Graph database.
Question:What is the main motivation for companies to adopt NoSQL databases over traditional RDBMS?
Answer:To handle large volumes, variety, velocity of data, and scalable partitioning.
Question:How does a document store compare to a traditional relational database?
Answer:Stores entire documents as units, reducing need for normalization and complex joins.
Question:What are key-value stores optimized for?
Answer:Scalability and fast retrieval of large data volumes via key-based access.
Question:When is a column-oriented database preferable over a row-oriented one?
Answer:In analytical queries and reporting, for summing and counting large datasets.
Question:What role does sharding play in NoSQL systems like Elasticsearch?
Answer:Distributes data across shards and replicas for scalability and fault tolerance.
Question:How does the BASE model relate to eventual consistency?
Answer:It guarantees data will become consistent over time through eventual synchronization.
Question:Why are NewSQL databases considered a bridge between relational and NoSQL systems?
Answer:They retain ACID features while supporting distributed, scalable architectures.
Question:What are the main types of NoSQL databases discussed?
Answer:Document store, key-value store, graph database, column database.
Question:In the context of NoSQL, what is the significance of the ability to model data differently?
Answer:It allows tailoring the database structure to specific use cases, improving efficiency.
Question:Which NoSQL database type is particularly suitable for storing hierarchical or nested data?
Answer:Document store.
Question:Why might a business choose to turn off database nodes temporarily to ensure consistency?
Answer:To prevent selling more items than the stock during partition failures.
Question:What is the main challenge CAP theorem highlights in multi-node database design?
Answer:Balancing consistency, availability, and partition tolerance.
Question:What is a common use case for graph databases?
Answer:Modeling interconnected relationships like social networks or citation graphs.
Question:What is the advantage of column-oriented databases for analytical processing?
Answer:Fast aggregation and summing operations on large datasets.
Question:How does NoSQL's approach to schema differ from relational databases?
Answer:NoSQL allows flexible, schema-less or semi-structured data modeling.
Question:What does the 'soft state' aspect of BASE imply about system data?
Answer:System state may change over time without explicit updates.
Question:In what scenario might a relational database still be preferable?
Answer:For small datasets requiring complex joins and strict consistency.
Question:What is the primary purpose of normalization in relational databases?
Answer:To reduce data redundancy by storing each piece of data only once.
Question:Why are graph databases gaining popularity over other database types?
Answer:They efficiently model highly connected, complex relationships.
Question:What does 'sharding' entail in NoSQL systems?
Answer:Partitioning data into smaller pieces across multiple servers or nodes.
Question:What is a key benefit of using Elasticsearch with a NoSQL approach?
Answer:Efficient, scalable search and analysis of large unstructured data.
Question:Which NoSQL database type is most suitable for simple key-value pairs?
Answer:Key-value store.
Question:What is the significance of the 'eventual consistency' concept?
Answer:Data will synchronize and become consistent after some delay.
Question:Name a popular graph database that supports ACID properties.
Answer:Neo4j.
Question:How does NoSQL database modeling differ in terms of data normalization?
Answer:NoSQL often forgo normalization to allow flexible or denormalized data.
Question:What is a major limitation of multi-node distributed databases as per CAP?
Answer:You must choose between consistency and availability during network partitions.
Question:Why is modeling data for a graph database complex?
Answer:Because of the wide interconnectivity and multiple relationship types.
Question:What is the primary purpose of Elasticsearch within the described case study?
Answer:Full-text search engine for disease diagnosis.
Question:Why does Elasticsearch remain effective despite spelling or entry errors?
Answer:Full-text search is robust against common errors like misspellings.
Question:What is the main advantage of using a document store like Elasticsearch for medical data?
Answer:It enables fast, flexible, and full-text search over unstructured data.
Question:Why is creating a schema in Elasticsearch beneficial despite its schema-less claim?
Answer:It ensures predictable data types and search behavior.
Question:How does the example query '+fatigue+fever+
Answer:The plus sign makes symptoms mandatory in the search.
Question:What role do field weights (e.g., ^5, ^10) play in Elasticsearch searches?
Answer:They increase the importance of matches in specific fields.
Question:What is the significance of phrase matching in Elasticsearch queries?
Answer:It searches for exact phrases enclosed in quotes.
Question:How does adding additional symptoms, like 'rash' and 'chest pain,' refine the disease diagnosis?
Answer:It narrows results, increasing the likelihood of correct diagnosis.
Question:In the context of the case study, why might some diseases like HGE appear after more symptoms are added?
Answer:Additional symptoms improve specificity, filtering out less relevant results.
Question:What is the main challenge of relying solely on symptom-based search engines for diagnoses?
Answer:Limited data complexity and factors beyond symptoms affect accuracy.
Question:How does document indexing in Elasticsearch facilitate disease diagnostics?
Answer:It allows quick retrieval of relevant disease information based on symptoms.
Question:Why is it important to exclude links starting with 'list' when indexing diseases from Wikipedia?
Answer:They are non-disease pages, not relevant for diagnosis.
Question:What is the role of the 'body' of the document in the Elasticsearch index?
Answer:Contains full text content for comprehensive search.
Question:Why should one avoid over-complicating search queries in this context?
Answer:Simple, relevant queries improve performance and result interpretability.
Question:What is the main benefit of profiling a disease by its keywords in this project?
Answer:Facilitates educational understanding and epidemic detection.
Question:What advantage does Elasticsearch have over MongoDB in this case study?
Answer:It specializes in full-text search, ideal for symptom-based queries.
Question:How can fuzzy searches or regular expressions enhance diagnosis accuracy?
Answer:They allow handling typos and partial matches, improving search robustness.
Question:In setting the research goal, what is the secondary goal besides creating a search engine?
Answer:Profiling diseases by their keywords for educational and epidemiological use.
Question:Why is it recommended to limit data retrieval to specific pages rather than the whole Wikipedia dump?
Answer:To conserve storage, bandwidth, and focus on relevant data.
Question:What is the function of the 'mapping' in Elasticsearch schema design?
Answer:Defines data types and structure for predictable indexing and search.
Question:Why is it important to handle symptom phrases as exact strings in queries?
Answer:To ensure precise phrase matching and relevant results.
Question:What makes Elasticsearch an attractive choice over Solr for small projects?
Answer:Ease of setup and configuration.
Question:How does including the disease name as a document ID benefit searches?
Answer:It allows quick lookup and avoids duplicates.
Question:What is the main challenge when extending this approach to other data sources or more symptoms?
Answer:Matching inconsistent disease identifiers and managing complex queries.
Question:What is the significance of the 'score' in search results?
Answer:Indicates how well a disease matches the search query.
Question:Why might a disease not appear in the top results initially?
Answer:Insufficient symptom matches or lower relevance score.
Question:How can adding symptoms iteratively help confirm a disease diagnosis?
Answer:It refines search results, increasing the likelihood of correct identification.
Question:What is the main limitation of a symptom-based search engine compared to expert diagnosis?
Answer:Missing contextual and nuanced medical information.
Question:What is the importance of full text and title fields in the search index?
Answer:They provide multiple relevance points for matching symptoms and disease names.
Question:Why does Elasticsearch support different field weights during search?
Answer:To prioritize matches in more critical fields like titles.
Question:What is the primary benefit of using Python libraries in this case study?
Answer:Automates data retrieval and indexing, enabling rapid iteration.
Question:How does full-text search help in medical diagnosis applications?
Answer:Quickly retrieves relevant disease information based on unstructured data.
Question:What must be true for the search engine to correctly diagnose a disease?
Answer:The symptoms and data must be accurately indexed and queried.
Question:Why is creating an index mapping crucial before indexing diseases?
Answer:It ensures consistent data types and optimized search.
Question:What additional symptom confirms lupus when face rash is absent?
Answer:Chest pain
Question:Which operator does Elasticsearch use to include multiple conditions in a query?
Answer:Logical AND
Question:What is the Damerau-Levenshtein distance used for in search engines?
Answer:Handling spelling mistakes with transpositions
Question:Why are filters in Elasticsearch faster than search queries?
Answer:They are less complex and cacheable
Question:What is the purpose of significant terms aggregation in Elasticsearch?
Answer:Identifying keywords that distinguish a disease
Question:What is an n-gram, such as a bigram or trigram, in text analysis?
Answer:A continuous sequence of n words or characters
Question:When indexing for disease profiling, why might using bigrams improve results?
Answer:They capture meaningful word pairs in text
Question:What does the process of data cleansing in text analysis typically involve?
Answer:Stop word filtering or removing common words
Question:What is a custom analyzer in Elasticsearch used for?
Answer:To define specific tokenization and filtering processes like bigram creation
Question:In the context of NoSQL, what does the BASE acronym stand for?
Answer:Basic availability, soft state, eventual consistency
Question:What does the CAP Theorem imply for distributed databases?
Answer:You can't have consistency and availability simultaneously
Question:Name a key-value store that is known for its size and versatility.
Answer:Redis
Question:What distinguishes a graph database from other NoSQL types?
Answer:It models entities and relations explicitly
Question:Why is Elasticsearch considered both a document store and a search engine?
Answer:It stores data as documents and performs full-text search
Question:What is the primary benefit of using significant terms aggregation in disease profiling?
Answer:Identifies characteristic keywords in the dataset
Question:How does the use of filters prior to queries enhance performance in Elasticsearch?
Answer:Filters are faster, less resource-intensive, and cacheable
Question:What is the main difference between a search query and a filter in Elasticsearch?
Answer:Search query scores and ranks results; filter applies an inclusion/exclusion criterion without scoring
Question:What operation in Damerau-Levenshtein distance accounts for transposing characters?
Answer:Adjacent character transposition
Question:How does Elasticsearch combine query and filter in a search request?
Answer:Filters narrow down data, and queries rank results within that subset
Question:Why might bigrams be preferable to trigrams or higher n-grams in some indexing scenarios?
Answer:They balance storage and meaningful phrase detection
Question:What role does Elasticsearch index settings play in enabling bi-gram creation?
Answer:They configure token filters like the shingle filter for bigram generation
Question:What is the purpose of closing and reopening an Elasticsearch index after changing settings?
Answer:To apply index configuration updates