View a markdown version of this page

Optimization prompt examples - Amazon EMR
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Optimization prompt examples

You can use the following prompt examples with the optimization agent. Replace the placeholders with your own values.

Optimize a run for runtime

EMR Serverless:

How can I make my EMR Serverless job run job-run-id in application application-id faster?

Amazon Glue:

Optimize my Glue job job-name run job-run-id for runtime performance and speed

Optimize a run for cost

EMR Serverless:

Optimize my EMR Serverless job run job-run-id in application application-id for cost. How can I make it cheaper?

Amazon Glue:

How can I reduce the cost of my Glue job job-name run job-run-id?

Compare a run against a baseline

EMR Serverless:

My EMR Serverless job run job-run-id in application application-id got slower than run baseline-job-run-id. Tell me why and how to fix it.

Amazon Glue:

Compare Glue job run job-run-id against baseline run baseline-job-run-id of job job-name and tell me what regressed