Skip to content
LakeBench
ProblemsCommunityPricing
Sign inStart practicing

Translate a service name across AWS, Azure, and GCP

Python data engineering interview problem. Difficulty: beginner. Pattern: Dictionaries. About 10 minutes. Free to practice.

Production ticket: Same job, three brand names - object storage, managed orchestration, and serverless warehouse. Treat this as a production helper: match the contracted return shape, including empty and duplicate inputs.

A migration doc references AWS service names. Your team runs GCP. Write to_gcp(aws_service: str) -> str that maps: "S3" -> "Cloud Storage" "MWAA" -> "Cloud Composer" "Redshift" -> "BigQuery" Return "unknown" for anything else. Keep the prints at the bottom. The grader reads stdout.

Constraints

  • aws_service is a string that may or may not be one of the three known names.
  • Matching is case-sensitive and exact - no fuzzy matching.

Examples

Input: to_gcp("S3") Output: 'Cloud Storage' This is the expected return value for the given call.

Topics: cloud, vendor-mapping.

More Python interview questions · All interview problems · Learn data engineering

beginner

Translate a service name across AWS, Azure, and GCP

Production ticket: Same job, three brand names - object storage, managed orchestration, and serverless warehouse.

A migration doc references AWS service names. Your team runs GCP. Write `to_gcp(aws_service: str) -> str` that maps: - "S3" -> "Cloud Storage" - "MWAA" -> "Cloud Composer" - "Redshift" -> "BigQuery" Return `"unknown"` for anything else. Keep the prints at the bottom. The grader reads stdout.