A developer is using AWS CloudFormation to deploy an AWS Lambda function. The developer needs to set the Lambda function's timeout value based on the environment parameter of the template. The template contains mappings of EnvironmentData for each environment's timeout value. The environment parameter and EnvironmentData mappings are as follows: Environment parameter: EnvironmentData mappings: Which statement will meet these requirements?


- ATimeout: !GetAtt [EnvironmentData, !Ref Environment, Timeout]
- BTimeout: !FindInMap [EnvironmentData, !Ref Environment, Timeout] (correct answer)
- CTimeout: !Select [EnvironmentData, !Ref Environment, Timeout]
- DTimeout: !ForEach[EnvironmentData, !Ref Environment, Timeout]
Reveal answer & explanationHide answer
The correct answer is B. Option B: Timeout: !FindInMap [EnvironmentData, !Ref Environment, Timeout].

