Amazon AWS Certified Generative AI Developer - Professional AIP-C01 Practice Test 22
Question 210
Any engineer with the shared notebook role can invoke every paid foundation model in an AWS account. Security wants only an approved model available for the production service. Which control addresses this?
- Add a message instructing employees to avoid expensive models while leaving IAM unchanged.
- Grant the service broader IAM rights but lower its maximum output-token value.
- Remove all CloudTrail records so extra invocations are less visible.
- Scope the workload IAM permissions to required Bedrock invocation actions and allowed model or inference-profile resources.
Explanation
Correct Answer
D:Use an application-specific role, allow only the necessary Bedrock runtime actions for approved resources and deny unauthorized alternatives through policy design as applicable. Check model access, inference profiles and cross-region behavior, then test allowed and denied invocations with the actual workload identity. Logging and quotas complement IAM, not replace it. Attempt the same model call using an unapproved ARN and verify a real IAM denial.
Incorrect Answers
A:An instruction or staff guideline is not an enforced resource policy. A caller holding broad credentials can invoke unapproved models regardless of the prompt. Limit permissions in IAM. An IAM deny for the unapproved model must hold even when the caller edits or omits its prompt.
B:Output-token limits can reduce some usage costs but do not stop calls to unapproved models. Broad IAM rights still expose more resources and services than required. An IAM deny for the unapproved model must hold even when the caller edits or omits its prompt.
C:Loss of audit evidence would make unauthorized use harder to detect and investigate. Keep appropriate logging and restrict the capabilities of the principal making the request. An IAM deny for the unapproved model must hold even when the caller edits or omits its prompt.
Question 211
A GPU-backed inference endpoint has high utilization during office hours but remains idle most nights. Product owners need cost savings without severe Monday cold starts. What should operations evaluate?
- Make every user request twice as large so the GPU looks more utilized.
- Scale to zero every night without testing the morning startup or request queues.
- Use traffic-based scaling or scheduled capacity with measured warm-up time and a defined minimum service level.
- Keep peak instance count fixed permanently because no capacity metric is reliable.
Explanation
Correct Answer
C:Characterize hourly concurrency, request duration, model-load time, cache warm-up and business latency limits. Compare supported scaling or scheduling options, keep an appropriate minimum capacity where necessary, and run a Monday-load simulation. Track cost per accepted request and the first-request SLO after scale-out to confirm that savings do not create outages. Measure both cost reduction and the latency experienced by the first requests after scale-out.
Incorrect Answers
A:Artificially enlarging requests increases spend and contention without adding value. Capacity should follow real business load and measured performance, not target a high utilization chart. The cold-start test should reproduce the first business-hour burst after the endpoint has scaled down.
B:Zero capacity can be efficient for tolerant workloads but may violate interactive startup requirements if model loading is slow. Test bootstrap and queue behavior before changing the minimum. The cold-start test should reproduce the first business-hour burst after the endpoint has scaled down.
D:A fixed peak fleet can waste large idle capacity and money. The presence of variable traffic is a reason to evaluate elasticity, not to assume measurements are impossible. Collect operational evidence.
Question 212
A team compares two GenAI support models and reports only mean answer accuracy. One model is slower and performs worse for a minority-language cohort. Which additional evaluation is required?
- Select the model with the longer answers because length indicates professionalism.
- Use each model’s self-reported confidence as the sole decision factor.
- Delete minority-language test cases to make the average less noisy.
- Report cohort-specific quality and uncertainty, tail latency and end-to-end operating cost on comparable workloads.
Explanation
Correct Answer
D:Evaluate both candidates on the same representative tasks, including language and other relevant subgroups. Report sample sizes, confidence intervals or uncertainty, p95 latency, and costs such as human correction. A higher overall average may conceal unacceptable harms or expense for a real user segment. State decision thresholds before selecting the model. Report the number of labeled examples per language so cohort uncertainty is visible.
Incorrect Answers
A:Length is not a validated correctness or user-value metric. Longer answers can invent unsupported details while increasing inference cost. Use a task-specific rubric instead. Quality measurements must reflect the languages the product serves rather than only the majority cohort.
B:Confidence-like generation signals are not calibrated ground truth. They can be high for wrong answers and cannot replace external task labels, latency measurements or financial evidence. Quality measurements must reflect the languages the product serves rather than only the majority cohort.
C:Removing a struggling cohort hides a production risk and yields a misleading summary. Retain adequate coverage for users the service is expected to support. Investigate data and model limitations. Quality measurements must reflect the languages the product serves rather than only the majority cohort.
Question 213
A large knowledge base serves medical equipment manuals for several product families. Similar generic terms dominate the vector search, making the top results irrelevant to the selected device. Which design should be assessed?
- Ask users to repeat the product name until the model guesses the intended family.
- Use product-family-aware index routing or metadata filters and measure recall within each segment.
- Combine every manual into one unstructured block without model or device identifiers.
- Disable the distinction between device versions so more passages can match.
Explanation
Correct Answer
B:Capture validated device family, exact model and revision metadata when indexing, and use it to narrow eligible candidates before semantic ranking. Compare a single filtered index with per-family indexes under judged searches, including similar but incompatible devices. Retain provenance and verify maintenance costs before committing to a new shard or index structure. Validate several similarly named device manuals whose instructions are not interchangeable.
Incorrect Answers
A:Repeating prompts does not enforce device compatibility and can make irrelevant retrieval appear convincing. The application should extract or confirm the model identifier and apply a deterministic constraint. A repair instruction for the wrong equipment revision can cause practical damage despite high similarity.
C:Flattening a corpus destroys useful boundaries and makes a correct-looking passage harder to attribute to the correct equipment model. Retrieval needs metadata for source identity and technical applicability. A repair instruction for the wrong equipment revision can cause practical damage despite high similarity.
D:Device versions can have distinct safety or service instructions. Ignoring them may return a hazardous procedure for the wrong revision. Preserve exact version metadata through search and citations. A repair instruction for the wrong equipment revision can cause practical damage despite high similarity.
Question 214
A company wants to retain every chat prompt forever for future product ideas. Some conversations include account details and customer complaints. What governance decision is appropriate?
- Use a documented purpose-limited retention schedule, minimize personal data and honor authorized deletion requests.
- Store all raw prompts indefinitely because encrypted S3 objects cannot be misused.
- Change the filename format without changing the personal information inside prompts.
- Exclude all support logs from audits but keep them accessible to every developer.
Explanation
Correct Answer
A:Determine which records are truly necessary for support, security and evaluation, define appropriate retention and access rights, and delete or deidentify data when no longer needed. Carry the policy through caches, derived indexes, logs and exports. Test actual deletion and keep only legally required evidence. A desire for speculative future reuse does not justify indefinite collection. Test erasure across primary messages, vector indexes and caches under the actual retention schedule.
Incorrect Answers
B:Encryption protects stored bytes under specified keys but cannot establish legitimate collection purpose or prevent access by an authorized but unnecessary reader. Retention remains a separate governance decision. Preserving everything for indefinite future reuse contradicts purpose-limited customer-data governance.
C:Random-looking object keys do not anonymize the underlying text. Prompts may contain exact names, addresses and distinctive narratives. Minimize content and control lifecycle at the data level. Preserving everything for indefinite future reuse contradicts purpose-limited customer-data governance.
D:Hidden logs may still expose customers to broad internal access while making misuse harder to investigate. Implement privacy-preserving auditability and least-privilege permissions, not untracked unlimited storage. Preserving everything for indefinite future reuse contradicts purpose-limited customer-data governance.
Question 215
A GenAI gateway accepts a federated OIDC token issued by a partner. The application must decide whether the caller may access a specific account’s document collection. Which checks are essential?
- Trust any token whose payload contains the word administrator.
- Grant access based only on the human-readable email field inside the token.
- Ignore expiry as long as the token was issued by an HTTPS service.
- Validate the trusted issuer, audience, signature and expiry, then map claims to explicit resource permissions.
Explanation
Correct Answer
D:Authenticate the token cryptographically against a configured issuer and key set, enforce expected audience and time claims, and reject unknown issuers or algorithms. Authorization then needs a trusted mapping from token claims to the requested account and document scope. Include replay and clock-skew testing and record a minimal audit trail for denied access. Use negative tests for expired tokens, another API audience and an unrecognized issuer.
Incorrect Answers
A:A self-declared role string can be forged when a token is not validated or its issuer is not trusted. Role semantics must be explicitly mapped and scoped to the application. Display text alone is not a permission grant.
B:Email addresses can change, collide across organizations or be attacker-controlled under a weak issuer. Use stable vetted identifiers and resource entitlements rather than a single display claim. A token string can be forged or replayed unless its issuer, audience and signature are verified.
C:TLS protects token delivery but does not make an expired bearer credential valid. Time limits reduce the window for replay and compromised credentials. Enforce temporal claims and rotation policies. A token string can be forged or replayed unless its issuer, audience and signature are verified.
Question 216
A customer support RAG API has p99 latency far above its median. Logs show that queries with highly selective tenant filters are especially slow. What should the team measure?
- Disable tracing so the p99 graph becomes less noisy.
- Remove tenant filters from all queries to improve average response time.
- Increase model-serving capacity but leave the selective tenant-filtered vector query and shard routing unchanged.
- Profile filter selectivity, shard routing, candidate-set size and slow-query traces before tuning index strategy.
Explanation
Correct Answer
D:Segment query traces by tenant size and filter selectivity. Determine whether prefiltering, shard hot spots, candidate expansion or reranking dominates the tail, then benchmark supported ANN strategies without sacrificing relevance. Preserve authorization filters and retest both p50 and p99 to avoid an optimization that only helps common tenants. Benchmark large and small tenants separately to discover the true p99 contributor.
Incorrect Answers
A:Without traces, the engineering team loses the evidence needed to isolate slow requests. Improve telemetry privacy and sampling rather than hiding the tail latency problem. Selective tenant filtering is a mandatory security boundary even if it contributes to search latency.
B:Tenant filters are an access-control condition, not optional relevance sugar. Removing them can expose private documents and would make a faster but unsafe system. Optimize the filtered-search architecture. Selective tenant filtering is a mandatory security boundary even if it contributes to search latency.
C:The slow-query correlation points to search filter behavior, so an additional model replica may leave p99 almost unchanged. Inspect candidate-set size, shard placement and ANN filter strategy while maintaining tenant isolation. Validate improvements on slow tenant-specific queries rather than median traffic only.
Question 217
A GenAI application masks payment card numbers in responses. A recent incident shows full numbers in internal request traces and vendor telemetry exports. What is the highest-priority repair?
- Increase output filtering only, leaving raw tracing unchanged.
- Move the tracing dashboard to an internal hostname without changing who can read it.
- Rename all trace files to random identifiers while keeping their raw payloads.
- Redact card data before diagnostic capture and export, and restrict access to the remaining safe telemetry.
Explanation
Correct Answer
D:Inventory request, error and tool traces and apply data minimization before the first logger or exporter sees card data. Verify samples from every destination, including the vendor sink, and protect remaining records with least privilege and bounded retention. Coordinate incident response for already-exposed telemetry and prevent the same fields from being recaptured.
Incorrect Answers
A:Output filtering protects what end users receive, but the leak is in diagnostic pipelines that may record prompts before generation. Repair the earlier collection boundary instead. The leak occurs in telemetry capture before a response-masking policy is applied.
B:An internal DNS label does not prove restricted access, and authorized third parties may still receive exports. Explicit reader permissions and content minimization are necessary. The leak occurs in telemetry capture before a response-masking policy is applied.
C:File renaming changes metadata but not sensitive contents. Anyone with read access can still retrieve card numbers, and copied records may persist elsewhere. Apply actual redaction and deletion controls. The leak occurs in telemetry capture before a response-masking policy is applied.
Question 218
A financial institution is legally prohibited from transferring customer records outside a named country. The required foundation model is available only in another region. Which architecture decision respects the constraint?
- Use HTTPS to transfer the data abroad because encryption satisfies every residency obligation.
- Select an approved in-country deployment or redesign the feature so regulated records are not transferred; do not invoke the prohibited region.
- Remove country labels from the request and assume the service cannot identify origin.
- Call a cross-region inference profile without checking its possible destination regions.
Explanation
Correct Answer
B:Confirm regional model availability and the legal scope of data residency, including logs, prompts and outputs. Choose a permitted deployment or a processing design that avoids moving restricted personal data; if none exists, withhold the incompatible feature. Test endpoint and inference-profile routing and document the approved data boundary before live use. Review both prompt processing region and any telemetry or fallback routing.
Incorrect Answers
A:Encryption in transit protects confidentiality but does not change where the data is processed. A geographic legal requirement can remain in force even when TLS is used. Validate residency separately.
C:Removing a metadata tag does not change the physical transfer, stored telemetry or applicable law. Data handling decisions must reflect actual information content and processing location. A private or encrypted network route does not by itself make foreign data processing legal.
D:Inference routing can send requests to supported destination regions based on profile behavior. The team must inspect the actual region set and restrictions before sending regulated data. Convenience is not authorization.
Question 219
A vector-search cluster has consistently good accuracy but very low utilization and high fixed cost. What should the architect evaluate before choosing a smaller configuration?
- Choose whichever vector engine advertises the largest embedding dimension.
- Remove all source citations to decrease storage cost without measuring effect on auditability.
- Cut index capacity by 90% immediately because low average CPU guarantees identical query latency.
- Profile query arrival, memory use, indexing refresh and latency to compare provisioned and elastic alternatives with the same recall targets.
Explanation
Correct Answer
D:Collect traffic by hour, index size, update rate, cache behavior and p95/p99 latency. Compare smaller provisioned instances, serverless or tiered configurations that support the required filters and retrieval semantics. Run load tests for peak concurrency and ingestion before changing capacity. Include total operating cost and recovery margins, not only idle CPU. Measure peak-hour p99 latency before committing to a smaller provisioned search capacity.
Incorrect Answers
A:Embedding dimension is a representation choice, not a measure of infrastructure value or search efficiency. Larger vectors can raise memory and compute costs. Benchmark retrieved relevance and actual resource use.
B:Source attribution may be a contractual or regulatory requirement. Dropping citations can make answers unverifiable while saving little vector capacity. Optimize infrastructure without removing necessary correctness features. A memory-bound vector cluster may have low CPU even when smaller instances would perform poorly.
C:Low CPU does not reveal memory pressure, shard fanout, warm-cache performance or peak bursts. An abrupt reduction can violate latency SLOs despite appearing safe on a daily average. Test representative load first.
Question 220
A production team reserved substantial provisioned model throughput, but measured average utilization is 15% while demand remains fairly stable. Which decision best addresses cost without assuming an outage is acceptable?
- Retain the full reservation indefinitely because provisioned capacity must always be cheaper.
- Compare observed token throughput and latency requirements with smaller reservations or on-demand options, testing peak headroom.
- Disable usage telemetry before renewing the capacity commitment.
- Deliberately generate longer responses to make utilization look better on dashboards.
Explanation
Correct Answer
B:Use measured input/output tokens, concurrency, peak bursts, model warm-up and contractual commitments to model alternatives. Right-size provisioned throughput or use permitted on-demand capacity when its service and price behavior fit. Run representative load and failover tests so cost reduction does not unexpectedly increase throttling or tail latency. Use the pricing model and actual concurrent token demand to test a smaller commitment.
Incorrect Answers
A:Low average utilization suggests overprovisioning but does not prove any particular replacement is suitable. Compare actual pricing terms, peak demand and availability requirements rather than assume one purchase model wins universally.
C:Removing telemetry hides the evidence needed to plan and validate capacity changes. Keep privacy-safe usage metrics and use them to select the least costly configuration that meets performance targets. Provisioned throughput should be evaluated against peak token consumption and service commitments.
D:Artificial tokens increase billing and may slow responses without improving business outcomes. Utilization is useful only when tied to real productive work. Reduce waste rather than create it. Provisioned throughput should be evaluated against peak token consumption and service commitments.