TA-002-P · Question #194
TA-002-P Question #194: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #194. The question stem and answer options stay visible for context.
Question
A colleague has informed you that a new version of a Terraform module that your team hosts on an Amazon S3 bucket is broken. The Amazon S3 bucket has versioning enabled. Your colleague tells you to make sure you are not using the latest version in your configuration. You have the following configuration block in your code that refers to the module: module "infranet" { source = "s3::https://s3-us-west- 2.amazonaws.com/infrabucket/infra_module.zip"} What is the best way to ensure that you are not using the latest version of the module?
Options
- AAdd a module version constraint in your configuration's backend block and specify a
- BAdd a version key to the module configuration and specify a previous version.
- CDelete the latest version of the module in S3 to rollback to the previous version.
- DAdd a version property to the module in Terraform's state file and specify a previous
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.