nerdexam
Google

PROFESSIONAL-CLOUD-DEVELOPER · Question #219

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 resid

The correct answer is D. Use the fields request parameter.. The fields request parameter enables partial responses in the Google Cloud Storage JSON API, returning only the metadata fields you specify instead of the full resource representation. This satisfies both requirements: it retrieves metadata without touching object data (meeting t

Integrating Google Cloud services

Question

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?

Options

  • AUse the patch method.
  • BUse the compose method.
  • CUse the copy method.
  • DUse the fields request parameter.

How the community answered

(30 responses)
  • A
    10% (3)
  • B
    3% (1)
  • C
    3% (1)
  • D
    83% (25)

Explanation

The fields request parameter enables partial responses in the Google Cloud Storage JSON API, returning only the metadata fields you specify instead of the full resource representation. This satisfies both requirements: it retrieves metadata without touching object data (meeting the privacy/residency requirement) and minimizes payload size for maximum performance. The patch method (A) is for updating metadata, not reading it. The compose method (B) concatenates objects. The copy method (C) duplicates objects. None of A, B, or C are read operations limited to metadata.

Topics

#Cloud Storage#API Optimization#Metadata Retrieval#Partial Responses

Community Discussion

No community discussion yet for this question.

Full PROFESSIONAL-CLOUD-DEVELOPER Practice