Topic 1 Question 10
A SysOps administrator is troubleshooting an AWS CloudFormation template whereby multiple Amazon EC2 instances are being created. The template is working in us-east-1, but it is failing in us-west-2 with the error code: AMI [ami-12345678] does not exist How should the Administrator ensure that the AWS CloudFormation template is working in every region?
Copy the source region's Amazon Machine Image (AMI) to the destination region and assign it the same ID.
Edit the AWS CloudFormation template to specify the region code as part of the fully qualified AMI ID.
Edit the AWS CloudFormation template to offer a drop-down list of all AMIs to the user by using the AWS::EC2::AMI::ImageID control.
Modify the AWS CloudFormation template by including the AMI IDs in the ג€Mappingsג€ section. Refer to the proper mapping within the template for the proper AMI ID.
ユーザの投票
コメント(7)
- 正解だと思う選択肢: D
Parameters: EnvironmentType: Description: The environment type Type: String Default: test AllowedValues: - prod - test ConstraintDescription: must be a prod or test Mappings: RegionAndInstanceTypeToAMIID: us-east-1: test: "ami-8ff710e2" prod: "ami-f5f41398" us-west-2: test: "ami-eff1028f" prod: "ami-d0f506b0"
...other regions and AMI IDs...Resources:
...other resources...
Outputs: TestOutput: Description: Return the name of the AMI ID that matches the region and environment type keys Value: !FindInMap [RegionAndInstanceTypeToAMIID, !Ref "AWS::Region", !Ref EnvironmentType]
👍 5Goozian2022/07/11 - 正解だと思う選択肢: D
I vote D. Mappings is the solution.
👍 3Mecdrox2022/04/24 - 正解だと思う選択肢: D👍 3Finger412022/05/23
シャッフルモード