Which RQL query will help create a custom identity and access management (1AM) policy to alert on Lambda functions that have permission to terminate FP9 instances?
Correct Answer: A
To create a custom Identity and Access Management (IAM) policy that alerts on Lambda functions with permissions to terminate EC2 instances, the correct RQL query structure involves specifying the source service (Lambda), the destination service (EC2), and the specific action of interest ('ec2:TerminateInstances'). The query should identify configurations where a Lambda function ('source.cloud.service.name = 'lambda' and 'source.cloud.resource.type = 'function') has been granted permissions that allow it to perform the 'ec2:TerminateInstances' action on EC2 instances ('dest.cloud.service.name = 'ec2'). This query helps in identifying and mitigating potential risks associated with overly permissive functions that could inadvertently or maliciously impact the availability of EC2 resources.