> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Demo Setting up a Labeling Job with SageMaker Ground Truth

> Guide to creating and launching an image labeling job in Amazon SageMaker Ground Truth including S3 setup, IAM roles, workforce selection, and labeling interface configuration.

Welcome back. This guide shows how to create an image labeling job in Amazon SageMaker Ground Truth. Follow the steps below to point Ground Truth to your S3 dataset, configure the labeling task and workforce, and launch the job.

## What you'll accomplish

* Prepare images in Amazon S3 for labeling
* Configure a Ground Truth labeling job (image classification)
* Choose a workforce and customize the labeling UI
* Launch the job and validate the input connection

Prerequisites:

* An AWS account with permissions to create SageMaker jobs and access S3
* Images uploaded to S3 (see recommended structure below)
* An IAM execution role with S3 access and SageMaker Ground Truth permissions

1. Navigate to the Ground Truth console
   Open Amazon SageMaker and select Ground Truth → Labeling jobs to view existing jobs or create a new one.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/kUKxQVQTsJTme6ri/images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/amazon-sagemaker-ai-dashboard-labeling-jobs.jpg?fit=max&auto=format&n=kUKxQVQTsJTme6ri&q=85&s=1ec6b30cef202a9f1788ba4c173cd091" alt="The image shows an Amazon SageMaker AI dashboard with a &#x22;Labeling jobs&#x22; tab open, indicating no existing labeling jobs and offering an option to create one." width="1920" height="1080" data-path="images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/amazon-sagemaker-ai-dashboard-labeling-jobs.jpg" />
</Frame>

2. Create a new labeling job

* Click “Create labeling job”.
* Enter a descriptive job name, for example: `Cats-and-Dog-Labeling-Job`.
* For a quick setup, use the console’s automated data setup option to generate a manifest from an S3 prefix, or upload your own manifest.

Recommended S3 layout for image classification:

* `s3://your-bucket/train/cats/...`
* `s3://your-bucket/train/dogs/...`

Example manifest entry (Ground Truth accepts a JSONL manifest where each line is a JSON object):

```json theme={null}
{ "source-ref": "s3://your-bucket/train/cats/cat1.jpg" }
{ "source-ref": "s3://your-bucket/train/dogs/dog1.jpg" }
```

3. Browse S3 and select the data type
   From the Ground Truth setup screen, browse to your S3 bucket and pick the data prefix or manifest. Select the task type as `Classification` and the data type as `Image`.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/kUKxQVQTsJTme6ri/images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/aws-sagemaker-ground-truth-setup-screen.jpg?fit=max&auto=format&n=kUKxQVQTsJTme6ri&q=85&s=82cdaa2646086ad55aaa7f03ff1ddba1" alt="The image shows an AWS SageMaker Ground Truth setup screen for creating a labeling job, including options for data setup, S3 locations, and data type selection." width="1920" height="1080" data-path="images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/aws-sagemaker-ground-truth-setup-screen.jpg" />
</Frame>

4. Choose an IAM execution role
   Select an execution role that allows Ground Truth to read from your S3 bucket and write outputs. In this demo the existing IAM role `Lab4955` was used. Typical permissions required include:

* `s3:GetObject`, `s3:ListBucket` on the input bucket
* Permissions to create and manage labeling job resources in SageMaker

Tip: Use a least-privilege role that only allows access to the specific S3 prefix used by the job.

5. Select the labeling task and labeling interface
   For this demo we select Image classification with a single label per image (each image is either "cat" or "dog").

Ground Truth supports multiple annotation types:

| Task Type                         | Use Case                                             | Notes                                          |
| --------------------------------- | ---------------------------------------------------- | ---------------------------------------------- |
| Single-label image classification | One label per image (e.g., basketball vs. soccer)    | Use when each image belongs to a single class  |
| Multi-label classification        | Multiple labels per image (e.g., person and bicycle) | Use when multiple objects/classes can co-occur |
| Bounding box annotation           | Detect objects and localize with rectangles          | Useful for object detection models             |
| Semantic segmentation             | Pixel-level masks for precise regions                | Useful for segmentation models                 |
| Label verification                | Review or verify automated labels                    | Use for human-in-the-loop validation           |

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/kUKxQVQTsJTme6ri/images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/sagemaker-ground-truth-labeling-screenshot.jpg?fit=max&auto=format&n=kUKxQVQTsJTme6ri&q=85&s=6b366c175e4bc34b5a140f95870c30b2" alt="The image shows a screenshot from Amazon SageMaker Ground Truth, displaying options for labeling jobs, including bounding boxes for birds and semantic segmentation over a car and a person." width="1920" height="1080" data-path="images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/sagemaker-ground-truth-labeling-screenshot.jpg" />
</Frame>

6. Configure the workforce and labeler experience
   Choose a workforce:

* Private workforce — your internal team or contractors (recommended for sensitive data).
* Amazon Mechanical Turk — a public, on-demand workforce (consider privacy and cost).

For a private workforce:

* Configure team name and invite labelers.
* Set per-task timeouts and review policies.
* Provide clear instructions, good/bad examples, and the set of classes labelers should choose from.

Ground Truth allows you to preview the labeling UI so you can confirm the experience before launching. Include example images and precise instructions to reduce ambiguity.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/kUKxQVQTsJTme6ri/images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/fluffy-kitten-meowing-playful-expression.jpg?fit=max&auto=format&n=kUKxQVQTsJTme6ri&q=85&s=7dc906464702b6507351c0e0adaaa67a" alt="A fluffy kitten is meowing with its mouth open, displaying a playful expression." width="1920" height="1080" data-path="images/AWS-Certified-Machine-Learning-Engineer-Associate/Data-Preparation-for-Machine-Learning-ML/Demo-Setting-up-a-Labeling-Job-with-SageMaker-Ground-Truth/fluffy-kitten-meowing-playful-expression.jpg" />
</Frame>

7. Launch and monitor the job

* Review configuration and IAM role.
* Start the job.
* Monitor progress on the Labeling jobs page; Ground Truth provides metrics and job logs to inspect worker performance and completed labels.

<Callout icon="lightbulb" color="#1CB2FE">
  Make sure the IAM execution role has S3 access to the input prefix and permissions required by SageMaker Ground Truth. If you plan to use a public workforce (Mechanical Turk), review cost and data privacy implications before starting the job.
</Callout>

<Callout icon="warning" color="#FF6B6B">
  If your dataset contains PII or sensitive content, avoid public workforces and verify your data handling policies. Always limit the IAM role scope to the required S3 prefixes.
</Callout>

Further reading and references:

* [Amazon SageMaker Ground Truth documentation](https://docs.aws.amazon.com/sagemaker/latest/dg/sms.html)
* [Amazon S3 documentation](https://docs.aws.amazon.com/s3/index.html)
* [AWS IAM best practices](https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html)

Explore the Labeling jobs page to try different task types and refine settings for your dataset and model goals.

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/aws-machine-learning-associates/module/f6c821d2-a5b8-4946-9a75-624ec2ba0e75/lesson/f8888344-f519-4ebc-9e36-4acc2890b121" />

  <Card title="Practice Lab" icon="flask-conical" cta="Learn more" href="https://learn.kodekloud.com/user/courses/aws-machine-learning-associates/module/f6c821d2-a5b8-4946-9a75-624ec2ba0e75/lesson/1ca6b922-e976-40e8-a805-424abf6fcc3d" />
</CardGroup>
