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.
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
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.