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 216 discussion

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

You are working for a hospital that stores its medical images in an on-premises data room. The hospital wants to use Cloud Storage for archival storage of these images. The hospital wants an automated process to upload any new medical images to Cloud Storage. You need to design and implement a solution. What should you do?

  • A. Create a Pub/Sub topic, and enable a Cloud Storage trigger for the Pub/Sub topic. Create an application that sends all medical images to the Pub/Sub topic.
  • B. Create a script that uses the gcloud storage command to synchronize the on-premises storage with Cloud Storage, Schedule the script as a cron job.
  • C. Create a Pub/Sub topic, and create a Cloud Function connected to the topic that writes data to Cloud Storage. Create an application that sends all medical images to the Pub/Sub topic.
  • D. In the Google Cloud console, go to Cloud Storage. Upload the relevant images to the appropriate bucket.
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
shreykul
Highly Voted 1 year, 4 months ago
Selected Answer: C
Option C is more robust and utilises the GCP functionalities correctly.
upvoted 7 times
qannik
1 year, 4 months ago
You can not send images to a Pub/Sub topic.
upvoted 4 times
...
...
sinh
Highly Voted 10 months, 3 weeks ago
Same as No.168.
upvoted 6 times
...
PiperMe
Most Recent 9 months, 1 week ago
Selected Answer: B
B makes the most sense. Using the gcloud storage command to synchronize offers a straightforward way to mirror the on-premises data with Cloud Storage. Cron jobs are a well-established mechanism for scheduling recurring tasks, ensuring the synchronization process runs according to the hospital's needs. This approach is relatively easy to set up and maintain, especially for on-premises systems where installing additional software might be restricted.
upvoted 4 times
...
Cynthia2023
11 months, 1 week ago
Selected Answer: B
A. Pub/Sub topic with a Cloud Storage trigger: • Google Cloud Pub/Sub is a messaging service for exchanging event data among applications and services. However, creating a Cloud Storage trigger for a Pub/Sub topic isn't feasible as triggers usually work the other way around (Cloud Storage events triggering Pub/Sub messages). • This option would not provide a direct or automated way to upload images from on-premises storage to Cloud Storage.
upvoted 3 times
Cynthia2023
11 months, 1 week ago
. Script using gcloud storage command and cron job: • This approach involves writing a script that synchronizes the on-premises storage with Cloud Storage using the gcloud storage command. • Scheduling this script as a cron job would automate the process, allowing for regular uploads of new images without manual intervention. • This is a straightforward approach and aligns well with the requirement of automated archival storage.
upvoted 3 times
Cynthia2023
11 months, 1 week ago
gcloud storage Command: there is no gcloud storage command in the Google Cloud SDK. The gcloud tool does not directly provide a functionality for synchronizing files to Google Cloud Storage. Correct Tool - gsutil: The correct tool to use for synchronizing files with Google Cloud Storage is gsutil, specifically the gsutil rsync command. gsutil is indeed part of the Google Cloud SDK, but it's a separate tool from gcloud.
upvoted 3 times
Cynthia2023
11 months, 1 week ago
I still go with B, because it's the closest answer.
upvoted 4 times
...
...
...
...
KelvinToo
11 months, 1 week ago
Selected Answer: A
Per ChatGPT, Option A is the most appropriate solution for the hospital's requirement as it provides an automated, scalable, and event-driven approach for uploading new medical images from the on-premises data room to Cloud Storage.
upvoted 1 times
PiperMe
9 months, 1 week ago
You can't use ChatGCP with Google questions! Gemini all the way ;) That being said, B is the best solution. It provides a reliable, scheduled, and easy-to-manage solution that aligns perfectly with the hospital's need to automate archival storage of medical images in Cloud Storage. Introducing Pub/Sub and an additional application adds complexity. While Pub/Sub can be useful for event-driven architectures, it's overkill for this basic synchronization.
upvoted 1 times
PiperMe
9 months, 1 week ago
ChatGPT... I've been writing GCP too many times today lol
upvoted 1 times
...
...
...
ogerber
12 months ago
Selected Answer: B
Its B, replicated question.
upvoted 2 times
...
hylee
12 months ago
Selected Answer: B
Hello, guys. the exact same question was Question. 91. and the answer was : - Create a script that uses the gsutil command line interface to synchronize the on-premises storage with Cloud Storage. Schedule the script as a cron job. So I would vote for B
upvoted 4 times
...
carlalap
1 year ago
The answer is C. The hint is "The hospital wants an automated process to upload any new medical images to Cloud Storage". By creating a Cloud Function connected to the topic, you can write a serverless function that automatically executes when a new message is published to the topic. The Cloud Function can then write the data to Cloud Storage, which is a durable and cost-effective storage service for archival purposes.
upvoted 1 times
...
joao_01
1 year, 2 months ago
Selected Answer: B
This question already appear before. But before the B option was with "gsutil" command, now is with the "gcloud" storage command. Despite this difference i believe the answer is still B cause this new command is more or less the same as the "gsutil". Look at these link: https://cloud.google.com/blog/products/storage-data-transfer/new-gcloud-storage-cli-for-your-data-transfers
upvoted 2 times
...
kavi444
1 year, 3 months ago
B is not correct , as it states using gcloud command. One must use gsutil instead. IMO, C is correct.
upvoted 1 times
markoniz
1 year, 3 months ago
I believe that you could use "gcloud storage cp" command as alternative to gsutil # https://cloud.google.com/sdk/gcloud/reference/storage/cp # https://cloud.google.com/blog/products/storage-data-transfer/new-gcloud-storage-cli-for-your-data-transfers
upvoted 1 times
...
...
3arle
1 year, 4 months ago
Selected Answer: B
Repeated question
upvoted 2 times
...
happydays
1 year, 4 months ago
Selected Answer: B
THIS IS B
upvoted 4 times
...
gpais
1 year, 4 months ago
Selected Answer: B
We are dealing with image files so google cloud storage seems more appropriate
upvoted 3 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 ...