ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 127 - Professional Cloud Database Engineer discussion

Report
Export

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.
Answers
A.
Set Terraform deletion_protection to true.
B.
Rerun terraform apply.
Answers
B.
Rerun terraform apply.
C.
Create a read replica.
Answers
C.
Create a read replica.
D.
Use point-in-time-recovery (PITR) to recover the database.
Answers
D.
Use point-in-time-recovery (PITR) to recover the database.
Suggested answer: A

Explanation:

. 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

asked 18/09/2024
Maija Janite
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first