Microsoft AI-901 (Microsoft Azure AI Fundamentals) Practice Test 40

Question 390

A release test for a media processing service asks the system to show readers that a campaign picture is AI-created. What implementation is the best fit?

  1. Validate image output types and store generated assets securely
  2. Specify subject, composition, and style in the image prompt
  3. Label generated images where provenance matters
  4. Iterate prompts using reviewed visual outputs

Explanation

Correct Answer

C:

The requested outcome is to show readers that a campaign picture is AI-created; this action is the focused implementation: clear identification of synthetic imagery helps viewers understand its origin; provenance and disclosure complement content review and are not substitutes for factual verification; it provides the underlying capability rather than a neighboring workflow step.

Incorrect Answers

A:

Its role is to restrict access to private synthetic media artifacts, while the present test is about the ability to show readers that a campaign picture is AI-created; the underlying operation is that image APIs may return a supported URL, encoded output, or another asset reference; clients must decode or retrieve artifacts appropriately and protect private generated content; the two needs must not be conflated.

B:

This alternative addresses a separate task to control whether an image should have a photorealistic or illustrative appearance, not the explicit requirement to show readers that a campaign picture is AI-created; its mechanism is that A well-scoped prompt gives visual constraints that guide generation toward a desired result; it cannot guarantee pixel-perfect compliance but improves controllability; the requested outcome demands a different operation.

D:

This choice addresses a separate goal to fix repeated unwanted background elements through a revised description, which is different from the requested outcome to show readers that a campaign picture is AI-created; the relevant technical behavior is prompt iteration compares generated images against goals and refines constraints based on observed shortcomings; it does not change the model's training weights; this is not the focused implementation here.

Question 391

In Python data preparation, code executes ids = [row["id"] for row in records]. Which result should the developer expect?

  1. Flag a field when its confidence is below a chosen threshold
  2. Build a list of ID values from the record dictionaries
  3. Remove surrounding whitespace from a text value
  4. Parse a JSON-formatted string into Python objects

Explanation

Correct Answer

B:

The expression ids = [row["id"] for row in records] has precisely this role: the list comprehension iterates over records and extracts each id key into a new list while preserving the input order.

Incorrect Answers

A:

That description applies to a different expression, if confidence < 0.8: needs_review = True: this conditional assigns a review flag only when the measured confidence is below the example cutoff; it does not improve the underlying extraction; it does not describe the operation of ids = [row["id"] for row in records].

C:

That description applies to a different expression, cleaned = message.strip(): the str.strip method trims leading and trailing whitespace, without translating the message or removing characters from its interior; it does not describe the operation of ids = [row["id"] for row in records].

D:

That description applies to a different expression, parsed = json.loads(response_body): json.loads converts serialized JSON text into a dictionary, list, or scalar object, and raises an error when the input is not valid JSON; it does not describe the operation of ids = [row["id"] for row in records].

Question 392

For an image-review application, the proposal “Validate privacy and consent before analyzing uploaded pictures” addresses the ability to define retention for customer-uploaded photographs. Which different action is needed when the requirement is to combine a textual question with an attached visual input?

  1. Validate privacy and consent before analyzing uploaded pictures
  2. Select a model that accepts both textual instructions and image input
  3. Use multiple images only with a model and API that support them
  4. Send image content in the request's supported multimodal structure

Explanation

Correct Answer

D:

For the requirement to combine a textual question with an attached visual input, this action has the relevant behavior: image-capable APIs distinguish text input from image attachments or image URL parts; correct request formatting is required for the model to process pixels; by contrast, Validate privacy and consent before analyzing uploaded pictures addresses the separate goal to define retention for customer-uploaded photographs.

Incorrect Answers

A:

The previously considered capability is useful to define retention for customer-uploaded photographs, whereas the present acceptance test is to combine a textual question with an attached visual input; its mechanism is that images can reveal faces, documents, location clues, and other personal data; the application should apply access controls and limit data retention regardless of model capability; it does not itself deliver the new requirement.

B:

This alternative addresses a separate task to avoid sending pictures to a text-only deployment, not the explicit requirement to combine a textual question with an attached visual input; its mechanism is that A deployed multimodal vision-language model can interpret image content alongside a user question; not every language-model deployment has image input enabled; the requested outcome demands a different operation.

C:

If the target were to compare a component photograph before and after repair, this would be useful; however the acceptance test is to combine a textual question with an attached visual input; its technical role is that some multimodal configurations permit several image inputs in one request; availability and size limits must be checked; comparative reasoning requires all relevant images to reach the model; it does not resolve the stated gap.

Question 393

A contact-center application passed its test to label spoken inquiries using approved support classes through the approach “Use classification for a fixed audio case taxonomy”. It failed a different test to label who spoke during a multi-person recorded exchange. Which change resolves the failed test?

  1. Use speaker attribution when analyzing multi-person calls
  2. Use audio content analysis to obtain transcripts and structured insights
  3. Extract sensitive information carefully from audio-derived text
  4. Use classification for a fixed audio case taxonomy

Explanation

Correct Answer

A:

The second test calls for a capability that can label who spoke during a multi-person recorded exchange. speaker-related transcript structure can distinguish dialogue turns where supported by the chosen analysis configuration; it need not identify a speaker's real-world identity; this is the missing implementation, rather than another adjustment to Use classification for a fixed audio case taxonomy.

Incorrect Answers

B:

This choice addresses a separate goal to process spoken survey answers into analysis fields, which is different from the requested outcome to label who spoke during a multi-person recorded exchange; the relevant technical behavior is audio analyzers can recognize speech and derive configured fields from recordings; they support downstream analytics where the source is spoken rather than written; this is not the focused implementation here.

C:

Its role is to avoid exposing private transcript passages in application logs, while the present test is about the ability to label who spoke during a multi-person recorded exchange; the underlying operation is that recordings and transcripts may contain names, account numbers, and private details; downstream systems should minimize exposure and apply authorization and retention controls; the two needs must not be conflated.

D:

The previously considered capability is useful to label spoken inquiries using approved support classes, whereas the present acceptance test is to label who spoke during a multi-person recorded exchange; its mechanism is that audio-derived content can be mapped to predefined classes such as billing, technical, or cancellation requests; classification provides standardized workflow labels rather than free-form recaps; it does not itself deliver the new requirement.

Question 394

In an internal knowledge search service, the team has already implemented the action “Reindex or refresh embeddings when reference content changes” to prevent answers from citing an obsolete document after deletion. A separate test now requires the system to support keyword-specific queries and semantically phrased help requests. Which additional action addresses this new requirement?

  1. Reindex or refresh embeddings when reference content changes
  2. Use hybrid retrieval when both terms and meaning matter
  3. Include verifiable source references in grounded answers
  4. Rerank candidate passages for better relevance before generation

Explanation

Correct Answer

B:

The earlier implementation covers a different outcome; to support keyword-specific queries and semantically phrased help requests, use this approach because hybrid search combines lexical signals with vector similarity to handle exact identifiers and semantic paraphrases; it often helps when documents contain product codes alongside explanatory prose; it adds the requested behavior without confusing it with the existing feature.

Incorrect Answers

A:

The previously considered capability is useful to prevent answers from citing an obsolete document after deletion, whereas the present acceptance test is to support keyword-specific queries and semantically phrased help requests; its mechanism is that retrieval freshness depends on ingesting additions, updates, and deletions into the index; A model cannot retrieve a new policy if its search store still contains only the old version; it does not itself deliver the new requirement.

C:

This choice addresses a separate goal to spot a fabricated citation not present among retrieved passages, which is different from the requested outcome to support keyword-specific queries and semantically phrased help requests; the relevant technical behavior is citations should identify retrieved evidence and support specific claims, not simply display plausible-looking URLs; application logic can validate that references correspond to available documents; this is not the focused implementation here.

D:

Its role is to adjust candidate ordering after vector search returns a broad match set, while the present test is about the ability to support keyword-specific queries and semantically phrased help requests; the underlying operation is that reranking scores initially retrieved results with a more discriminating relevance model or method; it improves ordering but does not certify that the source is correct; the two needs must not be conflated.

Question 395

A pilot of a factory operations assistant successfully uses “Use a read-only API tool for inspecting live records” to supply current record fields for a customer request without allowing edits. The next milestone requires it to update the agent's factual context without retraining its language model. Which step would meet the milestone?

  1. Record tool invocations for accountable agent operations
  2. Define tool arguments with a validated schema
  3. Use a retrieval tool for factual data not in model context
  4. Handle failed tool calls with a bounded recovery path
  5. Use a read-only API tool for inspecting live records

Explanation

Correct Answer

C:

The second test calls for a capability that can update the agent's factual context without retraining its language model. retrieval tools can fetch authoritative current content during an agent run; this helps answer questions without granting unrelated write permissions; this is the missing implementation, rather than another adjustment to Use a read-only API tool for inspecting live records.

Incorrect Answers

A:

Its role is to review the result of an agent's access-change request, while the present test is about the ability to update the agent's factual context without retraining its language model; the underlying operation is that audit evidence should include the authorized actor, attempted operation, outcome, and relevant identifiers within privacy limits; tool logs support investigations beyond the natural-language summary; the two needs must not be conflated.

B:

This alternative addresses a separate task to make expected tool inputs explicit to a model and a backend, not the explicit requirement to update the agent's factual context without retraining its language model; its mechanism is that tool schemas describe legal fields and types, helping applications validate calls before executing backend work; they provide structure rather than conferring authorization on their own; the requested outcome demands a different operation.

D:

This choice addresses a separate goal to explain a failed external lookup instead of fabricating its result, which is different from the requested outcome to update the agent's factual context without retraining its language model; the relevant technical behavior is tool errors such as timeouts or invalid parameters should be surfaced and retried only when safe; non-idempotent actions require care to avoid duplicate side effects; this is not the focused implementation here.

E:

The previously considered capability is useful to supply current record fields for a customer request without allowing edits, whereas the present acceptance test is to update the agent's factual context without retraining its language model; its mechanism is that A read-only tool can retrieve account or ticket state without making changes; separating it from mutating tools reduces risk when the task needs observation only; it does not itself deliver the new requirement.

Question 396

A technician support portal passed its test to mask identity numbers from an analysis prompt sent to an external component through the approach “Detect and redact personally identifiable information before sharing text”. It failed a different test to keep a retrieved search snippet from overriding tool permissions. Which change resolves the failed test?

  1. Apply least-privilege role-based access to AI resources
  2. Treat retrieved documents as untrusted instructions and constrain tool use
  3. Detect and redact personally identifiable information before sharing text
  4. Apply content safety checks to harmful generated or user-supplied material

Explanation

Correct Answer

B:

The second test calls for a capability that can keep a retrieved search snippet from overriding tool permissions. prompt-injection defenses separate retrieved content from higher-priority app instructions and restrict possible actions; external text should be treated as data, not authority to exfiltrate secrets or override safeguards; this is the missing implementation, rather than another adjustment to Detect and redact personally identifiable information before sharing text.

Incorrect Answers

A:

This alternative addresses a separate task to separate project readers from people who can administer sensitive connections, not the explicit requirement to keep a retrieved search snippet from overriding tool permissions; its mechanism is that authorization should restrict who can read, configure, or invoke relevant resources according to job duties; A valid sign-in does not automatically grant every operation; the requested outcome demands a different operation.

C:

The previously considered capability is useful to mask identity numbers from an analysis prompt sent to an external component, whereas the present acceptance test is to keep a retrieved search snippet from overriding tool permissions; its mechanism is that PII detection locates identifiers such as account numbers and contact details so they can be removed or masked; redaction limits unnecessary exposure in logs, prompts, and downstream systems; it does not itself deliver the new requirement.

D:

Its role is to route repeated abusive input to a safety review workflow, while the present test is about the ability to keep a retrieved search snippet from overriding tool permissions; the underlying operation is that Content moderation screens relevant risk categories and can block, flag, or route material for review; it addresses content harm rather than data access or network authentication; the two needs must not be conflated.

Question 397

In an employee knowledge assistant, the team has already implemented the action “Evaluate with a representative benchmark before selecting a model” to choose between models using actual domain examples rather than popularity. A separate test now requires the system to choose a candidate for complicated comparison over long requirements. Which additional action addresses this new requirement?

  1. Use a smaller suitable model when latency and cost dominate
  2. Evaluate with a representative benchmark before selecting a model
  3. Select a reasoning-capable model for multi-step inference tasks
  4. Use retrieval-augmented generation for changing private knowledge

Explanation

Correct Answer

C:

The earlier implementation covers a different outcome; to choose a candidate for complicated comparison over long requirements, use this approach because some models are optimized for complex reasoning and can perform better on multi-step problems at a cost or latency trade-off; selection must still be verified against a task benchmark; it adds the requested behavior without confusing it with the existing feature.

Incorrect Answers

A:

Its role is to choose a low-latency generator for concise standard responses, while the present test is about the ability to choose a candidate for complicated comparison over long requirements; the underlying operation is that less resource-intensive models can be more economical and responsive for straightforward tasks, provided evaluation confirms quality; larger models are not automatically the best operational choice; the two needs must not be conflated.

B:

The previously considered capability is useful to choose between models using actual domain examples rather than popularity, whereas the present acceptance test is to choose a candidate for complicated comparison over long requirements; its mechanism is that model choice should be based on task quality, latency, cost, language support, and safety needs using relevant test cases; leaderboard rank alone cannot establish suitability for the application; it does not itself deliver the new requirement.

D:

This choice addresses a separate goal to cite evolving product manuals without retraining for each revision, which is different from the requested outcome to choose a candidate for complicated comparison over long requirements; the relevant technical behavior is RAG retrieves relevant material at query time and supplies it to a model as grounding context; it is useful when facts change frequently or cannot be assumed to be in training data; this is not the focused implementation here.

Question 398

A pilot of a visual accessibility assistant successfully uses “Review generated imagery for safety and rights concerns” to screen a generated advertisement before public display. The next milestone requires it to avoid presenting fabricated scenes as actual documentary evidence. Which step would meet the milestone?

  1. Review generated imagery for safety and rights concerns
  2. Specify subject, composition, and style in the image prompt
  3. Label generated images where provenance matters
  4. Request a supported aspect ratio or output size when available

Explanation

Correct Answer

C:

The second test calls for a capability that can avoid presenting fabricated scenes as actual documentary evidence. clear identification of synthetic imagery helps viewers understand its origin; provenance and disclosure complement content review and are not substitutes for factual verification; this is the missing implementation, rather than another adjustment to Review generated imagery for safety and rights concerns.

Incorrect Answers

A:

The previously considered capability is useful to screen a generated advertisement before public display, whereas the present acceptance test is to avoid presenting fabricated scenes as actual documentary evidence; its mechanism is that generative images may include problematic or misleading content, so output review should consider intended use, consent, and applicable rights; A successful model response is not automatic publication approval; it does not itself deliver the new requirement.

B:

Its role is to specify lighting and viewpoint for a product concept, while the present test is about the ability to avoid presenting fabricated scenes as actual documentary evidence; the underlying operation is that A well-scoped prompt gives visual constraints that guide generation toward a desired result; it cannot guarantee pixel-perfect compliance but improves controllability; the two needs must not be conflated.

D:

If the target were to generate a wide banner rather than a square icon, this would be useful; however the acceptance test is to avoid presenting fabricated scenes as actual documentary evidence; its technical role is that image-generation models offer specific supported dimensions or aspect ratios; the client must use documented values rather than assuming arbitrary output sizes; it does not resolve the stated gap.

Question 399

For a media processing service, the proposal “Use image text extraction for readable words in photographs” addresses the ability to turn photographed printed words into usable data. Which different action is needed when the requirement is to produce a human-readable description of the main scene in archived photographs?

  1. Use image descriptions for contextual scene understanding
  2. Use image-aware search preparation for visual knowledge bases
  3. Use an image analyzer for photo-based information extraction
  4. Use image text extraction for readable words in photographs

Explanation

Correct Answer

A:

For the requirement to produce a human-readable description of the main scene in archived photographs, this action has the relevant behavior: A visual description expresses what an image portrays and can support search or case classification; it need not be a character-accurate transcription of depicted text; by contrast, Use image text extraction for readable words in photographs addresses the separate goal to turn photographed printed words into usable data.

Incorrect Answers

B:

Its role is to prepare visual evidence for a multimodal knowledge search, while the present test is about the ability to produce a human-readable description of the main scene in archived photographs; the underlying operation is that search-oriented image analysis generates descriptions or other searchable representations for image retrieval workflows; it differs from writing a direct customer-facing caption only; the two needs must not be conflated.

C:

This alternative addresses a separate task to capture structured visual information for downstream case handling, not the explicit requirement to produce a human-readable description of the main scene in archived photographs; its mechanism is that image analyzers handle visual content rather than only text documents and can produce descriptions or configured insights; model selection must align with the expected visual information; the requested outcome demands a different operation.

D:

The previously considered capability is useful to turn photographed printed words into usable data, whereas the present acceptance test is to produce a human-readable description of the main scene in archived photographs; its mechanism is that OCR or an appropriate image content extractor detects text visible inside a picture; it is distinct from summarizing what the picture depicts; it does not itself deliver the new requirement.

Question 400

The team operating a factory operations assistant recommends the approach “Measure groundedness of generated factual answers” to flag fabricated details in model-generated summaries. The acceptance criterion, however, is to check response policy under abusive user inputs. Which approach should be selected instead?

  1. Collect user feedback and expert labels for quality improvement
  2. Measure latency and failure rates for deployed inference
  3. Measure groundedness of generated factual answers
  4. Run safety evaluations for harmful or injected prompts

Explanation

Correct Answer

D:

For the requirement to check response policy under abusive user inputs, this action has the relevant behavior: safety tests probe misuse, prompt injection, and policy-violating outputs under defined risk scenarios; passing ordinary functional tests does not establish resilience to adversarial use; by contrast, Measure groundedness of generated factual answers addresses the separate goal to flag fabricated details in model-generated summaries.

Incorrect Answers

A:

Its role is to discover usability gaps in an assistant after launch, while the present test is about the ability to check response policy under abusive user inputs; the underlying operation is that human feedback provides evidence about usefulness, correctness, and harmful behavior, especially where automated metrics are limited; samples should be reviewed against explicit criteria; the two needs must not be conflated.

B:

This alternative addresses a separate task to distinguish performance degradation from content-quality problems, not the explicit requirement to check response policy under abusive user inputs; its mechanism is that telemetry such as response duration and unsuccessful requests evaluates operational health; it does not by itself measure whether the answer is correct; the requested outcome demands a different operation.

C:

The previously considered capability is useful to flag fabricated details in model-generated summaries, whereas the present acceptance test is to check response policy under abusive user inputs; its mechanism is that groundedness evaluation examines whether claims are supported by the provided evidence; A coherent answer can still add invented facts; it does not itself deliver the new requirement.

Microsoft Azure AI Fundamentals (AI-901) Practice Tests