Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
You are creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog. Which of the following provider blocks would allow you to do this? A.
I think B is correct as you are configuring the provider not declaring it
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 4.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = "us-east-1"
}
The question seems to hinge on the word "needs" ... if it was asking for "required_providers" then they would need to nested inside a terraform block however none of the examples show the correct syntax for a required_providers block
terraform {
required_providers {
mycloud = {
source = "mycorp/mycloud"
version = "~> 1.0"
}
}
}
I'm going with B.
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
keiffo2
Highly Voted 1 year, 10 months agodepal_dhir
Highly Voted 1 year, 10 months agosjokkorein
Most Recent 2 months, 3 weeks ago8876ca1
2 weeks, 3 days agoalen995454
5 months, 3 weeks agoSpandrop
6 months, 3 weeks agoSpandrop
6 months, 3 weeks agoTyler2023
8 months ago