CLF-C02 practice question: Deploying and operating on AWS (2 of 2)
Cloud Technology and Services A free question from our original CLF-C02 practice exam. Try it, then open the answer to see why each option is right or wrong.
Each week an administrator repeats 20 steps in the AWS Management Console: she takes snapshots of several Amazon EBS volumes, tags them and deletes old snapshots.
She wants a shell script on a Linux server to run these steps on a schedule, without writing an application.
What should she use?
Choose one answer.
AA. An Amazon Data Lifecycle Manager policy
BB. An AWS CloudFormation stack built from a saved template
CC. The AWS Command Line Interface (AWS CLI)
DD. AWS Trusted Advisor recommendations for the account
B. Wrong: CloudFormation creates and updates stacks of resources from templates. It is not designed for a script that takes snapshots and tidies up old resources on a schedule.
C. Right: Correct. The AWS CLI runs AWS commands from a shell, so a script can take snapshots, tag them and delete old ones. A scheduler such as cron can run that script each week.
D. Wrong: Trusted Advisor recommends best practices and does not run administration tasks. It cannot take snapshots or tidy up resources.
Explanation
The AWS CLI runs the same kinds of operations as the console from a shell script, so the administrator can automate the snapshots, tags and clean-up. Data Lifecycle Manager automates only EBS snapshot and AMI retention, CloudFormation provisions resources from templates, and Trusted Advisor gives recommendations.
Want more on Deploying and operating on AWS? The 5 full-length practice sets have 10 more Deploying and operating on AWS questions, 325 in all, none of them in the free exam. One payment of $14.99, no subscription. See the practice sets →