Google Cloud Professional Cloud Developer — Question 185

You are developing a new public-facing application that needs to retrieve specific properties in the metadata of users’ objects in their respective Cloud Storage buckets. Due to privacy and data residency requirements, you must retrieve only the metadata and not the object data. You want to maximize the performance of the retrieval process. How should you retrieve the metadata?

Answer options

Correct answer: D

Explanation

The correct answer is D because using the fields request parameter allows you to specify exactly which metadata fields you want to retrieve, thus improving performance by not fetching unnecessary data. The other methods like patch, compose, and copy are not designed solely for metadata retrieval and would either modify the object or fetch more data than needed.