nerdexam
Google

ASSOCIATE-CLOUD-ENGINEER · Question #25

You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site. Currently, when users click on the links to these PDF files, their browsers prompt them to s

The correct answer is C. Set Content-Type metadata to application/pdf on the PDF file objects.. https://cloud.google.com/storage/docs/metadata#content-type

Submitted by jakub_pl· Mar 30, 2026Ensuring successful operation of a cloud solution

Question

You host a static website on Cloud Storage. Recently, you began to include links to PDF files on this site. Currently, when users click on the links to these PDF files, their browsers prompt them to save the file onto their local system. Instead, you want the clicked PDF files to be displayed within the browser window directly, without prompting the user to save the file locally. What should you do?

Options

  • AEnable Cloud CDN on the website frontend.
  • BEnable `Share publicly' on the PDF file objects.
  • CSet Content-Type metadata to application/pdf on the PDF file objects.
  • DAdd a label to the storage bucket with a key of Content-Type and value of application/pdf.

How the community answered

(29 responses)
  • A
    7% (2)
  • B
    17% (5)
  • C
    72% (21)
  • D
    3% (1)

Explanation

https://cloud.google.com/storage/docs/metadata#content-type

Topics

#Cloud Storage#Content-Type metadata#static website#object metadata

Community Discussion

No community discussion yet for this question.

Full ASSOCIATE-CLOUD-ENGINEER Practice