Dataford
Interview QuestionsInterview GuidesExperiencesCoaching
New
Pricing
Get started
Dataford
Popular roles
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Browse
Browse All RolesEvery role hub, from analyst to MLBrowse All CompaniesCompany-specific interview loopsAll Interview GuidesThe full guide library
Top questions by role
Software EngineerData AnalystData ScientistData EngineerBusiness AnalystAI EngineerMachine Learning EngineerProduct Manager
Top questions by skill
SQLPythonStatisticsMachine LearningA/B TestingSystem DesignGenerative AIProduct SenseMetricsBehavioral
Browse all questions →Try a mock interview
Experiences
Practice
Mock InterviewsTimed interview simulations with feedbackCoaching1:1 coaching with people at your target companiesSuccess PathYour 6-week structured planModulesCurated lessons by topicWebinarsTalks from ex-Big Tech data leadsPlaygroundA free-form scratch editor
Learn
BlogInterview strategy and career adviceTech Job Market ReportHiring trends across data and AI rolesFor UniversitiesDataford for career centersAbout DatafordWho we are and how we build
Pricing
Build my plan

Structure Terraform Repository for Multi-Region Deployment

MediumPipelines00:00
Practice interviewer
In session
5 left
00:00

Your question is Structure Terraform Repository for Multi-Region Deployment. Take a moment with it on the right.

Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).

You need to log in / sign up to chat or submit.

Problem

Context

DataStream Inc., a global data analytics company, is expanding its operations to support real-time analytics across multiple AWS regions. The current infrastructure is limited to a single region, causing latency issues and availability concerns during peak loads. To enhance performance and resilience, the VP of Engineering mandates a multi-region architecture using Terraform for infrastructure as code.

Scale Requirements

  • Regions: Deploy in 3 AWS regions (us-east-1, eu-west-1, ap-southeast-1)
  • Resources: Each region must support at least 10 EC2 instances, 5 RDS databases, and 3 S3 buckets
  • Throughput: Minimum of 1,000 requests per second per region
  • Latency: < 100 ms for cross-region data access
  • Availability: 99.99% uptime across all regions

Requirements

  1. Organize the Terraform repository for modular deployment (e.g., separate modules for EC2, RDS, S3).
  2. Implement remote state management using Terraform Cloud or S3 with state locking via DynamoDB.
  3. Create a CI/CD pipeline for automated deployments using GitHub Actions or AWS CodePipeline.
  4. Ensure IAM roles and policies are defined for secure cross-region access.
  5. Include tagging for cost tracking and compliance.

Constraints

  • Team: 3 data engineers with limited Terraform experience.
  • Budget: Monthly infrastructure cost should not exceed $10,000.
  • Compliance: Must adhere to GDPR and data residency regulations.