Associate Cloud Engineer practice question · Planning and implementing a cloud solution
A team manages its Google Cloud infrastructure with Terraform. They want to configure a feature that is still in…
A team manages its Google Cloud infrastructure with Terraform. They want to configure a feature that is still in Preview, and the generally available google provider doesn't support it yet. What should they do so they can manage the feature with Terraform?
- ADeclare the google-beta provider and set it as the provider on the resources that use the Preview feature
- BPin the configuration to an earlier major version of the google provider that includes more features
- CCreate the resource in the console, then run terraform import to manage it with the google provider
- DEnable the feature's API with gcloud services enable and keep using the google provider
Show the answer and explanation
Correct answer: A) Declare the google-beta provider and set it as the provider on the resources that use the Preview feature
To manage Preview or beta Google Cloud features with Terraform, use the google-beta provider. The standard google provider supports generally available features only.
Why each option is right or wrong
- A) Correct. The google-beta provider is built from the same Magic Modules codebase as the google provider and exposes beta and Preview API features. The google provider is limited to GA features. Resources that need Preview fields must explicitly use google-beta.
- B) Incorrect. Earlier versions of the google provider don't add Preview functionality. Every google provider release targets GA features only, so going back a version only removes newer GA support.
- C) Incorrect. terraform import only works for resource types and fields the provider's schema already supports. If the google provider doesn't model the Preview feature, importing the resource won't let Terraform manage that feature.
- D) Incorrect. Enabling an API lets the project call it, but it doesn't change what the Terraform provider supports. The google provider still won't expose fields or resources that exist only in Preview.
- Exam domain
- Planning and implementing a cloud solution · ~30% of Associate Cloud Engineer
- Question type
- Multiple choice (one answer)
Related Associate Cloud Engineer questions
- A business-critical application runs on a Cloud SQL for MySQL instance in Enterprise edition, configured for high…Planning and implementing a cloud solution
- A company serves a public website through a global external Application Load Balancer with Cloud CDN enabled.Planning and implementing a cloud solution
- A team is creating a managed instance group (MIG). Every VM the group creates, whether during autoscaling or…Planning and implementing a cloud solution
- A team runs a large, fault-tolerant batch data-processing job on Compute Engine a few times per quarter.Planning and implementing a cloud solution
All 60 free Associate Cloud Engineer questions by domain · 15 sample questions on one page
Practise the full Associate Cloud Engineer exam
This question is one of a small free sample from the CertRidge Associate Cloud Engineer bank. Full practice exams match the real exam's length, time limit and domain weights, explain every option, and Review Mode re-drills the questions you miss.
Original question written from the official exam guide. Not affiliated with Google Cloud; never copied from the real exam.