Curated

Operating, Monitoring, and Securing ML and AI Solutions (4.1–4.3)

0 votes

Questions72

  1. Question 1

    Operating, Monitoring, and Securing ML and AI Solutions

    Which capability provides operational visibility into generative AI application latency, token usage, and errors?

    Show the answer

    Correct answerD. Amazon CloudWatch generative AI observability

    AWhy not this: Drift detection identifies distribution changes, not application latency, token usage, and request errors.

    BWhy not this: A/B testing compares model variants using allocated traffic; it is not the operational observability capability.

    CWhy not this: Model evaluation measures output quality against evaluation criteria rather than monitoring application operational telemetry.

    DWhy this is right: Generative AI observability brings operational metrics and tracing together to monitor generative AI applications.

    CloudWatch generative AI observability provides operational visibility into generative AI applications, including latency, token usage, and errors. Bedrock Model Evaluation assesses output quality rather than serving as operational telemetry monitoring.

    Open this question
  2. Question 2

    Operating, Monitoring, and Securing ML and AI Solutions

    An AWS Step Functions inference workflow catches primary endpoint errors and successfully returns fallback predictions. Operators need an alert when primary inference failures increase, even though workflow executions succeed. Which monitoring approach BEST meets this requirement?

    Show the answer

    Correct answerD. Emit a primary-inference failure metric from the catch path and alarm on it.

    AWhy not this: Prediction comparisons assess output quality rather than detecting an increase in handled inference failures.

    BWhy not this: Handled endpoint errors do not necessarily cause failed workflow executions, so this metric misses the required signal.

    CWhy not this: Input distribution changes do not measure whether primary inference attempts failed and triggered fallback.

    DWhy this is right: The catch path identifies handled primary failures directly, allowing an alarm independent of final workflow status.

    A metric emitted from the catch path exposes primary inference failures even when fallback handling makes the execution succeed. Failed-execution counts miss handled errors because those executions finish successfully.

    Open this question
  3. Question 3

    Operating, Monitoring, and Securing ML and AI Solutions

    A batch inference workflow reports success, but a preprocessing defect can silently discard valid records. Each accepted input must produce either a prediction or a recorded rejection. Which check would BEST detect missing records?

    Show the answer

    Correct answerD. Reconcile input counts against prediction and rejection counts for each batch.

    AWhy not this: Feature distributions can remain stable even when valid records are silently discarded.

    BWhy not this: Prediction confidence describes surviving outputs and does not account for missing records.

    CWhy not this: CPU utilization indicates resource use but cannot establish whether every accepted record was accounted for.

    DWhy this is right: A mismatch identifies accepted records that produced neither a prediction nor a recorded rejection.

    Reconciling accepted inputs with predictions plus recorded rejections detects records that disappear without an accounted-for outcome. Distribution monitoring may reveal changing data characteristics, but it does not establish record completeness.

    Open this question
  4. Question 4

    Operating, Monitoring, and Securing ML and AI Solutions

    A production classifier has no timely ground-truth labels. A scheduled monitoring job compares captured inference inputs with a validated baseline and writes constraint violations to Amazon S3. What should complete the pipeline to notify operators of detected drift?

    Show the answer

    Correct answerA. Publish violation metrics to CloudWatch and configure an alarm.

    AWhy this is right: A metric representing detected violations lets a CloudWatch alarm notify operators when the drift threshold is exceeded.

    BWhy not this: Latency and error metrics can remain normal even when production input data violates baseline constraints.

    CWhy not this: Bedrock evaluations assess supported generative AI outputs, not constraint violations from this classifier's input monitoring job.

    DWhy not this: Traffic splitting supports A/B testing but does not notify operators about the monitoring job's existing drift findings.

    Publishing baseline-violation metrics and alarming on them turns drift findings into operational notifications without requiring labels. An endpoint latency and error dashboard monitors service health, not changes in input data.

    Open this question
  5. Question 5

    Operating, Monitoring, and Securing ML and AI Solutions

    A team has compiled an inference model with AWS Neuron and validated it on AWS Inferentia2. Which instance family should the team evaluate for production price-performance?

    Show the answer

    Correct answerA. Amazon EC2 Inf2

    AWhy this is right: Inf2 instances contain AWS Inferentia2 accelerators, matching the model's validated deployment target.

    BWhy not this: G5 instances use NVIDIA GPUs, not the Inferentia2 accelerator targeted by the validated model.

    CWhy not this: Trn1 instances contain AWS Trainium; AWS Neuron support does not make them the validated Inferentia2 target.

    DWhy not this: P4d instances use NVIDIA GPUs and do not match the validated Inferentia2 target.

    Inf2 instances use AWS Inferentia2 accelerators and match the validated deployment target. Trn1 also uses AWS Neuron, but contains AWS Trainium rather than Inferentia2; sharing an SDK does not make accelerator targets interchangeable.

    Open this question
  6. Question 6

    Operating, Monitoring, and Securing ML and AI Solutions

    A small inference model is CPU-bound and needs little memory. Which instance family type BEST matches this workload?

    Show the answer

    Correct answerB. Compute optimized

    AWhy not this: GPU acceleration is useful for supported parallel computations, but no accelerator requirement is established here.

    BWhy this is right: Compute optimized instances provide resources suited to CPU-intensive inference.

    CWhy not this: Memory optimized instances suit workloads needing a high memory-to-vCPU ratio, not a small CPU-bound model.

    DWhy not this: Storage optimized instances target demanding local storage access rather than CPU-bound inference.

    Compute optimized instances suit CPU-intensive inference with modest memory requirements. GPU accelerated instances add specialized hardware that this workload has no stated need for.

    Open this question
  7. Question 7

    Operating, Monitoring, and Securing ML and AI Solutions

    An application calls an inference endpoint and a database during each request. Aggregate metrics show intermittent latency spikes; which approach BEST identifies the downstream call responsible for each slow request?

    Show the answer

    Correct answerB. Instrument downstream calls with AWS X-Ray tracing

    AWhy not this: Average CPU utilization can indicate resource pressure but cannot attribute an individual request's delay to a downstream call.

    BWhy this is right: Distributed traces expose timing for instrumented downstream calls within individual requests.

    CWhy not this: Cost Explorer analyzes spending and usage rather than request-level downstream latency.

    DWhy not this: CloudTrail records supported API activity for auditing, not an application's end-to-end call timing.

    AWS X-Ray traces show timing across instrumented downstream calls, helping isolate the component delaying a request. CloudWatch CPU averages can reveal resource pressure but do not establish which downstream call delayed an individual request.

    Open this question
  8. Question 8

    Operating, Monitoring, and Securing ML and AI Solutions

    An endpoint needs 180 requests/second with p95 latency below 50 ms; validated per-instance results are G4dn: 60 requests/second, 45 ms, $0.60/hour; G5: 100, 40 ms, $1.00/hour; P4d: 400, 35 ms, $4.00/hour; Inf2: 200, 70 ms, $1.20/hour. Assuming linear throughput scaling and unchanged per-instance latency, which configuration meets the requirements at the LOWEST hourly cost?

    Show the answer

    Correct answerB. Three G4dn instances

    AWhy not this: Two G5 instances meet throughput and latency requirements but cost $2.00/hour, more than the qualifying G4dn configuration.

    BWhy this is right: Three G4dn instances provide 180 requests/second at 45 ms p95 for the lowest qualifying cost of $1.80/hour.

    CWhy not this: One P4d instance meets performance requirements but costs $4.00/hour, more than the qualifying alternatives.

    DWhy not this: One Inf2 instance provides sufficient throughput but exceeds the 50 ms p95 latency limit.

    Three G4dn instances deliver 180 requests/second at 45 ms p95 for $1.80/hour, less than qualifying G5 or P4d configurations. One Inf2 instance costs less and provides enough throughput, but its 70 ms p95 violates the latency requirement.

    Open this question
  9. Question 9

    Operating, Monitoring, and Securing ML and AI Solutions

    A pipeline pushes an ML image to Amazon ECR with enhanced scanning enabled, then immediately deploys when no critical findings are returned. Which change BEST prevents unscanned images from passing?

    Show the answer

    Correct answerC. Wait for the image digest's initial scan to complete, then evaluate findings.

    AWhy not this: Scan duration varies, so a fixed delay can still allow evaluation before findings are available.

    BWhy not this: A successful push confirms storage of the image, not completion or success of vulnerability scanning.

    CWhy this is right: Waiting for completion and checking the exact digest ties the vulnerability decision to the image being deployed.

    DWhy not this: A mutable tag can identify a different image, and checking its findings does not establish scan completion.

    An empty findings response does not establish that scanning has completed. Gate deployment on completion of the initial scan for the exact image digest, then apply the vulnerability threshold; a fixed delay cannot establish completion.

    Open this question
  10. Question 10

    Operating, Monitoring, and Securing ML and AI Solutions

    A training role can read its required S3 artifacts, but downloading them fails because they use a customer managed KMS key. Which additional permission follows least privilege?

    Show the answer

    Correct answerD. Allow kms:Decrypt on the artifact encryption key.

    AWhy not this: GenerateDataKey supports creating data keys for encryption; it does not authorize decrypting existing artifacts.

    BWhy not this: Account-wide key access exceeds the role's need to decrypt artifacts protected by one key.

    CWhy not this: Encrypt authorizes encryption operations, not decryption of existing artifacts.

    DWhy this is right: Decrypt permission scoped to the artifact key supplies the required operation without granting access to unrelated keys.

    Reading SSE-KMS encrypted artifacts requires permission to decrypt with their KMS key, with access also permitted by the key policy. Scope that permission to the artifact key; GenerateDataKey supports encryption workflows and does not authorize decryption.

    Open this question
  11. Question 11

    Operating, Monitoring, and Securing ML and AI Solutions

    Which service provides enhanced scanning of Amazon ECR container images for known software vulnerabilities before deployment to an ML endpoint?

    Show the answer

    Correct answerB. Amazon Inspector

    AWhy not this: AWS Config evaluates resource configurations and compliance, not software vulnerabilities inside images.

    BWhy this is right: Amazon Inspector provides enhanced ECR scanning for vulnerabilities in supported operating system and programming language packages.

    CWhy not this: AWS CloudTrail records API activity; it does not scan container packages for vulnerabilities.

    DWhy not this: Amazon CloudWatch collects metrics and logs; it does not perform container image vulnerability scans.

    Amazon Inspector provides enhanced scanning for Amazon ECR images to identify known software vulnerabilities. AWS Config evaluates resource configurations rather than scanning image packages.

    Open this question
  12. Question 12

    Operating, Monitoring, and Securing ML and AI Solutions

    Which S3 permission should a role receive to download one known model artifact without listing, modifying, or deleting artifacts?

    Show the answer

    Correct answerC. s3:GetObject on the artifact's object ARN

    AWhy not this: ListBucket permits listing keys in a bucket, not downloading an object's contents.

    BWhy not this: DeleteObject permits deleting an object rather than downloading it.

    CWhy this is right: GetObject authorizes reading the artifact, and the object ARN limits access to that artifact.

    DWhy not this: PutObject permits uploading or replacing an object rather than downloading it.

    s3:GetObject scoped to the artifact's object ARN permits downloading that artifact. s3:ListBucket permits listing object keys but does not authorize reading object contents.

    Open this question
  13. Question 13

    Operating, Monitoring, and Securing ML and AI Solutions

    What does data drift mean for a production ML model?

    Show the answer

    Correct answerB. A change in the distribution of the model's input data

    AWhy not this: Prediction response time is an operational performance measure, not an input distribution.

    BWhy this is right: Data drift describes a change in the statistical distribution of input data.

    CWhy not this: Traffic allocation is an experiment or deployment setting, not a statistical input change.

    DWhy not this: A changed input-to-target relationship describes concept drift rather than input data drift.

    Data drift is a change in the distribution of model inputs relative to a reference distribution. Concept drift concerns changes in the relationship between inputs and target outcomes.

    Open this question
  14. Question 14

    Operating, Monitoring, and Securing ML and AI Solutions

    A lender's aggregate income distribution matches its training baseline, but income distributions have shifted in opposite directions within two regions. Labels arrive monthly, and the team needs to detect these changes sooner. Which monitoring change is MOST appropriate?

    Show the answer

    Correct answerA. Compare regional income distributions with their corresponding baselines.

    AWhy this is right: Matching each region to its own baseline reveals shifts hidden by the aggregate distribution.

    BWhy not this: A tighter threshold on an unchanged aggregate mean still misses offsetting regional changes.

    CWhy not this: Aggregate predictions can conceal regional changes and do not directly measure the affected input distribution.

    DWhy not this: Regional accuracy is useful after labels arrive but does not provide the required early detection.

    Regional comparisons expose distribution shifts that cancel out when data is pooled and do not require labels. Tightening an aggregate threshold cannot reliably detect changes when the aggregate distribution remains unchanged.

    Open this question
  15. Question 15

    Operating, Monitoring, and Securing ML and AI Solutions

    An asynchronous inference workflow spans preprocessing, queuing, and inference; end-to-end tail latency rises for one customer while fleet-wide stage averages remain normal. Operators must identify the delaying stage, including queue wait, without treating submission acceptance as completion. Which approach BEST meets these requirements?

    Show the answer

    Correct answerB. Correlate stage timestamps by request ID and analyze customer-level tail latency.

    AWhy not this: Feature distribution comparisons detect input changes, not where requests spend time in the workflow.

    BWhy this is right: Request correlation links asynchronous stages and exposes queue wait and customer-specific tail delays.

    CWhy not this: Submission response time measures acceptance, not completion of the asynchronous workflow.

    DWhy not this: Endpoint invocation latency excludes preprocessing and queue wait, while averages can hide customer-specific tail delays.

    Correlated stage timestamps expose preprocessing, queue wait, and inference delays for individual requests and customer cohorts. Endpoint invocation latency excludes upstream delays and fleet averages can conceal a customer's tail-latency problem.

    Open this question
  16. Question 16

    Operating, Monitoring, and Securing ML and AI Solutions

    A classifier uses a categorical product-code feature. After a catalog update, operators suspect that inference requests contain many codes absent from training, but ground-truth labels are delayed. What should they monitor?

    Show the answer

    Correct answerD. The frequency of product codes outside the training vocabulary

    AWhy not this: Confidence is an output signal and does not directly measure unfamiliar product codes.

    BWhy not this: Model agreement measures differences between predictions, not changes in the input vocabulary.

    CWhy not this: Previously labeled requests cannot establish the distribution of codes in current requests.

    DWhy this is right: The out-of-vocabulary frequency directly quantifies the suspected categorical input change without labels.

    The frequency of codes outside the training vocabulary directly measures the suspected change in categorical inputs without requiring labels. Prediction confidence can change for many reasons and does not establish that unfamiliar codes are arriving.

    Open this question
  17. Question 17

    Operating, Monitoring, and Securing ML and AI Solutions

    Which tool can query inference container logs in Amazon CloudWatch to find the most frequent error messages?

    Show the answer

    Correct answerB. CloudWatch Logs Insights

    AWhy not this: Analyzes spending and usage rather than application log contents.

    BWhy this is right: Queries log records and can aggregate error messages by frequency.

    CWhy not this: Monitors model data and quality rather than querying container error logs.

    DWhy not this: Records account activity and API calls rather than container application logs.

    CloudWatch Logs Insights searches and aggregates log records, including application error messages. AWS CloudTrail records AWS account activity and API calls, rather than inference container application errors.

    Open this question
  18. Question 18

    Operating, Monitoring, and Securing ML and AI Solutions

    An Amazon SageMaker AI endpoint routes requests to two production variants. Engineers need a CloudWatch dashboard that reveals whether latency degradation affects only one variant; how should they configure it?

    Show the answer

    Correct answerB. Graph latency separately using each EndpointName and VariantName dimension combination.

    AWhy not this: Invocation counts show traffic distribution, not whether a variant has degraded latency.

    BWhy this is right: The dimension combinations isolate each variant's latency within the endpoint.

    CWhy not this: A cross-endpoint average removes the variant-level detail needed for diagnosis.

    DWhy not this: Endpoint-wide aggregation cannot establish which variant is experiencing higher latency.

    Separate latency series selected by EndpointName and VariantName preserve visibility into each production variant. Endpoint-wide aggregation can hide a slow variant, even when deployment annotations are present.

    Open this question
  19. Question 19

    Operating, Monitoring, and Securing ML and AI Solutions

    An inference application on Amazon EC2 becomes unresponsive while CPU utilization remains low. Only default EC2 metrics are collected, and engineers suspect exhausted operating-system memory; what should they do to test this hypothesis?

    Show the answer

    Correct answerB. Install and configure the CloudWatch agent to publish memory utilization.

    AWhy not this: Detailed monitoring increases metric frequency but does not add guest operating-system memory metrics.

    BWhy this is right: The agent can collect guest memory utilization and publish it to CloudWatch.

    CWhy not this: CPU utilization does not contain enough information to calculate memory utilization.

    DWhy not this: CloudTrail records API activity, not operating-system memory consumption.

    The CloudWatch agent can collect operating-system memory metrics that default EC2 monitoring does not provide. EC2 detailed monitoring increases the frequency of supported EC2 metrics; it does not add guest memory utilization.

    Open this question
  20. Question 20

    Operating, Monitoring, and Securing ML and AI Solutions

    A SageMaker AI real-time endpoint has predictable weekday traffic surges, but reactive scaling adds capacity too late to meet latency targets. Which approach BEST limits idle costs while preparing sufficient capacity before each surge?

    Show the answer

    Correct answerA. Schedule a higher minimum capacity before surges and lower it afterward.

    AWhy this is right: Scheduled minimum-capacity changes prepare replicas before demand and reduce the capacity floor afterward.

    BWhy not this: A purchasing discount does not provision additional serving capacity before a traffic surge.

    CWhy not this: A higher ceiling permits more replicas but does not address late reactive scale-out.

    DWhy not this: Permanent peak capacity avoids scale-out delays but pays for unnecessary capacity during quiet periods.

    Scheduled scaling raises the capacity floor ahead of predictable demand and lowers it when demand subsides. Increasing maximum capacity alone does not cause reactive scaling to provision instances before traffic arrives.

    Open this question
  21. Question 21

    Operating, Monitoring, and Securing ML and AI Solutions

    A CloudWatch dashboard uses custom request-count, failed-request-count, and individual request-latency metrics from unequally loaded inference replicas. Operators need fleet error percentage, one-minute tail latency, and visible telemetry gaps; which configurations meet these requirements? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Display the p99 statistic for request latency with a one-minute period.B. Leave missing metric data visible as gaps rather than filling it with zero.F. Calculate error percentage as 100 times summed failures divided by summed requests.

    AWhy this is right: The p99 statistic shows tail latency within each one-minute interval.

    BWhy this is right: Visible gaps distinguish missing observations from measured healthy values.

    CWhy not this: Average latency can hide a small proportion of very slow requests.

    DWhy not this: Zero filling can make absent latency measurements appear to be exceptionally fast responses.

    EWhy not this: An unweighted average distorts fleet error percentage when replicas handle different request volumes.

    FWhy this is right: Summed failures divided by summed requests yields a traffic-weighted fleet error percentage.

    A ratio of summed counts weights errors by traffic, p99 exposes tail latency, and unfilled gaps reveal missing telemetry. Averaging replica error percentages gives lightly loaded replicas disproportionate influence.

    Open this question
  22. Question 22

    Operating, Monitoring, and Securing ML and AI Solutions

    A deployment role can create Amazon SageMaker AI training jobs but must be allowed to pass only one approved execution role to the service. Which permission should an administrator add?

    Show the answer

    Correct answerD. iam:PassRole on the approved execution role ARN

    AWhy not this: AttachRolePolicy changes a role's permissions rather than authorizing its use by a training job.

    BWhy not this: CreateRole authorizes creating a role, not passing an existing role to a training job.

    CWhy not this: AssumeRole obtains role credentials rather than authorizing assignment of the role to a service.

    DWhy this is right: PassRole authorizes supplying the specified execution role to an AWS service.

    iam:PassRole allows the deployment role to supply the approved execution role to SageMaker AI. sts:AssumeRole instead allows a caller to obtain credentials for a role; it does not authorize passing that role to a service.

    Open this question
  23. Question 23

    Operating, Monitoring, and Securing ML and AI Solutions

    Which statements describe IAM authorization for an application's ML API requests? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. An explicit deny overrides an applicable allow.D. Requests without an applicable allow are implicitly denied.

    AWhy not this: Account membership does not replace the need for an applicable permission grant.

    BWhy this is right: An applicable explicit deny takes precedence over permission grants.

    CWhy not this: An allow cannot override an applicable explicit deny.

    DWhy this is right: Without an applicable permission grant, the request remains implicitly denied.

    IAM denies requests by default, and an explicit deny overrides an applicable allow. Being in the same AWS account does not itself grant permission.

    Open this question
  24. Question 24

    Operating, Monitoring, and Securing ML and AI Solutions

    A review role must list model artifact keys only under releases/ in a shared S3 bucket, without downloading objects or listing other prefixes. Which permission configuration meets these requirements?

    Show the answer

    Correct answerD. Allow s3:ListBucket on the bucket ARN with an s3:prefix restriction.

    AWhy not this: GetObject permits downloading objects, not listing keys, and exceeds the stated requirement.

    BWhy not this: ListBucket is a bucket-level action; an object ARN does not grant permission to list keys.

    CWhy not this: Existing object tags cannot be used to restrict which keys ListBucket returns.

    DWhy this is right: The bucket ARN identifies the listing resource, while s3:prefix limits which requested prefixes are allowed.

    Listing keys requires s3:ListBucket on the bucket ARN, restricted with s3:prefix to the permitted prefix. Object ARNs cannot scope ListBucket, and object-tag conditions do not restrict bucket listings.

    Open this question
  25. Question 25

    Operating, Monitoring, and Securing ML and AI Solutions

    An administrator creates an execution role for Amazon SageMaker AI training jobs and attaches the required S3 permissions. Which additional configuration allows SageMaker AI to assume the role?

    Show the answer

    Correct answerD. A trust policy allowing sagemaker.amazonaws.com to assume the role

    AWhy not this: A bucket policy controls access to S3 resources, not which service can assume an IAM role.

    BWhy not this: A permissions boundary limits potential permissions; it does not authorize role assumption.

    CWhy not this: An identity policy grants API permissions to the role but does not establish its trusted principals.

    DWhy this is right: A trust policy grants the SageMaker AI service principal permission to assume the execution role.

    The role's trust policy identifies the principal allowed to assume it, including the SageMaker AI service principal. S3 permissions control data access after assumption; they do not establish trust.

    Open this question
  26. Question 26

    Operating, Monitoring, and Securing ML and AI Solutions

    An agent intermittently times out when calling a read-only inventory tool, leaving tasks unfinished. Which approach BEST detects this failure and automates recovery without allowing endless retries?

    Show the answer

    Correct answerD. Track tool timeouts and apply bounded retries with backoff.

    AWhy not this: Input drift monitoring addresses changing data distributions, not transient tool availability.

    BWhy not this: A larger response token limit does not resolve a timeout in an external tool.

    CWhy not this: Response relevance evaluation does not directly detect or recover a timed-out tool call.

    DWhy this is right: Timeout telemetry identifies the tool failure, while bounded retries limit automated recovery attempts.

    Tool-level timeout monitoring detects the failing dependency, and bounded retries with backoff can recover transient failures without retry loops. Increasing the response token limit addresses generation truncation, not a tool timeout.

    Open this question
  27. Question 27

    Operating, Monitoring, and Securing ML and AI Solutions

    A recommendation A/B test measures purchases per user over a week, but request-level routing exposes returning users to both models. Which change BEST supports a valid comparison?

    Show the answer

    Correct answerC. Assign users randomly and preserve each user's assignment.

    AWhy not this: Changing traffic proportions does not prevent returning users from receiving both models.

    BWhy not this: Baseline comparisons detect input drift, not contamination between experimental groups.

    CWhy this is right: Persistent user assignments align the treatment unit with the user-level purchase metric.

    DWhy not this: Latency-based routing creates nonrandom treatment groups and does not preserve user assignments.

    Stable, randomized user assignments keep each user's purchase outcomes associated with one treatment. Request-level traffic weighting changes exposure proportions but does not prevent users from receiving both treatments.

    Open this question
  28. Question 28

    Operating, Monitoring, and Securing ML and AI Solutions

    What distinguishes production A/B testing from shadow testing?

    Show the answer

    Correct answerB. It serves different models to separate live traffic groups.

    AWhy not this: Copied requests whose responses are not served characterize shadow testing.

    BWhy this is right: Serving different models to separate live groups enables comparison of production outcomes.

    CWhy not this: Offline reference scoring evaluates model quality without testing live user outcomes.

    DWhy not this: Comparing inputs with a baseline detects data drift rather than treatment effects.

    Production A/B testing exposes separate live traffic groups to different models so their outcomes can be compared. Shadow testing evaluates copied traffic without exposing users to the shadow model's responses.

    Open this question
  29. Question 29

    Operating, Monitoring, and Securing ML and AI Solutions

    A production model comparison serves the candidate mostly to a high-purchase region and the incumbent mostly to a low-purchase region. The candidate has a higher overall purchase rate but a lower rate within each region; what should the team do before attributing improvement to the candidate?

    Show the answer

    Correct answerC. Randomize models within regions and compare regional outcomes.

    AWhy not this: Drift monitoring identifies distribution changes but does not isolate the model's effect on purchases.

    BWhy not this: More observations under the same confounded allocation do not remove regional bias.

    CWhy this is right: Within-region randomization separates model effects from differences in regional purchase propensity.

    DWhy not this: The aggregate advantage can reflect regional composition rather than better model performance.

    Region is confounded with model assignment, so the aggregate result does not establish a model improvement. Randomization within regions supports comparable groups; drift monitoring can reveal distribution differences but cannot establish a treatment effect.

    Open this question
  30. Question 30

    Operating, Monitoring, and Securing ML and AI Solutions

    Several ML projects share an AWS account and tag their training resources with Project. Finance cannot group charges by this tag in AWS Cost Explorer; what should the team do?

    Show the answer

    Correct answerA. Activate Project as a cost allocation tag

    AWhy this is right: Activating the tag makes it available as a cost-reporting dimension after processing.

    BWhy not this: CloudWatch dashboards show operational metrics; they do not activate billing dimensions in Cost Explorer.

    CWhy not this: Service budgets track spending against thresholds but do not enable grouping by a resource tag.

    DWhy not this: Training-instance quotas control permitted resource capacity, not attribution of charges.

    A user-defined tag must be activated as a cost allocation tag before it becomes available for cost reporting, subject to processing delays. Creating service budgets does not enable project-level attribution.

    Open this question
  31. Question 31

    Operating, Monitoring, and Securing ML and AI Solutions

    An EC2 inference fleet is evenly distributed across three Availability Zones; each instance meets the latency target at up to 60 requests/second. What minimum total instance count supports 240 requests/second immediately after losing one zone, without launching replacements?

    Show the answer

    Correct answerC. 6 instances

    AWhy not this: Losing one zone leaves six instances; this exceeds the required capacity and is not the minimum.

    BWhy not this: Losing one zone leaves eight instances, providing twice the required surviving capacity.

    CWhy this is right: Two instances per zone leave four after a zone failure, providing the required 240 requests/second.

    DWhy not this: Losing one zone leaves two instances, which support only 120 requests/second.

    Four surviving instances are required because 240 ÷ 60 = 4. Six instances evenly distributed across three zones leave four after one zone fails; nine would provide unnecessary capacity for the stated requirement.

    Open this question
  32. Question 32

    Operating, Monitoring, and Securing ML and AI Solutions

    An ML sandbox must automatically block new training-job submissions when recorded monthly spending reaches its budget, while allowing existing jobs to finish. Which configuration BEST meets this requirement?

    Show the answer

    Correct answerB. Configure a budget action that applies an IAM deny policy for creating training jobs

    AWhy not this: An email notification requires someone to act and does not automatically block submissions.

    BWhy this is right: A budget action can automatically apply a deny policy to the submission role when the actual-cost threshold is reached.

    CWhy not this: Cost anomaly alerts identify unusual spending but do not themselves deny training-job creation.

    DWhy not this: A concurrency quota limits simultaneous resource use, not spending accumulated during the month.

    An automatically executed AWS Budgets action can apply an IAM policy denying new training-job creation without stopping running jobs. A concurrency quota is not tied to spending; billing-data delays also mean this is not an instantaneous hard spending cap.

    Open this question
  33. Question 33

    Operating, Monitoring, and Securing ML and AI Solutions

    Which approach adjusts a SageMaker AI real-time endpoint's instance count as demand changes to reduce idle capacity?

    Show the answer

    Correct answerC. Configure target tracking automatic scaling

    AWhy not this: Dashboards display metrics but do not change the endpoint's instance count.

    BWhy not this: A Compute Savings Plan provides discounted pricing for a usage commitment, not demand-based capacity adjustment.

    CWhy this is right: Target tracking adjusts the instance count to keep a utilization or throughput metric near its target.

    DWhy not this: A quota increase permits more capacity but does not provision or remove instances.

    Target tracking automatic scaling adds or removes endpoint instances to maintain a target metric as demand changes. A Compute Savings Plan changes pricing but does not adjust provisioned capacity.

    Open this question
  34. Question 34

    Operating, Monitoring, and Securing ML and AI Solutions

    Which tool should an ML engineer use to compare monthly AWS spending by service over the previous six months?

    Show the answer

    Correct answerC. AWS Cost Explorer

    AWhy not this: Budgets tracks costs or usage against planned thresholds rather than serving as the primary historical analysis tool.

    BWhy not this: CloudWatch monitors operational metrics and logs rather than providing service-grouped historical billing analysis.

    CWhy this is right: Cost Explorer can group historical spending by service over a selected time range.

    DWhy not this: Service Quotas manages resource and API limits rather than historical spending.

    AWS Cost Explorer supports historical cost analysis with time ranges and service-level grouping. AWS Budgets primarily tracks costs or usage against defined budgets rather than providing interactive historical analysis.

    Open this question
  35. Question 35

    Operating, Monitoring, and Securing ML and AI Solutions

    An organization must retain ML control-plane audit records across all member accounts and Regions, prevent their deletion during retention, and detect delivered-log tampering. Which design meets these requirements?

    Show the answer

    Correct answerC. Use a multi-Region organization trail, compliance-mode S3 Object Lock, and log file validation.

    AWhy not this: Separate account trails lack automatic organization-wide coverage, and versioning does not prevent version deletion.

    BWhy not this: Governance retention can be bypassed with permission; bucket access logs do not provide CloudTrail log integrity validation.

    CWhy this is right: The organization trail supplies coverage, compliance retention prevents deletion, and validation provides integrity evidence.

    DWhy not this: Config aggregators collect configuration and compliance information, not a comprehensive control-plane API audit trail.

    A multi-Region organization trail covers member-account API activity. S3 Object Lock compliance mode prevents deletion during retention, and CloudTrail log file validation detects modification or deletion of delivered logs; governance mode permits authorized retention bypass.

    Open this question
  36. Question 36

    Operating, Monitoring, and Securing ML and AI Solutions

    An ML team must continuously evaluate whether its artifact buckets block public access and notify operators when a bucket becomes noncompliant. Which actions support this monitoring workflow? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersB. Route Config compliance changes through EventBridge to an SNS topic.C. Enable AWS Config recording for the relevant S3 buckets.E. Deploy an AWS Config rule that evaluates bucket public access.

    AWhy not this: Amazon Inspector does not evaluate S3 bucket public-access configuration compliance.

    BWhy this is right: EventBridge can match Config compliance-change events and deliver notifications through SNS.

    CWhy this is right: Recording the relevant bucket resources provides configuration data for compliance evaluation.

    DWhy not this: Sensitive information filters assess application content, not S3 bucket configuration.

    EWhy this is right: An appropriate Config rule evaluates recorded bucket settings against the public-access requirement.

    AWS Config needs resource recording and an appropriate rule to evaluate bucket compliance; EventBridge can route compliance changes to SNS for notification. Amazon Inspector assesses supported workloads for vulnerabilities, not S3 public-access configuration compliance.

    Open this question
  37. Question 37

    Operating, Monitoring, and Securing ML and AI Solutions

    An ML team records CloudTrail management events, but an investigation finds no records of downloads from its S3 model-artifact bucket. Which change will capture future downloads with the requesting identity?

    Show the answer

    Correct answerC. Enable CloudTrail read data events for the artifact objects.

    AWhy not this: VPC Flow Logs record network flow metadata, not S3 object operations or requesting IAM identities.

    BWhy not this: S3 request metrics provide aggregate activity measurements, not identity-level API audit records.

    CWhy this is right: S3 read data events capture object downloads and the identities making those requests.

    DWhy not this: AWS Config records bucket configuration changes, not individual object downloads.

    CloudTrail S3 data events record object-level API activity, including downloads and requesting identities. Management events cover bucket-level operations, while AWS Config tracks resource configuration rather than object access.

    Open this question
  38. Question 38

    Operating, Monitoring, and Securing ML and AI Solutions

    An application's ML API request fails with ExpiredToken. What should the engineer do first?

    Show the answer

    Correct answerD. Refresh the application's temporary credentials.

    AWhy not this: A security group change does not renew an expired authentication token.

    BWhy not this: Additional permissions do not change the expiration of the credentials signing the request.

    CWhy not this: A longer timeout does not make expired credentials valid.

    DWhy this is right: Obtaining fresh temporary credentials resolves an expired authentication token.

    ExpiredToken indicates that the credentials used to sign the request are no longer valid and must be refreshed. Adding permissions does not renew an expired session.

    Open this question
  39. Question 39

    Operating, Monitoring, and Securing ML and AI Solutions

    A training application can read an S3 artifact through the public service endpoint but receives AccessDenied through its S3 VPC endpoint. The same role and object are used, and neither the bucket nor identity policies contains network conditions. What should the engineer inspect first?

    Show the answer

    Correct answerC. The S3 VPC endpoint policy

    AWhy not this: IP exhaustion can cause connectivity failures, but it does not explain an S3 AccessDenied response.

    BWhy not this: Session expiration would affect requests using those credentials through either endpoint.

    CWhy this is right: An endpoint policy can deny an operation that identity and bucket permissions otherwise allow.

    DWhy not this: The same object's storage class does not introduce endpoint-specific authorization.

    The endpoint policy is an additional authorization boundary applied to requests traversing the VPC endpoint. Success through the public endpoint with the same role and object points to this path-specific control rather than session expiration or storage class.

    Open this question
  40. Question 40

    Operating, Monitoring, and Securing ML and AI Solutions

    A team configures an Amazon Bedrock RAG evaluation using questions, retrieved passages, and generated answers, but no reference answers. Which evaluation criteria directly measure whether answers stay supported by the passages and address the questions? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. CompletenessF. Faithfulness

    AWhy not this: Output token count measures response size, not whether its content answers the question accurately.

    BWhy this is right: Completeness measures how fully each answer addresses all parts of its question.

    CWhy not this: Invocation latency measures speed, not semantic support or relevance.

    DWhy not this: Context coverage scores how well retrieved passages cover ground-truth information, which this dataset lacks, and it judges retrieval rather than the answer.

    EWhy not this: Context relevance scores how relevant the retrieved passages are to the question, not whether the answer is grounded in them.

    FWhy this is right: Faithfulness assesses whether the generated answer is supported by the retrieved passages.

    Faithfulness measures whether answers avoid content the retrieved passages do not support, and Completeness measures whether they address every part of the question. Context relevance and context coverage judge the retrieved passages rather than the answer, and context coverage also needs ground truth.

    Open this question
  41. Question 41

    Operating, Monitoring, and Securing ML and AI Solutions

    A company must compare FM responses for adherence to its specialized editorial style, which requires expert judgment. Which Amazon Bedrock evaluation approach BEST meets this requirement?

    Show the answer

    Correct answerB. A human evaluation using a custom style rubric

    AWhy not this: Robustness assesses behavior under input variations rather than compliance with an editorial rubric.

    BWhy this is right: Expert reviewers can apply a custom rubric that defines the company's editorial requirements.

    CWhy not this: Toxicity scores assess harmful content rather than specialized editorial style.

    DWhy not this: Output token counts measure response length rather than stylistic quality.

    Human evaluation with a custom rubric lets reviewers apply specialized editorial criteria. Toxicity evaluation assesses harmful content, not adherence to an organization's style.

    Open this question
  42. Question 42

    Operating, Monitoring, and Securing ML and AI Solutions

    Which signal BEST identifies an unexpectedly truncated agent response stream?

    Show the answer

    Correct answerC. A closed connection without the expected completion event

    AWhy not this: Time to first token measures initial responsiveness, not whether the response finishes.

    BWhy not this: An initial successful response does not establish successful completion of the stream.

    CWhy this is right: The missing completion event distinguishes abnormal termination from a normally completed stream.

    DWhy not this: Input token counts describe request size rather than stream completion.

    A connection that closes without the expected completion event indicates that the stream did not finish normally. Initial HTTP success confirms that streaming began, not that the full response arrived.

    Open this question
  43. Question 43

    Operating, Monitoring, and Securing ML and AI Solutions

    A team uses an FM judge to gate prompt releases; rare safety-critical requests must not regress despite improvements elsewhere. With limited expert-review capacity and changing production traffic, which evaluation design BEST supports a trustworthy release decision?

    Show the answer

    Correct answerA. Score a shared stratified test set, enforce critical-category thresholds, and calibrate judge scores against expert ratings.

    AWhy this is right: This design controls comparison inputs, protects critical categories, and checks whether automated judgments match expert assessments.

    BWhy not this: Independent live samples confound release effects with traffic changes, and overall means can hide critical regressions.

    CWhy not this: A shared set helps comparison, but overall means hide category failures and latency does not validate judge quality.

    DWhy not this: High-volume sampling underrepresents rare critical requests, and response length is not a sound calibration target.

    A shared stratified set controls traffic-mix differences, category thresholds prevent rare critical failures from being averaged away, and expert calibration checks judge reliability. Overall means alone can hide safety-critical regressions.

    Open this question
  44. Question 44

    Operating, Monitoring, and Securing ML and AI Solutions

    A multi-agent application repeatedly transfers the same task between two agents without producing a result, although each model invocation succeeds. Which control BEST detects and contains this failure?

    Show the answer

    Correct answerB. Track task handoffs and stop execution at a transition limit

    AWhy not this: Token usage can show cost growth, but increasing response limits does not resolve a handoff loop.

    BWhy this is right: Task-level handoff tracking exposes repeated transfers, and a transition limit prevents unbounded execution.

    CWhy not this: Input drift monitoring does not identify agents repeatedly transferring the same task.

    DWhy not this: Successful invocations can participate in a coordination loop without generating invocation errors.

    Tracking task-level handoffs reveals a coordination loop, and a transition limit contains it. Invocation-error monitoring misses the failure because the individual model calls succeed.

    Open this question
  45. Question 45

    Operating, Monitoring, and Securing ML and AI Solutions

    What distinguishes a private subnet from a public subnet in an ML workload's VPC?

    Show the answer

    Correct answerD. Its route table has no direct route to an internet gateway.

    AWhy not this: Network ACLs filter subnet traffic; blocking inbound traffic does not remove an internet gateway route.

    BWhy not this: Security groups filter interface traffic; they do not define whether a subnet is public or private.

    CWhy not this: Instance profiles provide AWS permissions and do not determine subnet routing.

    DWhy this is right: The absence of a direct internet gateway route distinguishes a private subnet from a public subnet.

    A private subnet has no direct route to an internet gateway. Security groups and network ACLs filter traffic, but their rules do not determine whether a subnet is public or private.

    Open this question
  46. Question 46

    Operating, Monitoring, and Securing ML and AI Solutions

    An application in a subnet without internet egress times out invoking Amazon Bedrock, although its interface endpoint permits HTTPS from the application. DNS resolves the standard Bedrock Runtime hostname to public addresses, and VPC DNS support is enabled; what should the engineer change?

    Show the answer

    Correct answerD. Enable private DNS on the Bedrock Runtime interface endpoint.

    AWhy not this: IAM permissions govern authorization after connectivity is established; they do not change DNS resolution.

    BWhy not this: Invocation logging records model requests but does not provide a network path to the service.

    CWhy not this: The application initiates the connection; adding inbound HTTPS does not change its destination address.

    DWhy this is right: Private DNS directs requests using the standard service hostname to the interface endpoint's private addresses.

    Private DNS makes the standard service hostname resolve to the interface endpoint's private addresses. Expanding IAM permissions cannot fix a timeout caused by resolving public addresses from a subnet without internet egress.

    Open this question
  47. Question 47

    Operating, Monitoring, and Securing ML and AI Solutions

    Application instances must access a SageMaker AI Runtime interface endpoint over HTTPS, while other instances in the same subnet must be blocked. Which inbound rule should the endpoint's security group use?

    Show the answer

    Correct answerD. Allow TCP port 443 from the application's security group.

    AWhy not this: A VPC CIDR permits a broader set of sources than the application requires.

    BWhy not this: Referencing the endpoint's own group does not permit application instances using a different group.

    CWhy not this: A subnet CIDR permits other instances in that subnet, not just the application.

    DWhy this is right: A source security group reference permits traffic from application interfaces associated with that group.

    Referencing the application's security group restricts endpoint access to network interfaces associated with that group. A subnet CIDR also admits other instances in the subnet, violating the isolation requirement.

    Open this question
  48. Question 48

    Operating, Monitoring, and Securing ML and AI Solutions

    Distributed SageMaker AI training uses one security group whose outbound traffic is unrestricted but whose inbound rules permit only HTTPS from a management subnet. Workers must communicate on dynamically selected ports, and unrelated VPC instances must remain blocked; which inbound change meets these requirements?

    Show the answer

    Correct answerA. Allow all traffic from the training security group.

    AWhy this is right: A self-referencing all-traffic rule permits communication among the training workers without opening access to the VPC.

    BWhy not this: The VPC CIDR admits unrelated instances, exceeding the required worker-to-worker access.

    CWhy not this: HTTPS permits only TCP port 443, not the dynamically selected worker ports.

    DWhy not this: The management subnet is not the required source of worker-to-worker traffic.

    A self-referencing rule allows training workers sharing the security group to communicate across the required ports without admitting unrelated VPC instances. An HTTPS-only self-reference still blocks dynamically selected worker ports.

    Open this question
  49. Question 49

    Operating, Monitoring, and Securing ML and AI Solutions

    A SageMaker AI training job saves checkpoints and can tolerate interruptions and a flexible completion time. Which option BEST lowers compute costs without a long-term spending commitment?

    Show the answer

    Correct answerA. Enable Managed Spot Training

    AWhy this is right: Managed Spot Training discounts interruption-tolerant training, with checkpoints supporting recovery.

    BWhy not this: A SageMaker Savings Plan requires a long-term hourly spending commitment.

    CWhy not this: EC2 capacity reservations do not directly reserve SageMaker AI training capacity or independently discount usage.

    DWhy not this: On-Demand instances avoid a commitment but do not provide the spare-capacity discounts suited to this job.

    Managed Spot Training uses discounted spare capacity for interruption-tolerant training, and checkpoints preserve progress for resumption. A SageMaker Savings Plan offers discounts but requires a one- or three-year spending commitment.

    Open this question
  50. Question 50

    Operating, Monitoring, and Securing ML and AI Solutions

    A company has a stable baseline of SageMaker AI training and endpoint usage for the next year, but expects to change instance families. Which purchasing option BEST reduces costs while preserving this flexibility?

    Show the answer

    Correct answerA. SageMaker Savings Plans

    AWhy this is right: These plans discount eligible SageMaker AI usage while allowing changes across instance families.

    BWhy not this: These plans cover eligible EC2, AWS Fargate, and AWS Lambda usage rather than SageMaker AI instance charges.

    CWhy not this: These plans apply to EC2 usage in a selected instance family and Region, not SageMaker AI instance charges.

    DWhy not this: Capacity reservations reserve EC2 capacity but do not independently provide a usage discount.

    SageMaker Savings Plans discount eligible SageMaker AI instance usage in exchange for a consistent hourly spending commitment, with flexibility across instance families. Compute Savings Plans cover eligible EC2, AWS Fargate, and AWS Lambda usage, not SageMaker AI instance charges.

    Open this question