Developing AI Cloud Solutions on Azure AI-200 Practice Test 35
Question 340
A Service Bus subscriber should ignore expired AI tasks rather than retry them indefinitely after an outage. A team instead suggests: "Keep every inference task active forever regardless of business deadline." Which risk would the review team identify in the shortcut?
- Message TTL bounds stale work and can route expired messages to the DLQ when configured
- Producer-side fanout increases coupling and duplication risk
- Stale jobs can consume capacity after results are no longer useful
- An application restart loses all buffered jobs
Explanation
Correct Answer
C:Stale jobs can consume capacity after results are no longer useful. The proposal Keep every inference task active forever regardless of business deadline cannot meet the requirement; Set an appropriate message time to live and monitor expired-message handling is the targeted remediation.
Incorrect Answers
A:Message TTL bounds stale work and can route expired messages to the DLQ when configured. The decisive condition here is different: stale jobs can consume capacity after results are no longer useful.
B:Producer-side fanout increases coupling and duplication risk. In this question, stale jobs can consume capacity after results are no longer useful.
D:An application restart loses all buffered jobs. The decisive condition here is different: stale jobs can consume capacity after results are no longer useful.
Question 341
A producer sends untrusted JSON to a message broker, and a worker expects a schema version before parsing. A reviewer recommends: Validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons. Which observation explains why the proposed design works?
- A lock that expires can cause another consumer to receive the message
- Broker delivery does not guarantee the application payload follows its contract
- Dead-lettering isolates repeatedly unprocessable messages for inspection and replay
- At-least-once event delivery can resend notifications
Explanation
Correct Answer
B:Broker delivery does not guarantee the application payload follows its contract. This is the behavior that makes Validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons appropriate for the given scenario.
Incorrect Answers
A:A lock that expires can cause another consumer to receive the message. In this question, broker delivery does not guarantee the application payload follows its contract.
C:Dead-lettering isolates repeatedly unprocessable messages for inspection and replay. The decisive condition here is different: broker delivery does not guarantee the application payload follows its contract.
D:At-least-once event delivery can resend notifications. In this question, broker delivery does not guarantee the application payload follows its contract.
Question 342
A producer sends untrusted JSON to a message broker, and a worker expects a schema version before parsing. A team instead suggests: "Deserialize arbitrary payloads without validation and retry every failure." What important requirement remains unmet?
- Broker delivery does not guarantee the application payload follows its contract
- Producer-side fanout increases coupling and duplication risk
- Malformed data can cause repeated crashes rather than actionable remediation
- Unfiltered delivery increases invocation cost and unwanted side effects
Explanation
Correct Answer
C:Malformed data can cause repeated crashes rather than actionable remediation. The proposal Deserialize arbitrary payloads without validation and retry every failure cannot meet the requirement; Validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons is the targeted remediation.
Incorrect Answers
A:Broker delivery does not guarantee the application payload follows its contract. This does not establish the required control: malformed data can cause repeated crashes rather than actionable remediation.
B:Producer-side fanout increases coupling and duplication risk. The decisive condition here is different: malformed data can cause repeated crashes rather than actionable remediation.
D:Unfiltered delivery increases invocation cost and unwanted side effects. This does not establish the required control: malformed data can cause repeated crashes rather than actionable remediation.
Question 343
A producer sends untrusted JSON to a message broker, and a worker expects a schema version before parsing. After the planned remediation, what observable outcome would validate the solution?
- Replaying the same job ID yields one durable output and no duplicate invoice
- A bad-schema test message is isolated with a diagnostic reason while valid data succeeds
- The handler extracts CloudEvents id, type and subject and routes the event correctly
- Each customer session's messages are processed in its expected sequence
Explanation
Correct Answer
B:A bad-schema test message is isolated with a diagnostic reason while valid data succeeds. This directly verifies that the required change, Validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons, produced the specified outcome.
Incorrect Answers
A:Replaying the same job ID yields one durable output and no duplicate invoice. The decisive condition here is different: a bad-schema test message is isolated with a diagnostic reason while valid data succeeds.
C:The handler extracts CloudEvents id, type and subject and routes the event correctly. This does not establish the required control: a bad-schema test message is isolated with a diagnostic reason while valid data succeeds.
D:Each customer session's messages are processed in its expected sequence. The decisive condition here is different: a bad-schema test message is isolated with a diagnostic reason while valid data succeeds.
Question 344
A producer sends untrusted JSON to a message broker, and a worker expects a schema version before parsing. Which design best meets the requirement?
- Deserialize arbitrary payloads without validation and retry every failure
- Configure bounded delivery attempts and investigate the Service Bus dead-letter subqueue
- Make job processing idempotent and complete messages after durable output is stored
- Validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons
Explanation
Correct Answer
D:Validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons. Broker delivery does not guarantee the application payload follows its contract. Evidence: a bad-schema test message is isolated with a diagnostic reason while valid data succeeds.
Incorrect Answers
A:Malformed data can cause repeated crashes rather than actionable remediation. In this question, validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons.
B:Configure bounded delivery attempts and investigate the Service Bus dead-letter subqueue. This does not establish the required control: validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons.
C:Make job processing idempotent and complete messages after durable output is stored. The decisive condition here is different: validate message schema and version at the consumer boundary and dead-letter incompatible payloads with reasons.
Question 345
Several microservices need to avoid leaked long-lived connection strings when accessing Service Bus. A team instead suggests: "Grant each worker Azure subscription Owner as its broker credential." Which risk would the review team identify in the shortcut?
- Broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys
- Malformed data can cause repeated crashes rather than actionable remediation
- A single unpartitioned ordering bottleneck is unnecessary for independent customers
- Management-wide Owner access vastly exceeds sending or receiving messages
Explanation
Correct Answer
D:Management-wide Owner access vastly exceeds sending or receiving messages. The proposal Grant each worker Azure subscription Owner as its broker credential cannot meet the requirement; Use managed identity with the appropriate Azure Service Bus data sender or receiver roles is the targeted remediation.
Incorrect Answers
A:Broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys. This does not establish the required control: management-wide Owner access vastly exceeds sending or receiving messages.
B:Malformed data can cause repeated crashes rather than actionable remediation. The decisive condition here is different: management-wide Owner access vastly exceeds sending or receiving messages.
C:A single unpartitioned ordering bottleneck is unnecessary for independent customers. In this question, management-wide Owner access vastly exceeds sending or receiving messages.
Question 346
Several microservices need to avoid leaked long-lived connection strings when accessing Service Bus. After the planned remediation, what observable outcome would validate the solution?
- Sender can enqueue and receiver can settle messages without stored connection strings
- Each customer session's messages are processed in its expected sequence
- A published custom event is received with correct type, subject and id
- The managed identity receives and settles a test message without a secret
Explanation
Correct Answer
A:Sender can enqueue and receiver can settle messages without stored connection strings. This directly verifies that the required change, Use managed identity with the appropriate Azure Service Bus data sender or receiver roles, produced the specified outcome.
Incorrect Answers
B:Each customer session's messages are processed in its expected sequence. In this question, sender can enqueue and receiver can settle messages without stored connection strings.
C:A published custom event is received with correct type, subject and id. This does not establish the required control: sender can enqueue and receiver can settle messages without stored connection strings.
D:The managed identity receives and settles a test message without a secret. The decisive condition here is different: sender can enqueue and receiver can settle messages without stored connection strings.
Question 347
Several microservices need to avoid leaked long-lived connection strings when accessing Service Bus. Which proposed solution would address the actual failure?
- Configure Event Grid delivery retry policy and a dead-letter destination for undeliverable events
- Grant each worker Azure subscription Owner as its broker credential
- Use Service Bus sessions with customer-derived SessionId and session-aware workers
- Use managed identity with the appropriate Azure Service Bus data sender or receiver roles
Explanation
Correct Answer
D:Use managed identity with the appropriate Azure Service Bus data sender or receiver roles. Broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys. Evidence: sender can enqueue and receiver can settle messages without stored connection strings.
Incorrect Answers
A:Configure Event Grid delivery retry policy and a dead-letter destination for undeliverable events. In this question, use managed identity with the appropriate Azure Service Bus data sender or receiver roles.
B:Management-wide Owner access vastly exceeds sending or receiving messages. This does not establish the required control: use managed identity with the appropriate Azure Service Bus data sender or receiver roles.
C:Use Service Bus sessions with customer-derived SessionId and session-aware workers. The decisive condition here is different: use managed identity with the appropriate Azure Service Bus data sender or receiver roles.
Question 348
Several microservices need to avoid leaked long-lived connection strings when accessing Service Bus. A reviewer recommends: Use managed identity with the appropriate Azure Service Bus data sender or receiver roles. Which technical property makes the recommended implementation suitable?
- Sessions group ordered messages for a related key while allowing other sessions in parallel
- Broker delivery does not guarantee the application payload follows its contract
- Broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys
- Service Bus queues retain work until a receiver processes and settles it
Explanation
Correct Answer
C:Broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys. This is the behavior that makes Use managed identity with the appropriate Azure Service Bus data sender or receiver roles appropriate for the given scenario.
Incorrect Answers
A:Sessions group ordered messages for a related key while allowing other sessions in parallel. This does not establish the required control: broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys.
B:Broker delivery does not guarantee the application payload follows its contract. The decisive condition here is different: broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys.
D:Service Bus queues retain work until a receiver processes and settles it. This does not establish the required control: broker data-plane RBAC supports scoped token authentication instead of embedded SAS keys.
Question 349
A blob upload should trigger an embedding refresh only for documents under an approved prefix. After the planned remediation, which verification result is specific to this issue?
- The handler extracts CloudEvents id, type and subject and routes the event correctly
- Duplicate event test produces one embedding update for the version
- Only the function subscribed to the matching type receives the test event
- An upload under the approved prefix triggers the handler while another prefix does not
Explanation
Correct Answer
D:An upload under the approved prefix triggers the handler while another prefix does not. This directly verifies that the required change, Create an Event Grid subscription with an event-type and subject-prefix filter, produced the specified outcome.
Incorrect Answers
A:The handler extracts CloudEvents id, type and subject and routes the event correctly. The decisive condition here is different: an upload under the approved prefix triggers the handler while another prefix does not.
B:Duplicate event test produces one embedding update for the version. In this question, an upload under the approved prefix triggers the handler while another prefix does not.
C:Only the function subscribed to the matching type receives the test event. This does not establish the required control: an upload under the approved prefix triggers the handler while another prefix does not.
Question 350
A blob upload should trigger an embedding refresh only for documents under an approved prefix. Which proposed solution would address the actual failure?
- Use Service Bus sessions with customer-derived SessionId and session-aware workers
- Publish validated custom events to an Event Grid custom topic or namespace topic as appropriate
- Send every storage event to every handler and trust the model to ignore irrelevant files
- Create an Event Grid subscription with an event-type and subject-prefix filter
Explanation
Correct Answer
D:Create an Event Grid subscription with an event-type and subject-prefix filter. Event Grid server-side filtering routes selected events before handlers run. Evidence: an upload under the approved prefix triggers the handler while another prefix does not.
Incorrect Answers
A:Use Service Bus sessions with customer-derived SessionId and session-aware workers. In this question, create an Event Grid subscription with an event-type and subject-prefix filter.
B:Publish validated custom events to an Event Grid custom topic or namespace topic as appropriate. This does not establish the required control: create an Event Grid subscription with an event-type and subject-prefix filter.
C:Unfiltered delivery increases invocation cost and unwanted side effects. The decisive condition here is different: create an Event Grid subscription with an event-type and subject-prefix filter.