Exams > Amazon > AWS Certified Solutions Architect - Professional
AWS Certified Solutions Architect - Professional
Page 29 out of 101 pages Questions 281-290 out of 1009 questions
Question#281

Which status represents a failure state in AWS CloudFormation?

  • A. ROLLBACK_IN_PROGRESS
  • B. DELETE_IN_PROGRESS
  • C. UPDATE_COMPLETE_CLEANUP_IN_PROGRESS
  • D. REVIEW_IN_PROGRESS
Discover Answer Hide Answer

A
ROLLBACK_IN_PROGRESS means an ongoing removal of one or more stacks after a failed stack creation or after an explicitly canceled stack creation.
DELETE_IN_PROGRESS means an ongoing removal of one or more stacks. REVIEW_IN_PROGRESS means an ongoing creation of one or more stacks with an expected StackId but without any templates or resources.
UPDATE_COMPLETE_CLEANUP_IN_PROGRESS means an ongoing removal of old resources for one or more stacks after a successful stack update.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-describing-stacks.html

Question#282

You are playing around with setting up stacks using JSON templates in CloudFormation to try and understand them a little better. You have set up about 5 or 6 but now start to wonder if you are being charged for these stacks.
What is AWS's billing policy regarding stack resources?

  • A. You are not charged for the stack resources if they are not taking any traffic.
  • B. You are charged for the stack resources for the time they were operating (but not if you deleted the stack within 30 minutes)
  • C. You are charged for the stack resources for the time they were operating (but not if you deleted the stack within 60 minutes)
  • D. You are charged for the stack resources for the time they were operating (even if you deleted the stack right away)
Discover Answer Hide Answer

D
A stack is a collection of AWS resources that you can manage as a single unit. In other words, you can create, update, or delete a collection of resources by creating, updating, or deleting stacks. All the resources in a stack are defined by the stack's AWS CloudFormation template. A stack, for instance, can include all the resources required to run a web application, such as a web server, a database, and networking rules. If you no longer require that web application, you can simply delete the stack, and all of its related resources are deleted. You are charged for the stack resources for the time they were operating (even if you deleted the stack right away).
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/stacks.html

Question#283

In an AWS CloudFormation template, each resource declaration includes:

  • A. a logical ID, a resource type, and resource properties
  • B. a variable resource name and resource attributes
  • C. an IP address and resource entities
  • D. a physical ID, a resource file, and resource data
Discover Answer Hide Answer

A
In AWS CloudFormation, each resource declaration includes three parts: a logical ID that is unique within the template, a resource type, and resource properties.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/concept-resources.html

Question#284

For AWS CloudFormation, which stack state refuses UpdateStack calls?

  • A. UPDATE_ROLLBACK_FAILED
  • B. UPDATE_ROLLBACK_COMPLETE
  • C. UPDATE_COMPLETE
  • D. CREATE_COMPLETE
Discover Answer Hide Answer

A
When a stack is in the UPDATE_ROLLBACK_FAILED state, you can continue rolling it back to return it to a working state (to
UPDATE_ROLLBACK_COMPLETE). You cannot update a stack that is in the UPDATE_ROLLBACK_FAILED state. However, if you can continue to roll it back, you can return the stack to its original settings and try to update it again.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-continueupdaterollback.html

Question#285

In the context of AWS CloudFormation, which of the following statements is correct?

  • A. Actual resource names are a combination of the resource ID, stack, and logical resource name.
  • B. Actual resource name is the stack resource name.
  • C. Actual resource name is the logical resource name.
  • D. Actual resource names are a combination of the stack and logical resource name.
Discover Answer Hide Answer

D
In AWS CloudFormation, actual resource names are a combination of the stack and logical resource name. This allows multiple stacks to be created from a template without fear of name collisions between AWS resources.
Reference:
https://aws.amazon.com/cloudformation/faqs/

Question#286

When using the AWS CLI for AWS CloudFormation, which of the following commands returns a description of the specified resource in the specified stack?

  • A. describe-stack-events
  • B. describe-stack-resource
  • C. create-stack-resource
  • D. describe-stack-returns
Discover Answer Hide Answer

B
awsclicloudformation describe-stack-resource Description
Returns a description of the specified resource in the specified stack. For deleted stacks, describe-stack-resource returns resource information for up to 90 days after the stack has been deleted.
Reference:
http://docs.aws.amazon.com/cli/latest/reference/cloudformation/describe-stack-resource.html

Question#287

A user is using CloudFormation to launch an EC2 instance and then configure an application after the instance is launched. The user wants the stack creation of
ELB and AutoScaling to wait until the EC2 instance is launched and configured properly.
How can the user configure this?

  • A. The user can use the DependentCondition resource to hold the creation of the other dependent resources.
  • B. It is not possible that the stack creation will wait until one service is created and launched.
  • C. The user can use the HoldCondition resource to wait for the creation of the other dependent resources.
  • D. The user can use the WaitCondition resource to hold the creation of the other dependent resources.
Discover Answer Hide Answer

D
AWS CloudFormation is an application management tool that provides application modeling, deployment, configuration, management, and related activities. AWS
CloudFormation provides a WaitCondition resource that acts as a barrier and blocks the creation of other resources until a completion signal is received from an external source, such as a user application or management system.
Reference:
http://aws.amazon.com/cloudformation/faqs

Question#288

AWS ________supports__________ environments as one of the AWS resource types.

  • A. Elastic Beanstalk; Elastic Beanstalk application
  • B. CloudFormation; Elastic Beanstalk application
  • C. Elastic Beanstalk ; CloudFormation application
  • D. CloudFormation; CloudFormation application
Discover Answer Hide Answer

B
AWS CloudFormation and AWS Elastic Beanstalk services are designed to complement each other. AWS CloudFormation supports Elastic Beanstalk application environments as one of the AWS resource types.
Reference:
http://aws.amazon.com/cloudformation/faqs/

Question#289

AWS CloudFormation ______ are special actions you use in your template to assign values to properties that are not available until runtime.

  • A. intrinsic functions
  • B. properties declarations
  • C. output functions
  • D. conditions declarations
Discover Answer Hide Answer

A
AWS CloudFormation intrinsic functions are special actions you use in your template to assign values to properties not available until runtime. Each function is declared with a name enclosed in quotation marks (""), a single colon, and its parameters.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-fuctions-structure.html

Question#290

For Amazon EC2 issues, while troubleshooting AWS CloudFormation, you need to view the cloud-init and cfn logs for more information. Identify a directory to which these logs are published.

  • A. /var/opt/log/ec2
  • B. /var/log/lastlog
  • C. /var/log/
  • D. /var/log/ec2
Discover Answer Hide Answer

C
When you use AWS CloudFormation, you might encounter issues when you create, update, or delete AWS CloudFormation stacks.
For Amazon EC2 issues, view the cloud-init and cfn logs. These logs are published on the Amazon EC2 instance in the /var/log/ directory. These logs capture processes and command outputs while AWS CloudFormation is setting up your instance. For Windows, view the EC2Configure service and cfn logs in %
ProgramFiles%\Amazon\EC2ConfigService and C:\cfn\log.
You can also configure your AWS CloudFormation template so that the logs are published to Amazon CloudWatch, which displays logs in the AWS Management
Console so you don't have to connect to your Amazon EC2 instance.
Reference:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/troubleshooting.html

chevron rightPrevious Nextchevron right