Question 260

A red-team exercise finds that a tool can export unrestricted records despite good prompt resistance. What is the priority fix?

  1. Suppress the tool trace from logs
  2. Only add another refusal example
  3. Restrict the executor's data scope and export capability
  4. Use a more expensive model as the sole repair

Explanation

Correct Answer

C:

The exploit crosses an authorization boundary. Prompt tuning may help but cannot replace the missing backend restriction.

Incorrect Answers

A:

Concealing evidence does not prevent unauthorized export.

B:

The unrestricted capability remains available if instructions are bypassed.

D:

Model choice does not establish least-privilege access controls.

Question 261

A workload can read encrypted source objects but receives a KMS access error. What permission relationship should be checked?

  1. Both object access and authorization to use the relevant KMS key
  2. A public bucket policy as the automatic solution
  3. Only the S3 identity permission, without inspecting the relevant KMS key authorization
  4. Grant only encryption permission and assume it includes decryption
  5. Only whether the bucket name is correct

Explanation

Correct Answer

A:

Encrypted reads can require separate storage and key permissions. Grant only the necessary key operations to the intended principal.

Incorrect Answers

B:

Making data public is unnecessary and may not resolve key authorization.

C:

Object access and cryptographic use are separate layers. An allowed object read can still fail when the caller cannot decrypt with the key.

D:

Key operations are distinct. Reading encrypted source data needs the appropriate decrypt authorization, not merely permission to encrypt new data.

E:

Correct addressing does not supply missing key access.

Question 262

A service role has an identity policy allowing InvokeModel on an approved FM. Its permissions boundary does not allow that invocation, and no resource-policy exception applies. What explains the denial?

  1. The model's system prompt must explicitly grant AWS permission
  2. An identity Allow automatically overrides the boundary whenever the model is approved
  3. Changing only the role session's display name grants the missing action
  4. The role's effective permission is constrained by the boundary as well as the identity policy

Explanation

Correct Answer

D:

An identity Allow must remain within applicable boundary permissions. Repeating the identity Allow does not expand that maximum-permission constraint.

Incorrect Answers

A:

Model instructions are not evaluated as IAM authorization. Access is determined before the model processes the request.

B:

Organizational approval and IAM evaluation are separate. The boundary still constrains the role's identity-based permissions.

C:

A session name aids identification but does not add permissions excluded by the boundary.

Question 263

A VPC endpoint policy restricts model access. Does it replace the caller's IAM permissions?

  1. Yes; an endpoint policy Allow supplies every identity permission omitted from the role
  2. Yes; DNS resolution proves resource permission
  3. Yes; private connectivity grants all model operations
  4. No; access must satisfy the applicable identity and resource-policy controls

Explanation

Correct Answer

D:

Endpoint policies add a boundary on traffic using that endpoint. They do not inherently grant every missing identity permission.

Incorrect Answers

A:

An endpoint policy limits use through that path; it does not generally replace the caller's required identity authorization. Applicable controls must permit the operation together.

B:

Name resolution only locates an endpoint.

C:

Network reachability is not blanket authorization.

Question 264

A team needs to discover sensitive data in supported S3 objects before approving them for a knowledge corpus. Which service is a suitable candidate?

  1. An output-only PII filter used without scanning the stored source corpus
  2. A vector relevance threshold used as the sensitive-data classification rule
  3. Amazon Macie with appropriate discovery scope and review workflow
  4. Only a bucket access-log analysis that never inspects object content

Explanation

Correct Answer

C:

Discovery can identify sensitive data in S3. Findings still need ingestion policy decisions and do not automatically sanitize the corpus.

Incorrect Answers

A:

Runtime output screening can reduce disclosure but does not discover which S3 objects contain sensitive data before corpus approval.

B:

Semantic similarity to a query does not determine whether an object contains personal identifiers. Discovery needs content-sensitive classification.

D:

Access logs can reveal who read objects but do not classify the personal identifiers inside them. Sensitive-data discovery needs content analysis over the approved scope.

Question 265

An application must detect supported personal identifiers in incoming free text before model invocation. Which component should be evaluated?

  1. Encrypt the inference request but submit its unchanged personal identifiers
  2. Amazon Comprehend PII detection or an approved equivalent with task-specific testing
  3. Only S3 Lifecycle expiration
  4. Only an output filter after generation

Explanation

Correct Answer

B:

Detection can support masking before inference. Coverage and false negatives need evaluation for the actual language and identifier types.

Incorrect Answers

A:

Transport protection does not minimize the sensitive content processed by the FM. Detection and masking must occur before invocation to meet the stated goal.

C:

Retention rules do not inspect transient input text before inference.

D:

Post-generation controls do not minimize what the model receives.

Question 266

A support assistant needs to refer to customers consistently without receiving real account numbers. What design fits?

  1. Provide the mapping table to the model alongside tokens
  2. Replace identifiers with scoped tokens and resolve them only in an authorized backend
  3. Hash every field and assume no privacy risks remain
  4. Use one identical token for every customer

Explanation

Correct Answer

B:

Consistent placeholders preserve useful relationships. The mapping remains sensitive and needs access, retention, and isolation controls.

Incorrect Answers

A:

That restores the original exposure the design sought to avoid.

C:

Stable hashes can permit linkage or guessing and may destroy needed task meaning.

D:

Collapsing identity relationships can make the task inaccurate and mix records.

Question 267

A team removes names but retains unique combinations of location, job title, and birth date. What risk remains?

  1. All privacy risk is eliminated once names are absent
  2. Encryption in transit prevents later linkage
  3. Replace names with stable public hashes and assume linkage is impossible
  4. Re-identification through quasi-identifiers and linkage
  5. Lower temperature makes records anonymous

Explanation

Correct Answer

D:

Removing direct identifiers may not make data anonymous. Assess combinations and external linkability before reuse.

Incorrect Answers

A:

Indirect attributes can still identify individuals.

B:

Transport protection does not alter the identifying content received by authorized systems.

C:

Stable values can support linkage, and guessable inputs may be recovered through enumeration. Assess re-identification risk rather than relying on hashing alone.

E:

Sampling settings do not remove identifying attributes.

Question 268

Prompt logs are needed for short-term debugging but should not remain indefinitely. What control fits?

  1. Explicit retention and deletion policies across log destinations and backups
  2. Assume enabling encryption sets an expiration date
  3. Delete only the current chat from the UI
  4. Configure retention only on the primary log group and ignore exported copies

Explanation

Correct Answer

A:

Sensitive payload lifecycle extends beyond the primary application. Verify actual deletion behavior and any separate retention obligations.

Incorrect Answers

B:

Encryption and retention are separate controls.

C:

Backend logs and backups can remain after a conversation disappears.

D:

Logs copied to other stores can outlive the primary retention period. Apply the lifecycle policy to each relevant destination and retained derivative.

Question 269

An employee loses access to a department, but previously cached retrieval results still include its documents. What must the authorization design do?

  1. Keep the original cached permission result until the employee logs out
  2. Delete only the employee's visible chat history
  3. Recheck current eligibility when serving cached evidence and invalidate affected entries
  4. Invalidate only the browser's response cache while keeping shared cached evidence and old allow decisions

Explanation

Correct Answer

C:

Permissions can change after cache creation. Cache reuse must not preserve an access grant that the authoritative system has revoked.

Incorrect Answers

A:

Session lifetime is not necessarily the revocation deadline. A cached allow decision can outlive the current permission.

B:

Removing dialogue does not invalidate cached passages or their access decisions.

D:

Server-side entries can still expose formerly permitted passages. Revocation must reach the actual cache and authorization decisions used to serve content.

Question 270

Support staff need latency diagnostics but should not read raw customer prompts. What observability design fits?

  1. Put prompts in metric dimension names
  2. Remove all latency metrics
  3. Separate operational metrics from restricted payload logs with distinct access roles
  4. Give every support worker full log access

Explanation

Correct Answer

C:

Most troubleshooting can use metadata. Payload access should be limited to approved need and audited use.

Incorrect Answers

A:

This spreads sensitive data and creates unsuitable high-cardinality telemetry.

B:

Operational visibility can remain without broad payload disclosure.

D:

That exceeds the stated diagnostic need and exposes sensitive content.

AWS Certified Generative AI Developer - Professional AIP-C01 Practice Tests