<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Mark</title>
    <description>The latest articles on Forem by Mark (@devtech8_29).</description>
    <link>https://forem.com/devtech8_29</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3576505%2F611175f4-18d5-44a1-929c-e93e70ea9c9f.png</url>
      <title>Forem: Mark</title>
      <link>https://forem.com/devtech8_29</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/devtech8_29"/>
    <language>en</language>
    <item>
      <title>10 Real-Time Terraform Interview Questions &amp; Answers</title>
      <dc:creator>Mark</dc:creator>
      <pubDate>Fri, 05 Dec 2025 05:27:57 +0000</pubDate>
      <link>https://forem.com/devtech8_29/10-real-time-terraform-interview-questions-answers-2igc</link>
      <guid>https://forem.com/devtech8_29/10-real-time-terraform-interview-questions-answers-2igc</guid>
      <description>&lt;p&gt;1️⃣ What is the difference between Terraform and CloudFormation?&lt;/p&gt;

&lt;p&gt;✅ Terraform: Open-source, multi-cloud, supports mutable &amp;amp; immutable infrastructure.&lt;/p&gt;

&lt;p&gt;✅ CloudFormation: AWS-specific, tightly integrated with AWS services.&lt;/p&gt;

&lt;p&gt;👉 Terraform is preferred for multi-cloud &amp;amp; hybrid environments.&lt;/p&gt;

&lt;p&gt;2️⃣ How does Terraform handle state management?&lt;/p&gt;

&lt;p&gt;👉 Terraform stores state in a .tfstate file, tracking infrastructure changes. It can be stored locally or in a remote backend like S3, Azure Blob, or Terraform Cloud for collaboration.&lt;/p&gt;

&lt;p&gt;3️⃣ What is the purpose of a Terraform backend?&lt;/p&gt;

&lt;p&gt;👉 A backend defines where the state file is stored. It enables:&lt;/p&gt;

&lt;p&gt;✅ Remote state storage (e.g., S3, GCS, Azure Blob)&lt;/p&gt;

&lt;p&gt;✅ State locking (prevents conflicts in team environments)&lt;/p&gt;

&lt;p&gt;✅ Enhanced security &amp;amp; collaboration&lt;/p&gt;

&lt;p&gt;4️⃣ How does Terraform ensure idempotency?&lt;/p&gt;

&lt;p&gt;👉 Terraform follows a declarative approach, meaning running the same configuration multiple times results in the same infrastructure without unintended changes.&lt;/p&gt;

&lt;p&gt;5️⃣ What is the difference between terraform plan and terraform apply?&lt;/p&gt;

&lt;p&gt;✅ terraform plan → Shows what will change before applying.&lt;/p&gt;

&lt;p&gt;✅ terraform apply → Executes the planned changes and modifies infrastructure.&lt;/p&gt;

&lt;p&gt;👉 Always review terraform plan before running apply in production!&lt;/p&gt;

&lt;p&gt;6️⃣ How do you manage sensitive data in Terraform?&lt;/p&gt;

&lt;p&gt;👉 Use Terraform Vault, AWS Secrets Manager, or environment variables instead of hardcoding secrets in .tf files. You can also use terraform.tfvars but never commit it to Git!&lt;/p&gt;

&lt;p&gt;7️⃣ What are Terraform modules and why use them?&lt;/p&gt;

&lt;p&gt;👉 Modules are reusable Terraform configurations that help organize code, improve scalability, and reduce duplication.&lt;/p&gt;

&lt;p&gt;✅ Example: A VPC module can be reused across multiple environments (dev, staging, prod).&lt;/p&gt;

&lt;p&gt;8️⃣ What is terraform import and how does it work?&lt;/p&gt;

&lt;p&gt;👉 terraform import allows existing infrastructure to be brought under Terraform management without recreating it.&lt;/p&gt;

&lt;p&gt;✅ Example: terraform import aws_instance.example i-1234567890abcdef0&lt;/p&gt;

&lt;p&gt;🚨 Note: Terraform only imports state, not configuration. You must manually create .tf files!&lt;/p&gt;

&lt;p&gt;9️⃣ How do you handle drift detection in Terraform?&lt;/p&gt;

&lt;p&gt;👉 Use terraform plan to detect changes made outside Terraform.&lt;/p&gt;

&lt;p&gt;👉 Enable state locking &amp;amp; automation (GitOps) to prevent manual changes.&lt;/p&gt;

&lt;p&gt;🔟 What is the difference between count and for_each in Terraform?&lt;/p&gt;

&lt;p&gt;✅ count → Used for simple resource replication (indexed).&lt;/p&gt;

&lt;p&gt;✅ for_each → Used when managing complex resources like maps &amp;amp; sets.&lt;/p&gt;

&lt;p&gt;👉 Example:&lt;/p&gt;

&lt;p&gt;resource "aws_s3_bucket" "example" {&lt;/p&gt;

&lt;p&gt;for_each = toset(["dev", "staging", "prod"])&lt;/p&gt;

&lt;p&gt;bucket = "my-bucket-${each.key}"&lt;/p&gt;

&lt;p&gt;}&lt;/p&gt;

</description>
      <category>terraform</category>
      <category>cloud</category>
      <category>devops</category>
      <category>infrastructureascode</category>
    </item>
    <item>
      <title>Cloud Comparison Matrix Update</title>
      <dc:creator>Mark</dc:creator>
      <pubDate>Tue, 02 Dec 2025 04:55:19 +0000</pubDate>
      <link>https://forem.com/devtech8_29/cloud-comparison-matrix-update-cm9</link>
      <guid>https://forem.com/devtech8_29/cloud-comparison-matrix-update-cm9</guid>
      <description>&lt;p&gt;Today I published a large update to my Cloud Compare site. Now it shows details feature info for 104 different services between AWS and Azure. &lt;/p&gt;

&lt;p&gt;Take a look &lt;a href="https://devtech8.com/compare_matrix.html" rel="noopener noreferrer"&gt;here&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Added a new feature to devtech.com</title>
      <dc:creator>Mark</dc:creator>
      <pubDate>Thu, 20 Nov 2025 03:59:27 +0000</pubDate>
      <link>https://forem.com/devtech8_29/added-a-new-feature-to-devtechcom-i6</link>
      <guid>https://forem.com/devtech8_29/added-a-new-feature-to-devtechcom-i6</guid>
      <description>&lt;p&gt;It is finally here. The devtech8.com Comparison Matrix for Azure vs AWS is now live. Check it out and be sure to see the detailed comparison for many of the services.&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>azure</category>
      <category>aws</category>
      <category>architecture</category>
    </item>
    <item>
      <title>Hello, is there anybody in there!</title>
      <dc:creator>Mark</dc:creator>
      <pubDate>Tue, 21 Oct 2025 02:14:15 +0000</pubDate>
      <link>https://forem.com/devtech8_29/hello-is-there-anybody-in-there-4f5f</link>
      <guid>https://forem.com/devtech8_29/hello-is-there-anybody-in-there-4f5f</guid>
      <description>&lt;p&gt;With my new website, devtech8.com, I wanted to try and get into blogging and publishing again.&lt;/p&gt;

&lt;p&gt;So here we are, enjoy the ride! Hopefully we don't get a flat!&lt;/p&gt;

</description>
      <category>cloud</category>
      <category>architecture</category>
      <category>azure</category>
      <category>aws</category>
    </item>
  </channel>
</rss>
