Security

A role allows Amazon Bedrock inference, but an explicit deny on bedrock:InvokeModel blocks a restricted model; ConverseStream still succeeds against that model. Which additional denial closes this access path?

Show the answer

Correct answerA. Deny bedrock:InvokeModelWithResponseStream for the model.

AWhy this is right: ConverseStream requires InvokeModelWithResponseStream permission, so this deny blocks the remaining access path.

BWhy not this: InvokeModel controls nonstreaming inference; expanding its resource scope does not deny streaming inference.

CWhy not this: GetFoundationModel retrieves model information; denying it does not block streaming inference.

DWhy not this: ApplyGuardrail controls guardrail evaluation, not authorization to invoke a model through ConverseStream.

ConverseStream requires bedrock:InvokeModelWithResponseStream, so denying that action blocks streaming access to the restricted model. Expanding an InvokeModel deny does not block the separate streaming permission.