Question 210
A valid model request returns AccessDeniedException. What should be investigated first?
- Only the output token ceiling
- Only connectivity to the runtime endpoint, assuming reachability proves authorization
- Only the IAM policy's visible Allow statement, without checking other applicable policies
- The caller's effective permissions and the selected model or inference target
Explanation
Correct Answer
D:Authorization errors require inspecting identity, policies, and target eligibility. Changing generation wording does not grant access.
Incorrect Answers
A:A lower completion limit does not confer missing permissions.
B:A reachable endpoint can return AccessDenied. Network access and permission to invoke the selected model are separate prerequisites.
C:An Allow can still be constrained by an explicit denial, boundary, session policy, or organizational control. Inspect effective authorization for the actual target.
Question 211
One tenant's burst consumes the application's entire inference allocation. What gateway control fits?
- Throttle only users whose answers are long after completion
- Use only one shared unlimited queue
- Per-tenant quotas and concurrency limits alongside global admission control
- Trust tenant labels supplied in arbitrary prompt text
Explanation
Correct Answer
C:Fairness requires regulating both individual and aggregate demand. Verified tenant identity must drive accounting.
Incorrect Answers
A:Retrospective length checks do not control admission during the burst.
B:A large tenant can still dominate backlog and delay everyone else.
D:Unverified labels can be forged to evade limits.
Question 212
A Lambda function processes a standard SQS batch of ten independent inference jobs. Nine succeed, one fails, and throwing an exception causes completed jobs to run again. Which configuration and handler behavior target the unnecessary retries?
- Enable ReportBatchItemFailures and return identifiers for only the failed records
- Increase every job's inference token allowance without changing batch reporting
- Enable partial batch reporting but return no failed identifiers even when a record fails
- Return a generic function error after completing the nine successful records
Explanation
Correct Answer
A:Partial batch responses let the event source distinguish successful records from failures. The handler must implement the response contract; idempotency remains useful for other duplicate-delivery cases.
Incorrect Answers
B:Output capacity does not identify successful versus failed queue records. The batch retry behavior remains unchanged.
C:This can acknowledge unsuccessful work as if it completed. The configuration and accurate per-record failure reporting must operate together.
D:A failed batch can cause successful records to become visible again. The generic error does not identify the one failed record.
Question 213
A client logs complete inference errors, including embedded sensitive request fields. What logging change fits?
- Publish full error payloads so users can debug
- Base64-encode the payload and call it redacted
- Disable all error reporting permanently
- Use structured sanitized error records with restricted access to any necessary payload detail
Explanation
Correct Answer
D:Operational evidence should retain diagnostic value without indiscriminate disclosure. Redact before broad log distribution.
Incorrect Answers
A:Public logs can expose personal or confidential inputs.
B:Reversible encoding does not remove sensitive information.
C:That avoids one exposure path but removes essential operational visibility.
Question 214
A model that supports documents is called through Converse. The client supplies a DocumentBlock in a user message but no text block, and request validation fails. Which request change addresses the documented message requirement?
- Move the DocumentBlock into an assistant-role message without adding text
- Increase maxTokens while leaving the message unchanged
- Include a text block in the same message describing the document task
- Rename the document to contain the complete user request and omit the text block
Explanation
Correct Answer
C:A document-bearing message also needs accompanying text under this contract. The textual request establishes what to do with the document; it does not replace the document bytes.
Incorrect Answers
A:Document input belongs in the supported user-message structure. Changing the role does not satisfy the missing accompanying-text requirement.
B:The payload fails validation before generation. Output allowance does not repair its required content structure.
D:A document name is metadata and can introduce prompt-injection risk. It is not a substitute for the required text content block.
Question 215
Answers repeatedly stop immediately before a required section whose heading matches a configured stop sequence. What should be examined?
- Only the vector-store shard count
- Only the client's display truncation length
- The stop-sequence configuration and its unintended match with expected output
- Add the same heading to more stop sequences
Explanation
Correct Answer
C:Termination settings can cut otherwise valid generation. Adjust them and retest complete output structure.
Incorrect Answers
A:Index capacity does not explain a generation stop at a configured string.
B:Client truncation can hide text, but a model termination exactly at a configured stop sequence points to generation settings. Inspect the service stop reason and full response.
D:That reinforces the termination condition causing the missing section.
Question 216
A geographic cross-Region inference profile lists three destination Regions. The role has the relevant inference permissions, but an SCP blocks Bedrock inference in one listed destination. All three are approved for this workload. What should the team assess?
- Enable private DNS at the source endpoint as the only change
- Add another identity-policy Allow while preserving the applicable explicit SCP denial
- Assume the service always ignores the blocked destination and uses either permitted Region
- The applicable SCP restrictions and required permissions for every destination in the selected profile
Explanation
Correct Answer
D:A profile can fail when a listed destination is blocked, even if another destination is permitted. Policy changes should be scoped and approved rather than bypassing governance with broader credentials.
Incorrect Answers
A:Private connectivity can affect routing to the service endpoint. It does not remove destination-Region authorization restrictions.
B:An identity Allow cannot override an applicable organizational denial. Resolve the policy conflict through the organization's approved process.
C:A permitted alternative does not automatically make the profile callable under a policy that blocks one of its required destinations.
Question 217
The SDK retries four times and application code wraps it in five more attempts. Why is this risky?
- Nested retry policies can multiply calls, latency, and load beyond the intended budget
- More retries always reduce cost
- Retries make invalid requests eventually correct
- The policies necessarily collapse into one automatic attempt
Explanation
Correct Answer
A:Retry ownership should be coordinated. Count effective attempts and enforce one shared deadline.
Incorrect Answers
B:Additional attempts consume resources and can duplicate work after uncertain outcomes.
C:A schema error remains invalid without changing its input.
D:Independent layers can each retry unless configured otherwise.
Question 218
A tool's HTTP response is 200 but its body reports the requested account is locked. How should the application interpret it?
- Mark the operation completed solely from HTTP 200
- Separate transport success from the business outcome and surface the lock condition
- Retry as a different user without authorization
- Ask the generator to remove the error from the final message
Explanation
Correct Answer
B:Successful delivery does not imply the operation succeeded. Parse the defined business status before continuing.
Incorrect Answers
A:This ignores the explicit failure in the response contract.
C:An account lock is not permission to bypass identity controls.
D:Suppressing the condition does not change the authoritative outcome.
Question 219
A gateway estimates token counts from character length but underestimates multilingual inputs. What improvement fits?
- Assume one character always equals one token
- Use an appropriate supported token-counting method and allow conservative budget margins
- Use the tokenizer from an unrelated model as an exact count guarantee
- Count only ASCII characters
- Use one average character-to-token ratio as a hard guarantee across every supported language
Explanation
Correct Answer
B:Tokenization varies with model and text. Character ratios are only rough estimates and can fail across languages.
Incorrect Answers
A:Token boundaries do not follow a universal one-to-one character mapping.
C:Tokenization can differ across models. A convenient count from another representation may underestimate the actual target input.
D:This ignores substantial input content and worsens multilingual undercounting.
E:Averages can undercount particular scripts or input types. Use a target-appropriate counting approach and conservative admission margins.
Question 220
A Bedrock flow is edited frequently, but production must use an approved configuration. Which pattern fits?
- Invoke a controlled alias associated with the approved flow version
- Change the flow's description and assume behavior is frozen
- Invoke the test alias that follows the editable draft while recording only the flow name
- Invoke any editable draft without tracking revisions
Explanation
Correct Answer
A:Versions and aliases separate editing from stable consumption. Promotion should follow evaluation and approval.
Incorrect Answers
B:Descriptive metadata does not provide immutable execution configuration.
C:A draft-following reference can change outside promotion. A stable production alias should resolve to the approved immutable version.
D:Draft changes can alter production behavior before review.