Question 610
A video-advertising app moderates user text prompts but not reference images or generated outputs. A seemingly harmless prompt paired with an unsafe image produces disallowed content that reaches customers. What moderation architecture should be evaluated?
- Assume benign text guarantees every attached image and generated result will be safe.
- Use appropriate input-image and output-content moderation/policy checks as well as text-prompt controls, with tested allow/deny handling for each modality.
- Add an output-only moderation pass on the generated video but continue accepting reference images without policy screening, assuming the final filter can always catch image-borne violations before customer delivery.
- Run only a stricter text-prompt moderation model and accept the output whenever the prompt passes, leaving attached reference images and the actual generated video uninspected.
Explanation
Correct Answer
B:Apply the available image/video input screening and output review tools or application policy checks suitable for the chosen model and content type. Test harmful reference media, transformed output, borderline benign samples and failures of each moderation stage. Hold or reject release when a required check cannot be completed, protect user data in logs, and route uncertain cases appropriately. This is defense across modality and direction: screening the prompt is useful but not sufficient when pixels can contain the disallowed evidence or the generated result introduces new content.
Incorrect Answers
A:A short harmless sentence does not determine the contents of attached media or constrain every possible generated result. An unsafe reference frame can influence the output even when the text appears benign. The product has already observed that prompt-only review misses violations. Safety gates need to consider all supported input modalities and the actual produced artifact rather than infer safety from the words alone.
C:Output moderation is necessary for preventing many disallowed artifacts from reaching customers, but the scenario demonstrates that unsafe reference images can influence the generation even when the text prompt looks harmless. An output-only gate misses risk at input and may not reliably identify every transformation of prohibited visual content. The organization needs appropriate controls for prompt text, uploaded/reference images and the generated output, with tested blocking and audit decisions at each boundary.
D:Text moderation is a valuable stage and can prevent some disallowed requests from reaching a costly image or video generator. The incident demonstrates that benign wording can be paired with unsafe reference media and yield prohibited output. Even a stronger text-only model cannot inspect unseen pixels. A complete policy workflow evaluates input imagery and generated audiovisual content, with appropriate allow, deny and review outcomes per modality before customer release.
Question 611
A media archive sends two-hour recorded interviews to a low-latency live speech-recognition session designed for continuous microphone interaction. Sessions expire or disconnect before the full recording is processed. The archive only needs completed transcripts overnight. What processing mode fits?
- Use the currently supported asynchronous batch transcription workflow for stored files, with appropriate file input, result polling and retention handling.
- Increase the live recognition session's buffering capacity and client receive queue while continuing to send a two-hour stored interview through the expiring interactive session contract.
- Increase the real-time recognition session’s inactivity timeout and reconnect when it expires, while continuing to process the two-hour archived file as one live interaction.
- Restart real-time sessions indefinitely without tracking audio offsets, then merge whatever text appears.
Explanation
Correct Answer
A:For long stored recordings that do not require immediate captions, a supported Speech batch transcription API is a better fit than tying work to an interactive session. Submit authorized recordings using the documented API version, follow job completion and failure states, preserve segment and speaker metadata where supported, and collect the final transcript with approved retention controls. Verify duration and format limits for the selected endpoint. This aligns the asynchronous workload with the archive's overnight schedule and avoids treating live microphone session lifetimes as a bulk-processing guarantee.
Incorrect Answers
B:Larger receive buffers can reduce dropped packets in some live-audio networks, and tuning client queues may improve streaming stability for ordinary microphone sessions. They do not remove the service's documented session lifetime or make a long archived file appropriate for an interactive recognition path. The archive needs a stored-audio batch transcription job with durable operation tracking and result retrieval, not a wider buffer around an unsuitable session type.
C:Timeout tuning and reconnection can make a genuine live microphone session more resilient, so they may be appropriate for interactive voice features. The archive has a completed two-hour recording and no requirement for immediate partial captions. Maintaining a fragile streaming connection across a large stored file adds operational complexity and expiry risk. A supported asynchronous batch transcription job better matches overnight processing and provides a completed transcript artifact.
D:Repeated untracked reconnects can duplicate segments or omit intervals when sessions end mid-file. Merging partial text without source offsets is not a reliable transcript. The archive already allows asynchronous completion, so batch jobs with explicit status and output artifacts are preferable. If retry is necessary, track file/job identity and reconcile completion rather than concatenating arbitrary session fragments.
Question 612
Two versions of a document analyzer produce different Markdown summaries of the same scanned lease. A review UI normalizes headings for easier comparison, but that transformation can change whitespace and table order. Auditors need to understand whether the difference came from extraction or display formatting. What should the review tool retain?
- Only the prettified text, deleting raw analyzer responses and page references.
- Keep screenshots of both rendered Markdown versions and the UI formatter version, but delete the raw analyzer JSON and source page spans after taking the screenshots.
- Both immutable raw analyzer outputs with page/span evidence and the separately versioned normalized Markdown used for visual comparison.
- Store only the normalized Markdown rendering and a similarity score between analyzer versions, deleting raw output bytes and page/span evidence once the UI comparison succeeds.
Explanation
Correct Answer
C:Store each analyzer's raw structured result with source document ID, page or region evidence, API/analyzer version and checksum. Separately retain the normalized Markdown and the exact normalization rules used for comparison, so differences can be traced to extraction versus display transformation. Run field-level and provenance-aware comparisons before relying on a visually similar rendered page. This preserves a reproducible chain of evidence while still allowing reviewers to inspect concise Markdown. Normalization is an aid to comparison, not the authoritative source.
Incorrect Answers
A:Prettified Markdown may improve readability but can hide whether a missing clause was caused by OCR, table segmentation or the normalization logic. Deleting the original analyzer response destroys the ability to diagnose that difference. The question specifically asks for attribution across extraction and presentation layers. Preserve the raw source records before any lossy transformation, even when the UI shows normalized text by default.
B:Screenshots are useful visual evidence of what auditors saw, and recording the formatting version helps reproduce some presentation behavior. They are not sufficient to tell whether a changed table order arose from the analyzer's extraction or from Markdown rendering and normalization. Without the immutable raw outputs and associated source spans, the original extraction cannot be reconstructed or compared independently of the UI. The review tool should preserve both raw evidence and versioned normalized text, using screenshots only as supplemental presentation records.
D:Normalized Markdown is useful for side-by-side review because it can reduce superficial formatting differences. A similarity score can help focus attention on changed sections. Neither artifact preserves the complete original evidence or lets an auditor determine whether normalization itself altered a number, heading or table boundary. Keep immutable raw analyzer results and provenance separately from the versioned normalization output so differences remain explainable and source claims can be reopened.
Question 613
A manufacturing coordinator delegates maintenance lookup to an inspection agent and equipment shutdown to a separate operations agent. Both use the same privileged technical identity, and an inspection-only worker can currently invoke shutdown through shared credentials. What delegation control is needed?
- Create per-agent or per-role execution identities with tool-specific permissions, and enforce allowed delegated actions at the target API.
- Keep one shared technical identity but limit each agent’s visible tool list in prompts, leaving the underlying shutdown API accessible with the same privileged credential.
- Separate inspection and shutdown tools into different descriptions but keep their shared managed identity authorized to call both underlying APIs.
- Route shutdown requests from the inspection agent through the operations agent's endpoint but keep the same unrestricted service principal for both workers, relying on delegation naming alone.
Explanation
Correct Answer
A:Separate the identities and credentials used by inspection reads from those used for shutdown actions, granting each agent only the operations its role permits. The coordinator should pass verified task context and enforce delegation rules, but the backend must independently reject a shutdown attempt from an inspection-only identity. Protect agent-to-agent tool calls with authorization and audit the acting principal. This controls lateral privilege escalation between specialists, not just the order of a workflow. Explicit delegated identity is essential when one agent may request an action that another is uniquely authorized to perform.
Incorrect Answers
B:Prompt-level tool visibility can reduce accidental selection and is a useful part of agent role design. It is not a security boundary if inspection workers can still reach a privileged shutdown endpoint through the shared identity. The scenario already shows an inspection-only worker can affect equipment. Separate execution roles or credentials and enforce action-specific authorization at the target API so a missing prompt restriction cannot perform an unauthorized shutdown.
C:Tool descriptions help agents choose functions and can reduce accidental misuse, so defining separate visible tools is an operational improvement. The inspection worker still has the same privileged credential at the API boundary and could invoke shutdown if misconfigured, compromised or prompted by lower-trust data. The scenario requires enforceable delegation controls. Assign scoped identities or equivalent per-role authorization and reject actions not allowed for the actual calling agent.
D:Separate routing can make the architecture easier to observe and record which specialist was supposed to own a consequential action. It does not create least privilege when both workers share a credential with shutdown rights and no API-side policy distinguishes their authority. A routed request might still execute under the inspection agent's broad identity. Use execution principals and tool-specific scopes enforced at the target API, with approvals where required, not just a handoff label.
Question 614
A managed-identity Foundry app receives HTTP 403 when invoking an AI service. The identity successfully obtains an unexpired token for the correct service audience, and network tests pass. The service's role assignments show no data-plane invocation role for that principal. What is the correct next action?
- Change the token audience to Azure Resource Manager despite the current data-plane audience being valid.
- Refresh the existing Entra token and retry immediately with the same principal and unchanged role assignments, assuming a renewed token grants the missing invocation data action.
- Grant or correct the least-required data-plane service role for the actual principal and verify authorization after propagation.
- Move the service behind a private endpoint and verify name resolution, expecting network isolation to supply the missing data-plane invoker permission to the existing identity.
Explanation
Correct Answer
C:Identify the exact managed identity principal making the request and the target resource or project scope, then assign only the documented role required for inference. Confirm there is no deny assignment or mismatched scope, allow for normal role propagation, refresh credentials where appropriate, and test both permitted and prohibited operations. Preserve private networking and identity authentication as separate protections. This addresses the precise authorization gap: token acquisition succeeded, but the service did not grant the caller the needed data-plane action.
Incorrect Answers
A:The scenario already confirms that the token was issued for the intended data-plane service. Switching its audience to a management resource would introduce an authentication mismatch rather than grant the missing invocation permission. A token can be valid but not authorized for the requested operation. The effective role assignment is the relevant evidence after authentication and connectivity succeed.
B:Token renewal is a reasonable response to an expired or incorrectly scoped access token, and it can resolve transient credential failures. The question states the token is valid for the right audience and the role assignment is absent. A new token cannot independently create permissions that the principal was never granted. Apply the least-required data-plane role at the correct service scope and verify authorization after any propagation delay.
D:Private endpoints can reduce the network exposure of an Azure service and provide a valuable layer of defense for regulated applications. The request already reaches the service and the token is valid for the correct audience; the explicit 403 points to an absent data-plane role assignment. Moving networking components does not grant that permission. Fix the exact principal's least-required service role, verify propagation and preserve private networking as a separate control.
Question 615
An autonomous operations assistant reads a runbook and proposes a CLI command that would delete an entire container registry. The user only asked it to free disk space, and the action is not reversible through the tool. What execution gate is appropriate?
- Execute the runbook's registry deletion command after a model-generated dry-run summary, but without checking the actual resource scope or obtaining explicit approval for destructive changes.
- Display a preview of the specific resources and consequences, require explicit authorized human confirmation, and execute only through a restricted tool if approved.
- Allow the assistant to execute a deletion after its own high-confidence resource inventory agrees with a dry-run result, without obtaining separate human approval for the exact irreversible target.
- Ask the user to confirm a generic clean-up recommendation and a count of resources, but permit the agent to choose the precise container registry and deletion flags after approval.
Explanation
Correct Answer
B:Show an explicit proposed action with resource names, expected impact, recovery limitations and safer alternatives such as deleting unreferenced images. Require an authenticated person with the correct authority to approve that exact payload before enabling a narrowly scoped execution tool. Validate targets again at execution time and record the actual outcome; use a dry run where the backend supports it. This creates a true human oversight boundary for destructive CLI operations, rather than accepting model-generated commands as authorization.
Incorrect Answers
A:A dry-run summary can help an operator understand a proposed cleanup action and may be useful when a tool supports non-destructive planning. It does not make a command safe when its target is an entire container registry and the user only requested disk-space relief. Require impact analysis, a scoped permitted operation and verified human approval before enabling irreversible deletion. Runbook text alone is not authorization.
C:Matching an internal inventory with a dry-run can reduce accidental target mistakes, but this does not meet the required authorization boundary. The user only requested free disk space, not deletion of the whole registry, and the command is irreversible through the available tool. Before such a destructive action, display exact resource IDs, flags and consequences to an authorized human and require explicit consent for that specific operation.
D:Approval of an abstract cleanup proposal is not informed approval of the exact irreversible side effect. The assistant could select the wrong registry or include unexpected destructive flags after the user agreed to remove some stale resources. The preview needs concrete identifiers, consequences and authorization scope, and the execution payload must match what was approved. Otherwise the model retains unilateral control over the high-risk operation.
Question 616
A journalism assistant must summarize a historical article that objectively reports a violent event. A broad keyword filter blocks any answer containing terms describing that event, including neutral safety warnings and factual reporting. The publisher needs accurate summaries without generating instructions for violence. What policy design should it evaluate?
- Allow neutral historical reporting only from a fixed list of preapproved news domains, but decide safety exclusively from the publishing domain rather than the requested content and generated answer.
- Add a blanket educational-use exception whenever the requester selects 'journalism,' without checking whether the requested output remains factual reporting or becomes harmful instructions.
- Use context-sensitive safety evaluation that distinguishes factual summary from disallowed facilitation, with labeled tests for both and appropriate human review.
- Run a classifier on the original article to confirm it is about a historical event, then exempt every generated follow-up about that article from further safety assessment.
Explanation
Correct Answer
C:Build representative test cases for neutral reporting, historical analysis, victim support and disallowed procedural assistance. Configure supported safety controls and application instructions to permit accurate factual summaries with source attribution while blocking requests that would provide harmful facilitation. Review borderline outcomes and monitor false refusals and unsafe escapes separately. This treats the article as information to summarize without automatically converting the presence of violent terms into proof that the user's purpose is harmful. Do not invent facts to avoid difficult content.
Incorrect Answers
A:A source-domain allowlist is a useful provenance or trust control for a journalism application, but it is not a content-safety assessment. A reputable historical article can quote detailed attack instructions, and a secondary source can provide legitimate neutral history. The content and user intent still require contextual review, including whether the generated response merely describes events or helps commit violence. Automatically accepting any content from approved domains can allow the exact unsafe facilitation the publisher prohibits, while rejecting valid reporting from other sources.
B:Context-sensitive policy is important and should allow legitimate historical reporting, so a journalism classification can inform review. It is not sufficient by itself to exempt every request from safety controls, because the label can be misused to solicit prohibited operational harm. Evaluate the content, purpose and requested specificity against an appropriate policy, preserving allowed descriptive discussion while still blocking disallowed instructions.
D:Classifying the source as historical can support contextual analysis and prevent a broad keyword filter from blocking legitimate reporting. It does not prove that every subsequent user request or generated answer is safe. A follow-up could ask the assistant to translate the source into actionable instructions rather than summarize it neutrally. A production policy must evaluate the actual requested transformation and output, not award permanent immunity based only on an article-level label. This design introduces a bypass after a superficially reasonable initial classification.
Question 617
A billing agent's tool trace records an HTTP 500 from a payment processor, but the agent final response says the invoice was paid. The payment system has no transaction receipt for the request. What acceptance check must be enforced?
- Treat any attempted payment API call as successful if the agent's final sentence is affirmative.
- Validate the processor's actual success status and transaction receipt before allowing a paid/completed response; surface failure or uncertainty otherwise.
- Accept HTTP transport completion as a successful payment when the payment tool has no transaction receipt, and construct a local completion reference for audit consistency.
- Record the payment tool's HTTP 500 as a transient issue but tell the customer the invoice is paid after the agent retries the model response without checking the processor's transaction status.
Explanation
Correct Answer
B:Bind the agent's payment completion state to a successful processor outcome and the corresponding transaction identifier or verified status lookup. For a 500, inspect whether the operation failed or remains uncertain, reconcile by idempotency key or processor query before retrying, and explain the current state honestly. Keep the failed trace linked to the user request. This is a tool-outcome verification gate for a concrete server error with no receipt, rather than accepting a well-formed model answer as an authoritative payment event.
Incorrect Answers
A:An attempted tool call is not evidence that a financial side effect occurred. The processor returned a server error and no receipt exists, so the agent's generated statement is contradicted by authoritative execution data. Treating model affirmation as proof could lead customers to stop making payments or cause duplicate submissions later. Completion must depend on backend evidence, not conversational confidence.
C:An HTTP 500 is a server error and does not prove that the requested financial action committed. Generating a local reference may make logs look complete while leaving payment status unknown. The orchestrator should reconcile with the processor through its supported transaction status or idempotency mechanism, and prevent paid assertions until authoritative success is verified. Transport handling and external financial completion are separate facts.
D:Classifying a 500 as potentially transient is reasonable; a later retry may eventually succeed. The tool trace shows no successful transaction and the payment provider has not returned an authoritative payment ID. Rephrasing the model's response cannot settle the financial operation. Reconcile using provider status and safe transaction identifiers, then report paid only when the actual payment outcome is confirmed.
Question 618
A retailer uses image generation for advertising and needs its trademark's letters reproduced exactly. Test images often replace one letter or distort the registered mark even though the rest of the artwork looks good. Which production approach is defensible?
- Assume a high-quality generative image always produces exact brand typography if the prompt contains the trademark once.
- Generate the scene with a compatible model, then compose approved vector/logo assets or verify all rendered text with deterministic postprocessing before release.
- Use a text-to-image model with lower sampling randomness and a more detailed trademark prompt, then publish without comparing the rendered letters to the approved vector logo.
- Use a stronger prompt instruction specifying the exact trademark spelling, then publish generated banners without checking the output lettering or comparing it with the approved logo asset.
Explanation
Correct Answer
B:Use the generative model for suitable background or composition work, but apply the official brand mark as an approved graphic layer when exact reproduction is required, or use a validated output-check pipeline that compares lettering and logo geometry against the approved asset. Inspect final dimensions, placement, contrast and policy compliance before publication. Verify whether the selected model offers any useful text-fidelity controls but do not equate them with guaranteed exact brand rendering. This separates creative generation from deterministic trademark enforcement and provides a verifiable release gate.
Incorrect Answers
A:Image generators can produce convincing scenes while making small but important lettering errors. A prompt containing the exact text does not necessarily force pixel-perfect typography in every model/version. Trademark identity is a deterministic acceptance criterion, not a subjective impression of visual quality. Relying entirely on one generated rendering could result in misleading or legally sensitive brand variants.
C:Prompt specificity and sampling adjustments can improve general visual consistency, so they are plausible image-generation tuning techniques. They do not ensure pixel-accurate typography or registered trademark reproduction: the model may still omit or distort individual letters. The retailer requires exact brand assets. Generate the surrounding scene and deterministically overlay approved vector marks, or verify all final text against the official asset before releasing the image.
D:More precise prompt wording may reduce some lettering errors, but it does not guarantee pixel-exact typography or registered trademark integrity. The case already reports substitutions and distortion even though the rest of the image is attractive. Brand compliance should use approved vector/logo composition or deterministic post-generation text verification before customer exposure. Treating a detailed prompt as proof of exact lettering leaves the observed production defect unresolved.
Question 619
A compliance extractor reads two files that both mention customer ID 4821, but one is from tenant East and the other from tenant West. Its summarizer merges their medical and billing details into one person profile because the numeric ID matches. What must entity resolution enforce?
- Treat a matching customer number as a unique merge key after validating its numeric format, but omit the source tenant or any authoritative cross-tenant identity linkage.
- Group the extracted records by identical numeric customer ID first, then have a language model flag conflicting medical details after both tenants' passages have already been merged into one profile.
- Join records only through verified tenant-scoped identity keys or authoritative cross-record links, retaining provenance and refusing unsupported cross-document merging.
- Normalize customer ID 4821 into a common string key and attach the tenant name only as display metadata, allowing both tenants’ matching numeric IDs to merge during resolution.
Explanation
Correct Answer
C:Use composite identifiers such as tenant ID plus source-system subject ID, and require an authoritative mapping or verified shared key before merging information across files. Preserve document and field provenance, record confidence and authorization, and explicitly keep records separate when the relationship is unverified. Test reused numbers and similar names across tenants. The model may summarize a confirmed group of records but must not infer cross-document identity from numeric coincidence, particularly for sensitive medical or financial fields.
Incorrect Answers
A:A well-formed integer can still be assigned independently by different tenants. The East and West files both contain 4821, yet the scenario offers no evidence that they describe the same person. Numeric parsing or schema validity cannot create an identity relationship. The extractor needs tenant-scoped keys or a verified linking record and must retain provenance rather than combining sensitive medical and billing information based on coincidental ID equality.
B:Post-merge anomaly detection can reveal contradictions and may be useful in data-quality workflows. But the unsupported identity join occurs before that review: East and West tenants may independently assign customer ID 4821 to unrelated people. Once the records are combined, confidential details can be exposed in the wrong tenant's generated profile or logs even if an LLM later notices differences. Entity resolution must enforce tenant-scoped identity and authoritative cross-record links before joining information, preserving source provenance and refusing uncertain merges.
D:Consistent identifier formatting is useful for joining documents within a trusted namespace. In this example, the numeric identifier is only unique within each tenant, so normalizing the digits without including tenant context creates a false global identity. Showing the tenant label afterward cannot undo a merged medical and billing profile. Use composite tenant-scoped keys or verified authoritative cross-record links, with provenance checks before any facts are combined.
Question 620
A multimedia retrieval pipeline chunks training videos and product PDFs. During transformation it drops the source title, revision number and publication timestamp, so returned passages cannot be tied to the current approved material. What indexing rule is needed?
- Preserve parent-source ID, title, effective version, timestamp and relevant segment/page location as metadata on every derived searchable record.
- Preserve a source ID only in the original upload log and keep searchable child chunks as vectors plus text with no document-version or segment reference fields.
- Populate each derived passage’s publication timestamp from the pipeline ingestion time and discard the original source revision and effective date, so all chunks appear to be freshly approved.
- Replace every source title with the assistant's latest conversational summary.
Explanation
Correct Answer
A:Carry immutable source identity and approved revision attributes through OCR, media segmentation, chunking and index projection. Each passage or clip should retain the parent document or video ID, title, publication or effective timestamp, and page or time range so results can be cited, filtered by current version and reprocessed when sources change. Test the propagation on mixed media and updated revisions. A vector alone represents content similarity; it does not reliably reconstruct the document's authority or location after transformations.
Incorrect Answers
B:An upload log can establish that source media entered the pipeline and may help operators investigate failures. It is not sufficient for a retrieval result to cite a specific passage after chunking and later source revisions. Child records need their own link to the parent, effective version, publication timestamp and segment or page location. Otherwise a relevant chunk can be returned without a verifiable current source, undermining the stated approved-material requirement.
C:Ingestion time is a useful operational field, but it is not the same as the publication date or effective version of the underlying safety manual. Old documents can be reindexed today without becoming current approved policy. If transformed chunks carry only a shared upload timestamp, retrieval and citations cannot distinguish historical from superseding versions. Preserve original parent identifiers, version metadata, source timestamps, and segment locations along with any ingestion audit fields.
D:A chat summary is generated text and may omit or incorrectly paraphrase the original title and revision number. It is not an authoritative identifier for a source document. Replacing metadata with such a summary would make citations fragile and make it hard to reproduce indexing. Keep verified source fields and use summaries only as additional searchable content where appropriate.
Developing AI Apps and Agents on Azure (AI-103) Practice Tests