Google Professional Cloud Network Engineer exam dumps

Google Professional Cloud Network Engineer practice question 516 of 790

Professional Cloud Network Engineer. Professional level, Google Cloud. Free question with the correct answer and a full explanation.

Google Professional Cloud Network Engineer Question 516

Single answerGoogle Cloud Platform

You have set up a Cloud CDN to cache content for your application hosted on Google Cloud. Recently, your team updated some static assets (e.g., JavaScript and CSS files) that were already cached. You want to ensure that users receive the updated content immediately. What is the most effective way to invalidate the outdated cached content?

  1. A

    Use the gcloud command to invalidate the specific cached content by its URL.

  2. B

    Manually delete the cached content from the Cloud CDN edge locations.

  3. C

    Update the TTL (Time-to-Live) settings for the cached content to force expiration.

  4. D

    Rename the updated files and update the application to reference the new file names.

Show answer and explanation

Correct answer: A

Explanation

The most effective way to invalidate cached content in Cloud CDN is by using the gcloud command to perform a cache invalidation. This approach targets specific URLs and forces Cloud CDN to fetch the updated content from the origin, ensuring users receive the correct assets without requiring changes to the application or waiting for the TTL to expire.

  • A. Correct.

    Correct. The gcloud command allows you to invalidate specific cached content by URL, ensuring that outdated content is no longer served and new content is fetched from the origin.

  • B. Incorrect.

    Incorrect. You cannot manually delete cached content from Cloud CDN edge locations. Cloud CDN provides tools like cache invalidation to manage cached content.

  • C. Incorrect.

    Incorrect. Changing the TTL does not immediately invalidate existing cached content. It only affects how long new content will be cached moving forward.

  • D. Incorrect.

    Incorrect. While renaming files can ensure updated files are served, it is not the most efficient method and requires modifying the application, which could introduce unnecessary complexity.

Timed practice exam

Take a Google Professional Cloud Network Engineer practice test under exam conditions

60 questions in 120 minutes, drawn from this bank, with a score report and a per-question review when you finish.

Start timed exam