PDF links on your static site in Cloud Storage prompt users to save the file instead of displaying in the browser. How do you make PDFs open inline in the browser?
Choose an answer
Tap an option to check your answer.
Correct answer: Set the Content-Type metadata to application/pdf on the PDF objects..
Why this is the answer
Setting the Content-Type metadata to application/pdf on the PDF objects directly instructs the browser on how to handle the file. When a browser receives a file with this Content-Type, it typically attempts to display the PDF inline if it has a built-in viewer or a suitable plugin. Enabling Cloud CDN improves content delivery speed but doesn't dictate how a browser renders specific file types. Making PDF objects publicly shared is necessary for access but doesn't control inline display versus download. Adding a bucket label is for organizational purposes within Cloud Storage and has no impact on how a browser interprets file content.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed