Home » HashiCorp » Terraform Associate » Dawn has created the below child module. Without changing the module, can she override the instance_type from t2.micro to t2.large form her code while calling this module?
Dawn has created the below child module. Without changing the module, can she override the instance_type from t2.micro to t2.large form her code while calling this module?
1. resource “aws_instance” “myec2”
2. {
3. ami = “ami-082b5a644766e0e6f”
4. instance_type = “t2.micro
5. }
A. YES
B. No
Correct Answer: B
Explanation/Reference:
Explanation:
As the instance_type is hard-coded in source module, you will not be able to change its value from destination module. Instead of hard-coding you should use variable with default values.
Download Printable PDF. VALID exam to help you PASS.
|
|