PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep
|Home/Software Engineering Fundamentals/Dispatch

Fetch Public S3 Object Metadata

Last updated: Apr 6, 2026

Quick Overview

This question evaluates familiarity with programmatic access to public cloud object storage using an SDK, including skills in listing objects, filtering keys by a naming convention, and retrieving custom object metadata.

  • easy
  • Dispatch
  • Software Engineering Fundamentals
  • Software Engineer

Fetch Public S3 Object Metadata

Company: Dispatch

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: easy

Interview Round: Technical Screen

In Node.js, using AWS SDK for JavaScript v3, write a program that accesses the public S3 bucket `coderbytechallengesandbox` in region `us-east-1` without providing access keys. List all objects in the bucket, identify the object keys that follow the challenge's `cb` naming convention (the sample key is `__cb__example.txt`), and output an array containing each matching object's key and custom metadata. Example output: ```js [ { key: "__cb__example.txt", metadata: { "custom-key": "custom-value" } } ] ``` Starter code: ```js const { S3Client } = require("@aws-sdk/client-s3"); const s3Client = new S3Client({ region: "us-east-1" }); // TODO: implement this ```

Quick Answer: This question evaluates familiarity with programmatic access to public cloud object storage using an SDK, including skills in listing objects, filtering keys by a naming convention, and retrieving custom object metadata.

Dispatch logo
Dispatch
Apr 5, 2026, 12:00 AM
Software Engineer
Technical Screen
Software Engineering Fundamentals
8
0

In Node.js, using AWS SDK for JavaScript v3, write a program that accesses the public S3 bucket coderbytechallengesandbox in region us-east-1 without providing access keys. List all objects in the bucket, identify the object keys that follow the challenge's cb naming convention (the sample key is __cb__example.txt), and output an array containing each matching object's key and custom metadata.

Example output:

[
  { key: "__cb__example.txt", metadata: { "custom-key": "custom-value" } }
]

Starter code:

const { S3Client } = require("@aws-sdk/client-s3");
const s3Client = new S3Client({ region: "us-east-1" });
// TODO: implement this

Solution

Show

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...

Browse More Questions

More Software Engineering Fundamentals•More Dispatch•More Software Engineer•Dispatch Software Engineer•Dispatch Software Engineering Fundamentals•Software Engineer Software Engineering Fundamentals
PracHub

Master your tech interviews with 8,000+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.