Mount the S3 pricing file with Mountpoint for Amazon S3 to eliminate stale pricing
An entertainment company hosts a ticketing service on a fleet of Linux Amazon EC2 instances that are in an Auto Scaling group. The ticketing service uses a pricing file. The pricing file is stored in an Amazon S3 bucket that has S3 Standard storage. A central pricing solution that is hosted by a third party updates the pricing file. The pricing file is updated every 1-15 minutes and has several thousand line items. The pricing file is downloaded to each EC2 instance when the instance launches. The EC2 instances occasionally use outdated pricing information that can result in incorrect charges for customers. Which solution will resolve this problem MOST cost-effectively?
Community Votes
61% of anonymous learners picked answer C. Votes are pick records left by other test-takers — they are not the verified answer.
Community Insight
Mountpoint for Amazon S3 presents the bucket as a local file system backed by S3's strong consistency, so the ticketing service always reads the current object from S3 without any local copy, no download step at launch, and no refresh job.
A ticketing service on Linux EC2 instances downloads a pricing file from S3 at instance launch, so instances that have been running for a while serve outdated prices. A third party updates the file every one to fifteen minutes and the file has several thousand line items.
Replicating the pricing data into DynamoDB or EFS. Both require a Lambda function or the ticketing service itself to be modified to read from the new store, which is application change work, whereas Mountpoint is a mount with the file still in S3.
Community Discussion (13 comments)
Comments & Corrections
No comments yet — spotted an error or have a note? Share it below.
Expert Analysis
Why the Answer Is Correct
Mountpoint for Amazon S3 makes the S3 bucket appear as a directory on the instance, and because Amazon S3 offers strong read-after-write consistency, every read returns the current version of the pricing object. The ticketing service points at the mount path and immediately sees updates pushed by the third party every one to fifteen minutes, so stale pricing disappears without any refresh logic. Mountpoint is a mount rather than a copy, so nothing needs to be downloaded at instance launch, and there is no Lambda function, database table, or application change to maintain. It is also available for Linux, which is the stated operating system.Why the Other Options Are Wrong
A: A DynamoDB table would hold a copy of the prices, which means updating the ticketing service to read from a key-value store instead of a file, and the per-read cost of a database lookup for thousands of line items on every pricing check is higher than S3 reads. B: An EFS file share would also work as a shared file system, but it requires a Lambda function to refresh the content on every update, adding a moving part that Mountpoint does not need. D: An EBS Multi-Attach volume is attached to running instances, so a newly launched instance does not automatically see the pricing file that another instance wrote, and updating it on launch is exactly the mechanism that already causes the staleness.Community Comment Notes
The community voted 61 to 39 for C over A. The arguments for C cited S3 strong consistency and the fact that Mountpoint requires no code change to the file read path, while a commenter pointing to the documentation also noted the Linux-only availability matches the stated fleet. The dissenting votes for A argued on cost, but they require modifying the ticketing service to query a database.Official Reference
Related Analysis
Practice All SAP-C02 Questions
Access 85 questions with complete answers and detailed explanations.
View Full SAP-C02 Practice Test →