SOA-C02 exam dumps

SOA-C02 practice question 284 of 341

AWS Certified SysOps Administrator - Associate. Associate level, Amazon Web Services. Free question with the correct answer and a full explanation.

SOA-C02 Question 284

Select 2

You manage a website hosted on Amazon S3 that is served through an Amazon CloudFront distribution. Users report that after updating some content on the S3 bucket, they still see the old content when accessing the website through CloudFront. What steps should you take to resolve this issue and ensure the new content is served?

  1. A

    Invalidate the specific cache objects in CloudFront using an invalidation request.

  2. B

    Update the Cache-Control header for the objects in the S3 bucket to set a shorter TTL.

  3. C

    Delete and recreate the CloudFront distribution.

  4. D

    Enable versioning for the S3 bucket and update the object references in your application.

  5. E

    Disable caching in CloudFront by setting the Minimum TTL to 0.

Show answer and explanation

Correct answers: A, B

Explanation

CloudFront caching issues can often be resolved by invalidating specific cache objects to force CloudFront to fetch updated content or by setting appropriate Cache-Control headers to manage the time-to-live (TTL) for objects. These approaches address the problem without disrupting the entire distribution or bypassing caching altogether, which would reduce performance.

  • A. Correct.

    Invalidating specific cache objects ensures that CloudFront fetches the latest version from the origin (S3 bucket). This is a common and cost-effective way to update cached content.

  • B. Correct.

    Setting a shorter TTL via the Cache-Control header ensures that CloudFront will refresh the content more frequently, reducing the likelihood of serving stale content.

  • C. Incorrect.

    Deleting and recreating the CloudFront distribution is not necessary to resolve caching issues. This would be a drastic and time-consuming step with significant impact on availability.

  • D. Incorrect.

    While enabling versioning can help track and manage object changes, it does not directly address the immediate issue of stale content being served by CloudFront.

  • E. Incorrect.

    Disabling caching in CloudFront by setting Minimum TTL to 0 is not recommended as it negates the purpose of using CloudFront for caching and performance optimization.

Timed practice exam

Take a SOA-C02 practice test under exam conditions

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

Start timed exam