Describe how you would implement a queue data structure, including choices of underlying storage and concurrency considerations relevant to systems engineering on AWS.
Implement process_queue(operations, capacity), which simulates a bounded FIFO queue. Each operation is ['put', value] or ['get']; return True or False for put, and the dequeued value or None for get. Use O(1) queue operations and protect shared state with a lock. The test harness applies operations sequentially, while the implementation must be safe for concurrent callers.
def process_queue(operations, capacity):