Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

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.

Exam Professional Cloud Database Engineer topic 1 question 130 discussion

Actual exam question from Google's Professional Cloud Database Engineer
Question #: 130
Topic #: 1
[All Professional Cloud Database Engineer Questions]

Your DevOps team is using Terraform to deploy applications and Cloud SQL databases. After every new application change is rolled out, the environment is torn down and recreated, and the persistent database layer is lost. You need to prevent the database from being dropped. What should you do?

  • A. Set Terraform deletion_protection to true.
  • B. Rerun terraform apply.
  • C. Create a read replica.
  • D. Use point-in-time-recovery (PITR) to recover the database.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
dynamic_dba
Highly Voted 1 year, 1 month ago
A. It makes sense that a Terraform problem would use a Terra form solution. From Google's documentation, "For stateful resources, such as databases, ensure that deletion protection is enabled. The syntax is: lifecycle { prevent_destroy = true } https://cloud.google.com/docs/terraform/best-practices-for-terraform#stateful-resources
upvoted 8 times
...
Pime13
Most Recent 2 weeks, 3 days ago
Selected Answer: A
https://cloud.google.com/docs/terraform/best-practices-for-terraform#stateful-resources
upvoted 1 times
...
DPonly
8 months, 2 weeks ago
Selected Answer: A
For stateful resources, such as databases, ensure that deletion protection is enabled.
upvoted 1 times
...
dedotes
10 months ago
Selected Answer: A
agreed with dynamic_dba
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...