Courseiva

CCNA Data Management Services And Vector Search Questions

75 of 139 questions · Page 1/2 · Data Management Services And Vector Search · Answers revealed

1
MCQeasy

Which distance metric in Azure Cosmos DB vector search calculates the inner product of two vectors, measuring both magnitude and angle?

A.dotproduct
B.cosine
C.euclidean
D.manhattan
AnswerA

dotproduct calculates the inner product of two vectors.

Why this answer

The dotproduct distance metric computes the inner product of two vectors.

2
Multi-Selecthard

You are evaluating data layer architectures for an enterprise AI application that requires both vector search and structured transactional data management. Which THREE criteria favor choosing Azure Cosmos DB over Azure AI Search as the primary database? (Choose three)

Select 3 answers
A.Need for sub-10 millisecond point reads and writes on operational business records
B.Requirement to store and query arbitrary JSON operational documents alongside vectors
C.Requirement for advanced BM25 keyword search and neural semantic re-ranking
D.Requirement for multi-document ACID transactions within a transactional boundary
E.Requirement to generate automatic PDF text extraction and document chunking via indexers
AnswersA, B, D

Cosmos DB is designed for low-latency operational CRUD workloads.

Why this answer

Azure Cosmos DB is preferred when you need ACID transactions, low-latency point reads/writes on transactional records, and native NoSQL document storage alongside vector search.

3
MCQhard

Your team is implementing hybrid search in Azure AI Search combining full-text keyword search and vector search. Users report that certain exact product serial numbers are missing from the semantic ranking results. Which query parameter should you adjust to balance the influence of BM25 text search scores against vector cosine similarity scores?

A.Increasing the efSearch parameter in the index definition.
B.Enabling semantic ranking and providing a semanticConfiguration with targeted weight overrides.
C.Adjusting the top parameter to retrieve a larger candidate pool before RRF combination.
D.Switching the vector similarity metric from cosine to euclidean distance.
AnswerB

Adding a semantic configuration with designated title, content, and keyword fields ensures that exact alphanumeric serial numbers are correctly captured via secondary lexical boosting and reranked properly.

Why this answer

When performing hybrid queries in Azure AI Search, the search engine uses Reciprocal Rank Fusion (RRF) to combine results from text and vector searches. You can influence the weighting or use standard RRF parameters, but adjusting semantic ranking configurations or ensuring proper semantic configuration boosts can address relevance blending. Specifically, adjusting query parameters like semantic configuration or custom scoring profiles allows fine-tuning.

4
MCQhard

You are migrating a large vector dataset into an Azure AI Search index. To maximize ingestion speed and throughput, you temporarily adjust index settings. Which index configuration property should you modify during bulk ingestion?

A.Set HNSW efConstruction to 10,000 to maximize graph build precision
B.Scale out search units (replicas and partitions) to distribute ingestion load
C.Disable all scoring profiles and set vector dimensions to 1
D.Switch the index tier from Standard to Free
AnswerB

Scaling out search units increases indexing throughput for massive bulk uploads.

Why this answer

During heavy bulk ingestion, increasing the replica and partition count or adjusting merge/indexing batch sizes improves speed, but specifically, scaling out search units or temporarily disabling semantic ranker overhead optimizes throughput.

5
Multi-Selecthard

You are troubleshooting slow query performance in an enterprise Azure AI Search vector deployment. Which THREE architectural or configuration adjustments can improve query throughput and latency? Choose three.

Select 3 answers
A.Scale out the number of search service replicas
B.Replace all vector fields with standard ASCII folding tokenizers
C.Ensure the search service is deployed on a Standard tier or higher with adequate RAM
D.Tune the efSearch parameter lower to trade off marginal recall for faster search traversal
E.Configure the index to use exhaustive KNN exclusively for high-QPS production workloads
AnswersA, C, D

Adding replicas increases query throughput (QPS) capacity.

Why this answer

To improve vector search performance in Azure AI Search, practitioners can scale out replicas, tune HNSW efSearch parameters, and leverage batching or appropriate tier sizing.

6
Multi-Selecthard

You are troubleshooting a slow vector query performance issue in Azure Cosmos DB for NoSQL. Which THREE actions can you take to improve vector search execution times? (Choose three)

Select 3 answers
A.Use the diskANN indexing type instead of flat indexes for large collections
B.Ensure your container is partitioned effectively to distribute query load
C.Convert all vector embeddings to base64 string format
D.Disable all non-vector indexing policies on the container
E.Include filter conditions in your query to narrow the search scope before vector distance ranking
AnswersA, B, E

diskANN provides fast approximate nearest neighbor search compared to scanning flat indexes.

Why this answer

Improving vector search performance in Cosmos DB involves selecting efficient index types like diskANN, tuning query parameters, and ensuring proper logical partitioning.

7
Multi-Selecthard

You are implementing a robust data layer architecture for an enterprise generative AI application. Which THREE factors should you evaluate when deciding between Azure AI Search and Azure Cosmos DB for vector search? (Choose three)

Select 3 answers
A.Need for automated multi-region replication with single-digit millisecond latency reads
B.Need for advanced full-text search, BM25 ranking, and semantic re-ranking
C.Requirement to run Hadoop MapReduce jobs directly over the vector indexes
D.Requirement to store vector embeddings as relational SQL tables with foreign key constraints
E.Requirement for low-latency transactional CRUD operations alongside vector search
AnswersA, B, E

Cosmos DB provides turnkey multi-region replication with tunable consistency levels.

Why this answer

When choosing between Azure AI Search and Cosmos DB for vector search, factors such as full-text search capabilities, transactional operational database needs, and scaling requirements are critical.

8
MCQmedium

You are configuring vector search in Azure Cosmos DB for NoSQL. You want to ensure that vectors are indexed using the DiskANN algorithm for high recall and fast search performance. Which index type should you specify in the vector embedding policy?

A.faissHNSW
B.diskANN
C.hnsw
D.ivfFlat
AnswerB

diskANN is supported in Azure Cosmos DB for efficient vector indexing and search.

Why this answer

Azure Cosmos DB for NoSQL supports DiskANN as a high-performance vector indexing type alongside quantized flat indexes.

9
MCQhard

You are managing an Azure Cosmos DB for NoSQL database containing vector embeddings. You need to perform a migration of embeddings from one container to another without taking the application offline. Which Azure feature should you use?

A.Azure Cosmos DB Change Feed processor
B.Azure Data Factory tumbling window triggers over Blob Storage
C.SQL Server Integration Services (SSIS) file import
D.Taking a manual offline portal backup and restoring to a new account
AnswerA

The change feed allows reading inserts and updates to migrate data live without downtime.

Why this answer

The Azure Cosmos DB change feed streams changes to containers in real time, enabling zero-downtime data migration and synchronization.

10
MCQeasy

You need to ensure that your vector data in Azure AI Search is protected at rest. Which setting should you verify?

A.Configure Customer-Managed Keys (CMK) for the search service.
B.Enable TLS 1.3 on the search service.
C.Disable public network access.
D.Enable Always Encrypted on the Cosmos DB container.
AnswerA

CMKs are the standard method for ensuring encryption at rest for Azure AI Search.

Why this answer

Azure AI Search uses Azure Storage for data, and encryption at rest is managed via Customer-Managed Keys (CMK) configured at the search service level.

11
Multi-Selectmedium

When configuring vector search in Azure AI Search, which TWO components are required to successfully define and execute a vector search query? (Choose two)

Select 2 answers
A.A Cosmos DB container partition key
B.An Azure SQL Server database connection string
C.A vector query payload specifying the query vector and target field
D.A vector field defined in the index schema
E.An HDInsight Hadoop cluster endpoint
AnswersC, D

The search request must supply the vector query embedding and target field name.

Why this answer

Executing a vector search query requires a vector-typed field in the index and a query request specifying the vector query vector values and target field.

12
Multi-Selectmedium

When designing an Azure AI Search index schema, which TWO properties must be defined for every field in the index? (Choose two)

Select 2 answers
A.analyzerName
B.name
C.scoringProfile
D.vectorDimensions
E.type
AnswersB, E

The field name is mandatory.

Why this answer

Every field in an Azure AI Search index definition must have a name and a type (Edm data type).

13
MCQeasy

When designing an Azure AI Search solution, you need to store high-dimensional embeddings. Which field type must be used to store these vector representations correctly?

A.Edm.Double
B.Collection(Edm.Single)
C.Edm.String
D.Collection(Edm.Int32)
AnswerB

This is the required data type for storing vector embeddings in Azure AI Search indexes.

Why this answer

In Azure AI Search, vector embeddings must be defined using the 'Collection(Edm.Single)' field type.

14
Multi-Selectmedium

You are planning a data layer architecture for an AI application on Azure that requires both relational transactional storage and vector search capabilities. Which TWO Azure database services natively support vector data types and similarity search functions? Choose two.

Select 2 answers
A.Azure SQL Database
B.Azure Queue Storage
C.Azure Cosmos DB for NoSQL
D.Azure Table Storage
E.Azure Cache for Redis (Basic tier without modules)
AnswersA, C

Azure SQL Database supports native VECTOR data types and vector distance functions.

Why this answer

Azure SQL Database and Azure Cosmos DB (both NoSQL and MongoDB vCore APIs) natively support vector data storage and vector search functions.

15
Multi-Selecthard

You are designing a secure data layer architecture for financial documents using Azure Cosmos DB for NoSQL and Azure AI Search. Which THREE compliance and security controls should you implement? (Choose three)

Select 3 answers
A.Store all database backup files in unencrypted public blob storage containers
B.Enable diagnostic logging and audit log streaming to Azure Monitor / Log Analytics
C.Disable authentication keys and allow anonymous public access for easy integration
D.Configure Customer-Managed Keys (CMK) using Azure Key Vault for data at rest encryption
E.Restrict network access using Virtual Network service endpoints and private link
AnswersB, D, E

Audit logging tracks access and administrative activities for compliance.

Why this answer

Enterprise compliance and security controls include configuring customer-managed keys, enabling diagnostic logging for auditing, and enforcing private endpoint networking.

16
MCQeasy

Which Azure AI Search metric or tool helps administrators monitor query volume, latency, and throttling rates across search units?

A.Azure Monitor metrics and diagnostic logs
B.App Service stream logs
C.Azure Storage Explorer
D.Cosmos DB Data Explorer
AnswerA

Azure Monitor tracks search service latency, query rates, and throttling metrics.

Why this answer

Azure Monitor and Log Analytics provide comprehensive telemetry, metrics, and logs for monitoring Azure AI Search performance.

17
Multi-Selectmedium

When configuring vector search in Azure Cosmos DB for NoSQL, which TWO data types are valid for storing vector embeddings within the vector embedding policy? (Choose two)

Select 2 answers
A.boolean
B.float32
C.guid
D.string
E.float16
AnswersB, E

float32 is the standard 32-bit floating-point data type supported for vectors.

Why this answer

Cosmos DB vector embedding policy supports float32 and float16 (or int8 depending on quantization) for vector properties.

18
MCQmedium

You are configuring an Azure AI Search index where text fields are automatically analyzed using language-specific rules. Which property on an Edm.String field specifies the language analyzer (e.g., 'en.microsoft')?

A.tokenizerType
B.languageMapping
C.vectorProfile
D.analyzer
AnswerD

The analyzer property specifies the text analyzer for tokenization.

Why this answer

The analyzer property on an Edm.String field specifies the language-specific analyzer used for full-text tokenization.

19
MCQhard

You are configuring vector search on an Azure AI Search index using a custom vectorizer that points to an external embedding endpoint. Which authentication method is recommended and natively supported for securely connecting Azure AI Search to the Azure OpenAI endpoint?

A.Managed Identity (system-assigned or user-assigned)
B.OAuth2 client credentials grant with Azure AD tenant federation
C.Shared Access Signature (SAS) tokens
D.Basic authentication with API keys stored in index metadata
AnswerA

Managed Identity is the secure, recommended authentication mechanism for connecting Azure AI Search to Azure OpenAI.

Why this answer

Azure AI Search supports managed identities (both system-assigned and user-assigned) to securely authenticate against Azure OpenAI endpoints without storing API keys.

20
MCQhard

You are designing a high-availability RAG architecture where search queries must succeed even if an entire Azure region experiences an outage. You deploy Azure AI Search in a primary region and a secondary region. How should client applications handle failover?

A.Hardcode the secondary search IP address in client application configuration files
B.Rely on Cosmos DB automatic failover to replicate search indices
C.Use Azure Traffic Manager or Azure Front Door in front of regional search service endpoints with health probes
D.Configure SQL replication between search indexes
AnswerC

Global load balancers like Traffic Manager or Front Door route traffic to healthy regional endpoints automatically.

Why this answer

Applications implement traffic routing via Azure Traffic Manager or Azure Front Door pointing to both search service regional endpoints, combined with geo-replication of search indexes.

21
Multi-Selecthard

You are optimizing an enterprise Azure Cosmos DB for NoSQL vector database. Which THREE administrative or architectural practices help ensure high availability and predictable performance? (Choose three)

Select 3 answers
A.Choose a partition key that evenly distributes data and query load across physical partitions
B.Enable multi-region write replication for global low-latency availability
C.Store all documents in a single partition without a partition key
D.Disable automatic indexing entirely across all properties
E.Provision adequate Request Units (RUs) or configure autoscale throughput
AnswersA, B, E

Effective partitioning prevents hot spots and ensures scalable query execution.

Why this answer

Ensuring high performance and availability in Cosmos DB involves configuring consistent request unit provisioning, setting up multi-region writes, and defining effective partition keys.

22
MCQeasy

Which Azure AI Search capability allows you to extract text from images and PDF documents during indexer execution using AI cognitive skills?

A.Semantic configurations
B.Scoring profiles
C.Skillsets
D.Vector profiles
AnswerC

Skillsets enable cognitive AI enrichment during indexer execution.

Why this answer

Skillsets in Azure AI Search enable cognitive enrichment, allowing tasks like OCR and entity extraction during ingestion.

23
MCQmedium

You are designing an application that stores vector embeddings in Azure Cosmos DB for NoSQL. You want to ensure that vectors are stored securely and that all data at rest is encrypted using customer-managed keys (CMK). How is this achieved in Cosmos DB?

A.Enable encryption inside the vector embedding policy JSON definition
B.Encrypt each individual vector array in client application code before inserting
C.Store vectors in Azure Blob Storage with a CMK policy
D.Configure customer-managed keys (CMK) at the Azure Cosmos DB account level referencing Azure Key Vault
AnswerD

CMK encryption is configured at the Cosmos DB account level with Azure Key Vault.

Why this answer

Customer-managed keys in Azure Cosmos DB are configured at the Azure Cosmos DB account level using Azure Key Vault integration.

24
MCQeasy

Which Azure service provides a fully managed NoSQL database with native vector search capabilities and turnkey multi-region replication?

A.Azure Table Storage
B.Azure Blob Storage
C.Azure Cosmos DB
D.Azure SQL Database
AnswerC

Azure Cosmos DB supports native vector indexing and search with multi-region distribution.

Why this answer

Azure Cosmos DB provides managed NoSQL capabilities with built-in vector search and global distribution.

25
MCQeasy

When querying an Azure AI Search vector index using the REST API or SDK, what parameter specifies the number of nearest neighbors to retrieve?

A.radius
B.top
C.depth
D.k
AnswerD

The parameter k defines the number of nearest neighbors to return in a vector query.

Why this answer

The nearest neighbors query parameter in Azure AI Search vector queries is k (or kNearestNeighbors).

26
Multi-Selecthard

You are designing an enterprise search architecture on Azure that requires hybrid search capabilities. Which THREE components or features must be configured to successfully execute a hybrid query with semantic ranking in Azure AI Search? (Choose three)

Select 3 answers
A.Azure Blob Storage configured as an external data source
B.A searchable Edm.String text field for keyword matching
C.A vector field defined with Edm.SingleCollection and a vector profile
D.An Azure Functions application for manual score merging
E.A semantic configuration defined on the index
AnswersB, C, E

BM25 full-text search relies on searchable Edm.String fields.

Why this answer

To run hybrid search with semantic ranking, you need a vector field, a text field for BM25 keyword search, and semantic configuration enabled on the index.

27
MCQmedium

You are integrating Azure OpenAI Service's text-embedding-ada-002 model with Azure AI Search. You want to automate the generation of embeddings directly inside the search service during data ingestion. Which component of Azure AI Search should you configure?

A.Semantic ranker configuration profile
B.Azure AI Search Indexer with integrated vectorization
C.Azure Function scheduled trigger for batch updates
D.Custom Web API skill in Azure AI Services enrichment pipeline
AnswerB

Integrated vectorization in Azure AI Search automatically handles embedding generation from raw text fields using Azure OpenAI connections during indexing.

Why this answer

Indexers in Azure AI Search support integrated vectorization, allowing you to connect to Azure OpenAI to automatically chunk text and generate embeddings during the indexing pipeline.

28
MCQeasy

You are storing vector embeddings generated by Azure OpenAI in Azure Cosmos DB for NoSQL. Which built-in SQL function must you use within your query to compute vector distance when executing a similarity search?

A.EmbeddingDistance()
B.GetVectorDistance()
C.VectorDistance()
D.CosineSimilarity()
AnswerC

VectorDistance is the official built-in SQL function in Azure Cosmos DB for NoSQL designed to compute distance metrics between vector arrays.

Why this answer

Azure Cosmos DB for NoSQL provides native vector search functions including VectorDistance, which computes the distance between two vectors using Cosine, DotProduct, or Euclidean distance metrics.

29
Multi-Selectmedium

You are configuring a vector search profile in Azure AI Search. Which TWO parameters are required when defining an algorithm configuration using the HNSW algorithm? (Choose two)

Select 2 answers
A.vectorDimensions
B.efConstruction
C.m
D.compressionType
E.shardCount
AnswersB, C

efConstruction specifies the size of the dynamic candidate list during HNSW graph construction.

Why this answer

When configuring an HNSW algorithm profile in Azure AI Search, you must define parameters such as m (number of bi-directional links per node) and efConstruction (size of the dynamic candidate list during construction).

30
MCQhard

You are building an AI search solution in Azure AI Search. You need to ensure that when documents are deleted from the primary database, they are also automatically removed from the search index without requiring manual API calls. How should you configure the indexer?

A.Write a custom Azure Function triggered by every delete event to issue an HTTP DELETE to the search index
B.Configure a soft-delete policy on the indexer referencing a deletion tracking column or flag in the data source
C.Re-create the entire search index from scratch daily
D.Set the index retention policy to auto-purge every 24 hours
AnswerB

Soft-delete policies enable indexers to detect and propagate document deletions automatically.

Why this answer

Azure AI Search indexers support change detection and soft-delete policies (such as Soft Delete Column) to automatically reflect deletions in the search index.

31
MCQhard

You are troubleshooting high latency in an Azure AI Search vector indexing pipeline. The source data is stored in Azure Blob Storage. You notice that the 'skillset' execution is the bottleneck. Which configuration change is most likely to reduce ingestion time?

A.Increase the 'maxParallelism' setting in the indexer configuration.
B.Change the Blob storage tier to Cool.
C.Switch from HNSW to Flat indexing.
D.Reduce the embedding vector dimensions.
AnswerA

Parallelism allows the indexer to process more documents simultaneously, reducing total indexing time.

Why this answer

Increasing the number of indexer concurrency (if the tier supports it) or optimizing the skillset to perform batch processing reduces the total overhead of document enrichment.

32
MCQmedium

You are building a chat application with memory using Azure AI Search. You want to retrieve previous conversation turns that are semantically similar to the current user prompt. What search mode should you use if you want to execute both a vector search and a keyword search simultaneously and combine their results?

A.Exhaustive k-NN search
B.Wildcard search
C.Hybrid search
D.Fuzzy search only
AnswerC

Hybrid search combines vector search and full-text keyword search into a single query.

Why this answer

Executing vector and keyword search simultaneously in Azure AI Search is known as hybrid search.

33
MCQeasy

Which distance metric in Azure Cosmos DB vector search calculates the shortest straight-line segment between two points in a multi-dimensional space?

A.dotproduct
B.hamming
C.cosine
D.euclidean
AnswerD

Euclidean distance measures straight-line distance.

Why this answer

Euclidean distance measures the straight-line distance between two points in Euclidean space.

34
Multi-Selectmedium

When configuring vector search in Azure AI Search, which TWO components are defined within the vectorSearch object of an index definition? (Choose two)

Select 2 answers
A.sqlPartitionKey
B.storageAccountConnectionString
C.algorithms
D.profiles
E.cosmosContainerName
AnswersC, D

The algorithms collection defines parameters for HNSW or exhaustive k-NN.

Why this answer

The vectorSearch object in Azure AI Search contains algorithm configurations and vector profiles.

35
MCQmedium

You are configuring an Azure AI Search index with vector fields. You need to ensure that filtering operations (such as matching a category ID) are executed with 100% precision before or alongside the vector search. Which vector filter mode should you choose?

A.preFilter mode
B.approximateFilter mode
C.hybridFilter mode
D.postFilter mode
AnswerA

Pre-filter mode applies the filter first, guaranteeing precision for metadata constraints during vector search.

Why this answer

Pre-filtering (preFilter) applies the OData filter before the vector search execution, ensuring that only documents matching the filter are considered in the vector similarity calculation.

36
MCQmedium

You are using Azure OpenAI Service to generate embeddings for your documents before storing them in Azure Cosmos DB for NoSQL. The embedding model outputs vectors with a length of 1536. When defining the vector embedding policy in Cosmos DB, what value should you specify for the dimensions property?

A.3072
B.1536
C.512
D.768
AnswerB

The dimensions property must be set to 1536 to match the model output.

Why this answer

The dimensions property in the Azure Cosmos DB vector embedding policy must exactly match the output dimensions of the embedding model used (1536 for text-embedding-ada-002).

37
MCQeasy

Which tool in Azure Portal allows you to test search queries, inspect index schemas, and view JSON responses for Azure AI Search?

A.Metrics Advisor
B.Data Explorer
C.Log Analytics
D.Search explorer
AnswerD

Search explorer is the built-in Azure Portal tool for testing search queries and inspecting indexes.

Why this answer

The Search Explorer in the Azure Portal provides a built-in UI interface for testing queries and inspecting indices in Azure AI Search.

38
MCQmedium

You are writing a query in Azure Cosmos DB for NoSQL that sorts results by vector similarity and also filters results by a category property. How must you order the clauses in your SQL statement?

A.The WHERE clause must come before the ORDER BY VectorDistance() clause
B.VectorDistance must be placed in the SELECT clause instead of ORDER BY
C.WHERE and ORDER BY clauses cannot be used in the same query when using vectors
D.The ORDER BY clause must come before the WHERE clause
AnswerA

Cosmos DB SQL syntax requires filtering via WHERE before sorting via ORDER BY.

Why this answer

In Azure Cosmos DB, when using VectorDistance in an ORDER BY clause along with a WHERE filter, the WHERE clause must precede the ORDER BY clause.

39
MCQeasy

In Azure Cosmos DB for NoSQL, which property in the container definition specifies the path to the property containing the vector array within each document?

A.path
B.propertyLocation
C.field
D.jsonPath
AnswerA

The path property specifies the JSON path to the vector array in the document.

Why this answer

The vector embedding policy defines paths (e.g., /vectorProperty) to locate the vector array inside items.

40
MCQmedium

You are writing a Python application using the Azure Cosmos DB Python SDK to perform a vector search. You execute a parameterized SQL query containing VectorDistance(). What must be passed as a query parameter for the VectorDistance function to evaluate correctly against the container's vector property?

A.A base64 encoded string of the text
B.A connection string to Azure OpenAI Service
C.A Python list of float values representing the query embedding
D.A file path pointing to a local .npy numpy file
AnswerC

Cosmos DB expects the query vector parameter to be passed as a list of floats.

Why this answer

When using VectorDistance() in Cosmos DB SQL queries, the target vector must be passed as a parameter array of floats corresponding to the model dimensions.

41
Multi-Selecthard

You are designing a high-scale vector search architecture using Azure AI Search. Which THREE operational and architectural best practices should you follow to ensure optimal performance and cost-efficiency? (Choose three)

Select 3 answers
A.Balance replica and partition counts based on your query throughput and index size requirements
B.Store all raw PDF files inside the vector float32 array fields
C.Use scalar quantization to reduce memory footprint and improve HNSW search throughput
D.Monitor search unit resource utilization (CPU, memory, storage) using Azure Monitor
E.Deploy all indexes on the Free tier to eliminate infrastructure costs
AnswersA, C, D

Proper shard and replica planning optimizes cost and query performance.

Why this answer

Best practices for Azure AI Search include monitoring resource utilization, right-sizing replicas and partitions, and leveraging vector compression (scalar quantization).

42
MCQhard

You are optimizing an Azure AI Search vector index with millions of documents. Users report high latency during vector queries. You decide to implement vector compression to reduce memory footprint and improve search throughput. Which compression method is natively supported in Azure AI Search?

A.Autoencoders
B.Scalar Quantization (SQ)
C.Principal Component Analysis (PCA)
D.Product Quantization (PQ)
AnswerB

Scalar Quantization compresses float32 vectors to int8, reducing the memory footprint of the HNSW graph.

Why this answer

Azure AI Search supports scalar quantization (specifically SQ) to compress 32-bit floating-point vectors into 8-bit integers, significantly reducing memory usage with minimal loss in recall.

43
MCQmedium

You are writing a Python script to query an Azure AI Search index using the azure-search-documents SDK. You want to retrieve both vector matches and keyword matches using hybrid search. Which class should you instantiate to represent the vector query?

A.EmbeddingQueryClient
B.HnswSearchRequest
C.CosmosVectorSearch
D.VectorizedQuery
AnswerD

VectorizedQuery represents a vector query passed into search requests in the Python SDK.

Why this answer

The VectorizedQuery class in the Azure AI Search Python SDK is used to construct vector queries for hybrid or vector-only search requests.

44
MCQmedium

You are designing an AI search architecture that requires handling millions of documents with sub-second vector similarity queries. You choose Azure AI Search. How does Azure AI Search ensure high query throughput for vector indexes?

A.By caching every possible query result indefinitely in memory
B.By executing sequential full table scans across all storage nodes simultaneously
C.By utilizing HNSW approximate nearest neighbor indexing combined with multi-replica scale-out
D.By converting all vectors into relational database tables with SQL foreign keys
AnswerC

HNSW indexing and replica scale-out provide high throughput for vector queries.

Why this answer

Azure AI Search uses HNSW approximate nearest neighbor graphs combined with multi-replica scale-out architecture to deliver high throughput and low latency.

45
MCQhard

You are designing an AI architecture that stores vector embeddings in Azure Cosmos DB for NoSQL. You need to implement role-based access control (RBAC) so that specific application microservices can only execute read-only queries against the database without having permission to write or delete documents. How should you configure this?

A.Configure Azure Blob Storage RBAC permissions on the Cosmos DB container
B.Share the primary master master-key with all microservices
C.Create a custom SQL role definition with read-only data actions and assign it to the microservice's managed identity
D.Disable authentication on the Cosmos DB account during query execution
AnswerC

Custom Cosmos DB SQL roles with specific data actions enforce least-privilege read-only access.

Why this answer

Azure Cosmos DB supports custom SQL role definitions with specific data actions (such as read vs write) assigned via role assignments to managed identities or service principals.

46
Multi-Selecthard

You are planning the disaster recovery and high availability strategy for an Azure AI Search service storing critical vector indexes for an AI assistant. Which THREE practices should you implement? (Choose three)

Select 3 answers
A.Configure at least two replicas for high availability during service updates
B.Set up geo-replication by creating a secondary search service in a paired region
C.Store all vector embeddings as flat text files in local VM temp storage
D.Deploy search units across Azure Availability Zones where supported
E.Rely solely on the Free tier with automated backups
AnswersA, B, D

Having multiple replicas ensures query availability during maintenance and node failures.

Why this answer

Ensuring high availability and DR for Azure AI Search involves configuring multiple replicas, deploying across Availability Zones, and establishing geo-replication architectures.

47
MCQhard

You are managing an Azure AI Search index that uses integrated vectorization with Azure OpenAI. When a user sends a query string, you want Azure AI Search to automatically vectorize the query text before performing the vector search. Which feature must you configure in the index schema?

A.A cognitive services attachment on the storage account
B.An Azure Logic App trigger
C.A custom Web API skillset
D.A vectorizer configuration linked to an Azure OpenAI skill or service connection
AnswerC, D

While custom skillsets can enrich data, integrated vectorization specifically uses native vectorizer definitions.

Why this answer

Integrated vectorization in Azure AI Search uses a vectorizer configuration connected to Azure OpenAI to automatically convert plain text queries into vector embeddings.

48
Multi-Selectmedium

You are implementing vector search using Azure Cosmos DB for MongoDB (vCore). Which TWO distance metrics are valid options when creating a vector search index? Choose two.

Select 2 answers
A.chi-squared (cs)
B.euclidean (l2)
C.pearson (pr)
D.manhattan (m1)
E.cosine (cos)
AnswersB, E

Euclidean distance is a supported metric for vector search in Cosmos DB for MongoDB (vCore).

Why this answer

Azure Cosmos DB for MongoDB (vCore) supports cosine distance (cos), inner product (ip), and Euclidean distance (l2).

49
Multi-Selecthard

You are designing a secure enterprise generative AI platform using Azure AI Search and Azure OpenAI. Which THREE security practices should you implement to protect sensitive data and access? (Choose three)

Select 3 answers
A.Implement Azure RBAC to restrict index management and data query permissions
B.Use Microsoft Entra ID managed identities for secure authentication between services
C.Disable transport layer security (TLS) to speed up embedding transmission
D.Store all API keys in plain text configuration files on public web servers
E.Configure Azure Private Endpoints for the Azure AI Search and Azure OpenAI services
AnswersA, B, E

Role-based access control enforces least privilege access to search indices.

Why this answer

Securing AI search and embedding stores involves using managed identities, restricting network access via private endpoints, and enforcing role-based access control.

50
MCQmedium

You are designing the data architecture for an AI-powered document search application. You choose Azure AI Search because you need multi-lingual support, faceted navigation, and vector search. What is the maximum number of vector fields allowed per index in Azure AI Search?

A.Exactly one vector field per index
B.A maximum of two vector fields
C.Multiple vector fields are supported per index
D.Vector fields are not supported in Azure AI Search
AnswerC

Azure AI Search supports multiple vector fields in a single index schema.

Why this answer

Azure AI Search allows multiple vector fields per index to support multi-modal or multi-model embeddings (e.g., text and image embeddings in the same document).

51
MCQhard

You are designing a multi-tenant enterprise RAG system using Azure AI Search. Each tenant requires isolated document retrieval. Which feature should you implement to enforce data security while leveraging vector search?

A.Role-Based Access Control (RBAC) at the index level
B.Dedicated search services per tenant without filters
C.Security trimming using OData filter expressions with vector queries
D.Semantic ranker query throttling
AnswerC

Security trimming using OData filters ensures that vector and hybrid search queries only return documents the user is authorized to access.

Why this answer

Security trimming in Azure AI Search allows filtering search results based on user permissions by applying document-level access control lists (ACLs) using OData filters during the search query execution.

52
MCQmedium

You are designing an application that requires low-latency vector search for a high-traffic AI chatbot. You need to ensure the vector index remains performant as the dataset grows into millions of documents. Which index configuration in Azure AI Search should you implement to optimize for speed over absolute recall accuracy?

A.Flat Indexing
B.Exhaustive KNN
C.HNSW
D.Partitioned Indexing
AnswerC

HNSW is the recommended index type for performance in large-scale vector search scenarios.

Why this answer

HNSW (Hierarchical Navigable Small World) allows for approximate nearest neighbor search, providing the best performance-to-accuracy balance for large datasets.

53
Multi-Selectmedium

Your team is choosing between using Azure AI Search or Cosmos DB for NoSQL for a new project. Which TWO factors are key considerations that favor Azure AI Search?

Select 2 answers
A.Need for deep integration with full-text search (BM25) and hybrid search.
B.Requirement to store petabytes of data.
C.Requirement for high-frequency transactional ACID updates to metadata.
D.Need for built-in semantic re-ranking for better accuracy.
E.Need for lowest possible latency at the database level.
AnswersA, D

Azure AI Search is optimized for hybrid search, combining vector and full-text search.

Why this answer

Azure AI Search offers built-in support for full-text search (BM25) and advanced re-ranking, which are not native features of Cosmos DB's vector implementation.

54
MCQmedium

Your application uses Cosmos DB for NoSQL to store product metadata and vectors. You need to perform a vector search that combines similarity scores with specific filter criteria on the 'category' field. How should you define your index policy to support this?

A.Define a vector index policy and include the 'category' property in the indexing policy's included paths.
B.Create a vector index policy containing only the vector embedding path.
C.Enable auto-indexing for all properties to ensure vector search works.
D.Use a stored procedure to perform the filter after the vector search result set is returned.
AnswerA

This configuration allows the engine to filter by category before or during the vector similarity search phase.

Why this answer

Vector index policies in Cosmos DB must be configured to support hybrid search by including the vector embedding path and the property filter path for efficient query execution.

55
MCQhard

You are designing a data architecture on Azure where embeddings are generated offline by an Azure Databricks pipeline and stored in Azure AI Search. You want to minimize ingestion latency and optimize throughput when uploading millions of pre-computed vectors. Which client library API pattern should you use?

A.Use SearchClient batch upload APIs with up to 1000 documents per batch
B.Stream vectors directly through the Azure AI Search integrated vectorizer skillset
C.Send documents one-by-one using synchronous CreateOrUpdate API calls
D.Execute direct SQL INSERT statements against the underlying search partition nodes
AnswerA

Batching documents up to the 1000-document limit maximizes indexing throughput in Azure AI Search.

Why this answer

When uploading large batches of documents containing pre-computed vectors to Azure AI Search, using the SearchClient.UploadDocumentsBatch (or mergeOrUpload) method with batched payloads of up to 1000 documents maximizes throughput.

56
MCQhard

You are designing an AI application architecture where embeddings are generated on-the-fly by an Azure Function and stored in Azure Cosmos DB for NoSQL. During peak load, the Azure Function times out due to rate limits (HTTP 429) from Azure OpenAI Service. What design pattern should you implement to make the ingestion pipeline resilient?

A.Increase the Azure Function execution timeout limit to 24 hours
B.Disable SSL verification on the Azure OpenAI client connection
C.Switch from Azure OpenAI to local text file storage
D.Implement an asynchronous message queue using Azure Service Bus to buffer ingestion requests and handle rate-limit retries
AnswerD

Azure Service Bus queues allow graceful handling of rate limits and retries without dropping requests.

Why this answer

Implementing an asynchronous messaging pattern using Azure Service Bus or Event Hubs decouples the client ingestion request from embedding generation, allowing rate limiting and retries.

57
Multi-Selectmedium

When configuring vector search in Azure AI Search, which TWO parameters must be defined when creating a vector profile? (Choose two)

Select 2 answers
A.algorithm
B.name
C.sqlConnectionString
D.vmSize
E.cosmosDatabaseName
AnswersA, B

The algorithm property references a defined algorithm configuration (e.g., HNSW).

Why this answer

A vector profile requires a profile name, an algorithm configuration name, and optionally a vectorizer name.

58
MCQhard

You are designing an enterprise RAG application that stores vector embeddings in Azure AI Search. You want to ensure that if the primary Azure region goes down, your search service automatically fails over with minimal data loss. How should you design your geo-replication strategy?

A.Export search indexes to CSV files hourly and upload them manually
B.Configure geo-replication with replica services in a paired Azure region, enabling read-only failover and re-indexing capabilities
C.Rely on Azure Blob Storage geo-redundancy to automatically mirror search index memory
D.Configure synchronous multi-region write master locks across 10 regions simultaneously
AnswerB

Geo-replication creates secondary replicas in paired regions for high availability.

Why this answer

Deploying Azure AI Search with geo-replication across paired Azure regions ensures read availability, while writes can be resubmitted to the primary region upon recovery.

59
MCQhard

You are configuring data ingestion into an Azure AI Search index using an Azure AI Search indexer. The source data resides in Azure Blob Storage and consists of PDF documents. You want to chunk the documents and generate embeddings during ingestion without writing custom orchestration code. Which feature should you configure?

A.Azure Data Factory mapping data flows with vector transformations
B.A custom WebJob running LangChain
C.Cosmos DB change feed triggers
D.Integrated vectorization with built-in document splitting and vectorizer skillset configuration
AnswerD

Integrated vectorization allows indexers to handle chunking and embedding generation natively.

Why this answer

Azure AI Search supports built-in chunking and vectorization capabilities within skillsets or integrated vectorization to parse, chunk, and embed documents automatically via indexers.

60
Multi-Selecthard

You are designing a disaster recovery and backup strategy for Azure Cosmos DB for NoSQL storing vector embeddings. Which THREE backup options or capabilities are available? (Choose three)

Select 3 answers
A.Restoring backed-up data to a new Azure Cosmos DB account
B.Direct SQL Server .bak file restoration
C.Periodic backup mode with customizable retention and backup intervals
D.Continuous backup mode with point-in-time restore (up to 30 days)
E.Manual file export via FTP into local VM storage
AnswersA, C, D

Restores create a new Cosmos DB account containing the restored data.

Why this answer

Azure Cosmos DB provides continuous backups (point-in-time restore) and periodic backups, allowing restoration to a new account.

61
MCQeasy

Which Azure AI Search API parameter allows you to specify a vector query alongside traditional keyword search terms when executing a hybrid search?

A.vectorQueries
B.embeddingQuery
C.knnQuery
D.vectorSearchParam
AnswerA

vectorQueries is the parameter used to supply vector queries in search requests.

Why this answer

In Azure AI Search queries, the vectorQueries parameter is used to pass vector embedding query objects during search requests.

62
Multi-Selectmedium

Which THREE features are common to both Azure AI Search and Azure Cosmos DB for NoSQL when performing vector search?

Select 3 answers
A.Ability to filter results based on non-vector document properties.
B.Support for semantic re-ranking (Semantic Ranker).
C.Support for HNSW indexing algorithms.
D.Automatic translation of SQL to Vector queries.
E.Similarity search based on vector distance metrics.
AnswersA, C, E

Both services allow for pre-filtering or post-filtering based on metadata.

Why this answer

Both services support HNSW-based indexing, allow for filtering metadata alongside vector searches, and provide similarity search functions.

63
Multi-Selectmedium

When configuring vector search in Azure Cosmos DB for NoSQL, which TWO properties must be defined within the container's vector embedding policy? Choose two.

Select 2 answers
A.Container partition key definition
B.BM25 k1 and b tuning parameters
C.Replication lag threshold
D.Path (the JSON property containing the vector array)
E.DataType (e.g., float32) and Dimensions (e.g., 1536)
AnswersD, E

The path specifies which property in the JSON document holds the embedding array.

Why this answer

In Azure Cosmos DB for NoSQL, the vector embedding policy requires defining paths (properties containing vectors) and embedding details such as datatype, dimensions, and distance function.

64
Multi-Selecthard

You are designing an enterprise search architecture that combines Azure AI Search and Azure OpenAI. Which THREE strategies help optimize hybrid search relevance and retrieval quality? Choose three.

Select 3 answers
A.Tune HNSW parameters (m and efSearch) based on recall and latency trade-offs
B.Implement Reciprocal Rank Fusion (RRF) to combine lexical and vector ranks
C.Enable Azure AI Search semantic ranker for deep learning re-ranking
D.Disable all OData filters to maximize vector recall
E.Store all embeddings as uncompressed plaintext strings in Blob Storage
AnswersA, B, C

Tuning HNSW parameters ensures optimal balance between vector search recall and search latency.

Why this answer

To optimize hybrid search relevance, practitioners use Reciprocal Rank Fusion (RRF), semantic ranking (L2 re-ranking), and proper vector normalization/tuning.

65
MCQhard

You are troubleshooting a high memory consumption issue on an Azure AI Search service hosting large vector indexes. Which index configuration choice contributes most directly to high memory pressure when using the HNSW algorithm?

A.Storing raw uncompressed vectors in memory for HNSW graph traversal
B.Configuring high-frequency indexers
C.Enabling semantic ranking on text fields
D.Using exhaustiveKnn instead of HNSW
AnswerA

HNSW requires keeping the vectors and graph in RAM for low-latency distance computations, leading to high memory utilization.

Why this answer

HNSW indexes must load the entire vector graph structure into RAM to execute fast approximate nearest neighbor searches, making memory sizing critical.

66
Multi-Selectmedium

Your enterprise application architecture incorporates Azure Cosmos DB for NoSQL as the primary operational data store and Azure AI Search as the vector index for semantic search. Which THREE mechanisms can you use to keep the Azure AI Search vector index synchronized with changes in Azure Cosmos DB?

Select 3 answers
A.Configure an Azure AI Search indexer connected to an Azure Cosmos DB change feed data source.
B.Use Azure Event Grid to capture container mutation events and orchestrate indexing updates.
C.Deploy an Azure Function triggered by the Azure Cosmos DB change feed to push document inserts and updates directly to the Azure AI Search REST API.
D.Execute a full database table scan and drop-rebuild of the search index every 5 minutes using Azure Data Factory batch pipelines.
E.Enable native real-time bidirectional memory-mapped replication between Azure Cosmos DB database partitions and search service replicas.
AnswersA, B, C

Azure AI Search provides a native indexer for Azure Cosmos DB for NoSQL that tracks changes automatically using the change feed.

Why this answer

Syncing Azure Cosmos DB with Azure AI Search can be achieved natively using Azure Cosmos DB change feed integration via Azure Functions, using built-in Azure AI Search indexers configured with an Azure Cosmos DB change feed data source, or via custom event-driven pipelines using Azure Event Grid.

67
Multi-Selecthard

You are optimizing an enterprise search architecture using Azure AI Search. Which THREE mechanisms help control latency and resource consumption during heavy vector query loads? (Choose three)

Select 3 answers
A.Tuning HNSW efSearch parameter to balance recall speed and latency
B.Disabling caching and increasing index document count per partition beyond limits
C.Applying scalar quantization to compress vectors and reduce memory overhead
D.Running exhaustive k-NN searches for every query by default
E.Scaling out search replicas to distribute query traffic across nodes
AnswersA, C, E

Lowering efSearch (if slight recall drop is acceptable) reduces query latency.

Why this answer

To control latency and resource consumption during heavy vector loads, you can scale out replicas, apply scalar quantization, and tune HNSW efSearch parameters.

68
Multi-Selecthard

You are designing the data storage and indexing strategy for a multi-tenant AI search solution on Azure. Which TWO architectural practices should you implement to optimize vector search performance and tenant isolation in Azure AI Search?

Select 2 answers
A.Disable the HNSW algorithm and rely exclusively on exhaustive brute-force search across all tenant partitions.
B.Store all tenants' embeddings in a single unpartitioned vector field without metadata tags to maximize index density.
C.Implement security trimming by appending OData filter expressions (e.g., tenantId eq 'tenant-1') to every vector search query.
D.Store raw embeddings exclusively in Azure Blob Storage and perform client-side cosine similarity calculations for all queries.
E.Provision dedicated Azure AI Search indexes or service tiers for enterprise tenants requiring strict isolation and predictable vector search latency.
AnswersC, E

OData filters applied alongside vector queries ensure row-level security and tenant data isolation within a shared index.

Why this answer

Using separate indexes or indexers per tenant or enforcing security trimming via filter expressions are standard practices for multi-tenancy in Azure AI Search. Additionally, configuring appropriate HNSW parameters (m, efConstruction) ensures query speed and recall balance.

69
MCQeasy

Which Azure service provides cloud-scale vector search backed by either HNSW or DiskANN algorithms alongside managed NoSQL capabilities?

A.Azure Logic Apps
B.Azure Cosmos DB for NoSQL
C.Azure Functions
D.Azure Virtual Machines
AnswerB

Azure Cosmos DB for NoSQL supports vector search.

Why this answer

Azure Cosmos DB for NoSQL provides managed NoSQL storage with native vector search powered by DiskANN.

70
Multi-Selectmedium

You are configuring vector search options in Azure Cosmos DB for NoSQL. Which TWO distance metrics are supported when defining a vector embedding policy? (Choose two)

Select 2 answers
A.hamming
B.manhattan
C.jaccard
D.euclidean
E.cosine
AnswersD, E

Euclidean distance is supported in Azure Cosmos DB vector search.

Why this answer

Azure Cosmos DB for NoSQL supports cosine, dotproduct, and euclidean distance metrics for vector similarity search.

71
MCQmedium

You are implementing vector search in Azure AI Search using the REST API. You want to execute a pure vector query without any keyword matching. What parameter must be omitted or left empty in your query request payload?

A.The 'vectorQueries' parameter
B.The 'search' parameter
C.The 'top' parameter
D.The 'api-version' parameter
AnswerB

Omitting the 'search' parameter ensures the query relies strictly on the vector query rather than full-text search.

Why this answer

To execute a pure vector query in Azure AI Search without keyword search, you omit or leave the 'search' parameter empty while providing the 'vectorQueries' parameter.

72
Multi-Selectmedium

You are configuring an Azure AI Search vector index. Which TWO parameters are part of the HNSW algorithm configuration settings? Choose two.

Select 2 answers
A.efSearch
B.m
C.maxTokenLength
D.clusterCount
E.shingleSize
AnswersA, B

'efSearch' defines the size of the candidate list during search graph traversal.

Why this answer

In Azure AI Search, the HNSW algorithm configuration accepts 'm' (number of bi-directional links per node) and 'efSearch' (size of the dynamic candidate list during search), along with 'efConstruction'.

73
Multi-Selecthard

When migrating data into Azure AI Search for vector search, you encounter issues with ingestion. Which TWO of the following are valid reasons why an indexer might fail to ingest vector data?

Select 2 answers
A.The vector dimensions in the source data exceed the index field's configured dimensions.
B.The embedding model used is deprecated.
C.The 'Collection(Edm.Single)' field is marked as 'filterable'.
D.The source document contains a vector array with an incorrect field type (e.g., array of strings).
E.The indexer is not configured with an 'AzureOpenAI' skill.
AnswersA, D

Mismatching dimensions will cause the indexing process to fail.

Why this answer

Indexer failures often stem from schema mismatches (e.g., incorrect field type) or capacity issues (e.g., exceeding the maximum allowable dimensions for a vector).

74
MCQeasy

Which Azure AI Search field property indicates whether the contents of a field can be returned in search query result documents?

A.searchable
B.facetable
C.retrievable
D.filterable
AnswerC

The retrievable property specifies whether field contents can be returned in query responses.

Why this answer

The retrievable property in Azure AI Search field definitions determines whether field values appear in search response documents.

75
MCQmedium

You are implementing a multi-modal AI application that searches across both text descriptions and product images stored in Azure AI Search. Which feature allows you to query both modalities within a unified search index?

A.Single-dimension global vector index restriction
B.Mandatory unification of text and image vectors into a single 1536-dimensional field
C.External fusion proxy service
D.Multiple vector fields with distinct dimensions and vectorizers in a single index
AnswerD

An index can contain multiple vector fields, enabling multi-modal search across text and image embeddings.

Why this answer

Azure AI Search supports multiple vector fields within a single index schema, allowing different fields to use different vector dimensions and embedding models (e.g., text embeddings and image embeddings).

Page 1 of 2 · 139 questions totalNext →

Ready to test yourself?

Try a timed practice session using only Data Management Services And Vector Search questions.