Skip to main content
AWS-DOP-C02 • MODULE 13 OF 24 10 Timed Sets • 50 Verified MCQs

Module 13: Terraform Fundamentals, Remote State & Modular IaC — AWS-DOP-C02 Mock Tests

Eliminate manual infrastructure clicks permanently with HashiCorp Terraform: HCL2, plan/apply lifecycle, S3+DynamoDB remote state, and clean modules.

⚡ START MODULE 13 PRACTICE

Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle

Start your baseline timed assessment for this module

Module 13 Assessment Rules & Format Every Attempt Helps You Improve • Track Your Progress, One Topic at a Time.
Question Bank 50 MCQs
Timed Sets 10 (10 Topics)
Duration 20 min / set
Pass Benchmark 70%
Negative Marking Up to -0.25 / wrong
Daily Access ∞ Unlimited Free

Integrity & Navigation: Questions can be revisited, changed, or flagged for review before final submission; answers auto-save across browser refreshes, and answer keys stay locked server-side until submitted.

Your Module 13 Progress

Completion Status & Revision Focus

Practice Today. Perform Better Tomorrow. No completed attempts recorded in Module 13 yet — start any topic below to generate your topic scorecard and unlock personalized revision suggestions.

AWS Certified DevOps Engineer • Module 13

Topic-Wise Timed Mock Tests (10 Topics)

Instant scorecard + detailed explanations
Topic 13.1 1 Set

Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle

5 Qs • 20 min • Pass 70%

Topic 13.2 1 Set

HCL2 Expressions: Variables, Locals, `for_each`, `count` & Dynamic Blocks

5 Qs • 20 min • Pass 70%

Topic 13.3 1 Set

Terraform Remote State: S3 Encryption, Versioning & DynamoDB State Locking

5 Qs • 20 min • Pass 70%

Topic 13.4 1 Set

Writing Clean Composable Terraform Modules (`variables`, `outputs`, `versions`)

5 Qs • 20 min • Pass 70%

Topic 13.5 1 Set

Environment Separation Patterns: Directories vs Workspaces vs Terragrunt

5 Qs • 20 min • Pass 70%

Topic 13.6 1 Set

Zero-Downtime Lifecycle Meta-Arguments (`create_before_destroy`, `prevent_destroy`)

5 Qs • 20 min • Pass 70%

Topic 13.7 1 Set

Importing Existing ClickOps Infrastructure (`import {}` Blocks & `moved {}`)

5 Qs • 20 min • Pass 70%

Topic 13.8 1 Set

Secrets Hygiene Inside Terraform (Never Store Plaintext Secrets in State)

5 Qs • 20 min • Pass 70%

Topic 13.9 1 Set

IaC Automated Policy & Compliance Scanning (`Checkov`, `tflint`, `tfsec`)

5 Qs • 20 min • Pass 70%

Topic 13.10 1 Set

Terraform PR Automation (`plan` on PR, `apply` on Merge) & Drift Detection

5 Qs • 20 min • Pass 70%

Sample Module 13 Practice Preview

Sample Terraform Fundamentals, Remote State & Modular IaC MCQ Questions & Answers

Click “Reveal Answer & Explanation” to check yourself
Q1 • Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle Module 13 Sample

In production AWS DevOps, Terraform & EKS (Terraform), what is the primary engineering purpose of 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle'?

  • A. Provision repeatable identical infrastructure cleanly without ordering spaghetti scripts.
  • B. Hardcoding plaintext production database credentials, API secrets, and root keys inside Git repositories.
  • C. Deploying unverified changes directly to live production without automated tests or rollback plans.
  • D. Bypassing authentication, input validation, and TLS encryption across internal API endpoints.
✓ Reveal Answer & Explanation

Correct Answer: Option A

'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle' is used in production Terraform specifically for: Provision repeatable identical infrastructure cleanly without ordering spaghetti scripts.

Q2 • Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle Module 13 Sample

Which critical production Cloud & DevOps defect MUST an engineer avoid when implementing 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle'?

  • A. Validating changes through automated Checkov, Trivy, OPA & Pytest/Terratest suites, structured logs, and clean rollbacks.
  • B. Git-ignoring .terraform.lock.hcl letting incompatible provider versions break plans unexpectedly!
  • C. Enforcing least-privilege access control, bounded timeouts, and idempotent retries.
  • D. Shipping reproducible container images and parameterized SQL/IaC modules.
✓ Reveal Answer & Explanation

Correct Answer: Option B

A high-impact production failure mode with 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle' is: Git-ignoring .terraform.lock.hcl letting incompatible provider versions break plans unexpectedly!

Q3 • Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle Module 13 Sample

Which technical scope accurately describes the core mechanics of 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle'?

  • A. Disabling TLS verification, wildcarding CORS/IAM permissions, and ignoring alert budgets.
  • B. Skipping schema migrations, unit/integration verification, and CI security scanning completely.
  • C. terraform init, plan, apply, destroy, dependency graph execution & .terraform.lock.hcl
  • D. Running single-node stateful workloads with no health checks, backups, or observability.
✓ Reveal Answer & Explanation

Correct Answer: Option C

Core technical coverage of 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle' comprises: terraform init, plan, apply, destroy, dependency graph execution & .terraform.lock.hcl.

Q4 • Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle Module 13 Sample

What is the expected hands-on deliverable for completing the engineering lab on 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle'?

  • A. Committing .env secrets, SSH private keys, and terraform .tfstate files to a public repository.
  • B. Skipping static analysis and writing raw unescaped string-interpolated queries.
  • C. Testing manually in local dev once and ignoring failure recovery, latency, or resource limits.
  • D. Initialize pinned AWS provider ~> 5.0 cleanly reviewing saved binary plan files.
✓ Reveal Answer & Explanation

Correct Answer: Option D

Practical mastery of 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle' is verified through: Initialize pinned AWS provider ~> 5.0 cleanly reviewing saved binary plan files.

Q5 • Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle Module 13 Sample

In a Cloud & DevOps SDE technical interview on 'Declarative vs Imperative IaC & Terraform Provider Plugin Lifecycle', what demonstrates senior AWS DevOps, Terraform & EKS readiness?

  • A. Explaining 'terraform init, plan, apply, destroy, dependency graph execution & .terraform.lock.hcl' internals, preventing 'Git-ignoring .terraform.lock.hcl letting incompatible provider versions break plans unexpectedly!', and d...
  • B. Mixing raw SQL queries, HTTP handlers, and domain business rules inside one global script.
  • C. Disabling CSRF/rate limiting and running privileged containers as root in production.
  • D. Making ad-hoc manual server edits via SSH with zero CI/CD audit trail or automated rollback.
✓ Reveal Answer & Explanation

Correct Answer: Option A

Interviewers evaluate system internals (terraform init, plan, apply, destroy, dependency graph execution & .terraform.lock.hcl), fault-tolerance, security boundaries, and automation discipline.

Need structured guidance on Terraform Fundamentals, Remote State & Modular IaC? Review the full AWS-DOP-C02 syllabus or practise speaking through AWS-DOP-C02 concepts in an AI technical interview.

Cloud Computing, AWS Architecture & DevOps Engineering

Continue Learning & Explore Related Resources

FAQs — Module 13: Terraform Fundamentals, Remote State & Modular IaC (AWS-DOP-C02) Mock Tests

1. How many MCQ Mock Tests are included in Module 13: Terraform Fundamentals, Remote State & Modular IaC (AWS-DOP-C02)?

Module 13 of AWS Certified DevOps Engineer Training Course (CI/CD, Terraform, EKS & SRE) includes 10 active timed MCQ mock test sets (50 verified questions across 10 topics), with server-side scoring, instant scorecards, and detailed explanations after submission.

2. What are the attempt rules and answer-key policies for Terraform Fundamentals, Remote State & Modular IaC mock tests?

You can preview sample questions on this page and launch up to 2 free timed attempts per topic per day without signup (enrolled cohort learners receive unlimited attempts). During a live test, answers auto-save across refreshes and answer keys remain protected on the server until submission.

3. Does scoring high on this AWS-DOP-C02 module test guarantee interview selection?

No — module mock scores measure topic-level conceptual accuracy and highlight specific concepts to revise. Pair topic mocks with AWS-DOP-C02 Spoken AI Interviews and hands-on coding practice to build well-rounded interview readiness; hiring decisions rest independently with employers.

Learn. Practise. Prove. Get Career-Ready.

Ready to Build Your IT Career?

Explore industry-led programmes and develop practical skills through training, assessments and interview preparation.