This article shows examples of how you can define service accounts and IAM policies for Cloud Functions using Terraform
An example how in-app subscription upgrades handled by RevenueCat can be tracked in ChartMogul. It also gives some insight into one of proration modes for GooglePlay.
These are types of questions that I would ask on a real tech interview. Hands-on, inspired by real-life problems.