Study Guide · MLA-C02

MLA-C02 Cheat Sheet

553 entries · 12 chapters · 4 domains

Data Preparation for ML and AI

Collect and store data

Read full chapter

Cheat sheet

Sharp facts the exam loves — scan these before test day.

A cross join generates combinations rather than matching entity keys

A Cartesian cross join combines every row of one dataset with every row of the other. Use it only when all combinations are intended, such as constructing an explicit candidate grid. For ordinary enrichment, join on the relevant key to avoid an unintended explosion in intermediate data and processing cost.

Trap Selecting a Cartesian cross join to merge customer attributes into transaction rows, which creates combinations instead of matching each transaction's customer.

3 questions test this
Lake Formation blueprints generate repeatable data-lake ingestion workflows

When an existing data lake needs relational database ingestion with minimal custom development, use an AWS Lake Formation database blueprint. The blueprint generates AWS Glue crawlers, jobs, and triggers to load and catalog the data. Choose a database snapshot for a full load or an incremental database blueprint for supported incremental ingestion.

Trap Using an Amazon Kinesis Data Streams stream as a relational extraction workflow, although producers must still extract and publish the database records.

3 questions test this
DynamoDB exports extract training data without consuming table read capacity

When extracting a large DynamoDB dataset must not compete with application reads, export the table to Amazon S3 and process the exported data. Export requires point-in-time recovery and does not consume read capacity units. Export and S3 charges still apply, and asynchronous completion should not be treated as a fixed-time guarantee.

Trap Using a parallel table scan to avoid read-capacity consumption, although scan operations consume the table's read capacity.

3 questions test this
An existing DynamoDB export can be reused across Glue processing runs

AWS Glue's DynamoDB export connector can read an existing export from Amazon S3 instead of requesting a fresh table export. Reuse the export when repeated preprocessing experiments should use the same source snapshot. Request a new export when the dataset must reflect later table changes.

Trap Requesting a new table export for every transformation experiment, although the existing S3 export already contains the required snapshot.

3 questions test this
A Glue JDBC connection needs network access as well as database credentials

A Glue connection to a private relational database must use a reachable VPC subnet and appropriate security groups in addition to valid database authentication. Glue attaches network interfaces using the connection's networking configuration. A successful credential check alone does not establish a path to the database endpoint.

Trap Rotating the database password to fix a connection timeout caused by a blocked network path, which does not change routing or security-group rules.

3 questions test this
DataSync transfers file-based corpora into an existing S3 ingestion location

When a dataset resides on an NFS or SMB file server and must be copied into Amazon S3, use AWS DataSync with the appropriate source and destination locations. These file-server transfers require a DataSync agent. This is file movement; the downstream preprocessing job still performs record parsing and feature transformations.

Trap Using a Glue JDBC connection to copy an SMB document collection, although JDBC connects to database records rather than file shares.

3 questions test this
Joins enrich matching entities while unions append compatible records

Use a join when transaction rows need attributes from a customer table matched by a key. Use a union when datasets represent additional rows of the same logical schema. Align column meanings and data types before appending records, rather than interpreting a union as an entity match.

Trap Unioning customer profiles with transactions to enrich each transaction, although appending rows does not match customers to their transactions.

3 questions test this
A left join preserves source examples that lack enrichment matches

When every training example must survive enrichment, make the examples the left side of a left join. An inner join retains only matched keys and can silently change which examples remain. Inspect missing enrichment values and repeated keys because the join type does not itself clean or deduplicate the inputs.

Trap Choosing an inner join solely to add optional profile fields, which removes examples whose profile key has no match.

3 questions test this
Existing EBS dataset files become readable through the volume's mounted file system

Amazon EBS exposes an attached volume as a block device rather than an object-storage location. To extract files from an existing EBS dataset, make its existing file system available on the attached EC2 instance and have the extraction process read the mounted files. A volume restored from a snapshot can already contain the file system and dataset.

Trap Formatting a restored dataset volume as if it were empty, which overwrites its existing file system and data.

3 questions test this
An EFS-to-S3 DataSync transfer can use the managed EFS source without an agent

When an existing Amazon EFS file corpus must be copied to Amazon S3 for preparation, configure an EFS source location and an S3 destination in AWS DataSync. For a transfer within the same AWS account, whether in the same Region or across Regions in the same AWS partition, no DataSync agent is required; DataSync accesses the EFS mount target through VPC network interfaces. Configure the location's subnet, security groups, and file-system access permissions so the source files are readable.

Trap Treating managed EFS as an on-premises NFS source requiring a deployed DataSync agent, which applies the self-managed file-server access path unnecessarily.

3 questions test this
Incremental RDS extraction through Glue depends on suitable JDBC bookmark keys

Extract Amazon RDS relational tables through an AWS Glue JDBC connection compatible with the database engine. Use a full table read when all source rows are required; for repeated incremental reads, enable JDBC bookmarks and select keys that satisfy the bookmark ordering requirements. User-defined bookmark keys must each be strictly monotonically increasing or decreasing, because Glue compares their values with saved progress to identify later rows. An update to an old row whose bookmark key remains unchanged is not newly discoverable through that key alone.

Trap Selecting a revision counter reused across different records as a bookmark key, which violates the required monotonic ordering across the dataset.

3 questions test this
Glue can extract selected OpenSearch index documents into a preparation job

Use an AWS Glue for Spark OpenSearch Service connection when existing indexed documents must become input to dataset preparation. Select the source index and supply an OpenSearch query with pushdown so the service returns the relevant documents to a DynamicFrame. This native connection supports OpenSearch Service domains, not OpenSearch Serverless, so verify the source deployment type before choosing it.

3 questions test this
AWS Glue executes multi-source joins and unions in its managed Spark environment

AWS Glue Spark jobs run Apache Spark as the processing engine for batch dataset merging, including Join and Union transforms configured in the visual ETL editor. The Join transform takes two input datasets and explicit matching keys; the Union transform requires compatible input schemas and offers ALL or DISTINCT behavior. Select DISTINCT when the merged output must remove duplicate rows, rather than assuming that appending sources automatically deduplicates them.

3 questions test this
Parquet and ORC suit repeated analytical reads of selected columns

When feature preparation repeatedly reads a subset of a wide dataset's columns, store the analytical copy in Parquet or ORC. Columnar layout and compression can reduce the data read by compatible query engines. CSV remains useful for simple interchange but does not provide the same column-oriented layout.

Trap Choosing CSV because it is human-readable when the controlling requirement is minimizing repeated wide-table column scans.

3 questions test this
JSON represents nested records without flattening them into positional columns

JSON is suitable for semi-structured records that contain named fields, nested objects, or arrays. CSV is a flat row-and-column representation, so nested content requires an agreed serialization or flattening convention. Choose the input format that the consumer actually supports rather than assuming every ML algorithm accepts nested JSON.

Trap Writing nested objects directly into ordinary CSV fields without an encoding convention, which leaves the intended structure ambiguous to the reader.

3 questions test this
Firehose format conversion uses JSON input and a Glue schema

Amazon Data Firehose can convert JSON records to Parquet or ORC before delivery to Amazon S3 by using a schema in the AWS Glue Data Catalog. When the incoming records use another format, transform them into compatible JSON before conversion. Catalog fields govern which data can be represented in the converted output.

Trap Enabling Parquet conversion directly on raw CSV records, although the format-conversion stage expects JSON input.

3 questions test this
S3 archival choices must match the dataset's retrieval requirements

When a dataset must be read immediately, choose a storage class that supports immediate access. S3 Glacier Flexible Retrieval and S3 Glacier Deep Archive require restoration before ordinary access, whereas S3 Glacier Instant Retrieval supports millisecond retrieval. A lower storage charge alone does not make a restore-based archive suitable for an immediately scheduled preprocessing run.

Trap Putting the next training run's only dataset copy in S3 Glacier Deep Archive to minimize storage cost while retaining an immediate-read requirement.

3 questions test this
S3 Intelligent-Tiering fits datasets with changing or unknown access patterns

Use S3 Intelligent-Tiering when access frequency is difficult to predict and automatic movement between access tiers is useful. Its monitoring and automation have their own cost considerations, and optional archive tiers introduce retrieval considerations. A fixed infrequent-access class is a different choice when the access pattern is already known.

Trap Treating S3 Standard-IA as an automatic access-pattern optimizer, although it is a selected storage class rather than an automatic tiering mechanism.

3 questions test this
S3 Object Lock compliance mode prevents early deletion of protected versions

When a dataset version must remain immutable for its retention period even against privileged users, use S3 Object Lock compliance mode. Governance mode permits authorized bypass, so it serves a different control requirement. Object Lock protects object versions rather than preventing the creation of a new version with the same key.

Trap Choosing governance mode for retention that administrators must not bypass, although specially authorized users can bypass governance retention.

3 questions test this

Use an S3 Object Lock legal hold when preservation must continue without a predetermined expiration date. A fixed retention period instead protects a version until a specified date. Legal holds and retention periods are independent, so expiration of retention does not remove an active legal hold.

Trap Using only a fixed retention date for an investigation with an unknown end date, which allows the time-based protection to expire.

3 questions test this
S3 dataset partitions should match the filters used by downstream queries

Partition an S3 analytical dataset by fields commonly used to restrict queries, such as event date or customer identifier. A partition-aware query engine can then prune irrelevant partitions and read only the relevant portion of the dataset. This optimization selects which groups of files to scan, complementing columnar formats that reduce which columns must be read within those files.

3 questions test this
A reproducible prepared corpus needs a versioned artifact and its source lineage

Version prepared datasets and record the source identities, source versions or extraction points, and transformations that produced each version. Retain the relevant source and output versions under the dataset's retention policy so a particular corpus can be reproduced and audited. Source metadata identifies where data came from, while transformation lineage explains how it became the prepared artifact.

Trap Keeping only the preparation code while overwriting the input and output datasets, which preserves transformation logic but loses the specific data used by an earlier run.

Kinesis Data Streams supports replay within the retained stream history

When independent applications must consume and replay the same incoming records, use Amazon Kinesis Data Streams and keep the required history within its retention window. Each consumer maintains its own progress through the stream. Amazon Data Firehose focuses on managed delivery to destinations rather than exposing an equivalent general-purpose replay log.

Trap Choosing a Firehose delivery stream as the independent replay log, although its delivery interface is not the Kinesis Data Streams consumer model.

3 questions test this
Firehose buffering affects when records reach their destination

Amazon Data Firehose buffers incoming records before delivery according to the destination and configured buffering settings. Select settings that fit the required freshness rather than equating ingestion acceptance with destination availability. Larger delivery batches can improve write efficiency but can delay visibility of low-volume data.

Trap Increasing Firehose buffer intervals to solve a low-volume delivery-freshness problem, which extends the period before a buffer is delivered.

3 questions test this
A hot Kinesis partition key can bottleneck one shard

With partition-key-based record distribution, Kinesis Data Streams maps partition keys to shards, so a heavily reused key can concentrate writes on one shard. When throttling is concentrated rather than evenly distributed, review the key distribution as well as total capacity. In this mode, adding shards does not split a single partition key's records across multiple shards.

Trap Adding aggregate shard capacity while keeping all high-volume events under one partition key in a stream using partition-key-based record distribution, which leaves that key concentrated on one shard.

3 questions test this
Enhanced fan-out gives registered consumers dedicated shard read throughput

When multiple Kinesis consumers contend for shared read throughput, use enhanced fan-out for consumers that need dedicated delivery capacity. Shared-throughput consumers compete within the shard's shared read allowance. Enhanced fan-out addresses consumer contention, not a producer-side hot-key write bottleneck. Shards belong to the stream, not to producers (a Kinesis data stream is a set of shards[1]): adding shards still leaves shared-throughput consumers splitting each shard's read throughput[2].

Trap Adding shards solely to isolate competing readers without considering enhanced fan-out's per-consumer read capacity.

3 questions test this
Kinesis ordering is scoped to shards rather than the whole stream

Kinesis Data Streams assigns sequence numbers to records within a shard. Use partitioning that keeps related events together when their relative order matters, and account for producer sequencing and retries. A multi-shard stream does not provide a single total order across unrelated partition keys.

Trap Sorting all stream records by sequence number as though sequence numbers form a globally ordered stream-wide counter.

3 questions test this

Use event time in Amazon Managed Service for Apache Flink when features such as windowed transaction counts must reflect source-event timestamps despite delivery delays. Processing time instead follows the clock of the machine executing the operation, and ingestion time follows entry into the service. Select the time basis that matches the feature's business meaning.

Trap Using processing-time windows for event-occurrence statistics when network delays can move records into later processing windows.

3 questions test this
Kafka topics organize streams into partition-level ordered logs

Apache Kafka organizes records into named topics, with each topic divided into partitions that act as ordered logs. Producers append records to a partition and consumers read from positions within that log. Use partition-aware ingestion when related records need ordered processing; parallel partitions do not form one globally ordered topic log.

3 questions test this
Kafka consumer groups distribute partitions among workers rather than broadcast every record

Use the same Apache Kafka consumer group for workers that should share one ingestion workload. Within a group, a partition is assigned to only one consumer at a time, so partition count bounds useful consumer parallelism. Use separate consumer groups when independent applications each need to consume the stream for their own purpose.

Trap Increasing topic replication to give more workers partition assignments, which adds redundant record copies rather than additional partitions for the group to share.

3 questions test this
Kafka committed offsets record where a consumer group should resume

Apache Kafka offsets identify positions within topic partitions, and committed consumer-group offsets preserve consumption progress for resumption. Keep the intended group identity and its saved offsets when restarting an ingestion consumer. Replay also requires the source records to remain within the topic's retained history; saving a position does not retain the underlying records indefinitely.

Trap Relying on topic replication alone to resume a restarted consumer: replication adds copies of each partition for durability, while a consumer that rejoins its group resumes from the consumer group's committed offset.

3 questions test this
Firehose dynamic partitioning can route records by their content and event date

When S3 delivery must group records by customer or the date the source event occurred, use Amazon Data Firehose dynamic partitioning with keys extracted from each record. Firehose evaluates the configured S3 prefix expression and groups records with the same result for delivery. Deriving date components from the record's event timestamp also places delayed events with their event-date data rather than merely with records that arrived together.

2 questions test this
Firehose dynamic partition cardinality can exhaust capacity despite modest total traffic

Amazon Data Firehose creates a separate buffer for every active dynamically evaluated S3 prefix, and each buffer is delivered independently when its size or time condition is met. Many low-volume prefixes can therefore produce small objects and a high active-partition count even when aggregate ingestion throughput is modest. Check partition cardinality and stalled deliveries when diagnosing active-partition errors: a partition remains active until its buffered data is delivered, and exceeding the active-partition quota routes excess records to the S3 error prefix.

Trap Increasing the buffering interval to address small files when active-partition capacity is already exhausted, which can keep more partition buffers active for longer.

2 questions test this
Firehose can insert newline separators between records delivered to S3

Enable Firehose's new line delimiter option when downstream readers need newline-separated records within delivered S3 objects. This setting adds separators between output records, whereas multi-record deaggregation splits logical events bundled inside an input record. Choose the setting for the boundary that needs to change: output record separation or input event separation.

Trap Using Firehose's JSON-to-Parquet conversion to meet a newline-delimited text requirement, which produces a columnar format instead of the expected text records.

Firehose partition-key failures can be diagnosed from the S3 error prefix

A missing or differently named field can prevent Firehose from extracting the configured dynamic partition key and evaluating the destination prefix. Firehose delivers records that fail parsing, key extraction, or prefix evaluation to the required S3 error prefix, organized by error type and accompanied by error details. Inspect those details and compare the failed record's field names and structure with the extraction expression before correcting the producer or routing configuration.

Trap Requesting a higher active-partition quota for missing-key errors, which changes partition capacity rather than repairing the record fields used for routing.

2 questions test this
Firehose loads Redshift through S3 staging and a COPY command

For an Amazon Redshift destination, Amazon Data Firehose first delivers streaming records to an S3 bucket and then issues a Redshift COPY command to load them into the cluster. Include that staging bucket in the delivery configuration and distinguish successful S3 delivery from completion of the Redshift load. If source-record backup is also enabled for transformed data, that optional backup serves a separate purpose from the S3 staging step.

2 questions test this
RDS for PostgreSQL with pgvector adds vector retrieval to relational data

When an existing PostgreSQL application must combine SQL data with embedding similarity search, use the pgvector extension on a supported Amazon RDS for PostgreSQL version. It supplies vector storage and similarity operations within the database. Keep this choice distinct from moving the dataset into a separate search service when the stated requirement is to retain relational integration.

Trap Moving relational records into an OpenSearch index solely to obtain vectors when the requirement specifically calls for SQL integration inside the existing database.

2 questions test this
OpenSearch Service supports text search alongside vector similarity

Use Amazon OpenSearch Service when an existing retrieval workload needs both full-text search and vector similarity. Store embeddings in a vector field and retain searchable text or structured fields for the other query requirements. Embedding generation remains a separate preparation step unless an explicitly configured model integration performs it.

Trap Selecting a vector-only similarity operation as a replacement for exact keyword matching when both retrieval behaviors are required.

2 questions test this
S3 Vectors uses vector buckets and indexes rather than ordinary object listings

Amazon S3 Vectors stores embeddings in vector indexes within vector buckets and exposes similarity-query operations. Use these resources when the specified workload needs S3-native vector storage and retrieval. Uploading arrays into ordinary S3 objects preserves the bytes but does not itself create a similarity-search index.

Trap Storing embeddings as JSON objects in a general-purpose S3 bucket and expecting object-list operations to perform nearest-neighbor search.

2 questions test this
Every vector in an S3 vector index must match its configured dimension

Configure an S3 vector index with the embedding model's selected output dimension. Every inserted vector must have exactly that number of values. Changing to a different output dimension requires a new index because the dimension of an existing index cannot be updated.

Trap Padding a newly generated shorter embedding with arbitrary values to reuse an incompatible index, which changes the intended vector representation.

2 questions test this
The vector distance metric should follow the embedding model's recommendation

Choose the index distance metric that the embedding model recommends. In S3 Vectors, cosine distance emphasizes vector direction, while Euclidean distance incorporates straight-line separation and therefore magnitude. Changing the metric of an existing S3 vector index requires a new index rather than an in-place setting change.

Trap Choosing cosine distance for a representation whose required similarity depends on vector magnitude as well as direction, although cosine comparison discards that magnitude distinction.

2 questions test this
Only filterable vector metadata can restrict S3 similarity queries

Keep attributes such as document category filterable when retrieval must restrict results by those attributes. S3 Vectors metadata is filterable unless configured as non-filterable; non-filterable fields can accompany returned vectors but cannot be used as query filters. Long source text that is returned for context is a suitable candidate for non-filterable metadata.

Trap Marking a required category-filter field as non-filterable to save filterable metadata space, which removes that field from filtering operations.

2 questions test this
Approximate nearest-neighbor search trades exactness for retrieval efficiency

When an OpenSearch vector workload needs scalable similarity retrieval, an approximate nearest-neighbor index can avoid exhaustively comparing every stored vector. Approximation can miss neighbors that exact search would return, so evaluate recall as well as query latency. Use exact search when the required result guarantees and dataset size justify exhaustive comparison.

Trap Treating approximate nearest-neighbor results as guaranteed identical to exhaustive search merely because both return a requested number of neighbors.

2 questions test this
Knowledge-base synchronization incrementally processes source changes

After adding, modifying, or removing documents in a connected knowledge-base source, synchronize the source so the indexed content reflects those changes. Synchronization processes documents changed since the preceding sync rather than requiring every unchanged document to be processed again. Updating the source files alone does not complete the indexing step.

Trap Recreating the entire knowledge base after every document edit to refresh retrieval, although incremental synchronization processes the source changes.

2 questions test this
Scanned documents need OCR before ordinary text preprocessing

When source PDFs contain page images rather than an extractable text layer, use OCR such as Amazon Textract to obtain text. Ordinary PDF text extraction is appropriate for digitally authored documents with embedded text. Inspect the extracted output because document layout can affect reading order and field interpretation.

Trap Using a text-only PDF parser on scanned page images, which have no embedded text for that parser to extract.

2 questions test this
HTML ingestion should separate page content from navigation boilerplate

When preparing web pages as a text corpus, extract the passages that bear on each page's subject rather than keeping a raw HTML dump, so less of the model's input goes to boilerplate and navigation, and keep the headings, which help RAG models understand document structure. When menus repeat across pages, a dump of every visible string can overrepresent those menus rather than each page's subject.

Trap Using a dump of every visible string as clean article content, which includes repeated navigation and unrelated page elements.

2 questions test this
Transcribe batch and streaming transcription have different input requirements

Use Amazon Transcribe batch transcription for media files in Amazon S3 and streaming transcription for live media streams. Supported audio formats differ between these modes, so a format accepted by a batch job is not automatically a valid streaming encoding. Validate the actual encoding before choosing the ingestion mode.

Trap Sending a WAV file unchanged as streaming PCM because batch transcription accepts WAV, although a WAV container is not raw PCM stream encoding.

2 questions test this
Speaker partitioning and channel identification solve different audio layouts

Use Transcribe speaker partitioning when multiple speakers share one audio channel and their speech must be distinguished. Use channel identification when speakers are already separated into different audio channels. Both can produce a single transcript file, so the number of output files is not the selection criterion.

Trap Selecting channel identification to separate speakers mixed into one channel, which provides no separate channels for that feature to identify.

2 questions test this
A declared audio sample rate must match the actual recording

Amazon Transcribe streaming requests require the audio sample rate, while batch requests can omit it. When supplied, the rate must describe the actual audio; changing the declared number does not resample the recording. A mismatch can make a transcription request fail.

Trap Declaring a higher sample rate to improve low-fidelity audio, which changes request metadata rather than the samples themselves.

2 questions test this
Long-lived transcription datasets should be saved to controlled storage

For batch transcripts that must remain available as training data, specify an Amazon S3 output bucket you control and grant Transcribe permission to write there. Service-managed output provides temporary download access and is removed when the transcription job expires. A temporary download link is not a durable dataset location.

Trap Saving only the service-managed transcript download URL as the permanent dataset reference, although that URL expires.

2 questions test this
Image ingestion must validate usable image assets rather than just file locations

An image corpus needs decodable files in formats and dimensions supported by the consuming workflow. During ingestion, identify corrupted images and create resized working copies where required, while retaining the original assets and a source reference linking each prepared image to its origin. Data Wrangler supports image import, corrupted-image removal, and resizing; a Ground Truth input manifest's source-ref entries can preserve the association between an S3 image location and its dataset record.

Trap Replacing the image corpus with OCR text, which preserves extracted characters but not the visual assets required by an image workflow.

2 questions test this
Feature Store online and offline stores serve different access patterns

Use the Feature Store online store for low-latency access to current feature values and the offline store for historical training datasets and batch analysis. A feature group can use either store or both. The offline store preserves history in Amazon S3 rather than acting as the low-latency current-value lookup.

Trap Querying the offline store for every latency-sensitive inference request because it contains the complete history, which substitutes analytical access for the online lookup path.

3 questions test this
Feature group ingestion requires a defined record schema and event time

Before ingesting features, define the feature names and types, the record identifier, and the event-time feature. The record identifier identifies the entity, while event time identifies when the feature record applies. Validate incoming values against this contract rather than treating a feature group as an arbitrary schemaless document collection.

Trap Using the ingestion job's run identifier as every entity's record identifier, which collapses unrelated entities under the same lookup key.

3 questions test this
Feature Store uses event time to distinguish current values from history

When an ingested record has a later event time than the existing record for that entity, it can replace the current online value. Older historical records are written to the configured offline history instead of replacing newer online state. This allows historical backfills without making current features stale.

Trap Assuming the last-arriving historical record becomes the online value solely because it was ingested last, which ignores event-time ordering.

3 questions test this
Feature Store can target offline ingestion without changing online features

When a historical dataset should populate only the offline store, explicitly target that store during ingestion. Otherwise, Feature Store targets the stores configured for the feature group, subject to event-time rules. Store targeting controls where records are ingested; it does not create a store that was never configured.

3 questions test this
A Feature Store PutRecord write replaces a record rather than patching one field

Feature Store PutRecord performs a full-record overwrite, so provide the feature values that the resulting record must contain. Use UpdateRecord with the Standard_V2 online store tier when the requirement is to change individual feature values without replacing the rest. Selecting the write semantics prevents an ingestion update from unintentionally dropping unrelated values.

Trap Sending only one changed feature in a full-record replacement and expecting omitted features to be merged automatically.

3 questions test this
Feature Store accepts both incremental updates and batch feature loads

Use streaming record writes when updated features must become available as individual source updates arrive. Use a batch processing workflow, such as a Data Wrangler export executed as a SageMaker AI Processing job, for scheduled bulk feature preparation and ingestion. Both approaches populate feature groups rather than requiring separate feature definitions for each arrival mode.

Trap Building a separate feature repository solely because source updates arrive in batches, although Feature Store supports batch ingestion.

3 questions test this
Offline feature history needs explicit snapshot selection for training

Feature Store's offline store is append-only historical storage in Parquet, so a raw query can return several versions of the same entity. Select the required time horizon and handle deleted or duplicate records when constructing a training dataset. The dataset-building helpers can perform this filtering; a raw table scan does not inherently represent one current row per entity.

Trap Treating every offline history row as an independent current entity, which mixes multiple feature versions into the training population.

3 questions test this

Transform data and engineer features

Read full chapter
  • DataBrew recipes preserve an ordered sequence of preparation steps
  • A Data Wrangler flow must be executed on the full dataset for production output
  • Glue job bookmarks support incremental processing of supported sources
  • Rewinding a Glue bookmark does not remove existing target output
  • Glue bookmark pause processes data without advancing saved bookmark state
  • Spark on EMR supports distributed preprocessing in an existing batch environment
  • Inference preprocessing must reuse the transformations fitted during training
  • Feature metadata enables reuse without embedding sensitive values in descriptions
  • Feature Store TTL is based on event time and applies to online records
  • Record-level TTL overrides a feature group's default retention duration
  • A Firehose transformation must finish within Firehose's invocation limit
  • A Firehose transform must identify the disposition of each record
  • Firehose transformation batches must fit Lambda request and response limits
  • Glue streaming jobs use checkpoints for recovery rather than batch bookmarks
  • Windowed feature aggregation needs a stateful streaming processor
  • Firehose partition-key extraction needs Lambda when the payload is not directly parseable JSON
  • Flink checkpoints and snapshots preserve application state across different restart paths
  • Firehose must separate bundled events before dynamically partitioning them
  • Flink Studio suits interactive exploration while IDE development supports maintained streaming applications
  • Flink's DataStream API supports fine-grained state control and custom timers
  • Flink asynchronous I/O overlaps external enrichment requests instead of waiting for each response
  • Stable Flink operator UIDs preserve saved-state associations as application flow evolves
  • Tumbling windows form disjoint intervals while hopping windows can overlap
  • Unseen categories follow the fitted encoder's Invalid handling strategy
  • Min-max scaling and standardization produce different numeric representations
  • Robust scaling uses statistics resistant to outliers
  • A log transformation can compress a positive long-tailed feature
  • Binning represents a numeric measurement by its interval
  • One-hot encoding represents nominal categories without imposing a numeric ranking
  • Feature splitting exposes useful components of a compound value
  • Unit-vector normalization rescales each vector rather than each feature column
  • Custom tokenization can preserve domain-specific text distinctions
  • Term-frequency and document-frequency filters remove different kinds of text features
  • Embedding models produce numerical representations rather than generated answers
  • Query and document embeddings must use a compatible embedding space
  • Multimodal embeddings can place text and images in a shared retrieval space
  • Embedding input limits require segmenting oversized documents
  • TF-IDF combines local term frequency with corpus-wide term rarity
  • Feature hashing avoids a stored vocabulary but can collide terms
  • Knowledge-base CSV ingestion separates one content column from metadata columns
  • A higher semantic breakpoint threshold generally produces fewer larger chunks
  • Multimodal chunking depends on whether media is embedded directly or converted to text
  • Overlapping fixed-size chunks preserve context across chunk boundaries
  • Semantic chunking uses meaning to locate document boundaries
  • Hierarchical chunking combines focused matching with broader returned context
  • No chunking preserves each source document as a single retrieval unit
  • A knowledge-base data source's chunking strategy cannot be changed in place
  • Document metadata supplies retrieval filters separately from embedded content
  • Comprehend PII detection locates sensitive spans in text
  • PII redaction can conceal characters or replace spans with entity types
  • Deterministic encryption preserves equality patterns in protected columns
  • Reversible protection requires encryption rather than hashing or removal
  • Substitution and shuffling preserve different properties of sensitive data
  • Anonymization requires preventing likely identification rather than merely replacing identifiers
  • Fine-tuning demonstrations and continued-pretraining corpora serve different purposes
  • Bedrock customization data must satisfy both JSONL syntax and the model's schema
  • Training conversations should match the structure used at inference
  • Distillation prompts should represent the workload the student must perform
  • Multimodal fine-tuning examples must keep media linked to the correct conversation
  • Domain-specific text augmentation must preserve the intended task and answer

Unlock with Premium — includes all practice exams and the complete study guide.

Validate data quality and manage bias

Read full chapter
  • DQDL checks require supported columns rather than nested or list-valued data
  • Glue Data Quality rules turn data requirements into repeatable checks
  • A valid primary key must be both non-null and unique
  • Referential integrity checks validate keys against a reference dataset
  • A schema-valid dataset can still be too stale for its intended use
  • Aggregate reconciliation can detect missing value even when row counts match
  • Data Wrangler insights identify anomalous samples and dataset quality issues
  • A private Ground Truth work team assigns labeling to selected workers
  • The labeling task must match the prediction's required spatial detail
  • Named entity annotation labels spans rather than whole documents
  • Automated labeling uses human input where automatic confidence is insufficient
  • Label verification assesses annotations while adjustment corrects them
  • Deduplicate source examples before assigning independent dataset splits
  • Split by key keeps related observations from appearing in more than one partition
  • Time-dependent evaluation should preserve the direction from past to future
  • Stratified splitting preserves category representation across partitions
  • Shuffling changes record order without repairing missing population coverage
  • Keep augmented variants of an example out of the validation and test partitions
  • Pretraining bias metrics examine the dataset before predictions exist
  • The Class Imbalance bias metric measures representation of facet groups
  • Balanced group counts do not guarantee equal positive-label proportions
  • Conditional disparity analysis can reveal patterns hidden by aggregate rates
  • Multimodal distribution checks need meaningful labels and group metadata
  • Data bias remediation should correct the collection or annotation process that produced the disparity
  • Oversampling increases minority exposure without removing majority examples
  • Undersampling reduces class dominance by discarding majority examples
  • SMOTE creates synthetic minority examples by interpolating feature vectors
  • Class weighting changes the training penalty without resampling records
  • Image augmentation is valid only when the transformation preserves the target meaning
  • Median imputation limits the influence of extreme observed values
  • Categorical imputation and Fill missing are different choices
  • A missing-value indicator preserves whether a value was originally absent
  • Outliers should be handled according to validity and the model's intended population
  • Outlier detection methods differ in their sensitivity to extreme values
  • Exact-match deduplication does not detect every near-duplicate document
  • Prompt-response validation must check correctness as well as file syntax
  • Training content needs its own safety screening before customization
  • Training integrity includes coverage of realistic requests and edge cases

Unlock with Premium — includes all practice exams and the complete study guide.

ML Model and Foundation Model (FM) Development

Choose ML and AI modeling approaches

Read full chapter

Cheat sheet

Sharp facts the exam loves — scan these before test day.

A foundation model must support both the required input and output modalities

Choose a foundation model by checking input and output modalities separately. A model that understands images and produces text can describe an image but is not thereby an image generator. For image creation, select a model explicitly supporting image output, such as Stability AI Stable Image Ultra in Amazon Bedrock.

Trap Choosing a multimodal understanding model for image generation because image input support is mistaken for image output support.

3 questions test this
Context window and maximum output tokens are separate model constraints

A foundation model's context window and maximum output tokens constrain different parts of a request. When processing long documents, compare the model card's context window and maximum output tokens with the required input context and response length; a large context window does not imply equally long generated responses. Choose a model that satisfies both constraints.

Trap Selecting solely by context-window size when the required response exceeds the model's separate output limit.

3 questions test this
Task-specific evaluation distinguishes foundation models better than model card capability labels alone

When several Amazon Bedrock models support the task, evaluate their responses on prompts representative of that task. Use the relevant quality metrics and compare results before selecting a model. Supporting text generation establishes compatibility, not that a model meets a particular domain's accuracy or response-quality requirement.

Trap Selecting from the model card's modality support alone, which establishes supported inputs and outputs rather than measured task quality.

3 questions test this
A lower-cost model is appropriate when it meets the measured quality and latency requirements

Choose among foundation models using task quality, latency, and cost together. Amazon Bedrock offers model variants with different capability and price-performance profiles, so a simpler text task can be served by a faster, lower-cost option if it passes the required evaluation. More capable models remain appropriate when the task requires the additional capability.

Trap Choosing the most capable model for every request without checking whether the additional capability is needed within the latency and cost budgets.

3 questions test this
An embedding model produces vectors for retrieval rather than conversational answers

When the application needs semantic representations for a vector index, use an embedding model such as Amazon Titan Text Embeddings. It returns numeric vectors; the vector database performs similarity search. A separate generative model can use the retrieved text to compose an answer.

Trap Using a text-generation response as the vector-index value, because generated prose is not the embedding representation the index searches.

3 questions test this
Foundation model features must be checked for the exact model and version

Amazon Bedrock model capabilities are not uniform across a family or across versions. Check the chosen model's support for required features such as streaming, fine-tuning, and the intended API before committing to it. A model can support inference while lacking a customization feature available on another member of its family.

Trap Choosing a model by family name and inheriting another family member's fine-tuning support, which is specified per model.

3 questions test this
Supervised fine-tuning learns a task's desired behavior from labeled examples

When prompting is insufficient for a well-defined output style, format, or task behavior, consider supervised fine-tuning with representative input-output pairs. Training adjusts model parameters toward the demonstrated responses. The technique is a behavior-customization choice rather than the default mechanism for supplying continually changing reference information.

Trap Choosing retrieval alone to teach a persistent output style, because retrieved reference passages supply context rather than parameter updates from demonstrations.

3 questions test this
LoRA fine-tuning updates adapters instead of all model parameters

When a supported customization workflow must adapt a model on a compute budget that covers only adapter training, consider LoRA, a parameter-efficient fine-tuning method. It trains small adapter matrices while the base model weights stay frozen, which SageMaker AI documents as lower cost, faster training, and smaller artifacts. Full fine-tuning updates all model weights and is a different resource commitment.

Trap Choosing full fine-tuning for an adapter-only resource budget, because it updates all model weights.

3 questions test this
Reinforcement fine-tuning uses scored feedback when a single target response is unsuitable

When response quality can be scored but there is no single desired answer for each input, consider supported reinforcement fine-tuning in Amazon Bedrock. Reward functions evaluate generated responses and supply feedback for iterative learning. Supervised fine-tuning instead learns from labeled input-output demonstrations.

Trap Choosing supervised fine-tuning with only unlabeled prompts and no target responses, which omits the demonstrations that supervised training needs.

3 questions test this
Distillation transfers task behavior through teacher-generated training responses

When a capable teacher model meets quality requirements but is too expensive or slow for the target workload, evaluate Amazon Bedrock Model Distillation with a supported student. Bedrock generates teacher responses for use-case prompts and fine-tunes the student on those responses. Evaluate the resulting student's task quality rather than assuming it inherits all of the teacher's capabilities.

Trap Using a prompt router when a separately trained student is required, because routing selects among existing models without transferring teacher behavior.

3 questions test this
Additional fine-tuning epochs increase the volume of training tokens processed

Amazon Bedrock customization training charges depend on the tokens processed during training, including repeated passes through the training corpus. Increasing the epoch count therefore increases training work even when the dataset is unchanged. Choose training duration from validation results and the budget rather than treating additional epochs as free quality improvement.

Trap Budgeting training from the corpus size alone, which ignores repeated token processing across epochs.

3 questions test this
Continued pre-training adapts an existing foundation model using unlabeled domain text

When an existing foundation model needs deeper familiarity with domain terminology and writing patterns and a substantial unlabeled corpus is available, consider supported continued pre-training. It continues training the existing model on raw domain documents rather than requiring input-output demonstrations, and you can then fine-tune the adapted model for downstream tasks with significantly fewer labeled records. Supervised fine-tuning instead teaches demonstrated task responses, while RAG supplies current reference material at inference time without retraining the model whenever that material changes.

Trap Using model distillation to introduce a new domain corpus, although distillation transfers a teacher's task behavior through generated responses rather than learning directly from unlabeled documents.

3 questions test this
The prediction target determines whether a supervised task is classification or regression

For labeled tabular data, choose classification when the required output is a discrete category and regression when it is a continuous value. Amazon SageMaker AI algorithms such as Linear Learner and XGBoost support these problem families. Configure the learning objective for the target rather than inferring it from whether the input columns are numeric.

Trap Choosing regression for numeric class codes, because a numeric encoding does not turn categorical outcomes into continuous targets.

3 questions test this
K-means discovers groups when category labels are not supplied

When the task is to group customers by similar measured behavior without predefined segment labels, consider the Amazon SageMaker AI K-Means algorithm. Clustering discovers groupings from feature similarity. Supervised classification is appropriate when labeled examples define the categories to predict.

Trap Choosing a supervised classifier for an unlabeled segmentation dataset, which supplies no target categories for supervised training.

3 questions test this
Random Cut Forest identifies unusual observations without requiring anomaly labels

For an unlabeled dataset where the objective is to flag observations that differ from normal patterns, consider Amazon SageMaker AI Random Cut Forest. It is an unsupervised anomaly-detection algorithm. Its anomaly scores identify unusual observations for investigation rather than directly establishing a business label such as confirmed fraud.

Trap Treating an anomaly score as a confirmed fraud classification, which substitutes unusualness for a labeled business outcome.

4 questions test this
DeepAR matches forecasting tasks that predict future time-series values

When the required prediction is future behavior from historical time-series observations, consider Amazon SageMaker AI DeepAR. Forecasting differs from assigning a category to the current record. Select and evaluate the forecasting approach against the future values the application must predict.

Trap Choosing K-Means to produce future numeric forecasts, because clustering groups observations rather than predicting a future sequence.

3 questions test this
Topic modeling discovers document themes rather than predicting predefined labels

When a document corpus has no topic labels and the requirement is to discover themes, use an unsupervised topic model such as LDA or Neural Topic Model. Use supervised text classification when the required categories are already defined and labeled examples are available. The distinction is whether topics are discovered or supplied as targets.

Trap Choosing an unsupervised topic model for exact business-category prediction, because discovered topics need not correspond to the required labels.

3 questions test this
Object detection returns locations that image classification does not provide

When an application must locate multiple objects within an image, choose object detection rather than image-level classification. Supported Amazon SageMaker AI object-detection models return bounding boxes and labels. Image classification is appropriate when a label for the image as a whole satisfies the task.

Trap Choosing image classification for a bounding-box requirement, because image-level labels do not locate individual objects.

3 questions test this
Semantic segmentation is appropriate when every image pixel needs a category

For a computer-vision task requiring pixel-level category assignments, select semantic segmentation. Amazon SageMaker AI provides a built-in semantic-segmentation algorithm for this fine-grained output. Bounding-box detection is sufficient when approximate object locations, rather than pixel boundaries, meet the requirement.

Trap Choosing object-detection boxes for a pixel-mask requirement, because a rectangle does not classify each enclosed pixel.

3 questions test this
BlazingText supports efficient supervised text classification

When labeled documents must be assigned to predefined categories, Amazon SageMaker AI BlazingText provides an optimized text-classification implementation. It also offers Word2vec functionality, but that mode produces word representations rather than category predictions. Choose the mode that matches the required output.

Trap Selecting BlazingText's Word2vec mode for direct document-category predictions, because word embeddings are representations rather than classification outputs.

3 questions test this
Sequence-to-sequence models fit supervised transformations between token sequences

When paired examples map an input sequence to an output sequence, consider a sequence-to-sequence approach. Amazon SageMaker AI's built-in algorithm supports tasks such as translation and summarization. This differs from text classification, which selects a category instead of generating a new sequence.

Trap Using a text classifier for translation, because its category output cannot express an arbitrary translated sentence.

3 questions test this
Explanation requirements can justify choosing an inherently interpretable model

When a requirement calls for directly understandable decision logic, choose an inherently interpretable candidate, such as a simple linear model or small decision tree, if it meets the required predictive performance. Its weights or decision rules expose how inputs determine predictions, which can justify accepting lower accuracy than a more complex candidate. Post-hoc feature attribution explains aspects of an already trained model's behavior; it does not make that model's internal decision logic inherently simple.

3 questions test this
A built-in algorithm avoids implementing the training algorithm yourself

When an Amazon SageMaker AI built-in algorithm fits the data and prediction task, supply data, hyperparameters, and compute configuration to run training. The algorithm implementation is already provided. This reduces development effort compared with writing an equivalent training implementation in a framework script.

Trap Reimplementing an available built-in algorithm in a framework script when the sole requirement is equivalent training with minimal custom code.

3 questions test this
SageMaker JumpStart provides reusable pretrained models and solution templates

When a supported pretrained model or solution template already fits the application task, use Amazon SageMaker JumpStart as a starting point. It offers reusable options for tasks such as text analysis and computer vision. This avoids implementing and training a comparable model from scratch while preserving the need to evaluate it on the intended workload.

Trap Starting a new model-training implementation for a task already satisfied by a suitable pretrained model, which adds development and training work.

3 questions test this
Amazon Bedrock provides managed foundation model access without operating model hosts

When the existing application needs supported foundation models through a managed service, choose Amazon Bedrock rather than building model-serving infrastructure. Bedrock exposes foundation-model capabilities through APIs and supplies associated customization and evaluation features. Amazon SageMaker AI remains appropriate when the workflow requires greater control over custom model development and training.

Trap Building a custom model-serving stack for a supported Bedrock model when the requirement is managed API access with minimal hosting operations.

3 questions test this
A task-specific AWS AI API can remove the need to train a general model

When a business task matches a pretrained AWS AI capability, use the task-specific service if it meets the required quality and customization needs. Services such as Amazon Textract and Amazon Comprehend expose document-analysis functions directly. A custom training workflow earns its additional effort when the managed capability does not satisfy the task.

Trap Training a custom model solely to reproduce an adequate pretrained API, which adds model-development work without satisfying an additional requirement.

3 questions test this
Built-in algorithm scaling support must be checked before selecting training resources

Amazon SageMaker AI built-in algorithms do not all support the same CPU, GPU, or multi-instance training configurations. Select resources supported by the chosen algorithm rather than assuming every managed algorithm distributes automatically. For example, the built-in sequence-to-sequence algorithm supports GPU training on a single machine, including supported multi-GPU instances.

Trap Adding multiple training instances to an algorithm documented for single-machine training, because managed execution does not override algorithm support.

3 questions test this
SageMaker Autopilot automates model development rather than only running a chosen algorithm

When a supported prediction task needs automated model development with minimal manual experimentation, use Amazon SageMaker Autopilot. Its AutoML workflow performs data analysis and preprocessing, explores algorithms, searches hyperparameters, trains candidates, and ranks them using validation performance. Manually selecting a built-in algorithm is appropriate when the algorithm is already chosen, while a custom training script provides control over training logic that the automated workflow does not supply.

Trap Using automatic model tuning alone as a replacement for an AutoML workflow, although tuning optimizes the supplied training configuration rather than supplying the whole preprocessing and candidate-development process.

3 questions test this
SageMaker Canvas supports custom predictive modeling through a no-code interface

When users need to build, evaluate, and use a custom predictive model without writing code, choose Amazon SageMaker Canvas for a supported prediction task. Its interface lets users import their data, build a model trained on that data, evaluate its performance, and generate predictions. Supported custom-model tasks include regression, classification, and time series forecasting, so the selection depends on both the required prediction type and the need for a no-code workflow.

Trap Using Canvas Ready-to-use models for a requirement to train a custom predictor on the user's data, because those models provide pretrained AI capabilities rather than that custom training workflow.

RAG supplies private or changing knowledge at inference time

When answers need current private reference information, use RAG to add relevant source material to the prompt. The model can use this context without being retrained whenever the information changes. Fine-tuning is better suited to changing learned task behavior than to maintaining a frequently updated reference corpus.

Trap Repeatedly fine-tuning solely to refresh a changing reference catalog, which turns content updates into training jobs.

3 questions test this
Bedrock Knowledge Bases manages semantic retrieval over documents in Amazon S3

For an existing document repository in Amazon S3, Amazon Bedrock Knowledge Bases can manage ingestion, chunking, embedding, and retrieval for a RAG application. It maintains the relationship between indexed chunks and their sources. This supplies a managed retrieval layer rather than requiring a custom document-to-vector pipeline.

Trap Using Amazon Textract as the semantic-search index, because document extraction does not provide the vector-retrieval layer.

3 questions test this
Retrieve separates source retrieval from answer generation

When an application needs retrieved passages for its own downstream generation logic, use the Retrieve operation of Amazon Bedrock Knowledge Bases. RetrieveAndGenerate combines retrieval with model invocation and returns a generated answer with source citations. Choose according to whether the application or the managed operation should compose the answer.

Trap Calling RetrieveAndGenerate for a retrieval-only component, which adds answer generation that the application intends to control separately.

3 questions test this
A structured knowledge base can query existing tables without first embedding every row

When the reference data already resides in a supported structured store, Amazon Bedrock Knowledge Bases can translate natural-language questions into suitable queries and retrieve the results. GenerateQuery provides query conversion separately when the application needs that control. This pattern uses the existing schema rather than requiring an unstructured-document vector workflow.

Trap Exporting every table row to text solely to enable retrieval, despite a supported structured-store connection that can query the data directly.

2 questions test this
GraphRAG retrieves related context when answers depend on connections across documents

When a RAG workload needs facts connected through multiple document relationships, consider Amazon Bedrock Knowledge Bases GraphRAG with Amazon Neptune Analytics. It expands initial vector-search results by traversing related graph nodes or chunks. This is useful when independently similar passages omit relationships needed for a complete answer.

2 questions test this
Textract document analysis preserves form and table structure

When a document workflow needs form fields or table cells rather than just recognized text, choose Amazon Textract document analysis. Its form and table capabilities extract structured relationships from the document. Text detection (DetectDocumentText) is sufficient when words and lines alone satisfy the requirement.

Trap Choosing text detection (DetectDocumentText) for structured form extraction, because recognized words alone do not supply form and table relationships.

3 questions test this
Textract asynchronous operations support multipage document processing

When a workflow must process multipage documents, choose an appropriate asynchronous Amazon Textract operation. Synchronous processing is suited to supported single-page documents when immediate response latency matters. Select the processing mode from document structure and response timing together.

Trap Selecting synchronous document processing for a multipage input, which exceeds the documented single-page scope of that mode.

3 questions test this
Textract expense analysis targets invoices and receipts

When the application needs invoice or receipt information, use Amazon Textract AnalyzeExpense rather than assembling equivalent extraction from text detection. The specialized analysis is designed for these document types. Generic document analysis remains suitable for other forms and tables.

Trap Using only text detection and custom parsing for standard expense extraction, which discards the purpose-built invoice and receipt capability.

3 questions test this
Textract Queries extracts requested information from documents

When a document workflow needs specific information expressed as questions, use the Queries feature in Amazon Textract document analysis. It targets the requested information rather than requiring the application to inspect every extracted word. Custom Queries can adapt this pretrained capability to a particular document use case.

3 questions test this
Rekognition Custom Labels recognizes business-specific visual categories

When generic image labels do not cover proprietary products or logos, use Amazon Rekognition Custom Labels with examples of the required categories. It supports custom visual classifiers without requiring a from-scratch vision implementation. General label detection is appropriate when the pretrained categories already meet the requirement.

Trap Relying on generic label detection to distinguish proprietary product categories that its pretrained label set does not define.

3 questions test this
Rekognition content moderation identifies unsafe visual content with confidence scores

For image or video moderation, use Amazon Rekognition content-moderation capabilities. They return unsafe-content categories and confidence information that an application can apply to its review policy. This is different from ordinary object labeling or detecting sentiment in text.

3 questions test this
Targeted sentiment distinguishes opinions about different entities in the same document

When a review praises one product but criticizes another, use Amazon Comprehend targeted sentiment to associate sentiment with individual entities. Document-level sentiment summarizes the overall text and can obscure these differences. Choose the scope of sentiment analysis to match the business question.

Trap Using a single document sentiment label for entity-specific feedback, which collapses different opinions into an overall result.

3 questions test this
Custom classification and custom entity recognition produce different outputs

Use Amazon Comprehend custom classification to assign documents to your own categories. Use custom entity recognition to locate domain-specific terms and noun phrases within text. A document's category and the entities mentioned inside it are separate outputs, so select the custom model type accordingly.

Trap Choosing a document classifier to locate occurrences of domain-specific entities, because category assignment does not extract entity spans.

3 questions test this
Comprehend offers real-time analysis and asynchronous processing for different workload sizes

For small interactive document-analysis workloads, use Amazon Comprehend real-time operations where supported. For large document sets, use asynchronous analysis jobs. The processing choice should reflect the required response timing and workload rather than forcing a large corpus through an interactive workflow.

Trap Submitting an asynchronous corpus-analysis job for an immediate per-request response, because completion occurs through the job workflow.

3 questions test this
Transcribe streaming handles live audio while batch transcription handles stored recordings

When an application needs text from live audio, use Amazon Transcribe streaming for a supported language and Region. For recordings already stored in Amazon S3, use batch transcription. Both convert speech to text, but their input delivery and response timing fit different workloads.

Trap Choosing batch transcription of S3 recordings for a live transcription requirement, because the workflow expects stored media rather than the ongoing stream.

3 questions test this

Train and customize ML and AI models

Read full chapter
  • Script mode runs custom training code inside a supported framework environment
  • Training dependencies must be available in the remote framework environment
  • Training scripts read data through the job's configured input channels
  • Final model artifacts must be written to the designated model output directory
  • Bayesian tuning uses previous results to choose promising configurations
  • Random search supports independent concurrent tuning trials
  • Grid search enumerates the supplied categorical combinations
  • Hyperband reallocates training resources using intermediate trial performance
  • A tuning job optimizes one selected objective metric in the specified direction
  • Custom tuning metrics must be emitted and matched by metric definitions
  • Logarithmic search is suitable for positive ranges spanning orders of magnitude
  • Total trial limits and concurrent trial limits control different tuning resources
  • Warm-start tuning reuses search results rather than retained training infrastructure
  • Warm-start type determines whether the tuning dataset can change
  • Managed warm pools reduce startup time between matching training jobs
  • Warm-pool reuse requires matching resource and security settings
  • The warm-pool persistent cache survives matching jobs but not pool termination
  • Data parallelism distributes examples across replicas of a model
  • Model parallelism partitions a model that does not fit on one device
  • Early stopping saves training work when validation performance stops improving
  • Managed Spot Training trades interruption tolerance for lower training cost
  • Checkpoints let interrupted training resume instead of restarting from the beginning
  • More training workers do not guarantee lower training time or cost
  • Strong training performance with weak validation performance indicates overfitting
  • Poor training fit calls for learning capacity or training evidence before stronger regularization
  • Weight penalties and dropout reduce overfitting through different mechanisms
  • Mixing general-capability examples into fine-tuning can reduce catastrophic forgetting
  • Epochs count dataset passes while steps count training iterations
  • Reducing batch size can resolve training out-of-memory failures
  • Learning rate trades update speed against convergence stability
  • Learning-rate warmup gradually introduces the target update size
  • Bagging combines separately trained learners rather than a sequential correction chain
  • Stacking learns how to combine base-model predictions
  • Validation performance determines whether a base model or stacked ensemble is preferable
  • Intelligent prompt routing selects a model per request rather than combining generated answers
  • Few-shot prompting provides task examples without a training job
  • A task prompt needs both the instruction and the material to operate on
  • Temperature changes sampling variation rather than supplying missing knowledge
  • Top K limits candidate count while Top P limits cumulative probability mass
  • Output limits and stop sequences terminate generation for different reasons
  • Direct model requests need the relevant conversation history in the current input
  • Generation parameter support and ranges depend on the selected model
  • Prompt templates separate reusable instructions from changing inputs and support controlled comparisons
  • Hybrid retrieval combines raw-text matching with vector similarity
  • Metadata filters constrain which source documents are eligible for retrieval
  • Reranking reorders retrieved chunks using a relevance model
  • The requested retrieval result count is a maximum rather than a guarantee
  • Logical document segments can improve retrieval even when the embedding model accepts longer input
  • Multilingual input support does not guarantee strong cross-language retrieval
  • Bulk indexing and interactive query embedding have different performance priorities

Unlock with Premium — includes all practice exams and the complete study guide.

Evaluate ML and AI system performance

Read full chapter
  • MLflow connects experiment results with the parameters and artifacts that produced them
  • Managed MLflow separates service-hosted metadata from customer-owned artifact storage
  • A prompt version preserves a tested configuration while the draft continues to change
  • MLflow traces connect an AI response to the components that produced it
  • Bedrock can evaluate saved responses without invoking the generator again
  • Repeating an experiment requires preserving its inputs and execution environment
  • Data-quality monitoring compares observations with baseline statistics and constraints
  • A legitimate model-data update can require a new monitoring baseline
  • Model-quality monitoring requires actual outcomes as well as predictions
  • Feature-attribution drift tracks changes in model reliance on input features
  • A model performance baseline records predictive quality and acceptable metric boundaries
  • Shadow testing copies production requests without returning shadow responses to callers
  • Shadow tests evaluate serving changes as well as model changes
  • Prediction comparisons require retaining shadow outputs rather than discarding them
  • Shadow testing is restricted by endpoint feature compatibility
  • Local and global feature attributions answer different explanation questions
  • Removing one feature at a time can miss importance shared by correlated features
  • Training convergence diagnostics need training metrics and tensors rather than production drift checks
  • NaN or infinite training tensors indicate numerical instability
  • Poor weight initialization can prevent effective learning from the first steps
  • Persistently inactive ReLU units are a distinct training diagnostic
  • Precision is important when false positive predictions are costly
  • Recall is important when missing positive cases is costly
  • F1 summarizes the joint precision and recall tradeoff
  • ROC AUC compares binary ranking performance across thresholds
  • Balanced accuracy reduces the dominance of a majority class in evaluation
  • Log loss evaluates prediction probabilities and penalizes confident mistakes
  • RMSE emphasizes large regression errors more than MAE
  • Macro F1 gives each class equal influence in the final score
  • K-fold validation assesses performance across multiple held-out partitions
  • BLEU evaluates reference overlap through candidate n-gram precision
  • ROUGE measures lexical overlap useful for summary evaluation
  • ROUGE-L compares the longest shared word subsequence
  • BERTScore compares contextual representations rather than only exact words
  • Exact-match evaluation is appropriate only when exact answer equality is meaningful
  • An LLM judge evaluates generated responses against selected criteria
  • Human evaluation can assess subjective output quality with explicit instructions
  • The configured worker count determines how many ratings each prompt receives
  • Human evaluation can compare Bedrock outputs with supplied outputs from another model
  • An evaluation task label does not replace instructions to the model
  • A correct answer can still be incomplete or fail the requested format
  • Safety evaluation separates harmful content, stereotyping, and refusal behavior
  • Semantic robustness tests stability under meaning-preserving input changes
  • An evaluation score must be interpreted alongside missing model responses
  • Human-in-the-loop evaluation connects flagged outputs to review and corrective feedback
  • Bias detection requires comparing model behavior across relevant groups
  • Adversarial robustness evaluation tests deliberate attempts to mislead a model
  • Retrieve-only evaluation isolates retrieval quality from answer generation
  • Relevant retrieved passages may still omit information needed for the answer
  • Faithfulness checks whether generated claims are supported by retrieved evidence
  • Correct citations and complete citation support are separate quality requirements
  • RAG diagnosis needs the query, retrieved context, and generated answer together
  • A grounding judge must evaluate against the supplied evidence rather than the generator's prior conversation

Unlock with Premium — includes all practice exams and the complete study guide.

Deployment and Orchestration of ML and AI Workflows

Manage deployment infrastructure for ML and AI models

Read full chapter

Cheat sheet

Sharp facts the exam loves — scan these before test day.

Real-time inference fits interactive requests that require immediate predictions

When an application needs synchronous predictions with low latency and sustained throughput, use Amazon SageMaker AI real-time inference. Keep sufficient serving capacity available for the response-time requirement; Asynchronous Inference is appropriate when the caller can collect its result later.

Trap Using batch transform for an interactive transaction, which returns results through an offline job rather than the transaction's synchronous response.

3 questions test this
Batch transform scores stored datasets without a persistent endpoint

When predictions are needed for a stored dataset rather than individual online requests, use Amazon SageMaker AI batch transform. The job provisions compute for the workload and writes results to Amazon S3, avoiding the need to maintain a continuously running inference endpoint.

Trap Keeping a real-time endpoint running between scheduled scoring jobs, which reserves serving infrastructure even when the offline workload has no requests.

3 questions test this
Asynchronous inference queues large or long-running inference requests

When an application can wait for a result and submits large or long-running requests, use Amazon SageMaker AI Asynchronous Inference. Requests identify input in Amazon S3, and outputs are written to S3 rather than returned as synchronous predictions. Optional Amazon SNS notifications tell the application when processing succeeds or fails.

Trap Using Serverless Inference merely because traffic is intermittent, which does not supply the asynchronous S3 request-and-result workflow.

3 questions test this
On-demand Serverless Inference trades cold starts for lower idle cost

When inference traffic is intermittent and the application tolerates cold starts, use on-demand Amazon SageMaker AI Serverless Inference. SageMaker AI launches and scales compute with traffic and scales it to zero when idle, without requiring instance selection or instance-scaling policies.

Trap Choosing a continuously provisioned real-time endpoint for an idle-cost requirement despite accepting cold starts, which retains provisioned capacity between traffic bursts.

3 questions test this
Serverless Inference is unsuitable when required hosting features are excluded

Amazon SageMaker AI Serverless Inference does not support, among other features, GPUs, VPC configuration, Model Monitor, data capture, multiple production variants, or inference pipelines. When any of these is a deployment requirement, choose a compatible hosting mode such as real-time inference rather than treating all endpoint modes as interchangeable.

Trap Adding provisioned concurrency to a serverless endpoint to obtain GPU support, which warms serverless capacity without changing the endpoint's feature support.

3 questions test this
Multi-model endpoints share serving infrastructure among compatible models

When many models use the same ML framework and have compatible serving requirements, a SageMaker AI multi-model endpoint can host them in a shared serving container and instance fleet. Sharing raises utilization compared with a separate endpoint for every model. The application must tolerate loading delays for infrequently used models.

Trap Using an inference pipeline to host independent tenant models, which chains processing stages rather than selecting one model for each tenant request.

4 questions test this
Multi-model endpoint latency depends on whether the requested model is already loaded

A SageMaker AI multi-model endpoint loads models on demand and caches them in memory. Under memory pressure it unloads unused models, which can remain on the instance's storage volume for faster reloading. A model with strict latency requirements or disproportionately high traffic is a better candidate for dedicated hosting than for competing with infrequent models in this cache.

Trap Increasing the total number of model files in S3 to warm the endpoint, which does not load those models into serving memory.

5 questions test this
Adding a multi-model endpoint model does not require rebuilding the endpoint

To add a compatible model to an existing SageMaker AI multi-model endpoint, upload its artifact to the endpoint's configured S3 location and invoke that model. SageMaker AI loads the requested artifact dynamically, so adding a model does not require an endpoint update.

Trap Creating a production variant for every newly added tenant model, which uses variant-based deployment instead of the endpoint's dynamic model-loading mechanism.

4 questions test this
An inference pipeline runs dependent serving stages in sequence

When inference requires preprocessing, prediction, and postprocessing as a connected sequence, use a SageMaker AI inference pipeline. The containers run in order, passing each stage's output to the next. This keeps the serving transformations with the model instead of requiring the client to coordinate separate stage invocations.

Trap Using direct invocation of one container to run the entire chain, which addresses an individual container rather than serially executing all stages.

4 questions test this
Direct invocation lets independent containers share an endpoint

When separate models use different frameworks but should share SageMaker AI endpoint resources, a multi-container endpoint can expose containers through direct invocation. Each request selects its intended container rather than traversing an inference pipeline.

Trap Putting incompatible serving frameworks into one multi-model serving container, which assumes the shared-container compatibility that the models do not have.

4 questions test this
Inference components give each hosted model its own resource specification

SageMaker AI inference components describe a model and its CPU, accelerator, and memory requirements separately from the endpoint. Use them when several models should share endpoint infrastructure while being added, removed, or updated independently. The resource specification makes allocation explicit rather than assuming every model needs the same share of the host.

Trap Using endpoint traffic weights as GPU-memory reservations, which changes request routing rather than specifying a model's accelerator and memory requirements.

4 questions test this
SageMaker AI can host compatible models trained outside AWS

A model does not need a SageMaker AI training job to be hosted by SageMaker AI. For an externally trained model supported by an AWS-provided inference container, supply the model artifacts in Amazon S3 and select a compatible framework and version. The hosting configuration also needs a SageMaker AI execution role with access to the required resources.

Trap Retraining an otherwise compatible model solely to obtain a SageMaker AI training-job record, which is not a prerequisite for deployment.

3 questions test this
SageMaker AI model artifacts must be in the deployment Region

The S3 bucket containing a SageMaker AI model's artifacts must be in the same AWS Region as the model being created. When moving an externally trained model to another Region, place the artifacts in an appropriate regional bucket before creating the hosting model.

Trap Granting broader S3 permissions to compensate for a cross-Region artifact bucket, which changes authorization but not the regional deployment requirement.

3 questions test this
Custom Model Import brings supported external model weights into Bedrock

When a supported foundation-model architecture has been customized outside Amazon Bedrock and managed Bedrock inference is required, use Custom Model Import. Compatibility with the documented architecture and configuration is a prerequisite; this is an import of model weights, not a generic container-hosting service. Imported models can be invoked with on-demand inference.

Trap Uploading an arbitrary inference Docker image to Custom Model Import, which expects compatible model artifacts rather than a general-purpose serving container.

2 questions test this
Bedrock imports from S3 require supported model files and source access

For a Custom Model Import job whose source is Amazon S3, prepare the model files in Hugging Face weights format and give the import service role access to them. Cross-account buckets and KMS keys require corresponding access grants. A correct file format does not substitute for permission to read or decrypt the source.

Trap Granting only model-invocation permission to the import job role, which authorizes inference rather than reading the source artifacts.

3 questions test this
Existing Kubernetes ML services can move to EKS without model retraining

When an existing Kubernetes deployment already packages ML services as standalone container images, publish those images to Amazon ECR and deploy them to the specified Amazon EKS cluster. Reference the complete ECR image location and provide image-pull permissions. Moving the hosting platform does not itself require changing the trained model or rewriting the workflow into another ML framework.

Trap Rebuilding the services in a new ML orchestration framework for a lift-and-shift requirement, which adds application changes that the existing container deployment does not need.

3 questions test this
Bedrock Provisioned Throughput reserves capacity for supported models

When a supported Bedrock model needs dedicated capacity and consistent throughput, use Provisioned Throughput. On-demand inference is the alternative when usage-based access without a provisioned-capacity commitment meets the workload requirements. Verify the chosen model and Region support the intended provisioning option.

Trap Selecting batch inference to reserve capacity for synchronous application requests, which creates asynchronous jobs instead of a dedicated online serving resource.

3 questions test this
Bedrock batch inference processes independent prompts through S3 jobs

When a large collection of prompts can be processed asynchronously, submit a Bedrock batch inference job with input files in Amazon S3 and collect the output files from S3. Each input record is processed independently. This mode is not suited to tool-calling conversations that require exchanges between the model and the client.

Trap Submitting an interactive agent tool-use conversation as a batch job, which cannot perform the required back-and-forth tool interactions.

3 questions test this
Deleting a custom model deployment preserves the underlying custom model

Deleting a Bedrock custom model deployment removes that on-demand serving resource but does not delete its underlying custom model. If inference is needed again, create a new deployment from the retained model. This separates serving-resource cleanup from model retention.

Trap Deleting the underlying custom model to stop using one deployment, which removes the retained model rather than only its serving resource.

3 questions test this
Cross-Region inference profiles route supported model requests across Regions

When the stated deployment permits inference across multiple AWS Regions, a system-defined Bedrock cross-Region inference profile can distribute supported model requests among its defined Regions. The application invokes the profile instead of managing separate regional model invocations itself. Choose a profile whose routing scope meets the application's location requirements.

Trap Using an arbitrary single-Region model identifier to obtain multi-Region routing, which does not select a cross-Region inference profile.

3 questions test this
JumpStart deployment fits foundation models that need control of the hosting environment

When a reusable foundation model must run with explicitly selected SageMaker AI hosting compute and deployment settings, choose a compatible model from SageMaker JumpStart and deploy it to a SageMaker AI endpoint. JumpStart supplies pretrained models while SageMaker AI provides configurable managed hosting. Choose Amazon Bedrock's serverless model access instead when the requirement is to invoke a supported foundation model through an API without selecting and managing its serving infrastructure.

3 questions test this
Bedrock Converse provides a consistent message interface across supported models

When a conversational application must use a consistent message-based invocation contract across supported Amazon Bedrock models, use Converse, or ConverseStream when responses must stream. This lets the application reuse its message-handling code across models that support the interface instead of adopting each model's base inference request format. Model-specific inference options can still be supplied separately, so a shared interface does not make every model's capabilities identical.

Trap Using InvokeModelWithResponseStream as the cross-model message abstraction because it streams output, although its request body still follows the selected model's inference format.

3 questions test this
Bedrock Marketplace exposes subscribed models through Bedrock APIs with SageMaker AI hosting

When a required foundation model is offered through Amazon Bedrock Marketplace, subscribe to the catalog model and deploy it to a SageMaker AI-managed endpoint. Select the endpoint's instance type and instance count rather than treating this as ordinary serverless Bedrock model access. Invoke the deployment through Bedrock InvokeModel, or Converse for compatible models, using the endpoint ARN to identify the deployment.

Trap Using Custom Model Import to activate a Marketplace catalog subscription, although import requires model artifacts from an external customization environment rather than a catalog subscription.

3 questions test this
AgentCore Runtime hosts agent code without requiring a specific framework

When existing agent code needs managed deployment, Amazon Bedrock AgentCore Runtime supports agents built with supported frameworks or custom agent implementations. It is not restricted to foundation models accessed through Amazon Bedrock. This lets a deployment preserve its chosen agent framework and model integration within the Runtime service contract.

Trap Rewriting a working agent to a different framework solely to use AgentCore Runtime, which is framework agnostic.

3 questions test this
AgentCore Gateway exposes existing backends as agent tools

When an agent must use an existing Lambda function or an API described by an OpenAPI specification, AgentCore Gateway can expose that backend through tools compatible with Model Context Protocol. The gateway adapts access to the existing capability; it does not replace the backend's business logic.

Trap Importing API documentation into a knowledge base as a substitute for a tool integration, which makes descriptions retrievable but does not execute the backend action.

3 questions test this
MCP and A2A address different agent communication needs

Use Model Context Protocol when an AgentCore-hosted service exposes tools to agent clients. Use the Agent-to-Agent protocol when the requirement is agent discovery and communication between agents. AgentCore Runtime supports both protocols, but a tool server and a collaborating agent are different integration roles.

Trap Selecting an MCP tool-listing interface as an A2A agent-discovery interface, which substitutes tool discovery for the agent communication contract.

3 questions test this
Agent access and tool access require separate authentication paths

AgentCore Runtime supports inbound authentication for clients invoking an agent and outbound authentication for the agent accessing other services. Configure each path for its caller and target, including delegated user access when required. Successful authentication into the agent does not itself establish the agent's credentials for a third-party tool.

Trap Reusing the existence of an inbound authenticated session as proof of downstream API authorization, which leaves the tool's outbound authentication requirement unresolved.

3 questions test this
AgentCore applications must implement the selected protocol's service contract

An AgentCore Runtime application must expose the endpoints and message format required by its selected protocol. For example, HTTP request handling and an MCP tool server follow different contracts. Configure the runtime protocol and the application's server consistently rather than deploying a container that merely starts successfully.

Trap Choosing the HTTP runtime protocol for an application that exposes only an MCP server, which mismatches the runtime's expected request interface.

3 questions test this
Bedrock agent action groups separate action definitions from action execution

An Amazon Bedrock Agents Classic action group defines available actions and their inputs through an OpenAPI schema or function details. Configure Lambda execution when Bedrock should pass the selected action and elicited parameters to a Lambda function. Choose return control when the calling application should execute the action instead; Bedrock returns the selected action and parameters in the agent invocation response. The schema describes the available operation, while the chosen execution path supplies its implementation.

Trap Using an AgentCore Gateway tool definition as the Bedrock Agents Classic action-group configuration, even though Gateway adapts backends into MCP tools rather than defining this agent's action group.

3 questions test this
Client-side Bedrock tool calling requires the application to execute and return tool results

For client-side tool calling in Amazon Bedrock, supply tool definitions with the model request so the model can select a tool and return the inputs it needs. Application code then executes the requested tool and sends its result back in the conversation, allowing the model to continue generation using that result. This model-level interaction is distinct from configuring fulfillment for a Bedrock Agents Classic action group. In supported server-side tool-use configurations, Bedrock executes registered tools on the application's behalf instead; execution ownership depends on the selected mode.

3 questions test this
A Bedrock agent needs a knowledge-base association and instructions to guide retrieval

When an existing Amazon Bedrock Agents Classic deployment should answer from a Bedrock knowledge base, associate that knowledge base with the agent and provide instructions describing its contents and when to query it. The agent includes these instructions in its prompt context to decide whether retrieval is appropriate for the user's request. Creating and populating the knowledge base alone does not establish this agent integration. Prepare the agent after changing its configuration before testing the retrieval behavior.

Trap Adding an action-group schema as the native knowledge-base integration, although action definitions describe operations and inputs rather than establishing the agent's knowledge-base association.

3 questions test this
Code interpretation lets a Bedrock agent execute generated code for analysis and calculations

When an existing Amazon Bedrock Agents Classic deployment must analyze uploaded files, produce visualizations, or perform calculations, enable code interpretation so the agent can generate and run code in a secure test environment. The agent can return results from actual execution rather than only generating code text. Enable Code Interpreter in the agent builder, then save and prepare the agent before testing the changed configuration.

Trap Using an action group's return-control mode as a managed code executor, although that mode sends the selected action and inputs back to application code for fulfillment.

3 questions test this

When knowledge-base queries need both meaning-based matching and raw-text matches, configure hybrid search on a supported vector store with a filterable text field. Semantic search uses vector embeddings alone. Verify the existing store and text-field configuration support hybrid retrieval instead of assuming every vector index can execute it.

Trap Adding a reranker as a substitute for raw-text retrieval when lexical candidates are missing, which only reorders the candidates already retrieved.

3 questions test this
Retrieve separates document retrieval from response generation

Use the Bedrock Knowledge Bases Retrieve operation when the application needs relevant source chunks but will manage generation itself. Use RetrieveAndGenerate when Bedrock should retrieve context and generate an answer with citations. This choice determines whether the managed knowledge-base call owns only retrieval or the combined retrieval-and-generation path.

Trap Calling Retrieve and expecting a synthesized answer with generated citations, which adds a generation responsibility that the retrieval-only operation does not perform.

3 questions test this
Reranking reorders retrieved candidates for relevance to the query

When retrieval finds candidate documents but their ordering is insufficient, configure a supported reranking model in the Bedrock knowledge-base query. The reranker assesses retrieved candidates for relevance before the selected context is used. It refines retrieval results rather than changing the generation model's sampling behavior.

Trap Lowering generation temperature to improve document ranking, which changes response sampling rather than the ordering of retrieved candidates.

3 questions test this
Metadata filters restrict which documents may satisfy a retrieval query

When answers must use documents from a specified department, date range, or category, apply a Bedrock knowledge-base metadata filter. The document metadata must be ingested and supported by the vector store. Filtering constrains the eligible results rather than merely requesting that the language model ignore unwanted sources after retrieval.

Trap Adding a department instruction only to the generation prompt, which does not constrain the documents returned by the retrieval query.

3 questions test this
A retrieval result limit is a maximum rather than a guaranteed result count

Bedrock knowledge-base retrieval returns up to the configured number of results. With hierarchical chunking, the limit counts retrieved child chunks, and children sharing a parent can be consolidated into the parent chunk in the response. Consequently, fewer final results can be correct behavior even when the requested limit is higher.

Trap Treating parent-chunk consolidation as missing indexed documents, which mistakes retrieval assembly for an ingestion failure.

3 questions test this
Query decomposition breaks a multifaceted question into retrieval subqueries

When one knowledge-base query combines multiple information needs, enable query decomposition to break it into smaller subqueries. Bedrock can execute several retrieval queries and use their results to form the final response. This addresses a broad or compound query rather than simply requesting more candidates for the unchanged query.

Trap Increasing the retrieval result limit as a substitute for separating multiple information needs, which still searches with the original compound query.

3 questions test this
Implicit filtering uses a metadata schema to derive filters from a query

When users express document constraints in natural language, Bedrock Knowledge Bases can use a supported model and a supplied metadata schema to generate retrieval filters. Describe the available metadata attributes so the model can map user intent to actual fields. Explicit filters remain appropriate when the application already knows the required filter values.

3 questions test this
Knowledge-base generation can use an explicitly selected guardrail version

When a RAG response path requires Bedrock Guardrails, configure the chosen guardrail identifier and version for knowledge-base response generation. This applies the specified controls to that generation path rather than relying only on prompt wording. Verify that the intended model and guardrail features are supported together.

Trap Adding safety instructions to a prompt as an equivalent to attaching the configured guardrail, which does not enable the managed guardrail controls.

3 questions test this

Provision and configure ML and AI workload resources

Read full chapter
  • Serverless provisioned concurrency keeps configured serving capacity warm
  • Per-instance invocation metrics support load-based endpoint scaling
  • Queue backlog per instance is a useful asynchronous inference scaling signal
  • A backlog-without-capacity policy helps asynchronous endpoints wake from zero
  • Concurrent-request metrics reflect the occupancy of streaming model requests
  • Inference-component scaling adjusts model copies on shared accelerator infrastructure
  • Real-time scale-to-zero requires inference components and tolerating startup failures
  • CloudFormation exports let independently managed stacks share resource identifiers
  • Imported CloudFormation exports constrain updates to the exporting stack
  • Nested stacks group reusable infrastructure under a parent lifecycle
  • Step Functions job integration waits for supported SageMaker AI jobs to finish
  • State machine role permissions and execution role permissions are separate
  • Multi-stage builds exclude build-only tools from the runtime image
  • Pinning a base image digest makes the selected image content reproducible
  • Refreshing a base image and disabling the build cache solve different update problems
  • ECR repository tag immutability rejects overwriting existing release tags
  • Enhanced ECR scanning covers language packages as well as operating-system packages
  • EKS image pulling uses the infrastructure's image-pull role
  • Programmatic endpoint deployment separates model, configuration, and serving resource
  • A model VPC configuration connects its inference container to private resources
  • A Runtime interface endpoint keeps client inference calls on the AWS network
  • Private DNS lets standard SageMaker AI hostnames resolve to interface endpoints
  • Network isolation blocks container calls even to private VPC resources
  • The SageMaker Python SDK packages and deploys models through a higher-level interface
  • No chunking treats each source document as a single retrieval chunk
  • Semantic chunking groups text by meaning rather than only by fixed size
  • Chunk overlap preserves context across adjacent retrieval units
  • A knowledge-base vector index must match the embedding representation
  • Knowledge-base field mappings connect vectors, text, and source metadata
  • OpenSearch knowledge-base indexes need a supported vector engine
  • S3 metadata sidecars must correspond to their source documents
  • Binary embeddings require a vector store that supports binary vectors
  • Short-term memory preserves turn-by-turn context within a session
  • Long-term memory retains extracted knowledge across agent sessions
  • AgentCore microVM sessions isolate execution state between users
  • AgentCore Runtime compute types support different execution requirements
  • Bedrock Flows connects configured nodes through explicit data relationships

Unlock with Premium — includes all practice exams and the complete study guide.

Automate orchestration and delivery for ML and AI workloads

Read full chapter
  • Shadow testing evaluates live requests without returning candidate responses to users
  • Production variant weights control the traffic used for live model comparisons
  • Explicit variant targeting overrides weighted request distribution
  • Blue/green deployment retains the old fleet while the new fleet is validated
  • Canary and linear deployments differ in how they increase traffic exposure
  • Deployment alarms connect validation failures to automatic rollback
  • Rolling deployment updates serving capacity in configurable batches
  • SageMaker AI deployment guardrails apply only to supported endpoint configurations
  • A manual approval action pauses a release until an authorized decision is recorded
  • CodePipeline coordinates release stages while actions perform their own work
  • A CodeBuild buildspec defines both execution commands and build outputs
  • CodeBuild can obtain sensitive values from managed secret stores
  • A repository connection must complete provider authorization before it can trigger releases
  • A full-clone source reference is intended for downstream CodeBuild actions
  • Git source control and S3 object versioning serve different collaboration needs
  • CodeDeploy handles application platforms rather than SageMaker AI endpoint updates
  • A CodeDeploy AppSpec identifies deployment resources and lifecycle validation hooks
  • Unit tests and integration tests catch different defects in an ML release
  • SageMaker AI pipeline steps separate processing, training, and batch inference
  • A condition step turns evaluation results into a pipeline decision
  • EventBridge can start a model-building pipeline when relevant data changes
  • Scheduled retraining uses a separate trigger that must be managed with the pipeline
  • Pipeline step caching reuses successful matching work within a configured window
  • Callback steps wait for external work to report completion
  • Batch transform distributes S3 objects rather than splitting one object across instances
  • Batch input splitting and output assembly preserve file boundaries
  • Model Groups organize related model versions in a production catalog
  • Model approval status can gate an explicitly configured deployment workflow
  • Cross-account model deployment needs access to the Model Group and its underlying artifacts
  • MLflow connects model candidates to the experiments that produced them
  • Managed MLflow separates service-managed metadata from customer S3 artifacts
  • Prompt variables reuse a tested template with different runtime inputs
  • Prompt variants compare alternative messages and inference configurations
  • Published prompt versions preserve tested configurations for deployment
  • Custom prompt datasets make automated model tests specific to the application
  • Judge-model and human evaluations provide different forms of release evidence
  • RAG testing must assess retrieval as well as the generated response
  • AgentCore Evaluations scores instrumented agent behavior rather than only final text
  • MLflow traces connect unexpected AI outputs to the components that produced them
  • Updating an AgentCore Runtime creates a new immutable configuration version
  • Named AgentCore endpoints support controlled promotion independently of the default endpoint
  • Flow aliases let applications change workflow versions without changing the invocation target
  • Provisioned custom-model updates must preserve the supported base-model relationship
  • A successful update request does not mean the new custom model is already serving
  • Knowledge-base source changes require a sync to update the retrieval index
  • Some metadata-only refreshes can reuse existing document embeddings
  • Refresh orchestration must observe ingestion completion and document results
  • Newly ingested vectors may need time to become queryable
  • Bedrock agent aliases select immutable versions for application invocation

Unlock with Premium — includes all practice exams and the complete study guide.

Operating, Monitoring, and Securing ML and AI Solutions

Monitor ML and AI Inference and Performance

Read full chapter

Cheat sheet

Sharp facts the exam loves — scan these before test day.

Production drift monitoring needs captured data, a baseline, and a monitoring schedule

For an existing Amazon SageMaker Model Monitor deployment, enable inference data capture, establish baseline statistics and constraints, and configure a monitoring schedule. Capture supplies observations in Amazon S3; the scheduled analysis compares those observations with the baseline and reports violations.

3 questions test this
A legitimate model-data change can require a new monitoring baseline

When a deployed model was deliberately updated for a new validated dataset, regenerate the monitoring baseline from that dataset and update the monitoring schedule to use its statistics and constraints. An old baseline can flag expected changes as violations. Investigate unexpected production drift rather than automatically redefining it as normal.

Trap Retuning model hyperparameters to correct alerts caused by a stale comparison baseline, although hyperparameters do not update the monitor's reference data.

3 questions test this
Baseline and inference feature schemas must match before drift comparisons are meaningful

Amazon SageMaker Model Monitor expects the baseline and inference datasets to agree on feature count and order. Align the captured input with the training feature schema before interpreting violations. A reordered or additional column can make the monitor compare different features rather than detect a genuine distribution change.

Trap Increasing drift tolerances after a preprocessing column-order change, which relaxes checks without repairing the feature correspondence.

3 questions test this
Built-in Model Monitor statistics operate on tabular data

Amazon SageMaker Model Monitor computes built-in statistics and metrics on tabular data. For an image classifier, its tabular prediction outputs can be monitored, but the built-in analysis does not calculate distribution statistics directly over raw image inputs. Image-input drift requires a suitable separate analysis pipeline.

Trap Selecting the built-in tabular analyzer to compare raw image pixel distributions, although that analyzer operates on tabular features.

3 questions test this
Existing Model Monitor customers can monitor recurring batch predictions

When predictions are generated by recurring Amazon SageMaker AI batch transform jobs, capture their inputs and outputs and run monitoring against that captured data. Existing Model Monitor customers can monitor batch transform as well as real-time inference. Batch transform support does not extend to every endpoint type: Model Monitor still cannot monitor a multi-model endpoint.

Trap Migrating recurring offline predictions to a permanently running real-time endpoint solely to obtain monitoring, although batch transform data capture is supported.

3 questions test this
Model Monitor observes an inference pipeline as a whole

Amazon SageMaker Model Monitor supports inference pipelines, but its capture and analysis apply to the entire pipeline rather than each container independently. Use the pipeline boundary data for overall quality checks. Diagnosing an intermediate transformation requires additional visibility into that stage.

Trap Using the pipeline's standard capture output as an intermediate-container trace, although capture occurs at the whole-pipeline boundary.

3 questions test this
Missing captured data can reflect disk pressure rather than missing inference traffic

Amazon SageMaker AI data capture stops capturing requests at high disk utilization to avoid affecting inference requests. If endpoint invocations continue but captured records disappear, inspect disk utilization before interpreting the gap as a traffic change. AWS recommends keeping disk utilization below 75 percent for continued capture.

Trap Recreating the drift baseline to repair missing capture records, although baseline generation does not relieve endpoint disk pressure.

3 questions test this
New customers can operationalize drift checks without the legacy Model Monitor service

When Model Monitor is unavailable to a new customer, adapt one of the AWS-published open-source SageMaker AI monitoring solutions, such as the Real-Time Inference Monitoring with Evidently AI + SNS solution, within the existing deployment. Capture production inference observations and configure its scheduled SageMaker Processing analysis to compare recent data with a reference dataset using statistical drift tests. Set the monitoring window, relevant features, and drift thresholds for the workload, retain the resulting metrics and reports, and connect threshold violations to Amazon SNS notifications. This makes distribution monitoring an operational pipeline without depending on a Model Monitor monitoring schedule.

Trap Using endpoint CPU utilization and invocation-error alarms as the distribution-drift detector, because operational health metrics do not compare production feature distributions with reference data.

3 questions test this
Model Monitor does not support multi-model endpoints

Amazon SageMaker Model Monitor does not support endpoints that host multiple models, even for customers eligible to keep using the service. A workload that must retain a multi-model endpoint therefore needs another compatible monitoring approach. Support for an inference pipeline is a separate capability and does not make multi-model endpoint monitoring eligible.

3 questions test this
Model-quality monitoring requires observed outcomes as well as predictions

When an existing Model Monitor deployment must measure production predictive quality, supply ground-truth labels and compare them with captured predictions. Accuracy and similar supervised metrics require known outcomes. Data-quality monitoring instead checks feature statistics and constraints and can operate before outcome labels arrive.

Trap Choosing data-quality constraints to measure prediction accuracy when outcome labels are available, although those constraints describe input data rather than prediction correctness.

3 questions test this
Delayed labels must join to the correct captured predictions

Amazon SageMaker Model Monitor merges ground truth with captured predictions using a unique record identifier. A caller-supplied inference identifier takes precedence when present; otherwise the captured event identifier is used. Preserve the matching identifier when outcomes arrive later so quality measurements compare each prediction with its own outcome.

Trap Joining labels to predictions by upload order, although delayed labels need not arrive in prediction order.

3 questions test this
Ground-truth files can arrive after the inference period

Model Monitor ground-truth labels are uploaded to Amazon S3 as JSON Lines in time-organized paths. The path date represents label collection time and need not equal the original inference date. Configure the monitoring job with the ground-truth location rather than assuming labels are embedded in the original capture files.

Trap Discarding later-arriving labels because their S3 date differs from the prediction date, although label collection and inference can occur at different times.

3 questions test this
Production bias needs its own monitoring beyond overall accuracy

For existing Amazon SageMaker Clarify customers, bias drift monitoring evaluates bias metrics on live prediction data and can expose changes after deployment. A model that passed a training-time bias assessment can behave differently when its production population changes. Use bias metrics and appropriate thresholds to monitor this behavior rather than relying only on aggregate accuracy.

3 questions test this
Bias-drift alerts account for uncertainty in the monitored sample

SageMaker Clarify bias-drift monitoring compares the bias metric's confidence interval with the allowed range. An alert is raised when the intervals do not overlap, rather than simply whenever the sample estimate lies outside the allowed range. This reduces alerts caused by noisy estimates from small monitoring windows.

Trap Using a single out-of-range sample estimate as proof of a Clarify bias violation, although the confidence interval may still overlap the allowed range.

3 questions test this
Feature-attribution monitoring detects changes in what drives predictions

When the concern is a change in which features influence a deployed model, existing SageMaker Clarify customers can use feature-attribution drift monitoring. It compares live feature-attribution rankings with a baseline while accounting for baseline importance. This identifies changed prediction drivers even when a general input-quality check does not explain the behavior.

3 questions test this
An on-demand Clarify processing job assesses model bias without a standing schedule

In an existing SageMaker Clarify workflow, launch a processing job programmatically when post-training bias analysis is needed on demand. Configure the input dataset, output location, model or endpoint, and bias-analysis settings, then launch the post-training bias analysis. This is an explicitly submitted analysis job rather than a recurring monitoring schedule.

Trap Launching only pre-training bias analysis when the requirement is to assess bias in a trained model's predictions.

3 questions test this
Monitoring reports need an alerting integration to notify operators of deviations

In an existing Amazon SageMaker Model Monitor setup, connect the emitted monitoring metrics to Amazon CloudWatch alerting for the selected quality thresholds. Scheduled checks produce the evidence; alarms turn qualifying deviations into notifications. Merely storing a report in Amazon S3 does not configure operator notification.

Trap Treating successful report generation as configured alert delivery, because the notification behavior requires the monitoring and alarm integration.

3 questions test this
Production-variant weights distribute live requests between candidates

When comparing model candidates with live traffic, deploy Amazon SageMaker AI production variants and assign their relative traffic weights. Each variant can have its own model and instance configuration. Weighted routing sends each request to a selected variant so its response participates in the production experiment.

Trap Assigning more instances to a candidate as the traffic-split control, although instance count controls capacity and variant weights control weighted routing.

3 questions test this
Explicit variant targeting overrides weighted random routing

When requests from a controlled cohort must reach a specific Amazon SageMaker AI production variant, specify the target variant in the invocation. Explicit targeting takes precedence over the endpoint's traffic weights. Weighted routing is appropriate when the service should choose the variant instead.

Trap Relying on random traffic weights to keep a particular customer's requests on one variant, although weights do not encode that cohort assignment.

3 questions test this
A/B results must retain the identity of the serving variant

Amazon SageMaker AI responses identify the production variant that served the request, and CloudWatch exposes variant-level invocation and latency metrics. Retain that variant identity when comparing prediction-quality outcomes and operational behavior. Endpoint-wide averages blend the candidates and can conceal a poorly performing variant.

Trap Choosing the winning model from a single endpoint-wide latency average, which mixes observations from both candidates.

3 questions test this
A/B traffic can move to the better variant without recreating the endpoint

After observing better performance from an Amazon SageMaker AI production variant, update the existing variants' desired weights to send it more traffic. The weights-and-capacities update changes the distribution without replacing the endpoint configuration. Continue observing performance as exposure increases before removing the old variant.

Trap Creating a second endpoint solely to alter the traffic split between already deployed variants, although the existing endpoint supports weight updates.

3 questions test this
First-token latency and completion latency answer different performance questions

For Amazon Bedrock streaming inference, time to first token measures how long a user waits for output to begin, while invocation latency extends to the last token. Monitor the former for perceived responsiveness and the latter for full-response completion. A longer generated answer can increase completion latency without a corresponding increase in the initial wait.

Trap Using full-response invocation latency alone to assess how quickly streaming output starts, although it includes the remaining generation time.

3 questions test this
Bedrock runtime metrics distinguish accepted failures from throttled requests

Amazon Bedrock's invocation count includes accepted requests that later produce client or server errors, but excludes throttled requests and requests rejected before processing during input validation. Throttles have their own metric and are not also counted as client or server errors. Interpret these categories separately when investigating inference reliability.

Trap Treating every failed attempt as a server error, which confuses rejected traffic, invalid requests, and failures after acceptance.

3 questions test this
Foundation-model content quality requires evaluation rather than latency metrics alone

When a production foundation model returns timely but poor answers, use Amazon Bedrock evaluations on prompts representative of the application. CloudWatch runtime metrics describe operational behavior; evaluation jobs assess response effectiveness. A successful API response is not evidence that its content answers the user's question correctly.

Trap Using a low API error rate as the acceptance test for answer quality, although transport success does not assess response correctness.

3 questions test this
A judge model can score generated answers and explain its ratings

When ongoing response assessment needs automated qualitative scoring, use an Amazon Bedrock model-evaluation job with a judge model. A second language model assesses the candidate's responses and provides scores with explanations. Select evaluation criteria and representative prompts that reflect the application's requirements.

3 questions test this
Human evaluation is appropriate when domain judgment determines response quality

When acceptable production responses depend on expert judgment or user preference, use Amazon Bedrock human-based model evaluation. Employees or domain specialists can rate responses against the chosen criteria. This adds human assessment where programmatic metrics alone do not capture the requirement.

3 questions test this
RAG retrieval relevance and coverage diagnose different retrieval problems

Amazon Bedrock retrieve-only evaluations assess whether retrieved passages are relevant to the question and whether they cover the expected information. Context coverage requires ground-truth text in the evaluation dataset. Use these retrieval metrics when the suspected production failure occurs before answer generation.

Trap Evaluating only generated-answer fluency when investigating missing source passages, although fluent wording does not show whether retrieval found the required evidence.

3 questions test this
RAG answer faithfulness measures support in the retrieved evidence

Amazon Bedrock retrieve-and-generate evaluations include faithfulness, which measures whether the response avoids hallucinations relative to retrieved text. Correctness instead assesses how accurately the response answers the question. A response can be relevant and fluent while introducing claims unsupported by the retrieved evidence.

Trap Using retrieval context relevance as the only measure of answer faithfulness, although a model can invent details after receiving relevant passages.

3 questions test this
CloudWatch generative AI observability brings invocation metrics and prompt-level evidence together

Amazon CloudWatch generative AI observability provides prebuilt views for investigating generative AI workloads rather than requiring every monitoring view to be assembled from scratch. Its Model Invocations dashboard combines model usage, token consumption, latency, errors, and a curated invocation-log table that shows input and output content once Amazon Bedrock model invocation logging sends logs to CloudWatch Logs. End-to-end prompt tracing, curated metrics, and logs help correlate an application symptom with the responsible model, retrieval, or tool operation when the required telemetry is available.

Trap Using Amazon Bedrock model evaluation alone to investigate a live invocation's latency and errors, because response-quality scoring does not provide the correlated operational request path.

3 questions test this
Production feedback should refresh evaluation cases and guide targeted application updates

Use privacy-controlled production prompts, failed answers, and explicit user ratings to refresh representative evaluation cases for a foundation-model application. Review and correct those cases against reliable ground truth rather than treating generated answers or ratings as verified answers. Recurring failures can reveal changed user questions, unclear prompts, or missing retrieval knowledge, guiding prompt adjustments or retrieval-data updates and subsequent evaluation. Protect customer interactions under the applicable privacy and regulatory requirements before reusing them.

Trap Reaching immediately for model fine-tuning when failed answers concern a newly released product, because updating missing retrieval information may address the knowledge gap without changing model weights.

3 questions test this
Agent execution traces locate the failing step in a coordinated workflow

When a production agent fails during a sequence of model and tool calls, inspect the execution path and intermediate outputs in Amazon Bedrock AgentCore Observability. Step-level traces identify where coordination diverged or a tool operation failed. An end-to-end error count indicates frequency but does not identify the failed dependency.

4 questions test this
AgentCore built-in metrics do not automatically expose every internal tool step

Amazon Bedrock AgentCore emits built-in operational metrics, while additional application spans and traces require agent-code instrumentation. Enable the necessary observability outputs and instrument internal operations when debugging tool calls or multi-step coordination. OpenTelemetry-compatible telemetry supports correlation with the rest of the monitoring stack.

Trap Enabling a runtime metric dashboard as the only change needed for custom tool-level traces, although internal operations still require instrumentation.

4 questions test this
A stream's stop reason distinguishes completion, truncation, and tool handoff

Amazon Bedrock ConverseStream reports why a message stopped. Reaching the output-token limit indicates a length-limited answer; a tool-use stop indicates that the application must handle the tool request; a guardrail intervention indicates filtering. Inspect the stop reason before treating every ended stream as a completed answer.

Trap Treating a tool-use stop as a network truncation and retrying generation, although the model is requesting a tool interaction.

4 questions test this
A successful initial response does not guarantee a successful response stream

Streaming inference can encounter an error after the initial response has already been sent. Amazon SageMaker AI exposes a mid-stream error metric for these failures. Monitor stream completion and streaming errors rather than recording success solely from the initial response.

Trap Counting every stream with a successful initial status as a successful inference, which misses errors after streaming has begun.

4 questions test this
Transient workflow failures should have bounded retries and a recovery path

For transient failures in an AWS Step Functions task, configure retries with increasing delays and a finite attempt limit. A matching catch handler provides a recovery path when the error remains after retry handling. This separates temporary service failures from failures that need explicit fallback or investigation.

Trap Routing the first transient failure directly to a permanent-failure branch, which bypasses the configured opportunity for recovery.

4 questions test this
Retry jitter reduces synchronized recovery traffic

When many agent or inference tasks fail together, use jitter in AWS Step Functions retry delays to spread subsequent attempts over time. Exponential backoff increases the delay between retries, while jitter randomizes when each retry occurs. Combining them reduces the chance that clients repeatedly retry in lockstep.

Trap Giving every failed task the same fixed retry interval, which keeps recovery attempts synchronized.

4 questions test this
Task timeouts bound stalled workflow steps

For an agent or processing step orchestrated by AWS Step Functions, configure a task timeout and a matching recovery path so a stalled operation does not wait indefinitely. Heartbeat monitoring can detect a worker that stops reporting progress in workflows that use heartbeats. Route the resulting failure to the appropriate handler rather than counting the unfinished task as healthy.

Trap Increasing the retry count to detect an operation that never returns, although retries begin only after an error is reported.

4 questions test this
Pipeline-step metrics distinguish a slow stage from an overall workflow failure

Amazon SageMaker AI publishes pipeline execution metrics and separate step metrics for failures, successes, and duration. Use the pipeline and step dimensions to identify the stage responsible for a processing or inference-workflow regression. Overall execution duration alone cannot identify which step changed.

Trap Scaling the inference endpoint after seeing only a longer pipeline duration, although the delay may be in an upstream processing step.

4 questions test this
AgentCore runtime application logs do not automatically include the agent's response

Amazon Bedrock AgentCore runtime application logs include invocation request payloads and correlation identifiers but do not capture the agent response. If investigating incorrect returned content requires output visibility, instrument the application to record the necessary response information under the approved data-protection policy. A request payload in the runtime log is not evidence that the corresponding response was also captured.

Trap Searching only the built-in runtime application log for the generated response, although those records do not include a response payload.

4 questions test this

Optimize ML and AI Costs and Performance

Read full chapter
  • Inference Recommender selects configurations using workload measurements
  • Inferentia-backed instances are an inference-specific accelerator option
  • GPU memory utilization and GPU compute utilization reveal different constraints
  • Serverless inference memory settings also affect available compute
  • Serverless cost savings apply only when its feature set meets the workload requirements
  • Serving latency must be separated into model latency, overhead latency and network time
  • CloudWatch dashboards provide a shared operational view across resources
  • An operational dashboard needs alarms for automatic notifications
  • Missing-data treatment must match how a metric is emitted
  • Composite alarms combine alarm states to reduce alert noise
  • Distributed traces identify which downstream dependency adds latency
  • Target tracking adjusts serving capacity toward a chosen workload target
  • Scheduled scaling prepares capacity before a predictable traffic increase
  • Cooldown periods balance scaling responsiveness against oscillation
  • Asynchronous inference can queue work while capacity is zero
  • Serverless provisioned concurrency trades idle savings for predictable startup latency
  • Cost Explorer investigates historical spending and usage trends
  • Resource tags must be activated for cost allocation reporting
  • Budget alerts can warn before forecast spending reaches the limit
  • A budget notification is not a hard real-time spending cap
  • Commitment utilization and coverage measure different cost risks
  • Application inference profiles separate foundation-model usage by application
  • SageMaker AI Savings Plans apply to eligible managed ML instance usage
  • Compute Savings Plans retain discounts across more EC2 configuration changes
  • Managed Spot Training exchanges scheduling certainty for lower training cost
  • Managed Spot Training does not automatically switch to on-demand capacity
  • Bedrock Provisioned Throughput creates an hourly capacity commitment
  • Foundation-model cost comparisons must include both input and output usage
  • Output-token limits control generation length but can truncate required content
  • Prompt caching benefits repeated stable context rather than arbitrary repeated requests
  • Prompt-cache savings depend on actual reuse and cache pricing
  • Prompt-cache minimums and expiry determine whether reuse is possible
  • Batch inference fits independent prompts whose results can arrive asynchronously
  • Intelligent prompt routing can select among supported models using predicted response quality
  • Incremental knowledge-base sync avoids reprocessing unchanged documents
  • Vector storage optimization must preserve embedding compatibility
  • OpenSearch Serverless vector-collection generation affects idle resource behavior
  • New-session counts and active-session gauges measure different agent usage
  • Agent resource telemetry supports cost investigation but is not the final bill
  • Invocation logs can identify callers responsible for token-heavy usage

Unlock with Premium — includes all practice exams and the complete study guide.

Secure ML and AI Workloads and Endpoints

Read full chapter
  • The execution role governs SageMaker AI access to workload artifacts
  • A role needs both service trust and permissions for the work it performs
  • Passing an execution role requires permission on the submitting identity
  • An explicit deny cannot be repaired by adding another allow
  • SageMaker AI full-access policy does not grant object access to every S3 bucket
  • Encrypted S3 artifacts require both data-access and key-use authorization
  • Streaming and nonstreaming Bedrock inference use different invocation permissions
  • Customer-managed encryption keys must be configured separately for ML storage and persisted outputs
  • Runtime interface endpoints provide private client access to inference APIs
  • An S3 gateway endpoint provides private artifact access from the VPC
  • Private DNS lets standard service names resolve to interface endpoints
  • SageMaker AI network isolation blocks container outbound calls while preserving managed artifact transfer
  • An endpoint policy restricts its network path rather than every access path
  • VPC-enabled model hosting needs permissions to manage network interfaces
  • S3 policy conditions must match the request context of VPC endpoint traffic
  • Private processing jobs need scoped traffic rules that preserve required peer communication
  • Distributed-training communications need their own encryption control
  • CloudTrail records who performed an AWS API action
  • AWS Config evaluates recorded resource configurations over time
  • Bedrock prompt and response investigation requires invocation logging
  • Agent and knowledge-base runtime auditing requires the appropriate CloudTrail data events
  • Encrypted invocation-log delivery needs permission on the destination and key
  • Role-passing evidence appears in the service operation that received the role
  • A Bedrock stream-completion audit event is not another invocation
  • ECR enhanced scanning adds language-package vulnerability coverage
  • Continuous image scanning can detect vulnerabilities disclosed after image publication
  • Inspector can assess container vulnerabilities before deployment through CI/CD integration
  • Source and infrastructure code need assessment beyond container-image scanning
  • Macie locates sensitive data stored in S3 rather than filtering live model conversations
  • CodeGuru Reviewer provides source-code recommendations only through existing repository associations
  • Bedrock API keys provide bearer authentication rather than signed AWS requests
  • Short-term Bedrock keys are the production choice for bearer-token integrations
  • Long-running bearer clients need a refresh-capable token generator
  • Long-term Bedrock API keys are scoped to their creation Region
  • Bedrock key compromise requires revoking the affected credential path
  • Secrets Manager separates application secrets from deployed code
  • Guardrail filter types address different application restrictions
  • Sensitive-information policies can reject content or preserve it with redaction
  • Sensitive-information filters do not automatically sanitize every tool field
  • Contextual grounding checks compare a response with both source evidence and the query
  • Guardrails can evaluate content without invoking a foundation model
  • Synchronous streaming guardrails scan chunks before releasing them
  • A published guardrail version stabilizes the policy used in production
  • Converse system prompts need explicit marking for guardrail assessment
  • Prompt-attack filtering must distinguish untrusted input from developer instructions

Unlock with Premium — includes all practice exams and the complete study guide.