Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 24
Question 230
A global retailer routes Bedrock inference through several regions, but the German subsidiary requires specified customer fields to stay in approved locations. What should routing logic do?
- Validate allowed inference regions and profile destinations against the data classification before each protected request.
- Choose any region with the fastest response and assume cross-region processing is always acceptable.
- Encrypt the payload in transit and ignore actual processing location.
- Remove the location tag from the request so the service makes a random selection.
Explanation
Correct Answer
A:Map each data class and business unit to permitted processing regions, including any destinations selected by an inference profile. Reject or transform requests that would violate the boundary, and audit effective routing. Test fallback behavior under regional outages so automatic failover cannot silently move restricted records to an unapproved location. Force a regional failover in testing and verify the request cannot leave its permitted set.
Incorrect Answers
B:Latency is a valid objective only within the approved legal and contractual region set. A fast forbidden route remains noncompliant. Filter destinations before optimizing performance. An inference profile may select a destination region the application did not explicitly name.
C:TLS mitigates interception but does not change where a service processes inputs or keeps telemetry. Geographic restrictions apply independently from transport encryption. An inference profile may select a destination region the application did not explicitly name.
D:Suppressing metadata does not remove legal obligations or alter physical processing. Region selection must be explicit and verifiable for protected requests. An inference profile may select a destination region the application did not explicitly name.
Question 231
A release team wants to compare a new retrieval architecture with the previous version. The evaluation summary has no dataset identifier, model version or rubric revision. What must be added?
- A higher average score from an undisclosed query set.
- An assurance that the evaluator remembers every test from previous sessions.
- Only a screenshot of the passing percentage with no question-level lineage.
- Versioned evaluation dataset and rubric identifiers, model/prompt versions, run configuration and reproducible result hashes.
Explanation
Correct Answer
D:Identify the frozen test cases, relevance annotations, evaluation procedure, model parameters, prompt versions and source corpus. Record run date, random seed if applicable, immutable artifact IDs and failure dispositions. This lets an independent engineer reproduce the same comparison and explains whether observed gains came from model, retrieval or scoring changes. Reproduce the old model score from its preserved prompt, corpus and rubric identifiers.
Incorrect Answers
A:Changing or hiding the query set between releases can artificially improve a score. Fix the evaluation population and disclose exclusions before claiming a comparison. An immutable evaluation dataset and rubric distinguish measured improvement from changing the test.
B:Model memory is not an auditable test repository, and separate invocations may have no shared state. Persist evidence outside the model in controlled versioned artifacts. An immutable evaluation dataset and rubric distinguish measured improvement from changing the test.
C:Without the tested case set and rules, the percent cannot be reproduced or interpreted. A screenshot is a presentation artifact, not a reliable release receipt. An immutable evaluation dataset and rubric distinguish measured improvement from changing the test.
Question 232
A RAG connector currently logs into the company CMS using a shared administrator password just to read published product articles. How should the connector be secured?
- Give each ingestion run a new human administrator account with broad rights.
- Use a dedicated read-scoped connector identity with only the required CMS collection permissions and managed credential lifecycle.
- Create a dedicated CMS account but grant it read/write access to all content, including unpublished drafts.
- Keep the administrator password but change it to a longer phrase in the same source repository.
Explanation
Correct Answer
B:Create a service principal or application credential supported by the CMS, restrict it to the approved published corpus, and rotate secrets or use federation where available. Monitor reads and track the connector’s identity. Verify that drafts, private content and write endpoints remain inaccessible with the actual credential. Call an unauthorized CMS write endpoint using the ingestion identity and require an access denial.
Incorrect Answers
A:Human administrator proliferation creates management overhead, standing privilege and audit confusion. One dedicated limited service identity provides a more appropriate lifecycle. A read-only connector should not be able to modify CMS drafts or administrative settings.
C:A named account improves attribution but still grants far more than a published-article ingestion connector needs. Use read-only collection scopes and credential lifecycle controls, and test denial on draft reads and any edit endpoint. Eliminate use of the shared administrator credential.
D:A stronger shared password does not reduce the connector’s excessive rights or end long-lived secret exposure in source control. Narrow authorization and secure credential storage are required. A read-only connector should not be able to modify CMS drafts or administrative settings.
Question 233
An audit asks which approved examples and transformations produced a model adaptation file. The team saved only the final adapter weights. Which evidence is missing?
- A longer generated response demonstrating that the adapter can write prose.
- The model’s friendly name and the number of colors in its dashboard.
- Versioned dataset lineage, source approvals, transformation code and experiment configuration linked to the adapter artifact.
- An estimate of model popularity from an unrelated public benchmark.
Explanation
Correct Answer
C:Retain approved source identifiers, immutable dataset versions, transformation hashes, code revision and training/evaluation settings linked to each produced adapter. Record access restrictions and approval outcomes so auditors can reconstruct the preparation workflow. The final weights alone do not reveal which records were included or whether they were authorized. Rebuild a sampled adapter run using the recorded approved dataset and code revision.
Incorrect Answers
A:Generation quality is a separate property from evidence of authorized training material. An adapter can produce fluent text without providing any lineage proof. Adapter weights do not disclose source approvals or the exact transformation pipeline that created them.
B:Display names and appearance do not establish data provenance. An auditor needs the actual source and processing chain that created the artifact. Adapter weights do not disclose source approvals or the exact transformation pipeline that created them.
D:An unrelated benchmark neither identifies the training records nor confirms their permission and transformation history. Preserve version-specific internal metadata. Adapter weights do not disclose source approvals or the exact transformation pipeline that created them.
Question 234
A team promotes a new agent prompt through CodePipeline, but customer-facing output schemas sometimes break after deployment. What release control should be added?
- Deploy every prompt immediately and use customer complaints as the only quality signal.
- Delete the previous prompt so rollback cannot occur.
- Version prompts and tool contracts, run regression and security tests, and require a monitored canary before broad promotion.
- Disable schema validation to make any response format acceptable.
Explanation
Correct Answer
C:Treat prompt templates, models, tool schemas and configuration as deployable versioned artifacts. Run representative contract and negative-path cases in CI, block promotion on critical regression, then test a restricted canary with rollback. Record exactly which version is active and compare actual validated output with the approved schema. Validate the JSON schema in CI and test a rollback after a deliberately broken template.
Incorrect Answers
A:Customer complaints arrive after damage and cannot provide controlled regression coverage. A high-impact prompt change should be tested before full exposure. Prompt changes can break schema contracts even when the foundation-model deployment itself is unchanged.
B:Destroying previous versions removes a recovery path for a known regression. Retain approved artifact versions and a tested reversal process. Prompt changes can break schema contracts even when the foundation-model deployment itself is unchanged.
D:Schema validation protects downstream applications from malformed model output. Disabling it hides a problem instead of making the output safe. Repair the template or parsing contract. Prompt changes can break schema contracts even when the foundation-model deployment itself is unchanged.
Question 235
Help articles change hourly in S3, yet the assistant still cites yesterday’s warranty terms. The content owners need current retrieval without rebuilding every index on each edit. What should ingestion do?
- Remove source timestamps so users do not see that evidence is stale.
- Keep the first index indefinitely because embedding content cannot expire.
- Rebuild the entire knowledge-base index nightly without tracking which hourly object versions changed.
- Incrementally reindex changed source versions and invalidate affected cached answers with verifiable freshness checks.
Explanation
Correct Answer
D:Use source object versions and event- or schedule-driven change detection to update affected chunks. Retire old versions, refresh citations and invalidate stale caches. Test one amended warranty paragraph end to end and monitor ingestion lag; answer generation should refuse or disclose uncertainty when the authoritative update is not yet available. Edit one warranty clause and verify the answer cites only the updated source version.
Incorrect Answers
A:Concealing timestamps reduces transparency but does not correct stale retrieval. Keep source versions visible internally and present relevant evidence dates where needed. Index freshness must be verified against the current source object version, not the generation timestamp.
B:An embedding reflects the content from which it was created and can become obsolete. A durable update process must replace or invalidate changed documents. Index freshness must be verified against the current source object version, not the generation timestamp.
C:A full nightly refresh can still leave many hours of stale warranty terms and consumes unnecessary ingestion work. Use incremental updates keyed to S3 object versions, confirm successful index publication and invalidate affected answer caches. Verify a newly amended clause is retrievable on the required freshness schedule.
Question 236
A search service scans most vector records for every query despite having a vector index. The application’s model-inference time is already low. Which optimization target is most appropriate?
- Inspect query plans, index compatibility and candidate search parameters rather than buying a larger foundation model.
- Increase the LLM parameter count so it can compensate for unnecessary database scans.
- Delete tenant filters to speed queries even when they protect private information.
- Generate longer answers to amortize the slow retrieval step.
Explanation
Correct Answer
A:Profile the retrieval query plan and check whether filtering, distance functions or schema mismatch prevent indexed approximate search. Tune supported index and candidate parameters against recall and latency benchmarks. Preserve tenant authorization and confirm gains on the most expensive query patterns. The bottleneck is search execution, not language generation. Compare query-plan changes against the same judged relevance and latency workload.
Incorrect Answers
B:A larger model can increase latency and does not alter the vector database query planner. It may increase costs without fixing the observed scan behavior. The observed database full scan points to an index or query-plan issue, not a foundation-model shortage.
C:Filtering is necessary for data isolation. Removing it may improve a metric while introducing unauthorized retrieval. Optimize supported filtered index execution instead. The observed database full scan points to an index or query-plan issue, not a foundation-model shortage.
D:Long responses further delay results and consume tokens. The correct repair is to reduce the database work required for relevant evidence retrieval. The observed database full scan points to an index or query-plan issue, not a foundation-model shortage.
Question 237
Several client applications call Bedrock through one enterprise gateway. A single tenant can exhaust the inference quota. Which gateway capability should be implemented?
- Use one unrestricted API key shared by all applications and trust their self-declared names.
- Authenticate each client and enforce tenant-scoped rate and token quotas before forwarding model requests.
- Remove invocation logs so excessive usage cannot be associated with a customer.
- Raise every tenant’s output-token ceiling without rate limits.
Explanation
Correct Answer
B:Validate the caller identity and bind it to an enforced quota bucket independent of user-supplied fields. Apply supported request/token throttling, monitor consumption and return actionable 429 responses with bounded retry guidance. Test competing tenants and preserve backend IAM scope. Gateway enforcement prevents one client from dominating scarce model capacity. Run competing-tenant bursts to verify the quota isolates usage without arbitrary cross-tenant denial.
Incorrect Answers
A:An unrestricted shared key makes tenant attribution and isolation unreliable. A malicious client could claim another tenant’s identity. Use verified authentication and server-side rate accounting. Quotas must follow a verified tenant principal and cannot rely on a user-editable tenant header.
C:Suppressed logs hide abuse and make quota tuning difficult. Keep privacy-preserving usage counters and traceable tenant attribution rather than removing visibility. Quotas must follow a verified tenant principal and cannot rely on a user-editable tenant header.
D:Larger output ceilings can worsen token contention and cost without limiting aggressive callers. Set budgets to workload need and test fairness under concurrent bursts. Quotas must follow a verified tenant principal and cannot rely on a user-editable tenant header.
Question 238
An AI application was approved to process data in a specific region, but a deployment pipeline silently changes the inference profile to one with additional destinations. What compliance control is missing?
- A generic prompt asking the model not to mention the other region.
- Infrastructure policy and drift detection that validate actual approved inference regions at deployment and runtime.
- Only a shorter generated answer limit after the region changes.
- A stronger random password for unrelated user accounts.
Explanation
Correct Answer
B:Codify approved destinations and deployment profiles in policy, review IaC changes before promotion and continuously compare runtime configuration with the authorized baseline. Record who approved region changes and test routing/fallback behavior. If the profile can send restricted prompts to disallowed regions, block it rather than merely note the drift. Detect an unauthorized profile change in the CI pipeline before the first production request.
Incorrect Answers
A:Instructions about wording do not change AWS endpoint destinations. Region constraints must be enforced by infrastructure and service policy outside the model. The changed profile could place protected data outside the documented approved geographic boundary.
C:Output length is unrelated to the geographic location where prompts are processed. A short response can still result from prohibited data transfer. The changed profile could place protected data outside the documented approved geographic boundary.
D:Password strength for unrelated people does not enforce service deployment geography. The implicated controls are configuration and region routing. The changed profile could place protected data outside the documented approved geographic boundary.
Question 239
A user invokes the organization’s legal deletion process for a contract. Its source file is removed, but vector embeddings and cached snippets still answer questions about the text. What must the pipeline do?
- Retain embeddings indefinitely because they are not the same byte format as the source file.
- Delete only the HTML preview and leave index entries unchanged.
- Propagate the contract deletion to derived chunks, embeddings and relevant caches, then verify that retrieval no longer returns them.
- Raise the similarity threshold to hide the deleted contract during ordinary searches.
Explanation
Correct Answer
C:Use source-to-chunk lineage to identify every derivative of the deleted contract, remove or invalidate them according to policy and rebuild affected search caches. Test direct vector retrieval using known phrases and source identifiers. Preserve only legally necessary deletion evidence without retaining the prohibited contract content. Test both direct search and cached answers after deletion propagation. Even after source deletion, a stale embedding and cache entry may reveal its content.
Incorrect Answers
A:Embeddings are derived information and can still reveal content, metadata or associations. Their retention must follow the applicable deletion and authorization rules for the source. Even after source deletion, a stale embedding and cache entry may reveal its content.
B:Deleting the visible preview does not affect the retrieval service or cached generated answers. The stale record may remain accessible through model context. Even after source deletion, a stale embedding and cache entry may reveal its content.
D:A threshold changes which results appear under a particular query; it does not remove the underlying data or prevent an exact/alternate retrieval path. Execute actual deletion. Even after source deletion, a stale embedding and cache entry may reveal its content.
Question 240
A new prompt template is being deployed to an order-support assistant. In staging it sometimes omits the JSON property `refundStatus` required by an API client. What validation should block release?
- Run representative end-to-end synthetic journeys and schema-contract assertions before promotion, with rollback if the output regresses.
- Add a system prompt reminding the model to emit `refundStatus`, but do not run schema-contract regression tests.
- Approve because the response sounds fluent even without the required field.
- Disable the client-side parser so missing properties no longer produce visible errors.
Explanation
Correct Answer
A:Use frozen realistic customer flows, explicit schema validation and known malformed-input cases to compare old and new templates. Require the mandatory field with correct typing and valid states, monitor the staged rollout, and retain an approved rollback. Validate output against the actual downstream client, not only a model self-check. Force a missing refundStatus in staging and verify the contract gate blocks promotion.
Incorrect Answers
B:A prompt reminder may reduce the frequency of missing fields but cannot guarantee the required property in every response. The API client needs typed validation and controlled staging journeys. Block release when the output schema breaks, and retain rollback for the previous template.
C:Natural-language quality cannot substitute for a structured contract used by software. A fluent answer missing a required property can fail or misroute a transaction. A missing required refundStatus field is a machine-readable contract failure, not a cosmetic response issue.
D:Bypassing parsing hides incompatibility and could let incorrect business results through. Fix the generation contract and reject invalid responses rather than suppress errors. A missing required refundStatus field is a machine-readable contract failure, not a cosmetic response issue.