‹ All AIF-C01 questions

AIF-C01 Practice Question 92: k Fold Cross Validation Small Dataset

AWS Certified AI Practitioner (AIF-C01) · Test 10 · question 2 of 10

Fundamentals of AI and MLmedium

A team has only 3,000 labeled rows. When they split the data once into 80% training and 20% validation, the validation score changes a lot each time they reshuffle, so they cannot trust the estimate of how the model will generalize. Which technique gives a more reliable estimate without collecting more data?

Select one answer
Show answer and explanation

Answer:

  • A. K-fold cross-validation

In k-fold cross-validation the data is split into *k* equal folds. The model is trained on *k-1* folds and validated on the remaining one, and the process is repeated *k* times so that every fold serves once as validation data. The metrics are then averaged into a single estimate. AWS notes that this is *"especially important when training on small datasets because it protects against overfitting and selection bias"*, and that a single split can leave the training set unrepresentative (option A).

- B is wrong because more epochs on the same split do not make the validation estimate less dependent on which rows happened to land in it, and they raise the risk of overfitting. - C is wrong because scores on data the model has already seen say nothing about how it will generalize. - D is wrong because driving training error to zero is a classic route to overfitting and does nothing to stabilize the validation estimate.

Reference: Metrics and validation

Practice Test 10 ›

Study guides for AIF-C01

AI engineer roadmap 2026: skills, certs and the orderAI engineer roadmap for 2026: skills to learn in order, AI engineer vs ML engineer, which certifications fit each stage, and what to skip.
How AI Is Changing Software Jobs: Where to PrepareHow AI is changing software jobs: what history shows, the evidence on junior developers, what Klarna learned, new AI roles and five domains to prepare for.
How AWS Certification Exams Work: Scoring and RenewalHow AWS certification exams work: levels, booking, question types, unscored questions, scaled scores, pass marks, validity and how recertification works.
What Is Amazon Bedrock? Models, Pricing and GuardrailsWhat is Amazon Bedrock? How a request reaches a model, what happens to your data, token pricing, Guardrails, Knowledge Bases, AgentCore and the exam traps.
Google Cloud Generative AI Leader vs AWS AI PractitionerGoogle Cloud Generative AI Leader vs AWS AI Practitioner: format, cost, topics, free preparation and which certification to take first.
AWS certification cost in 2026, and free ways to prepareWhat every AWS certification costs in 2026 in USD and INR, retake and reschedule rules, the 50% voucher, and the free official ways to prepare.
AWS Generative AI Developer Professional (AIP-C01) guideWhat the AWS Certified Generative AI Developer – Professional (AIP-C01) exam covers - format, cost, the five domains, the services, and how to prepare.
Best AI certifications 2026: AWS, Google, Microsoft, ClaudeThe best AI certifications in 2026 from AWS, Google, Microsoft, Claude and Databricks, by level, with price, status and which one to take first.
Which AWS certification should you get? 2026 roadmapWhich AWS certification to get first, by role and experience, with each exam's status in October 2026, what is changing, and prices in USD and INR.
What Is RAG? How Retrieval-Augmented Generation WorksWhat RAG is and how it works: chunking, embeddings, vector search, hybrid search, reranking, GraphRAG and agentic RAG on AWS, Google and Azure.
Prompt engineering vs RAG vs fine-tuningWhen to use prompt engineering, retrieval-augmented generation, fine-tuning or continued pre-training, compared on cost, freshness, hallucination and privacy.