- (Exam Topic 4)
Which task does teraform init not perform?
Correct Answer:
B
- (Exam Topic 4)
How would you reference the Volume IDs associated with the ebs_block_device blocks in this configuration?
Correct Answer:
A
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/device_naming.html
- (Exam Topic 4)
You need to write some Terraform code that adds 42 firewall rules to a security group as shown in the example.
What can you use to avoid writing 42 different nested ingress config blocks by hand?
Correct Answer:
D
A dynamic block acts much like a for expression, but produces nested blocks instead of a complex typed value. It iterates over a given complex value, and generates a nested block for each element of that complex value. Reference: https://www.terraform.io/language/expressions/dynamic-blocks
- (Exam Topic 1)
A terraform apply can not ______ infrastructure.
Correct Answer:
D
https://www.educative.io/answers/what-is-the-command-to-destroy-infrastructure-in-terraform
- (Exam Topic 2)
You have created 2 workspaces PROD and RQA. You have switched to RQA and provisioned RQA infrastructure from this workspace. Where is your state file stored?
Correct Answer:
A