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)- A7% (2)
- B17% (5)
- C72% (21)
- D3% (1)
Explanation
Topics
#Cloud Storage#Content-Type metadata#static website#object metadata
Community Discussion
No community discussion yet for this question.