Valid TA-002-P Dumps shared by ExamDiscuss.com for Helping Passing TA-002-P Exam! ExamDiscuss.com now offer the newest TA-002-P exam dumps, the ExamDiscuss.com TA-002-P exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com TA-002-P dumps with Test Engine here:
Talal is a DevOps engineer and he has deployed the production infrastructure using Terraform. He is using a very large configuration file to maintain and update the actual infrastructure. As the infrastructure have grown to a very complex and large, he has started experiencing slowness when he run runs terraform plan. What are the options for him to resolve this slowness?
Correct Answer: C,D
Explanation For larger infrastructures, querying every resource is too slow. Many cloud providers do not provide APIs to query multiple resources at once, and the round trip time for each resource is hundreds of milliseconds. On top of this, cloud providers almost always have API rate limiting so Terraform can only request a certain number of resources in a period of time. Larger users of Terraform make heavy use of the -refresh=false flag as well as the -target flag in order to work around this. In these scenarios, the cached state is treated as the record of truth. Although 'Use -refresh=false flag as well as the -target flag with terraform plan in order to work around this.' is a solution, but its not always recommended. Instead of using -target as a means to operate on isolated portions of very large configurations, prefer instead to break large configurations into several smaller configurations that can each be independently applied. Data sources can be used to access information about resources created in other configurations, allowing a complex system architecture to be broken down into more manageable parts that can be updated independently. Option 'Run terraform refresh every time before running terraform plan.' and 'Use -refresh=true flag as well as the -target flag with terraform plan in order to work around this.' is not correct because in both the cases terraform will query every resources of the infrastructure.
Recent Comments (The most recent comments are at the top.)
Terraformatter - Jan 07, 2024
C. Break large configurations into several smaller configurations that can each be independently applied.
To resolve slowness issues when working with a very complex and large Terraform configuration, it's often recommended to break the configuration into smaller, more manageable pieces. This allows you to independently apply changes to different parts of the infrastructure, which can improve the performance of terraform plan and other Terraform operations.
Options A and D are related to refreshing the state and specifying targets but may not address the root cause of slowness in a very large configuration. Option B suggests running terraform refresh before terraform plan, but this doesn't directly address the issue of managing a large configuration efficiently. Breaking the configuration into smaller pieces (Option C) is a more effective approach for improving performance and maintainability in such cases.
Recent Comments (The most recent comments are at the top.)
C. Break large configurations into several smaller configurations that can each be independently applied.
To resolve slowness issues when working with a very complex and large Terraform configuration, it's often recommended to break the configuration into smaller, more manageable pieces. This allows you to independently apply changes to different parts of the infrastructure, which can improve the performance of terraform plan and other Terraform operations.
Options A and D are related to refreshing the state and specifying targets but may not address the root cause of slowness in a very large configuration. Option B suggests running terraform refresh before terraform plan, but this doesn't directly address the issue of managing a large configuration efficiently. Breaking the configuration into smaller pieces (Option C) is a more effective approach for improving performance and maintainability in such cases.