exam questions

Exam Associate Cloud Engineer All Questions

View all questions & answers for the Associate Cloud Engineer exam

Exam Associate Cloud Engineer topic 1 question 144 discussion

Actual exam question from Google's Associate Cloud Engineer
Question #: 144
Topic #: 1
[All Associate Cloud Engineer Questions]

You have a Compute Engine instance hosting an application used between 9 AM and 6 PM on weekdays. You want to back up this instance daily for disaster recovery purposes. You want to keep the backups for 30 days. You want the Google-recommended solution with the least management overhead and the least number of services. What should you do?

  • A. 1. Update your instances' metadata to add the following value: snapshotג€"schedule: 0 1 * * * 2. Update your instances' metadata to add the following value: snapshotג€"retention: 30
  • B. 1. In the Cloud Console, go to the Compute Engine Disks page and select your instance's disk. 2. In the Snapshot Schedule section, select Create Schedule and configure the following parameters: - Schedule frequency: Daily - Start time: 1:00 AM ג€" 2:00 AM - Autodelete snapshots after: 30 days
  • C. 1. Create a Cloud Function that creates a snapshot of your instance's disk. 2. Create a Cloud Function that deletes snapshots that are older than 30 days. 3. Use Cloud Scheduler to trigger both Cloud Functions daily at 1:00 AM.
  • D. 1. Create a bash script in the instance that copies the content of the disk to Cloud Storage. 2. Create a bash script in the instance that deletes data older than 30 days in the backup Cloud Storage bucket. 3. Configure the instance's crontab to execute these scripts daily at 1:00 AM.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ESP_SAP
Highly Voted 4 years ago
Correct Answer is (B): Creating scheduled snapshots for persistent disk This document describes how to create a snapshot schedule to regularly and automatically back up your zonal and regional persistent disks. Use snapshot schedules as a best practice to back up your Compute Engine workloads. After creating a snapshot schedule, you can apply it to one or more persistent disks. https://cloud.google.com/compute/docs/disks/scheduled-snapshots
upvoted 43 times
[Removed]
3 years, 11 months ago
Definitely B. With something like this, you should not have to write any custom scripts, custom functions, or cron jobs. This is google's way of saying 'hey, we've already built that stuff in to our snapshot schedules feature.
upvoted 10 times
...
...
Ridhanya
Highly Voted 2 years, 8 months ago
it is b. we cannot define snapshot config in instance metadata. VM instance metadata is used only for: startup and shutdown scripts host maintanence guest attributes
upvoted 5 times
...
ccpmad
Most Recent 3 months, 1 week ago
Now in 2024, use backup&DR for this. But in 2020 it was B
upvoted 1 times
...
Jonassamr
3 months, 2 weeks ago
Selected Answer: B
https://cloud.google.com/compute/docs/instances/schedule-instance-start-stop
upvoted 1 times
ccpmad
3 months, 1 week ago
No, it is not about schedule start-stop, is about snapshot schedule of the disks... but yes, it is B.
upvoted 1 times
...
...
idk_4
7 months, 2 weeks ago
Selected Answer: B
I think when we think about best practice, we should always think about being practical. The most practical method is usually the best practice with a few exceptions. In this scenario, Answers C and D require a lot of effort. Answer A seems not quite relevant. Answer B is the only correct option.
upvoted 1 times
...
Captain1212
1 year ago
Selected Answer: B
B is the correct answer
upvoted 2 times
...
Rajat2309sharma
1 year, 7 months ago
Selected Answer: B
B is ans
upvoted 1 times
...
slcvlctetri
1 year, 8 months ago
Selected Answer: B
got this question 2 days ago. B is right.
upvoted 3 times
...
AzureDP900
2 years, 2 months ago
B is more appropriate
upvoted 1 times
...
nhadi82
2 years, 3 months ago
Selected Answer: B
Correct Answer B
upvoted 1 times
...
gcpengineer
3 years, 1 month ago
why not C?
upvoted 3 times
Gianfry
2 years, 9 months ago
The question calls for "Google-recommended solution with the least management overhead and the least number of services"
upvoted 3 times
...
...
arsh1916
3 years, 3 months ago
B is correct
upvoted 2 times
...
Hi2ALL
3 years, 5 months ago
B is more realistic approach
upvoted 3 times
...
GCP_user
3 years, 5 months ago
B is the best option so far. However just wonder this: Schedule frequency: Daily " Start time: 1:00 AM " 2:00 AM" Autodelete snapshots: after 30 days; For Saturday and Sunday it will be a waste of resource to create snapshots since the instance is running during weekdays.
upvoted 2 times
...
GCP_Student1
3 years, 6 months ago
B. 1. In the Cloud Console, go to the Compute Engine Disks page and select your instance's disk. 2. In the Snapshot Schedule section, select Create Schedule and configure the following parameters: "" Schedule frequency: Daily "" Start time: 1:00 AM "" 2:00 AM "" Autodelete snapshots after 30 days
upvoted 2 times
...
DucSiu
3 years, 7 months ago
It's B
upvoted 1 times
...
Bhagirathi
3 years, 9 months ago
B for sure, any doubt?
upvoted 1 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago