
Answer-first summary for fast verification
Answer: AWS::AccountId
Using CloudFormation, you can create a template that describes all the AWS resources that you want (like Amazon EC2 instances or Amazon RDS DB instances), and AWS CloudFormation takes care of provisioning and configuring those resources for you. Pseudo parameters are parameters that are predefined by AWS CloudFormation. You do not declare them in your template. Use them the same way as you would a parameter, as the argument for the Ref function. AWS::AccountId returns the AWS account ID of the account in which the stack is being created. Incorrect options: AWS::NoValue - This removes the corresponding resource property when specified as a return value in the Fn::If intrinsic function. AWS::Region - Returns a string representing the AWS Region in which the encompassing resource is being created, such as us-west-2. AWS::StackName - Returns the name of the stack as specified with the aws cloudformation create-stack command, such as "teststack".
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your organization utilizes AWS Organizations to oversee and control several AWS accounts. In each of these accounts, numerous CloudFormation templates are actively deployed. Your supervisor has asked that every CloudFormation stack should include the account number of the AWS account in which the stack is being executed.
Which Pseudo parameter should you employ to obtain this account number?
A
AWS::AccountId
B
AWS::StackName
C
AWS::Region
D
AWS::NoValue
No comments yet.