26 January 2026

#Pinecone


Key Concepts


S.No Topic Sub topic
1 Pinecone Vector database, embeddings, namespaces, indexes, records, metadata, similarity search
2 Architecture Control plane, data plane, indexes, namespaces, storage, query layer, scaling
3 Account & Project Setup Account, projects, API keys, regions, environments, SDK setup, authentication
4 API & SDK Python SDK, JavaScript SDK, REST API, API clients, connection management, configuration, error handling
5 Index Fundamentals Dense indexes, sparse indexes, vector dimensions, similarity metrics, index creation, index configuration, index lifecycle
6 Dense Vectors Dense embeddings, vector dimensions, embedding models, semantic search, cosine similarity, dot product, Euclidean distance
7 Sparse Vectors Sparse embeddings, lexical search, token weights, sparse indexes, keyword retrieval, hybrid retrieval, sparse search
8 Embeddings OpenAI embeddings, Cohere embeddings, Hugging Face models, dimension compatibility, model selection, query embeddings, document embeddings
9 Index Creation Index name, dimension, metric, cloud, region, serverless indexes, index configuration
10 Serverless Indexes Serverless architecture, cloud regions, scaling, storage, read units, write units, cost optimization
11 Integrated Embeddings Embedding models, integrated inference, field mapping, document ingestion, text search, model selection, retrieval
12 Records Record IDs, vector values, metadata, text fields, namespaces, upsert, retrieval
13 Upsert Operations Single upsert, batch upsert, vector records, metadata updates, namespace targeting, batching, error handling
14 Fetch & List Fetch by ID, list IDs, pagination, namespace filtering, record retrieval, metadata retrieval, consistency
15 Update & Delete Update vectors, update metadata, delete by ID, delete by metadata, namespace deletion, cleanup, lifecycle management
16 Namespaces Namespace creation, namespace isolation, multitenancy, tenant data, namespace querying, namespace deletion, namespace design
17 Metadata Metadata fields, strings, numbers, booleans, arrays, metadata filtering, metadata indexing
18 Metadata Filtering Equality, inequality, logical AND, logical OR, IN, NOT IN, nested filters, filter expressions
19 Query Query vectors, Top-K, similarity scores, include values, include metadata, filters, namespace search
20 Similarity Metrics Cosine, dot product, Euclidean distance, metric selection, score interpretation, normalization, ranking
21 Hybrid Search Dense vectors, sparse vectors, lexical search, semantic search, score combination, weighting, reranking
22 Search & Reranking Candidate retrieval, reranking models, relevance scoring, Top-K candidates, final Top-K, latency, accuracy
23 Semantic Search Query embedding, document embedding, vector search, metadata filters, relevance ranking, thresholding, result processing
24 RAG Pipeline Document loading, chunking, embeddings, Pinecone indexing, retrieval, context construction, LLM generation
25 Chunking Strategy Fixed chunks, recursive chunks, semantic chunks, chunk overlap, metadata, parent-child chunks, retrieval quality
26 LangChain Integration Pinecone vector store, embeddings, retrievers, similarity search, metadata filters, RAG chains, document loaders
27 LlamaIndex Integration Pinecone vector store, VectorStoreIndex, nodes, embeddings, retrievers, query engine, RAG
28 Java Integration Pinecone Java SDK, API authentication, index operations, upsert, query, metadata filters, RAG integration
29 Performance & Cost Query latency, throughput, batching, read units, write units, index sizing, cost optimization
30 Production & Operations Security, API key management, multitenancy, monitoring, backups, scaling, production RAG architecture

Interview question

What is Pinecone?
What is a vector database?
What problem does Pinecone solve?
What is a vector?
What is an embedding?
What is a vector embedding?
What is a dense vector?
What is a sparse vector?
What is a Pinecone index?
What is a serverless index?
What is a namespace?
What is a vector ID?
What is vector metadata?
What is metadata filtering?
What is a filter expression?
What is similarity search?
What is semantic search?
What is vector search?
What is nearest-neighbor search?
What is approximate nearest-neighbor search?
What is exact nearest-neighbor search?
What is top-k search?
What is cosine similarity?
What is dot product?
What is Euclidean distance?
What is a similarity metric?
What is vector dimensionality?
What is vector normalization?
What is vector ingestion?
What is vector retrieval?
What is vector upsert?
What is vector update?
What is vector deletion?
What is a query operation?
What is a fetch operation?
What is an index statistic?
What is index dimension?
What is index metric?
What is an index host?
What is a Pinecone API key?
What is a Pinecone project?
What is a Pinecone organization?
What is multitenancy?
What is namespace-based isolation?
What is metadata-based isolation?
What is hybrid search?
What is sparse-dense hybrid retrieval?
What is reranking?
What is retrieval recall?
What is retrieval precision?
What is RAG?
What is Pinecone's role in RAG?
What is a document chunk?
What is chunking?
What is recursive chunking?
What is semantic chunking?
What is an embedding model?
What is an embedding dimension?
What is embedding drift?
What is retrieval latency?
What is query latency?
What is ingestion latency?
What is retrieval quality?
What is search relevance?
What is recall@k?
What is precision@k?
What is MRR?
What is NDCG?
What is retrieval evaluation?
What is metadata cardinality?
What is a metadata filter?
What is a namespace filter?
What is a query vector?
What is a query embedding?
What is a result score?
What is a match in Pinecone?
What is a vector record?
What is vector metadata schema?
What is a document ID?
What is a chunk ID?
What is source metadata?
What is tenant metadata?
What is document version metadata?
What is a vector migration?
What is re-indexing?
What is incremental indexing?
What is bulk ingestion?
What is batch upsert?
What is asynchronous ingestion?
What is idempotent upsert?
What is vector consistency?
What is eventual consistency?
What is a production vector index?
What is vector search observability?
What is retrieval monitoring?
What is Pinecone integrated embedding?
What is an integrated inference workflow in Pinecone?
What is enterprise search?
What is semantic retrieval?
What is contextual retrieval?
What is vector-based recommendation?
What is similarity-based recommendation?
Why use Pinecone?
Why use Pinecone instead of a relational database?
Why do AI applications need vector databases?
Why is Pinecone useful for RAG?
Why store embeddings in Pinecone?
Why use semantic search?
Why use approximate nearest-neighbor search?
Why not use exact nearest-neighbor search at large scale?
Why is vector dimensionality important?
Why must index dimensions match embedding dimensions?
Why is the similarity metric important?
Why use cosine similarity?
Why use dot product?
Why use Euclidean distance?
Why use namespaces?
Why use metadata filtering?
Why use hybrid search?
Why use sparse vectors?
Why use dense vectors?
Why use reranking?
Why is chunking important for RAG?
Why can poor chunking reduce retrieval quality?
Why should metadata be stored with vectors?
Why is tenant metadata important?
Why is document version metadata important?
Why should vector IDs be deterministic?
Why use batch upserts?
Why use asynchronous ingestion?
Why is idempotency important during ingestion?
Why is incremental indexing useful?
Why is re-indexing required after changing embeddings?
Why should embedding models remain consistent within an index?
Why is retrieval recall important?
Why is retrieval precision important?
Why can a high top-k hurt RAG quality?
Why can a low top-k hurt RAG recall?
Why is reranking useful for RAG?
Why separate retrieval from generation?
Why monitor retrieval latency?
Why monitor retrieval quality?
Why monitor Pinecone usage and cost?
Why use metadata filters for enterprise security?
Why use namespaces for tenant isolation?
Why choose Pinecone over self-hosted vector infrastructure?
Why choose Pinecone over pgvector?
Why choose Pinecone over FAISS?
Why is hybrid retrieval useful for exact identifiers?
Why is embedding quality important for retrieval?
Why is metadata design important in production RAG?
Why is observability important for vector search?
When should you use Pinecone?
When should you not use Pinecone?
When should you use a vector database?
When should you use Pinecone for RAG?
When should you use semantic search?
When should you use keyword search?
When should you use hybrid search?
When should you use dense vectors?
When should you use sparse vectors?
When should you use cosine similarity?
When should you use dot product?
When should you use Euclidean distance?
When should you use namespaces?
When should you use metadata filters?
When should you use reranking?
When should you increase top-k?
When should you decrease top-k?
When should you change the embedding model?
When should you re-index vectors?
When should you create a new index?
When should you create a new namespace?
When should you use metadata instead of namespaces?
When should you use separate indexes for tenants?
When should you use one index for multiple tenants?
When should you use batch upserts?
When should you use asynchronous ingestion?
When should you use incremental indexing?
When should you perform bulk ingestion?
When should you perform zero-downtime re-indexing?
When should you introduce caching?
When should you introduce a reranker?
When should you use document-level metadata filters?
When should you use tenant-level metadata filters?
When should you use document versioning?
When should you delete vectors?
When should you update vectors?
When should you fetch vectors instead of querying?
When should you optimize embeddings?
When should you evaluate retrieval recall?
When should you evaluate retrieval precision?
When should you use MRR?
When should you use NDCG?
When should you monitor Pinecone latency?
When should you investigate retrieval failures?
When should you migrate from another vector database?
When should you choose managed vector infrastructure?
When should you use Pinecone for enterprise search?
When should you use Pinecone for recommendations?
When should you use Pinecone for semantic document retrieval?
When should you use Pinecone in an AI agent architecture?
Which similarity metric should you choose?
Which embedding model should you choose?
Which Pinecone index architecture should you choose?
Which metadata fields should you store?
Which fields should be filterable?
Which fields should identify a tenant?
Which fields should identify a document?
Which fields should identify a chunk?
Which chunking strategy should you choose?
Which embedding dimension should you choose?
Which top-k value should you choose?
Which retrieval strategy should you choose for semantic search?
Which retrieval strategy should you choose for exact matching?
Which strategy should you choose for hybrid search?
Which strategy should you choose for enterprise RAG?
Which strategy should you choose for multitenancy?
Which strategy should you choose for tenant isolation?
Which strategy should you choose for document-level access control?
Which metadata filter should you use?
Which vectors should be re-indexed after an embedding change?
Which vectors should be deleted when a document is removed?
Which approach should you use for incremental updates?
Which approach should you use for bulk ingestion?
Which approach should you use for zero-downtime migration?
Which approach should you use to reduce query latency?
Which approach should you use to improve recall?
Which approach should you use to improve precision?
Which approach should you use to reduce irrelevant results?
Which approach should you use to handle large documents?
Which approach should you use to handle duplicate chunks?
Which metrics should you monitor?
Which retrieval metrics should you monitor?
Which production errors should you monitor?
Which caching strategy should you use?
Which retry strategy should you use?
Which timeout strategy should you use?
Which logging information should you capture?
Which security controls should you implement?
Which architecture should you choose for high query volume?
Which architecture should you choose for millions of vectors?
Which architecture should you choose for billions of vectors?
Which architecture should you choose for multiple environments?
Which approach should you use for embedding migration?
Which approach should you use for index migration?
Which vector database would you choose for a given RAG workload?
Which Pinecone feature is best for semantic retrieval?
Which Pinecone feature is best for filtering?
Which Pinecone feature is best for multitenancy?
Which approach is best for production RAG?
Which approach is best for retrieval evaluation?
How does Pinecone work?
How does vector search work in Pinecone?
How does nearest-neighbor search work?
How does approximate nearest-neighbor search work?
How does similarity search work?
How does Pinecone store vectors?
How does Pinecone store metadata?
How does metadata filtering work?
How does namespace isolation work?
How does hybrid search work?
How does reranking improve retrieval?
How does Pinecone fit into RAG?
How do you create a Pinecone index?
How do you connect to a Pinecone index?
How do you generate embeddings?
How do you upsert vectors?
How do you batch vector upserts?
How do you query vectors?
How do you query by vector ID?
How do you return metadata with query results?
How do you fetch vectors?
How do you update vectors?
How do you delete vectors?
How do you delete vectors by namespace?
How do you retrieve index statistics?
How do you implement metadata filtering?
How do you implement tenant isolation?
How do you implement document-level filtering?
How do you implement hybrid retrieval?
How do you implement reranking?
How do you integrate Pinecone with LangChain?
How do you integrate Pinecone with LlamaIndex?
How do you integrate Pinecone with an LLM application?
How do you integrate Pinecone with Java?
How do you build a RAG pipeline using Pinecone?
How do you implement incremental indexing?
How do you implement bulk ingestion?
How do you implement asynchronous ingestion?
How do you implement retry handling?
How do you handle rate limits?
How do you handle Pinecone errors?
How do you optimize query latency?
How do you optimize ingestion throughput?
How do you improve retrieval recall?
How do you improve retrieval precision?
How do you evaluate retrieval quality?
How do you monitor Pinecone in production?
How do you migrate vectors from another database?
How do you perform zero-downtime re-indexing?
How do you migrate to a new embedding model?
Where is Pinecone used?
Where is Pinecone used in RAG?
Where does Pinecone fit in an AI architecture?
Where are embeddings generated?
Where are vectors stored?
Where is metadata stored?
Where should document IDs be stored?
Where should chunk IDs be stored?
Where should tenant IDs be stored?
Where should document versions be stored?
Where should source URLs be stored?
Where should access-control metadata be stored?
Where should chunking happen?
Where should embedding generation happen?
Where should preprocessing happen?
Where should metadata filtering happen?
Where should reranking happen?
Where should caching happen?
Where should authorization happen?
Where should tenant isolation happen?
Where should retrieval happen?
Where should the LLM receive retrieved context?
Where should document version checks happen?
Where should duplicate detection happen?
Where should vector IDs be generated?
Where should Pinecone credentials be stored?
Where should Pinecone configuration be stored?
Where should environment-specific configuration be maintained?
Where should logging be implemented?
Where should monitoring be implemented?
Where should retrieval metrics be calculated?
Where should relevance evaluation happen?
Where should retry logic be implemented?
Where should timeout handling be implemented?
Where should circuit breakers be implemented?
Where should caching be applied in a RAG pipeline?
Where should Pinecone be placed in a microservices architecture?
Where should vector ingestion services run?
Where should retrieval services run?
Where should embedding services run?
Where should document processing run?
Where should tenant-specific indexes be used?
Where should namespaces be used?
Where should metadata filters be used?
Where should hybrid search be used?
Where should Pinecone be used instead of a relational database?
Where should Pinecone be used instead of an object store?
Where should Pinecone be used in enterprise search?
Where should Pinecone be used in recommendation systems?
Where should Pinecone be used in AI agents?
What is the difference between Pinecone and PostgreSQL pgvector?
What is the difference between Pinecone and FAISS?
What is the difference between Pinecone and ChromaDB?
What is the difference between Pinecone and Milvus?
What is the difference between Pinecone and Weaviate?
What is the difference between Pinecone and Qdrant?
What is the difference between Pinecone and Elasticsearch?
What is the difference between Pinecone and OpenSearch?
What is the difference between a vector database and a relational database?
What is the difference between dense and sparse vectors?
What is the difference between semantic and keyword search?
What is the difference between dense and hybrid search?
What is the difference between cosine similarity and dot product?
What is the difference between cosine similarity and Euclidean distance?
What is the difference between namespace and metadata filtering?
What is the difference between upsert and update?
What is the difference between fetch and query?
What is the difference between retrieval and reranking?
What is the difference between exact and approximate nearest-neighbor search?
What is the difference between vector search and RAG?
Your Pinecone RAG application returns irrelevant documents. How would you investigate and fix it?
Your Pinecone query latency suddenly increases in production. How would you troubleshoot it?
Your application returns no results even though the document exists. What would you check?
The correct documents are retrieved, but the LLM generates an incorrect answer. How would you debug the pipeline?
You have 10,000 tenants sharing a RAG platform. How would you design tenant isolation?
A customer must never retrieve another customer's documents. How would you enforce this?
Your organization changes its embedding model. How would you migrate existing vectors safely?
You need to re-index hundreds of millions of documents without impacting production. How would you design it?
Vector ingestion is too slow for your production workload. How would you optimize it?
Your RAG system has high recall but poor precision. What would you change?
Your RAG system has high precision but misses relevant documents. How would you improve recall?
Users search using both exact product codes and natural-language descriptions. How would you design retrieval?
Your organization requires both keyword and semantic search. How would you implement it?
A document is updated, but old content continues appearing in search results. How would you solve it?
A document is deleted from the source system but continues appearing in RAG responses. How would you handle it?
Pinecone costs have increased significantly. How would you investigate and optimize the system?
Your application receives very high concurrent query traffic. How would you design it for scalability?
You need document-level access control in enterprise RAG. How would you design it?
A 1,000-page PDF produces poor retrieval results. How would you redesign chunking and indexing?
Search results are individually relevant but contain conflicting information. How would you handle it?
Pinecone becomes temporarily unavailable during production traffic. How would you design failure handling?
You need different embedding models for different document types. How would you design the indexes?
Your organization has billions of vectors and requires low-latency retrieval. How would you approach the architecture?
You need separate development, testing, staging, and production environments. How would you isolate Pinecone data?
Design an enterprise Pinecone RAG platform covering ingestion, embeddings, indexing, retrieval, filtering, reranking, security, monitoring, scalability, and disaster recovery.

Related Topics


19 January 2026

#Amazon EC2

#Amazon EC2

Key Concepts


S.No Topic Sub-Topics

Interview question


Related Topics


#Amazon RDS

#Amazon RDS

Key Concepts


S.No Topic Sub-Topics

Interview question


Related Topics


#Amazon EMR

#Amazon EMR

Key Concepts


S.No Topic Sub-Topics

Interview question


Related Topics


#Amazon EKS / ECS

#Amazon EKS / ECS

Key Concepts


S.No Topic Sub-Topics

Interview question


Related Topics


#Amazon SageMaker

#Amazon SageMaker

Key Concepts


S.No Topic Sub-Topics

Interview question


Related Topics


#Spark Core

#Spark Core

Key Concepts


S.No Topic Sub-Topics

Interview question


Related Topics


   SparkContext   
   Components   
   DAG   

18 January 2026

#Amazon Redshift

#Amazon S3

#Amazon Kinesis

#PySpark


Key Concepts


S.No Topic Sub-topic
1 PySpark Fundamentals Spark architecture, Driver, Executors, Cluster Manager, Application, Job, Stage, Task
2 Spark Execution Model DAG, lineage, transformations, actions, lazy evaluation, narrow transformation, wide transformation
3 PySpark Environment SparkSession, SparkContext, configuration, local mode, cluster mode, spark-submit
4 DataFrames DataFrame creation, schema, columns, rows, select, alias, literals, expressions
5 Data Types & Schema StructType, StructField, primitive types, ArrayType, MapType, StructType, schema evolution
6 Data Reading CSV, JSON, Parquet, ORC, JDBC, partitioned files, compression
7 Data Writing Write modes, partitionBy, bucketing, overwrite, append, dynamic partition overwrite, file sizing
8 Column Operations withColumn, drop, cast, when/otherwise, regexp, string functions, date functions
9 Filtering & Sorting filter, where, orderBy, sort, isin, between, null handling, complex conditions
10 Aggregations groupBy, agg, count, sum, avg, min, max, countDistinct, rollup, cube
11 Joins Inner, left, right, full, cross, semi, anti joins, join conditions, duplicate columns
12 Window Functions WindowSpec, partitionBy, orderBy, row_number, rank, dense_rank, lag, lead
13 Spark SQL Temporary views, global views, SQL expressions, CTEs, SQL vs DataFrame API
14 Advanced DataFrame Operations Union, unionByName, explode, posexplode, pivot, unpivot, arrays, maps, structs
15 Null & Data Quality NULL handling, fillna, dropna, replace, duplicate handling, validation, bad records
16 RDD RDD creation, map, flatMap, filter, reduce, aggregate, pair RDDs, RDD vs DataFrame
17 UDF Python UDF, pandas UDF, built-in functions, UDF overhead, vectorization, UDF alternatives
18 Performance Fundamentals Caching, persistence, storage levels, lazy evaluation, partitioning, parallelism
19 Partitioning & Shuffle repartition, coalesce, shuffle partitions, partition size, shuffle optimization
20 Join Optimization Broadcast join, shuffle hash join, sort merge join, join hints, broadcast threshold
21 Spark Optimization Catalyst Optimizer, Tungsten, predicate pushdown, projection pruning, whole-stage code generation
22 Explain Plan & Debugging explain, logical plan, physical plan, Spark UI, stages, tasks, SQL tab, executor metrics
23 Data Skew Skew detection, hot keys, salting, broadcast strategy, AQE skew join, partition balancing
24 Adaptive Query Execution AQE, dynamic coalescing, skew join optimization, dynamic partition pruning, runtime optimization
25 Memory Management Executor memory, driver memory, overhead memory, garbage collection, serialization, executor sizing
26 Structured Streaming Streaming DataFrame, readStream, writeStream, triggers, checkpoints, output modes
27 Streaming Sources & Sinks Kafka, files, console, memory, foreachBatch, exactly-once concepts, checkpointing
28 Delta Lake ACID, MERGE, time travel, schema evolution, optimization, partitioning
29 Apache Iceberg Tables, catalogs, snapshots, partition evolution, schema evolution, time travel
30 Production PySpark Logging, configuration, testing, error handling, monitoring, deployment, CI/CD, security

Interview question

What is PySpark and how is it different from Apache Spark?
Why is PySpark used for large-scale data processing?
What are the main components of PySpark?
What is SparkSession in PySpark?
What is SparkContext and how is it different from SparkSession?
What is the difference between SparkSession, SparkContext, and SQLContext?
What is a Spark application in PySpark?
What is a driver program in PySpark?
What are executors in PySpark?
What is a cluster manager in Spark?
What are the different cluster deployment modes in Spark?
What is the difference between client mode and cluster mode?
What is an RDD in PySpark?
What are the main characteristics of an RDD?
What is the difference between RDD and DataFrame?
What is the difference between DataFrame and Dataset?
Why are DataFrames preferred over RDDs in most PySpark applications?
What is lazy evaluation in PySpark?
What are transformations and actions in PySpark?
What is the difference between narrow and wide transformations?
What is a shuffle operation in PySpark?
Which PySpark operations cause a shuffle?
What is the difference between map(), flatMap(), and mapPartitions()?
What is the difference between map() and filter()?
What is reduceByKey() in PySpark?
What is the difference between reduceByKey() and groupByKey()?
What is aggregateByKey() and when should you use it?
What is combineByKey() in PySpark?
What is the difference between sortByKey() and sortBy()?
What is a Pair RDD in PySpark?
What is partitioning in PySpark?
What is a partition?
How does PySpark determine the number of partitions?
What is repartition()?
What is coalesce()?
What is the difference between repartition() and coalesce()?
What is data skew in PySpark?
How do you identify data skew in PySpark?
How do you handle data skew in PySpark?
What is a DataFrame in PySpark?
How do you create a DataFrame in PySpark?
How do you define a schema in PySpark?
What is the difference between inferSchema and explicitly defining a schema?
What are StructType and StructField in PySpark?
What are the commonly used PySpark data types?
How do you inspect the schema of a DataFrame?
What is the difference between show(), display(), and collect()?
What is the difference between count(), collect(), and take()?
How do you select columns from a PySpark DataFrame?
What is the difference between select() and selectExpr()?
How do you rename columns in PySpark?
How do you add a new column using withColumn()?
What is the difference between withColumn() and withColumns()?
How do you drop a column from a DataFrame?
How do you filter rows in PySpark?
What is the difference between filter() and where()?
How do you remove duplicate records in PySpark?
What is the difference between distinct() and dropDuplicates()?
How do you sort a DataFrame in PySpark?
What is the difference between orderBy() and sort()?
How do you handle null values in PySpark?
What is the difference between isNull() and isNotNull()?
How do you replace null values using fillna()?
How do you replace values using replace()?
What is groupBy() in PySpark?
What are aggregate functions in PySpark?
How do you calculate sum, average, minimum, and maximum in PySpark?
What is the difference between groupBy().agg() and groupBy().sum()?
How do you perform joins in PySpark?
What are the different types of joins supported by PySpark?
What is the difference between inner join and left join?
What is a broadcast join in PySpark?
When should you use a broadcast join?
What is the difference between broadcast join and shuffle join?
What is a cross join and why can it be expensive?
How do you join two DataFrames with different column names?
How do you handle duplicate columns after a join?
What are window functions in PySpark?
What is Window.partitionBy()?
What is Window.orderBy()?
What is the difference between row_number(), rank(), and dense_rank()?
How do you find the top N records per group using window functions?
How do you calculate running totals using PySpark window functions?
How do you calculate lag and lead values in PySpark?
What are PySpark SQL functions?
What is the difference between built-in functions and UDFs?
What is a PySpark UDF?
Why should UDFs generally be avoided when built-in functions are available?
What is a Pandas UDF in PySpark?
What is the difference between a regular Python UDF and a Pandas UDF?
What is vectorized execution in PySpark?
How do you read CSV, JSON, and Parquet files using PySpark?
Why is Parquet preferred for analytical workloads in PySpark?
What is partition pruning in PySpark?
What is predicate pushdown?
What is column pruning?
What is caching in PySpark?
What is the difference between cache() and persist()?
What are the different storage levels in PySpark?
When should you cache a DataFrame?
What is checkpointing in PySpark?
What is the difference between caching and checkpointing?
What is Spark Catalyst Optimizer?
What is Tungsten in Apache Spark?
What is Adaptive Query Execution (AQE) in Spark?
How does AQE improve PySpark query performance?
How do you optimize a slow PySpark job?
How do you monitor and troubleshoot a PySpark application?
What is the Spark UI and how is it used for performance debugging?
What are stages, tasks, and jobs in Spark?
How do you identify a bottleneck in a PySpark job?
How do you reduce shuffle operations in PySpark?
What are common causes of out-of-memory errors in PySpark?
How do you handle executor memory issues in PySpark?
How do you optimize PySpark code for production workloads?
What are common PySpark performance optimization techniques used in real-world projects?

Related Topics


#Databricks


Key Concepts


S.No Topic Sub-Topics
1DatabricksWhat is Databricks, Lakehouse concept, Databricks vs Hadoop, Use cases, Architecture overview
2Databricks WorkspaceWorkspace UI, Notebooks, Clusters, Jobs, Repos
3Databricks ArchitectureControl plane, Data plane, Workspace components, Security layers, Execution flow
4Clusters in DatabricksAll-purpose clusters, Job clusters, Autoscaling, Cluster policies, Init scripts
5Databricks RuntimeDBR versions, Photon engine, ML runtime, GPU runtime, Performance tuning
6NotebooksLanguages supported, Notebook workflows, Magic commands, Versioning, Collaboration
7Databricks Utilities (dbutils)File system ops, Secrets, Widgets, Notebook workflows, FS mounts
8Data IngestionBatch ingestion, Streaming ingestion, Auto Loader, File formats, Schema inference
9Delta Lake FundamentalsACID transactions, Delta log, Schema enforcement, Time travel, File compaction
10Delta Lake AdvancedOPTIMIZE, Z-ORDER, Vacuum, Delta constraints, Change Data Feed
11Spark SQL in DatabricksSQL editor, ANSI SQL, Views, CTEs, Query optimization
12DataFrames & DatasetsAPI overview, Transformations, Actions, Lazy evaluation, Performance tips
13Databricks SQL WarehousesServerless SQL, Query execution, Dashboards, Alerts, Access control
14Jobs & WorkflowsJob types, Task dependencies, Scheduling, Retries, Monitoring
15Databricks ReposGit integration, Branching, CI/CD basics, Repo permissions, Best practices
16Security & Access ControlUsers & groups, IAM integration, Table ACLs, Cluster policies, Secrets
17Unity CatalogMetastore, Catalogs & schemas, Data lineage, Fine-grained access, Auditing
18Streaming with DatabricksStructured Streaming, Triggers, Watermarking, Stateful ops, Fault tolerance
19Auto LoaderCloudFiles, Incremental ingestion, Schema evolution, Notifications, Performance tuning
20Databricks ML OverviewML workspace, ML runtime, Experiment tracking, Feature store, Model registry
21MLflow in DatabricksTracking, Projects, Models, Model registry, Deployment
22Feature StoreFeature tables, Offline features, Online features, Reusability, Governance
23Model TrainingDistributed training, Hyperparameter tuning, AutoML, GPUs, Evaluation metrics
24Model DeploymentBatch inference, Real-time serving, Model endpoints, A/B testing, Monitoring
25Performance OptimizationPartitioning, Caching, Broadcast joins, Skew handling, Photon usage
26Monitoring & LoggingSpark UI, Ganglia, Job metrics, Logs, Alerts
27Cost OptimizationCluster sizing, Spot instances, Autoscaling, Job clusters, Usage reports
28Databricks on CloudAWS architecture, Azure architecture, GCP basics, Networking, Storage integration
29CI/CD & DevOpsRepos + pipelines, Databricks CLI, Asset bundles, Environment promotion, Automation
30Real-world Use CasesETL pipelines, Streaming analytics, ML pipelines, Lakehouse design, Interview prep

Interview question

What is Databricks and what are its core components?
What are the key features of the Databricks Lakehouse Platform?
What is the Databricks Lakehouse architecture?
What is the difference between a data lake, data warehouse, and lakehouse?
What is Delta Lake and why is it important in Databricks?
What are the key features of Delta Lake?
What is Delta Lake ACID transaction support?
What is schema enforcement in Delta Lake?
What is schema evolution in Delta Lake?
What is the Delta Lake transaction log?
What is time travel in Delta Lake?
What are Delta Lake table versions?
What is the difference between managed and external tables in Databricks?
What are Unity Catalog and its main capabilities?
What is the three-level namespace in Unity Catalog?
What are catalogs, schemas, and tables in Unity Catalog?
What is data lineage in Unity Catalog?
What are Unity Catalog access control mechanisms?
What are external locations and storage credentials in Unity Catalog?
What are Delta Sharing and its use cases?
What are Databricks workspaces?
What are Databricks clusters and how do they work?
What are the different types of Databricks compute resources?
What are all-purpose clusters and job clusters?
What are serverless compute resources in Databricks?
What are cluster policies in Databricks?
What are Databricks Runtime versions?
What is Photon in Databricks?
What are Databricks SQL warehouses?
What are the differences between SQL warehouses and Spark clusters?
What is Apache Spark and how is it used by Databricks?
What are Spark DataFrames and how are they used in Databricks?
What are Spark RDDs and when would you use them?
What is lazy evaluation in Apache Spark?
What are Spark transformations and actions?
What is Spark Catalyst Optimizer?
What is Spark Adaptive Query Execution?
What are narrow and wide transformations in Spark?
What is data partitioning in Databricks?
What is data skew and how can it be handled in Databricks?
What is repartitioning and coalescing in Spark?
What is caching in Spark and when should it be used?
What are broadcast joins and when should they be used?
What are Databricks jobs and workflows?
What are job tasks and dependencies in Databricks Workflows?
What are job parameters and dynamic task values?
What are Databricks notebooks and how are they used?
What are notebook workflows and reusable notebooks?
What are Databricks Repos and how do they support Git integration?
What is Databricks Asset Bundles?
What is Databricks CLI and how is it used?
What are Databricks REST APIs and what can they automate?
What is Auto Loader in Databricks?
What are the advantages of Auto Loader over traditional file ingestion?
What are streaming checkpoints in Databricks?
What is Structured Streaming in Databricks?
What are streaming triggers in Spark Structured Streaming?
What is exactly-once processing in Databricks Structured Streaming?
What is the difference between batch processing and streaming processing?
What is Delta Live Tables and how does it support data pipelines?
What is Lakeflow Declarative Pipelines in Databricks?
What are expectations and data quality rules in Databricks pipelines?
What are medallion architecture layers in Databricks?
What are Bronze, Silver, and Gold tables?
What are common ETL and ELT patterns in Databricks?
What are incremental data processing strategies in Databricks?
What are Change Data Capture patterns in Databricks?
What is Delta Change Data Feed?
What are MERGE operations in Delta Lake?
What are OPTIMIZE and Z-ORDER in Databricks?
What is liquid clustering in Databricks?
What is VACUUM in Delta Lake?
What is data skipping in Databricks?
What are Delta Lake performance optimization techniques?
What are Databricks SQL query optimization techniques?
What is the difference between partitioning, Z-ORDER, and liquid clustering?
What is Databricks MLflow and how is it used for machine learning?
What is the Databricks Machine Learning platform?
What are MLflow experiments, runs, and models?
What is the Databricks Feature Store?
What is Model Serving in Databricks?
What is Mosaic AI in Databricks?
What is Databricks Vector Search?
What are vector indexes in Databricks Vector Search?
What is Retrieval-Augmented Generation and how can it be implemented in Databricks?
What is the role of Databricks in building RAG applications?
What are embeddings and how are they stored or searched in Databricks?
What is a vector database and how does Databricks support vector search?
What are AI Gateway capabilities in Databricks Model Serving?
What are foundation models in Databricks?
What is Model Serving for LLM applications in Databricks?
What is prompt engineering and how can it be integrated with Databricks AI workloads?
What are AI agents and how can they be developed on Databricks?
What is Agent Framework in Databricks?
How can Databricks support multi-agent AI architectures?
How can Unity Catalog govern AI models, features, and vector indexes?
How can Databricks be used to build an enterprise RAG pipeline?
How can Databricks be integrated with LangChain for AI applications?
How can Databricks be integrated with LangGraph for agentic AI workflows?
How can Databricks be used with MCP-based AI agents?
How can Databricks support real-time AI inference pipelines?
How can Databricks handle large-scale LLM training and fine-tuning workloads?
How can Databricks be used to monitor and evaluate production AI agents?
How can Databricks implement AI governance, security, and responsible AI practices?
How can Databricks be integrated with Azure OpenAI for enterprise AI applications?
How can Databricks be used to build an end-to-end Agentic AI data platform?
What are the best practices for designing a scalable Databricks platform for AI and data engineering?

Related Topics


12 January 2026

#JUnit

#JUnit

Key Concepts


S.No Topic Sub-Topics
1 Introduction to JUnit What is JUnit?, Importance of Unit Testing, History of JUnit, Versions overview, Use cases
2 JUnit Architecture Core classes, Test runners, Test lifecycle, Annotations overview, Test suites
3 JUnit 4 vs JUnit 5 Key differences, Annotations, Assertions, Extension model, Migration strategies
4 JUnit Annotations @Test, @Before, @After, @BeforeClass, @AfterClass
5 JUnit 5 Annotations @Test, @BeforeEach, @AfterEach, @BeforeAll, @AfterAll
6 Assertions in JUnit assertEquals, assertTrue, assertFalse, assertNotNull, assertThrows
7 Parameterized Tests Introduction, @ParameterizedTest, @ValueSource, @CsvSource, Custom parameter providers
8 JUnit Test Suites Purpose, Creating test suites, Including multiple classes, @Suite annotation, Running suites
9 Exception Testing assertThrows, Expected exceptions, Handling exceptions in tests, Try-catch in tests, Best practices
10 Timeouts in Tests Using @Test(timeout), assertTimeout, assertTimeoutPreemptively, Long-running tests, Best practices
11 Assumptions in JUnit assumeTrue, assumeFalse, Conditional test execution, Environment-specific tests, Integration with CI
12 Test Lifecycle Methods Setup and teardown, @BeforeEach/@AfterEach, @BeforeAll/@AfterAll, Resource management, Best practices
13 Nested Tests Introduction, @Nested annotation, Structuring tests, Inner classes, Scope and lifecycle
14 Tagging Tests @Tag annotation, Grouping tests, Running specific tags, Excluding tags, Integration with CI/CD
15 JUnit Extensions Introduction, @ExtendWith annotation, Custom extensions, Parameter resolvers, Test lifecycle hooks
16 Mocking with Mockito Mockito basics, @Mock, @InjectMocks, when-thenReturn, Verifying interactions
17 JUnit with Spring Boot @SpringBootTest, @WebMvcTest, @MockBean, Context loading, Integration tests
18 Behavior Driven Testing Introduction to BDD, JUnit + Cucumber, Feature files, Step definitions, Integration examples
19 Testing Exceptions and Edge Cases Edge case identification, Boundary testing, assertThrows, Negative testing, Best practices
20 JUnit Test Reports Generating reports, Maven Surefire plugin, Gradle reports, HTML reports, CI integration
21 Mocking Static Methods Mockito inline, PowerMockito, Limitations, Use cases, Best practices
22 Parameterized and CSV Tests @CsvSource, @CsvFileSource, @MethodSource, Dynamic tests, Practical examples
23 Dynamic Tests @TestFactory, DynamicTest.stream, Custom dynamic tests, Use cases, Best practices
24 Integration Testing with JUnit Introduction, Database tests, REST API testing, Spring integration, Environment setup
25 Code Coverage Jacoco integration, Measuring coverage, Analyzing reports, Coverage thresholds, Best practices
26 Continuous Integration JUnit in CI/CD, Jenkins integration, GitHub Actions, Pipeline setup, Reporting
27 Best Practices in JUnit Writing clean tests, DRY principle, Readable assertions, Test naming conventions, Test isolation
28 Debugging Unit Tests Using IDE debugger, Common failures, Stack traces, Logging in tests, Fixing flaky tests
29 Advanced Assertions assertAll, assertIterableEquals, assertLinesMatch, assertTimeout, Custom assertions
30 JUnit Projects & Labs Hands-on projects, Full coverage examples, Spring Boot testing, CI/CD integration, Practice exercises

Interview question

1. JUnit Basics

  1. What is JUnit and why is it used?
  2. Explain the differences between JUnit 4 and JUnit 5.
  3. What are the advantages of using JUnit in Java projects?
  4. How do you write your first JUnit test case?
  5. What is the naming convention for test methods?
  6. Explain the role of the @Test annotation.
  7. What is the default test runner in JUnit?
  8. How do you disable a test in JUnit?
  9. What are assumptions in JUnit?
  10. Explain JUnit?s role in TDD (Test-Driven Development).
  11. What is the difference between unit tests and integration tests?
  12. How do you set up a JUnit environment in a Maven project?
  13. Can JUnit be used for testing private methods?
  14. What is the default order of test execution in JUnit?
  15. How do you test void methods in JUnit?
  16. How do you skip tests conditionally?
  17. What is the difference between JUnit and TestNG?
  18. Explain the concept of test lifecycle in JUnit.
  19. What is the purpose of @DisplayName in JUnit 5?
  20. How do you tag and filter tests in JUnit?

2. Annotations

  1. Explain the usage of @BeforeEach and @AfterEach.
  2. What is the purpose of @BeforeAll and @AfterAll?
  3. How do you create a setup method in JUnit?
  4. Difference between @BeforeClass (JUnit 4) and @BeforeAll (JUnit 5).
  5. What happens if @BeforeAll is not static?
  6. Can you use multiple annotations on the same method?
  7. How do you use @Disabled in JUnit 5?
  8. What is @RepeatedTest in JUnit 5?
  9. Explain @Nested test classes.
  10. How is @TestFactory used in dynamic tests?
  11. Explain @Tag annotation with examples.
  12. What is the difference between @Test and @ParameterizedTest?
  13. What is @ExtendWith used for?
  14. How do you use @TempDir in JUnit?
  15. What does @Timeout do in JUnit 5?
  16. Can you annotate constructors in JUnit with @BeforeEach?
  17. Explain @EnabledOnOs and @EnabledOnJre annotations.
  18. How do you handle conditional test execution using annotations?
  19. What is @Order used for in JUnit tests?
  20. Can annotations be customized in JUnit?

3. Assertions

  1. What is an assertion in JUnit?
  2. Difference between assertEquals and assertSame.
  3. How do you test for exceptions using assertions?
  4. Explain the usage of assertTrue and assertFalse.
  5. What is assertNull and assertNotNull?
  6. How do you compare arrays in JUnit?
  7. Explain assertAll with example.
  8. What is the difference between fail() and assertThrows()?
  9. How do you write custom assertions?
  10. What is the purpose of Hamcrest in JUnit assertions?
  11. Explain the difference between Hamcrest and AssertJ.
  12. How do you use assertLinesMatch in JUnit?
  13. What is assertIterableEquals used for?
  14. How do you write assertions for collections?
  15. Explain assertTimeout and assertTimeoutPreemptively.
  16. What is the difference between soft and hard assertions?
  17. Can you write assertions for floating-point numbers?
  18. How do you compare objects in JUnit tests?
  19. Explain the usage of assertDoesNotThrow.
  20. What happens when an assertion fails?

4. Parameterized Tests

  1. What is a parameterized test in JUnit?
  2. How do you write a parameterized test using @ValueSource?
  3. Difference between @CsvSource and @CsvFileSource.
  4. How do you test with enum values in JUnit?
  5. How do you write parameterized tests with @MethodSource?
  6. Explain how arguments are resolved in parameterized tests.
  7. How do you test with multiple parameters?
  8. What are custom argument providers?
  9. How do you reuse test data across parameterized tests?
  10. What is the advantage of parameterized tests?
  11. How do you use ArgumentsAccessor?
  12. What is @ArgumentsSource annotation?
  13. How do you test edge cases with parameterized tests?
  14. Explain the difference between parameterized tests in JUnit 4 vs JUnit 5.
  15. Can parameterized tests be combined with @BeforeEach?
  16. What happens when parameterized test data is invalid?
  17. How do you test null inputs in parameterized tests?
  18. What are some best practices for parameterized testing?
  19. How do you test with complex objects?
  20. Can you combine parameterized and dynamic tests?

5. Test Suites

  1. What is a test suite in JUnit?
  2. How do you run multiple test classes together?
  3. Explain @SelectPackages annotation.
  4. Explain @SelectClasses annotation.
  5. How do you include/exclude tests in a suite?
  6. Can test suites be nested?
  7. Difference between JUnit 4 @Suite and JUnit 5 suite engine.
  8. How do you run test suites from Maven?
  9. How do you integrate test suites with Gradle?
  10. What is the benefit of test suites?
  11. Can you use filters with test suites?
  12. How do you configure test discovery?
  13. How do you execute only tagged tests in a suite?
  14. What happens if a suite includes disabled tests?
  15. How do you execute JUnit 4 suites inside JUnit 5?
  16. What is @IncludeClassNamePatterns?
  17. What is @ExcludeTags used for?
  18. Explain discovery selectors in JUnit.
  19. What are suite-level lifecycle methods?
  20. How do you create custom suite runners?

6. Mockito & JUnit

  1. What is Mockito?
  2. How do you create a mock in JUnit?
  3. What is the purpose of @Mock annotation?
  4. How do you use @InjectMocks in tests?
  5. Explain stubbing in Mockito.
  6. What is verify() used for?
  7. How do you reset a mock?
  8. How do you use ArgumentCaptor?
  9. What is the difference between spy() and mock()?
  10. How do you mock exceptions in JUnit tests?
  11. Can you mock static methods with Mockito?
  12. How do you mock final classes?
  13. What is the difference between real and mock objects?
  14. How do you mock collections?
  15. How do you handle void methods in Mockito?
  16. What is the difference between @MockBean and @Mock?
  17. How do you mock private methods?
  18. Explain deep stubs in Mockito.
  19. How do you verify the number of interactions?
  20. What are common pitfalls in using mocks?

7. Spring & JUnit Integration

  1. How do you write a test with @SpringBootTest?
  2. What is @MockBean used for?
  3. Explain the difference between @Mock and @MockBean.
  4. How do you load application context in JUnit?
  5. How do you test Spring MVC controllers?
  6. What is @DataJpaTest used for?
  7. How do you test REST APIs using MockMvc?
  8. Explain @WebMvcTest annotation.
  9. How do you test Spring Boot configuration classes?
  10. How do you handle transactions in Spring tests?
  11. How do you use @TestConfiguration?
  12. What is @AutoConfigureMockMvc?
  13. How do you test caching in Spring?
  14. Explain the use of @Sql annotation in testing.
  15. How do you test services with external dependencies?
  16. What is TestEntityManager used for?
  17. How do you test asynchronous methods in Spring?
  18. Explain how to use TestRestTemplate.
  19. How do you test application events in Spring?
  20. What is the role of @ActiveProfiles in testing?

8. Exception Testing

  1. How do you test exceptions in JUnit 4?
  2. How do you test exceptions in JUnit 5?
  3. Explain the usage of assertThrows.
  4. What is ExpectedException in JUnit 4?
  5. How do you test custom exceptions?
  6. How do you verify exception messages?
  7. How do you test multiple exceptions in a single method?
  8. Can you test checked and unchecked exceptions differently?
  9. How do you test exceptions in parameterized tests?
  10. What is the difference between fail() and assertThrows()?
  11. How do you test runtime exceptions?
  12. How do you test for null pointer exceptions?
  13. How do you combine assertions with exception testing?
  14. How do you log exceptions during tests?
  15. How do you suppress exceptions in JUnit?
  16. How do you create reusable exception assertions?
  17. What happens when no exception is thrown in assertThrows?
  18. Can you test exceptions in dynamic tests?
  19. How do you handle exception hierarchies?
  20. Explain common pitfalls in exception testing.

9. Test Execution & Reports

  1. How do you run JUnit tests from Eclipse/IntelliJ?
  2. How do you run tests using Maven?
  3. How do you run tests using Gradle?
  4. How do you execute tests from the command line?
  5. How do you run a single test class?
  6. How do you run a single test method?
  7. How do you generate XML test reports?
  8. How do you generate HTML test reports?
  9. What is the Surefire plugin in Maven?
  10. How do you configure test execution in Gradle?
  11. How do you run tests in parallel?
  12. How do you configure timeout for all tests?
  13. How do you rerun failed tests?
  14. How do you ignore flaky tests?
  15. How do you integrate JUnit tests with Jenkins?
  16. How do you configure reporting plugins?
  17. How do you publish test reports in CI/CD?
  18. How do you measure code coverage with JUnit?
  19. How do you generate Jacoco reports?
  20. What are best practices in test reporting?

10. JUnit Extensions & Best Practices

  1. What is the extension model in JUnit 5?
  2. How do you write a simple JUnit extension?
  3. What is @ExtendWith used for?
  4. What built-in extensions are available in JUnit 5?
  5. How do you use the TempDir extension?
  6. How do you use the Timeout extension?
  7. What is ExtensionContext in JUnit?
  8. How do you chain multiple extensions?
  9. How do you share state across extensions?
  10. How do you implement a logging extension?
  11. What are some best practices in writing unit tests?
  12. How do you name your test methods effectively?
  13. What is the Arrange-Act-Assert pattern?
  14. How do you avoid flaky tests?
  15. How do you organize test packages?
  16. How do you reuse common test data?
  17. How do you make tests maintainable?
  18. What are some anti-patterns in testing?
  19. How do you improve performance of test suites?
  20. What are enterprise-level strategies for JUnit testing?

Related Topics


#MultiThread

#MultiThread

Key Concepts


S.No Topic Sub-Topics
1MultithreadingWhat is Thread, Process vs Thread, Benefits of Multithreading, Applications, Thread Lifecycle Overview
2Thread ClassCreating Thread by extending Thread, start(), run(), sleep(), join(), getName()
3Runnable InterfaceImplementing Runnable, Passing to Thread, Advantages, run() vs start(), Lambda Runnable
4Thread LifecycleNew, Runnable, Running, Waiting, Timed Waiting, Terminated, Thread State Transitions
5Thread MethodssetName/getName, setPriority/getPriority, isAlive(), yield(), interrupt()
6Thread PriorityMin/Max/Normal Priority, setPriority, Thread Scheduling, Preemption, Fairness
7Thread Sleep & Joinsleep(), join(), wait vs sleep, timed join, practical examples
8Thread Communicationwait(), notify(), notifyAll(), producer-consumer basics, synchronized block
9Synchronized MethodsMethod-level sync, block-level sync, object lock, class-level lock, best practices
10Inter-thread CommunicationProducer-Consumer Problem, BlockingQueue, wait/notify, ReentrantLock with Condition, deadlock prevention
11Reentrant LocksLock interface, ReentrantLock, tryLock(), lockInterruptibly(), fairness, conditions
12DeadlockWhat is Deadlock, Conditions, Prevention, Avoidance, Detection, Recovery
13Starvation & LivelockStarvation, Livelock, Examples, Priority Inversion, Solutions
14Thread SafetyDefinition, Thread-safe classes, Immutable Objects, Synchronization, Atomic variables
15Atomic ClassesAtomicInteger, AtomicLong, AtomicReference, compareAndSet, use cases
16Volatile KeywordWhat is volatile, visibility, happens-before, example usage, memory consistency
17Concurrent CollectionsConcurrentHashMap, CopyOnWriteArrayList, BlockingQueue, ConcurrentSkipListMap, benefits
18Executor FrameworkExecutor, ExecutorService, ThreadPoolExecutor, ScheduledExecutorService, shutdown
19Thread PoolsFixedPool, CachedPool, SingleThreadPool, ScheduledPool, Advantages
20Callable & FutureCallable Interface, Future, submit(), get(), timeout handling, cancelling tasks
21ForkJoin FrameworkForkJoinPool, RecursiveTask, RecursiveAction, work-stealing, parallel computation
22Parallel StreamsStream API, parallel(), ForkJoin usage, performance tips, pitfalls
23ThreadLocalThreadLocal variables, usage, memory leak, InheritableThreadLocal, examples
24Synchronization UtilitiesCountDownLatch, CyclicBarrier, Semaphore, Phaser, Exchanger
25Deadlock Prevention PatternsLock Ordering, TryLock, Timeout, Avoid Nested Locks, Resource hierarchy
26Best PracticesMinimize synchronized code, prefer high-level concurrency, immutable objects, use executor, avoid busy wait
27Performance TuningThread pool sizing, contention reduction, CPU-bound vs IO-bound, measuring, profiling
28Common Concurrency BugsRace conditions, deadlocks, livelocks, visibility issues, fixes
29Real-world ExamplesProducer-Consumer app, Web server handling requests, parallel processing, async tasks, thread-safe cache
30Interview & RevisionKey methods, concurrency concepts, common pitfalls, multithreading Q&A, mini projects

Interview question

Basic Level

  • What is a Thread?
  • What is Multithreading?
  • What is the difference between Process and Thread?
  • What are the advantages of Multithreading?
  • What is Context Switching?
  • What is Thread Lifecycle?
  • What are the different Thread States?
  • How do you create a Thread in Java?
  • What is the Runnable interface?
  • What is the difference between Thread and Runnable?
  • What is the start() method?
  • What is the run() method?
  • Why should we not directly call run()?
  • What is Thread Priority?
  • What is Daemon Thread?
  • How do you create a Daemon Thread?
  • What is the purpose of the join() method?
  • What is the sleep() method used for?
  • What is thread scheduling?
  • What is time slicing?
  • What is thread safety?
  • What is synchronization?
  • What is a synchronized method?
  • What is a synchronized block?
  • What is the volatile keyword?

Intermediate Level

  • What is Inter-thread communication?
  • What are wait(), notify(), notifyAll() used for?
  • Why must wait/notify be called inside synchronized block?
  • What is a race condition?
  • What is deadlock?
  • How do you avoid deadlock?
  • What is livelock?
  • What is starvation?
  • What is a monitor in Java?
  • What is reentrant synchronization?
  • What is a ThreadGroup?
  • What is ThreadLocal?
  • What is the Executor framework?
  • What is ExecutorService?
  • What is a ThreadPool?
  • What is Callable?
  • What is Future?
  • What is FutureTask?
  • What is ScheduledExecutorService?
  • What is a RejectedExecutionHandler?
  • What is a BlockingQueue?
  • What is the difference between synchronized and Lock?
  • What is ReentrantLock?
  • What is ReadWriteLock?
  • What is Condition interface?

Advanced Level

  • What is Fork/Join framework?
  • What is Work Stealing Algorithm?
  • What is ConcurrentHashMap?
  • How does ConcurrentHashMap achieve thread safety?
  • What is CopyOnWriteArrayList?
  • What is CAS (Compare and Swap)?
  • What are Atomic classes?
  • What is the difference between Atomic and volatile?
  • What is StampedLock?
  • What is Phaser?
  • What is CyclicBarrier?
  • What is CountDownLatch?
  • What is Semaphore?
  • What is Exchanger?
  • What is ThreadPoolExecutor?
  • How does ThreadPoolExecutor manage threads internally?
  • What is ForkJoinPool?
  • What is parallel stream?
  • How does parallel stream work internally?
  • What is thread contention?
  • What is false sharing?
  • How do you debug concurrency issues?
  • What is Memory Consistency Error?
  • What is Happens-Before relationship?
  • What is Java Memory Model?

Expert Level

  • How to design highly scalable multithreaded systems?
  • What are lock-free algorithms?
  • What are wait-free algorithms?
  • What is the difference between blocking vs non-blocking algorithms?
  • How do you reduce lock contention?
  • How does JVM handle thread scheduling internally?
  • What are advanced optimizations in modern JVM for concurrency?
  • Explain the internals of synchronized keyword.
  • Explain biased locking.
  • Explain lightweight locking.
  • What is escape analysis?
  • How does JIT optimize multithreaded code?
  • How do you detect deadlocks in production?
  • How do you avoid deadlocks using ordering strategies?
  • How do you tune thread pools for high throughput?
  • What is backpressure in multithreading systems?
  • How do you design producer?consumer systems at scale?
  • How do you build custom thread pools?
  • How do you test multithreaded code effectively?
  • What is the role of memory barriers in concurrency?
  • How do you ensure safe publication of objects?
  • What is double-checked locking?
  • Why was double-checked locking broken before Java 5?
  • How do you build lock-free data structures?
  • How do reactive systems differ from traditional multithreading?

Related Topics


11 January 2026

#Scikit

#Scikit

Key Concepts


S.No Topic Sub-Topics
1Scikit-learnWhat is scikit-learn, Installation, Key features, ML workflow, Supported algorithms
2Scikit-learn API BasicsEstimators, fit(), predict(), transform(), Pipelines, Model persistence
3Data Loading & InspectionBuilt-in datasets, load_*, fetch_*, Data shapes, Feature names, Target variables
4Data PreprocessingScaling, Normalization, Encoding categorical data, Missing values, Feature transformation
5Feature Scaling TechniquesStandardScaler, MinMaxScaler, RobustScaler, Normalizer, When to scale
6Handling Missing DataSimpleImputer, Strategies, Missing indicators, Pipeline usage, Best practices
7Encoding Categorical VariablesLabelEncoder, OneHotEncoder, OrdinalEncoder, Handling unknowns, Sparse output
8Train-Test Splittrain_test_split, Stratification, Random state, Data leakage, Validation sets
9Linear RegressionLinearRegression, Assumptions, Coefficients, Evaluation metrics, Use cases
10Logistic RegressionBinary vs multiclass, Regularization, Solver options, Class weights, Evaluation
11Model Evaluation MetricsAccuracy, Precision, Recall, F1-score, Confusion matrix
12Cross-ValidationK-Fold, StratifiedKFold, cross_val_score, cross_validate, Bias-variance tradeoff
13k-Nearest NeighborsKNN classifier, KNN regressor, Distance metrics, Choosing K, Performance
14Support Vector MachinesSVC, SVR, Kernels, Hyperparameters, Margin maximization
15Decision TreesTree structure, Gini vs entropy, Overfitting, Pruning, Feature importance
16Ensemble LearningBagging, Boosting, Random Forest, Extra Trees, Voting classifiers
17Random ForestRandomForestClassifier, Hyperparameters, Feature importance, OOB score, Use cases
18Gradient BoostingGradientBoosting, XGBoost intro, LightGBM intro, Learning rate, Trees depth
19Naive BayesGaussianNB, MultinomialNB, BernoulliNB, Assumptions, Applications
20Clustering AlgorithmsKMeans, Hierarchical clustering, DBSCAN, Silhouette score, Use cases
21Dimensionality ReductionPCA, Kernel PCA, Explained variance, Feature compression, Visualization
22Anomaly DetectionIsolation Forest, One-Class SVM, LOF, Use cases, Evaluation challenges
23Model Selection & TuningGridSearchCV, RandomizedSearchCV, Hyperparameters, Scoring, Best estimators
24Pipelines & ColumnTransformerPipeline, Feature unions, ColumnTransformer, End-to-end ML, Avoid leakage
25Imbalanced DatasetsClass imbalance, SMOTE, Class weights, Evaluation metrics, Best practices
26Text Feature ExtractionCountVectorizer, TF-IDF, N-grams, Stop words, Sparse matrices
27Model Persistencejoblib, pickle, Saving models, Loading models, Versioning
28Model InterpretationCoefficients, Feature importance, Permutation importance, Partial dependence, SHAP intro
29Scikit-learn with Pipelines in ProductionReproducibility, Monitoring, Data drift, Model updates, Best practices
30Scikit-learn Best PracticesCode structure, Experiment tracking, Documentation, Common pitfalls, Next steps

Interview question

Basic Level

  1. What is scikit-learn?
  2. What type of library is scikit-learn?
  3. Which language is scikit-learn written in?
  4. What are estimators in scikit-learn?
  5. What is the fit() method?
  6. What is the predict() method?
  7. Difference between fit() and transform()?
  8. What is supervised learning?
  9. What is unsupervised learning?
  10. What is train_test_split?
  11. What are features and labels?
  12. What is a dataset in scikit-learn?
  13. What are built-in datasets?
  14. What is accuracy score?
  15. What is a confusion matrix?
  16. What is overfitting?
  17. What is underfitting?
  18. What is a regression problem?
  19. What is a classification problem?
  20. What is clustering?
  21. What is scaling?
  22. What is normalization?
  23. What is LabelEncoder?
  24. What is OneHotEncoder?
  25. What are model parameters?

Intermediate Level

  1. What is StandardScaler?
  2. Difference between MinMaxScaler and StandardScaler?
  3. What is logistic regression?
  4. Explain linear regression in scikit-learn.
  5. What is KNN?
  6. How does KNN work?
  7. What is SVM?
  8. What are kernels in SVM?
  9. What is decision tree?
  10. What is entropy and gini index?
  11. What is Random Forest?
  12. What is ensemble learning?
  13. What is cross-validation?
  14. What is K-Fold cross-validation?
  15. What is StratifiedKFold?
  16. What is GridSearchCV?
  17. What is RandomizedSearchCV?
  18. What are hyperparameters?
  19. What is bias-variance tradeoff?
  20. What is ROC curve?
  21. What is AUC?
  22. What is precision and recall?
  23. What is F1-score?
  24. What is feature importance?
  25. What is PCA?

Advanced Level

  1. How does PCA work internally?
  2. What is explained variance?
  3. Difference between PCA and LDA?
  4. What is Gradient Boosting?
  5. Difference between Bagging and Boosting?
  6. What is AdaBoost?
  7. What is Isolation Forest?
  8. What is DBSCAN?
  9. How does KMeans clustering work?
  10. What is silhouette score?
  11. What is feature selection?
  12. Difference between feature selection and extraction?
  13. What is Recursive Feature Elimination?
  14. What is pipeline in scikit-learn?
  15. Why are pipelines important?
  16. What is ColumnTransformer?
  17. How to handle categorical features?
  18. How does scikit-learn handle missing values?
  19. What is SimpleImputer?
  20. What is model persistence?
  21. Difference between pickle and joblib?
  22. What is partial dependence plot?
  23. What is permutation importance?
  24. How to avoid data leakage?
  25. How to handle imbalanced datasets?

Expert Level

  1. How does scikit-learn architecture work?
  2. Explain estimator, transformer, predictor design.
  3. How does scikit-learn optimize performance?
  4. What is warm_start?
  5. How does scikit-learn use NumPy internally?
  6. What are sparse matrices?
  7. How does scikit-learn handle sparse data?
  8. What is SGDClassifier?
  9. Difference between batch and online learning?
  10. How to scale scikit-learn for large datasets?
  11. What are limitations of scikit-learn?
  12. Difference between scikit-learn and TensorFlow?
  13. Difference between scikit-learn and PyTorch?
  14. How to integrate scikit-learn with pandas?
  15. What is custom estimator?
  16. How to implement custom transformer?
  17. What is scoring parameter?
  18. How to evaluate regression models?
  19. What is R² score?
  20. What is model drift?
  21. How to monitor models in production?
  22. What is reproducibility in ML?
  23. How to set random_state?
  24. Explain numerical stability issues.
  25. What are best practices in scikit-learn?

Related Topics


#Pandas

#Pandas

Key Concepts


S.No Topic Sub-Topics
1PandasOverview, Installation, Series, DataFrame, Basic operations
2Series BasicsCreating Series, Indexing, Slicing, Series methods, Data types
3DataFrame BasicsCreate DataFrame, Index/Columns, Shape, dtypes, head/tail
4Data Selectionloc, iloc, ix, column selection, row selection
5Data FilteringBoolean indexing, conditions, isin, between, query()
6Missing Dataisnull, notnull, fillna, dropna, interpolation
7Data CleaningDuplicates, rename, replace, strip whitespaces, type conversion
8Data Transformationapply, map, applymap, lambda functions, vectorized operations
9Aggregation & Groupinggroupby, aggregate, transform, filter, pivot tables
10Sorting & Rankingsort_values, sort_index, rank, ascending/descending, multi-level sorting
11Indexing & MultiIndexset_index, reset_index, hierarchical index, slicing, cross-section
12Concatenation & Mergingconcat, append, merge, join, indicator
13Reshaping Datamelt, pivot, stack, unstack, wide to long format
14Time Series BasicsDatetime conversion, date_range, indexing, resampling, frequency
15Time Series Advancedrolling, expanding, shifting, lag/lead, moving average
16String Operationsstr methods, contains, replace, split, regex
17Visualization with Pandasplot, line, bar, histogram, scatter
18Reading/Writing Dataread_csv, read_excel, read_json, to_csv, to_excel
19Advanced I/Oread_sql, read_parquet, read_hdf, read_pickle, compression
20Exploratory Data Analysisdescribe, info, value_counts, correlation, unique
21Multi-Column Operationsarithmetic, apply, assign, lambda, broadcasting
22Window Functionsrolling, expanding, ewm, groupby with window, custom functions
23Categorical Datacategory dtype, conversion, codes, sorting, filtering
24Sampling & Subsettingsample, head/tail, nth, slicing, random sampling
25Performance Optimizationvectorization, eval/query, categorical, chunking, memory usage
26MultiIndex Advancedstack/unstack, xs, swaplevel, sortlevel, indexing tricks
27Custom Functionsapply, pipe, lambda, function chaining, reusable utilities
28Integration with NumPy & SciPyarray operations, broadcasting, linear algebra, statistical functions, interoperability
29Real World Data ProjectsEDA, cleaning, aggregation, visualization, export results
30End-to-End ProjectData collection, cleaning, analysis, feature engineering, visualization

Interview question


Related Topics