Dataford
Interview QuestionsInterview GuidesExperiencesMock InterviewsPricing
Get started

Terraform Multi-Provider Deployment

MediumSystem Design00:00
Practice interviewer
In session
5 left
00:00

Your question is Terraform Multi-Provider 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

Consider a Terraform configuration with multiple providers defined (google, aws with default region us-east-1, and aws with alias 'west' in us-west-2). An aws_instance resource 'foo' is created with provider = aws. How many AWS instances/resources will be deployed to us-west-2?

Asked in the CoderPad Online Assessment stage. Explain how Terraform resolves provider references and identify the region where the resource is created.