AWS SDK for JavaScript STS Client for Node.js, Browser and React Native, providing temporary security credentials and role assumption capabilities
92
Evaluation — 92%
↑ 1.05xAgent success when using this tile
{
"context": "This evaluation criteria assesses how well the engineer uses the AWS SDK for JavaScript v3's request compression functionality to implement an S3 upload utility. The criteria focuses on proper configuration of the S3 client with compression settings and correct usage of compression-related options.",
"type": "weighted_checklist",
"checklist": [
{
"name": "S3Client instantiation",
"description": "Creates an S3Client instance from @aws-sdk/client-s3 package with proper region configuration",
"max_score": 15
},
{
"name": "Request compression configuration",
"description": "Configures the S3Client with requestHandler that supports compression, specifically using the NodeHttpHandler with requestMinCompressionSizeBytes option or equivalent compression configuration",
"max_score": 35
},
{
"name": "Compression threshold setting",
"description": "Properly sets the compression threshold (requestMinCompressionSizeBytes or similar) to control when compression is applied based on payload size, with correct default value of 10240 bytes (10KB)",
"max_score": 25
},
{
"name": "PutObjectCommand usage",
"description": "Uses PutObjectCommand from @aws-sdk/client-s3 to upload data to S3 with the Body parameter correctly set to the data payload",
"max_score": 15
},
{
"name": "Client send method",
"description": "Invokes the S3 client using the send() method with the PutObjectCommand to execute the upload operation",
"max_score": 10
}
]
}Install with Tessl CLI
npx tessl i tessl/npm-aws-sdk--client-stsdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10