Question 160
An ECR repository needs continuing vulnerability reassessment as new advisories appear. Which integration is relevant?
- An immutable image tag alone
- A public repository policy
- An ECR lifecycle rule expiring older image tags
- Amazon Inspector enhanced scanning
Explanation
Correct Answer
D:Enhanced scanning integrates ECR image assessment with Inspector and supported ongoing evaluation, helping identify newly relevant package vulnerabilities in retained images.
Incorrect Answers
A:Tag immutability prevents retagging but does not analyze packages against newly published vulnerability intelligence.
B:Public access broadens image retrieval and supplies no vulnerability analysis or update-driven assessment capability.
C:Expiration controls image retention and does not reassess retained package content when new vulnerability intelligence is published.
Question 161
A pipeline should fail when a container image contains unacceptable known vulnerabilities. Which design implements that gate?
- Accept every image with a recent tag
- Deploy first and delete findings afterward
- Evaluate image scan findings against an approved release policy
- Rely only on the registry name
Explanation
Correct Answer
C:The gate should use severity, exploit context, and documented exceptions to decide whether the exact image may proceed to deployment.
Incorrect Answers
A:A current-looking tag does not establish the age or security state of packages inside the image.
B:Hiding findings does not remove vulnerable packages and places the unapproved image into production before risk is assessed.
D:Repository identity does not prove the image contents meet the organization's vulnerability acceptance criteria.
Question 162
A Lambda function needs only one table's read operations. What should its execution role provide?
- Account-wide administrator permissions
- Only a resource policy allowing users to invoke the function
- Only a function URL authorization setting
- The required read actions scoped to that table
Explanation
Correct Answer
D:The function's AWS API authority comes from its execution role, so narrow actions and resources reduce impact if its code is compromised.
Incorrect Answers
A:Broad administration exceeds the read-only data requirement and gives compromised function code unnecessary control over unrelated resources.
B:Invocation authorization controls who may call Lambda, not what downstream table operations the executing code may perform.
C:Invocation authorization controls callers entering the function, rather than the function's own permission to read a DynamoDB table.
Question 163
A developer confuses permission to invoke Lambda with permission for Lambda to access a secret. Which distinction is correct?
- An allowed caller automatically grants the function all caller permissions
- Caller invocation rights and function execution rights are separate
- The function name determines secret access
- A public function URL grants secret reads automatically
Explanation
Correct Answer
B:The resource or caller policy governs invocation, while the execution role authorizes the code's downstream secret retrieval and other AWS operations.
Incorrect Answers
A:Invocation does not transfer the caller's entire IAM authorization set to the function's execution identity.
C:Names identify resources but do not establish the execution role's allow statements or the secret's applicable access controls.
D:Public invocation exposure does not itself authorize the function execution identity to access Secrets Manager.
Question 164
An EKS application needs an AWS identity distinct from its node. Which supported design fits?
- Grant the kubelet account root access
- Store the node's administrator keys in a ConfigMap
- Assign workload credentials through EKS Pod Identity or IRSA
- Rename the Kubernetes namespace only
Explanation
Correct Answer
C:A workload-specific identity binds the application to scoped IAM permissions, rather than making node-wide privileges the default authority for every pod.
Incorrect Answers
A:Expanding node authority does not provide distinct application permissions and increases the impact of node credential exposure.
B:A ConfigMap is not a secure identity delegation mechanism, and copying broad permanent credentials defeats workload isolation.
D:Namespace organization does not by itself provision an AWS role or the trust relationship needed for scoped AWS API credentials.
Question 165
A pod's Kubernetes RBAC allows reading Secrets objects. Does that alone grant access to AWS Secrets Manager?
- Yes; a Kubernetes Secret name automatically becomes an AWS secret ARN grant
- Only if the pod has more CPU
- No; AWS API access requires its own IAM authorization
- Yes; all Kubernetes permissions propagate into IAM
Explanation
Correct Answer
C:Kubernetes RBAC controls Kubernetes resources. An AWS service request is evaluated against the workload's AWS identity and applicable service permissions.
Incorrect Answers
A:Naming resources similarly across systems does not translate Kubernetes API permissions into AWS service authorization for the pod.
B:Compute allocation is unrelated to the AWS authentication and authorization required for retrieving a Secrets Manager value.
D:The two authorization systems govern different APIs and do not automatically translate object-read permission into AWS secret retrieval.
Question 166
A user-supplied prompt tries to make an AI agent call a destructive tool. What is the primary authorization safeguard?
- Enforce tool permissions and server-side action authorization
- Hide the tool name from the user
- Trust the model's promise to follow instructions
- Give the agent administrator access
Explanation
Correct Answer
A:Model output is untrusted input to tool execution. Deterministic checks must constrain which actions the authenticated user and agent are actually allowed to perform.
Incorrect Answers
B:Obscurity does not prevent the model from selecting a tool or replace authorization checks at the execution boundary.
C:Natural-language instructions are not a security boundary and can be influenced by adversarial prompt or retrieved content.
D:Unrestricted permissions maximize the harm of a successful manipulation and do not enforce the user's actual authorized action scope.
Question 167
A multi-tenant RAG agent reads documents and invokes business tools. Which THREE controls form meaningful security boundaries? Choose THREE.
- Authorize each tool action at the backend
- Use only a prompt telling the model to obey policy
- Authorize document retrieval against the authenticated tenant
- Grant administrator access to improve response quality
- Limit the agent workload role to necessary AWS actions
- Let retrieved documents define their own access rights
Explanation
Correct Answers
A:A generated instruction is not proof that the user may perform the requested operation; deterministic checks constrain the actual execution.
C:The retrieval backend must avoid placing another tenant's protected content into the model context merely because a prompt asks for it.
E:Infrastructure permissions bound the damage possible if the application or model-directed workflow is manipulated into unintended service calls.
Incorrect Answers
B:Natural-language instructions can help behavior but do not establish the backend data and action authorization boundaries required here.
D:Additional privilege does not improve authorization correctness and expands the impact of a successful prompt or application exploit.
F:External content may be attacker-controlled and cannot safely decide which tenant may read data or execute protected actions.
Question 168
A Bedrock application wants to help filter prompt injection and harmful content. Which capability complements backend authorization?
- A larger maximum output length
- Granting the model direct root credentials
- Disabling authentication to simplify prompts
- Amazon Bedrock Guardrails with appropriate supported filters
Explanation
Correct Answer
D:Guardrails can assess configured input and output risks, but they do not replace IAM, tenant isolation, or authorization on downstream tools.
Incorrect Answers
A:Allowing more generated tokens does not detect prompt attacks and may increase the amount of sensitive content exposed by a failure.
B:Root authority is unrelated to filtering and would amplify the consequences of an injected instruction reaching a tool.
C:Removing identity verification weakens the application boundary and supplies no content filter or prompt-attack protection.
Question 169
Retrieved web content tells an agent to ignore its developer instructions. What threat is illustrated?
- A KMS key rotation failure
- A legitimate authorization grant
- A TCP retransmission attack only
- Indirect prompt injection
Explanation
Correct Answer
D:The adversarial instruction arrives through external content rather than the authorized user's direct request, attempting to redirect the model's behavior.
Incorrect Answers
A:Cryptographic key lifecycle behavior does not describe instructions embedded in retrieved text that attempt to influence the agent.
B:Untrusted document text cannot grant a user or model permission to perform actions outside the backend's established policy.
C:Transport retransmission is not the mechanism by which the text attempts to override the application's intended decision process.
Question 170
An agent is permitted to fetch external URLs. A malicious document asks it to send a confidential summary in a URL query to an attacker-controlled domain. Which additional control directly addresses that exfiltration path?
- Log the completed URL and permit every request
- Increase the model context window
- Grant the agent a broader IAM role
- Constrain outbound destinations and permitted data transfers
Explanation
Correct Answer
D:Authorization to call a fetch tool does not imply permission to transmit any data to any host. Destination allowlists and payload checks constrain the actual egress operation.
Incorrect Answers
A:After-the-fact logging cannot prevent the disclosure and may create another sensitive copy of the confidential query string.
B:More input capacity does not enforce where a tool sends information or prevent confidential content from entering an outbound URL.
C:Additional privilege expands possible harm and does not restrict the external destination receiving the confidential query data.