Developing AI Cloud Solutions on Azure AI-200 Practice Test 22
Question 210
A PostgreSQL search service begins throwing permission errors when a read-only identity queries new embedding tables. A reviewer recommends: Grant the application role only required schema usage and table SELECT privileges. Which technical property makes the recommended implementation suitable?
- PostgreSQL authorization is schema- and object-scoped, separate from network access
- HNSW trades some recall for lower latency using a graph-based index
- Increasing IVFFlat probes examines more lists and can improve recall at a performance cost
- Schema and projection choices influence I/O and response size
Explanation
Correct Answer
A:PostgreSQL authorization is schema- and object-scoped, separate from network access. This is the behavior that makes Grant the application role only required schema usage and table SELECT privileges appropriate for the given scenario.
Incorrect Answers
B:HNSW trades some recall for lower latency using a graph-based index. The decisive condition here is different: postgreSQL authorization is schema- and object-scoped, separate from network access.
C:Increasing IVFFlat probes examines more lists and can improve recall at a performance cost. In this question, postgreSQL authorization is schema- and object-scoped, separate from network access.
D:Schema and projection choices influence I/O and response size. This does not establish the required control: postgreSQL authorization is schema- and object-scoped, separate from network access.
Question 211
A PostgreSQL search service begins throwing permission errors when a read-only identity queries new embedding tables. A team instead suggests: "Grant the application role superuser to resolve query failures." What is the decisive flaw in that proposal?
- Too many concurrent backend processes can harm memory and throughput
- Superuser bypasses least privilege for a read-only API
- PostgreSQL authorization is schema- and object-scoped, separate from network access
- A stale shared connection can cause repeated failures after a network reset
Explanation
Correct Answer
B:Superuser bypasses least privilege for a read-only API. The proposal Grant the application role superuser to resolve query failures cannot meet the requirement; Grant the application role only required schema usage and table SELECT privileges is the targeted remediation.
Incorrect Answers
A:Too many concurrent backend processes can harm memory and throughput. The decisive condition here is different: superuser bypasses least privilege for a read-only API.
C:PostgreSQL authorization is schema- and object-scoped, separate from network access. This does not establish the required control: superuser bypasses least privilege for a read-only API.
D:A stale shared connection can cause repeated failures after a network reset. The decisive condition here is different: superuser bypasses least privilege for a read-only API.
Question 212
A PostgreSQL search service begins throwing permission errors when a read-only identity queries new embedding tables. After the planned remediation, what would constitute useful acceptance evidence?
- Invalid dimensions are rejected and valid vectors can use the selected operator
- Connection metrics show a bounded active pool and stable memory under load
- The app queries approved tables but is denied UPDATE and unauthorized schemas
- The query accepts quote-containing input safely and reuses healthy pooled connections
Explanation
Correct Answer
C:The app queries approved tables but is denied UPDATE and unauthorized schemas. This directly verifies that the required change, Grant the application role only required schema usage and table SELECT privileges, produced the specified outcome.
Incorrect Answers
A:Invalid dimensions are rejected and valid vectors can use the selected operator. In this question, the app queries approved tables but is denied UPDATE and unauthorized schemas.
B:Connection metrics show a bounded active pool and stable memory under load. This does not establish the required control: the app queries approved tables but is denied UPDATE and unauthorized schemas.
D:The query accepts quote-containing input safely and reuses healthy pooled connections. In this question, the app queries approved tables but is denied UPDATE and unauthorized schemas.
Question 213
A vector-backed document table stores UUIDs as text and embeddings as unbounded arrays, causing inconsistent indexing. A reviewer recommends: Use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions. Which technical property makes the recommended implementation suitable?
- Typed columns enforce valid values and support correct pgvector operator/index configuration
- The connection pool can be the bottleneck even when database CPU is not fully used
- Increasing IVFFlat probes examines more lists and can improve recall at a performance cost
- Database uniqueness constraints enforce identity atomically across concurrent sessions
Explanation
Correct Answer
A:Typed columns enforce valid values and support correct pgvector operator/index configuration. This is the behavior that makes Use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions appropriate for the given scenario.
Incorrect Answers
B:The connection pool can be the bottleneck even when database CPU is not fully used. The decisive condition here is different: typed columns enforce valid values and support correct pgvector operator/index configuration.
C:Increasing IVFFlat probes examines more lists and can improve recall at a performance cost. In this question, typed columns enforce valid values and support correct pgvector operator/index configuration.
D:Database uniqueness constraints enforce identity atomically across concurrent sessions. This does not establish the required control: typed columns enforce valid values and support correct pgvector operator/index configuration.
Question 214
A vector-backed document table stores UUIDs as text and embeddings as unbounded arrays, causing inconsistent indexing. A team instead suggests: "Store embeddings as arbitrary JSON strings and compare with ordinary text sorting." Why would that proposed shortcut fail?
- Typed columns enforce valid values and support correct pgvector operator/index configuration
- Lexicographic string ordering is not vector similarity
- A text index cannot satisfy vector dimensionality requirements
- A normal btree is not a pgvector approximate-distance index
Explanation
Correct Answer
B:Lexicographic string ordering is not vector similarity. The proposal Store embeddings as arbitrary JSON strings and compare with ordinary text sorting cannot meet the requirement; Use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions is the targeted remediation.
Incorrect Answers
A:Typed columns enforce valid values and support correct pgvector operator/index configuration. The decisive condition here is different: lexicographic string ordering is not vector similarity.
C:A text index cannot satisfy vector dimensionality requirements. This does not establish the required control: lexicographic string ordering is not vector similarity.
D:A normal btree is not a pgvector approximate-distance index. The decisive condition here is different: lexicographic string ordering is not vector similarity.
Question 215
A vector-backed document table stores UUIDs as text and embeddings as unbounded arrays, causing inconsistent indexing. After the planned remediation, which test result would demonstrate the requirement is satisfied?
- Invalid dimensions are rejected and valid vectors can use the selected operator
- Pool wait metrics remain controlled and backend connections stay below limits
- The adjusted build completes within memory limits and meets measured recall/latency
- Explain and query traces show smaller row widths and lower I/O for the projection
Explanation
Correct Answer
A:Invalid dimensions are rejected and valid vectors can use the selected operator. This directly verifies that the required change, Use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions, produced the specified outcome.
Incorrect Answers
B:Pool wait metrics remain controlled and backend connections stay below limits. This does not establish the required control: invalid dimensions are rejected and valid vectors can use the selected operator.
C:The adjusted build completes within memory limits and meets measured recall/latency. The decisive condition here is different: invalid dimensions are rejected and valid vectors can use the selected operator.
D:Explain and query traces show smaller row widths and lower I/O for the projection. In this question, invalid dimensions are rejected and valid vectors can use the selected operator.
Question 216
A vector-backed document table stores UUIDs as text and embeddings as unbounded arrays, causing inconsistent indexing. Which proposed solution would address the actual failure?
- Use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions
- Add indexed tenant and timestamp columns alongside an appropriately typed vector column
- Store embeddings as arbitrary JSON strings and compare with ordinary text sorting
- Measure pool wait time and tune pool sizing, query latency and bounded parallelism
Explanation
Correct Answer
A:Use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions. Typed columns enforce valid values and support correct pgvector operator/index configuration. Evidence: invalid dimensions are rejected and valid vectors can use the selected operator.
Incorrect Answers
B:Add indexed tenant and timestamp columns alongside an appropriately typed vector column. The decisive condition here is different: use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions.
C:Lexicographic string ordering is not vector similarity. In this question, use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions.
D:Measure pool wait time and tune pool sizing, query latency and bounded parallelism. This does not establish the required control: use appropriate PostgreSQL uuid, timestamp and vector(n) data types with defined dimensions.
Question 217
A RAG system needs to filter documents by tenant and update time before ranking embedding similarity. After the planned remediation, which test result would demonstrate the requirement is satisfied?
- The query filters by tenant and date before returning authorized nearest neighbors
- Pool wait metrics remain controlled and backend connections stay below limits
- Load test meets latency goals with CPU headroom after right-sizing
- The query accepts quote-containing input safely and reuses healthy pooled connections
Explanation
Correct Answer
A:The query filters by tenant and date before returning authorized nearest neighbors. This directly verifies that the required change, Add indexed tenant and timestamp columns alongside an appropriately typed vector column, produced the specified outcome.
Incorrect Answers
B:Pool wait metrics remain controlled and backend connections stay below limits. In this question, the query filters by tenant and date before returning authorized nearest neighbors.
C:Load test meets latency goals with CPU headroom after right-sizing. This does not establish the required control: the query filters by tenant and date before returning authorized nearest neighbors.
D:The query accepts quote-containing input safely and reuses healthy pooled connections. The decisive condition here is different: the query filters by tenant and date before returning authorized nearest neighbors.
Question 218
A RAG system needs to filter documents by tenant and update time before ranking embedding similarity. A reviewer recommends: Add indexed tenant and timestamp columns alongside an appropriately typed vector column. What is the key mechanism behind this approach?
- Structured filter fields support selective metadata constraints in vector queries
- Pooling amortizes connection setup and prevents uncontrolled backend growth
- Vector search consumes compute and memory that must be sized against real load
- RAG retrieval must enforce document visibility in SQL rather than trusting similarity ranking
Explanation
Correct Answer
A:Structured filter fields support selective metadata constraints in vector queries. This is the behavior that makes Add indexed tenant and timestamp columns alongside an appropriately typed vector column appropriate for the given scenario.
Incorrect Answers
B:Pooling amortizes connection setup and prevents uncontrolled backend growth. This does not establish the required control: structured filter fields support selective metadata constraints in vector queries.
C:Vector search consumes compute and memory that must be sized against real load. The decisive condition here is different: structured filter fields support selective metadata constraints in vector queries.
D:RAG retrieval must enforce document visibility in SQL rather than trusting similarity ranking. In this question, structured filter fields support selective metadata constraints in vector queries.
Question 219
A RAG system needs to filter documents by tenant and update time before ranking embedding similarity. A team instead suggests: "Merge tenant and timestamp into an opaque free-text notes field." What is the decisive flaw in that proposal?
- Fetching unrelated large payloads adds avoidable transfer and memory use
- Structured filter fields support selective metadata constraints in vector queries
- Unstructured metadata prevents reliable indexed predicates
- Longer client waits do not resolve server-side out-of-memory conditions
Explanation
Correct Answer
C:Unstructured metadata prevents reliable indexed predicates. The proposal Merge tenant and timestamp into an opaque free-text notes field cannot meet the requirement; Add indexed tenant and timestamp columns alongside an appropriately typed vector column is the targeted remediation.
Incorrect Answers
A:Fetching unrelated large payloads adds avoidable transfer and memory use. This does not establish the required control: unstructured metadata prevents reliable indexed predicates.
B:Structured filter fields support selective metadata constraints in vector queries. The decisive condition here is different: unstructured metadata prevents reliable indexed predicates.
D:Longer client waits do not resolve server-side out-of-memory conditions. This does not establish the required control: unstructured metadata prevents reliable indexed predicates.
Question 220
A RAG system needs to filter documents by tenant and update time before ranking embedding similarity. What should the development team implement?
- Add indexed tenant and timestamp columns alongside an appropriately typed vector column
- Define a primary key or unique constraint on the document identifier
- Tune HNSW build settings and index-maintenance resources after comparing index alternatives
- Merge tenant and timestamp into an opaque free-text notes field
Explanation
Correct Answer
A:Add indexed tenant and timestamp columns alongside an appropriately typed vector column. Structured filter fields support selective metadata constraints in vector queries. Evidence: the query filters by tenant and date before returning authorized nearest neighbors.
Incorrect Answers
B:Define a primary key or unique constraint on the document identifier. In this question, add indexed tenant and timestamp columns alongside an appropriately typed vector column.
C:Tune HNSW build settings and index-maintenance resources after comparing index alternatives. This does not establish the required control: add indexed tenant and timestamp columns alongside an appropriately typed vector column.
D:Unstructured metadata prevents reliable indexed predicates. The decisive condition here is different: add indexed tenant and timestamp columns alongside an appropriately typed vector column.