Which of the following is not a key principle of infrastructure as code?
ABD
Explanation:
Reference:
https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as
-
code#:~:text=Idempotence%20is%20a%20principle%20of,of%20the%20environment's%20starting%
20state.
Terraform variables and outputs that set the "description" argument will store that description in the
state file.
B
Explanation:
Reference:
https://www.terraform.io/docs/language/values/outputs.html
What is the provider for this fictitious resource?
C
Explanation:
Reference:
https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html
If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?
A
What is not processed when running a terraform refresh?
CD
Explanation:
Reference:
https://www.terraform.io/docs/cli/commands/refresh.html
What information does the public Terraform Module Registry automatically expose about published
modules?
E
Explanation:
Reference:
https://www.terraform.io/docs/registry/modules/publish.html
If a module uses a local variable, you can expose that value with a terraform output.
A
Explanation:
Output values are like function return values.
Reference:
https://www.terraform.io/docs/language/values/locals.html
https://www.terraform.io/docs/language/values/outputs.html
You should store secret data in the same version control repository as your Terraform configuration.
B
Explanation:
Reference:
https://blog.gruntwork.io/a-comprehensive-guide-to-managing-secrets-in-your-
terraform-code
- 1d586955ace1
Which of the following is not a valid string function in Terraform?
C
Explanation:
Reference:
https://www.terraform.io/docs/language/functions/chomp.html
You have provisioned some virtual machines (VMs) on Google Cloud Platform (GCP) using the gcloud
command line tool. However, you are standardizing with Terraform and want to manage these VMs
using Terraform instead.
What are the two things you must do to achieve this? (Choose two.)
BD
Explanation:
The terraform import command is used to import existing infrastructure. Import existing Google
Cloud resources into Terraform with Terraformer.
Reference:
https://www.terraform.io/docs/cli/import/usage.html
https://cloud.google.com/docs/terraform