Copyright (c) 2025 MindMesh Academy. All rights reserved. This content is proprietary and may not be reproduced or distributed without permission.

4.3.2. Sample Questions - Domain 2: Configuration Management & IaC

Question 1:

A DevOps engineer needs to provision a complex, reusable set of AWS resources. The team prefers to define infrastructure using familiar programming languages like Python or TypeScript to leverage existing code libraries and apply object-oriented principles. Which AWS Infrastructure as Code (IaC) tool is best suited for this requirement?

A) AWS CloudFormation B) AWS Cloud Development Kit (CDK) C) AWS Serverless Application Model (SAM) D) AWS OpsWorks

Correct Answer: B
Explanation:

Question 2:

A development team is adopting Infrastructure as Code (IaC) for their AWS environment. They want to ensure that all infrastructure changes are controlled, auditable, and predictable, minimizing the risk of configuration drift and unintended consequences. Which of the following practices is MOST crucial for achieving these goals in an IaC environment?

A) Implementing manual approval gates for all infrastructure deployments. B) Storing IaC templates in a shared network drive for easy access. C) Mandating the use of Version Control Systems (VCS) and Pull Requests (PRs) for all IaC changes. D) Performing ad-hoc infrastructure updates directly in the AWS Management Console.

Correct Answer: C
Explanation:
  • A) Implementing manual approval gates for all infrastructure deployments: While manual approval gates can provide a layer of control, they are not the most crucial practice for ensuring auditable and predictable changes in an IaC environment. The core principle of IaC is automation and consistency, which is best achieved through version control and automated processes. Manual approvals alone do not prevent configuration drift or provide a comprehensive audit trail of changes to the code itself.
  • B) Storing IaC templates in a shared network drive for easy access: Storing IaC templates in a shared network drive is detrimental to controlled, auditable, and predictable changes. This practice lacks versioning, change tracking, and collaboration features, making it impossible to maintain a history of changes, revert to previous states, or ensure consistency across deployments. It directly contradicts the First Principle of defining infrastructure through machine-readable definition files and managing them like application code.
  • C) Mandating the use of Version Control Systems (VCS) and Pull Requests (PRs) for all IaC changes: Mandating the use of Version Control Systems (VCS) like Git and requiring Pull Requests (PRs) for all IaC changes is the MOST crucial practice. VCS provides a complete history of all infrastructure code changes, enabling auditing, tracking who made what changes, and facilitating easy rollbacks. PRs enforce peer review, ensuring correctness, adherence to standards, and preventing unintended consequences before changes are merged and deployed. This aligns with the First Principle of treating infrastructure as code, enabling automated, consistent, and repeatable provisioning and management.
  • D) Performing ad-hoc infrastructure updates directly in the AWS Management Console: Performing ad-hoc infrastructure updates directly in the AWS Management Console is a direct violation of IaC principles and leads to configuration drift, lack of auditability, and unpredictable environments. Such changes are not version-controlled, cannot be easily replicated, and make it impossible to maintain a consistent desired state. This practice undermines the very purpose of IaC, which is to define and manage infrastructure through code.

Question 3:

A company is struggling with configuration drift across their fleet of EC2 instances, leading to inconsistent application behavior and increased security vulnerabilities. They need an automated solution to ensure all instances maintain a desired state, apply patches regularly, and collect configuration data for auditing. Which AWS service provides a unified interface to address these challenges comprehensively?

A) AWS CloudFormation B) AWS Config C) AWS Systems Manager D) AWS OpsWorks

Correct Answer: C
Explanation:

Question 4:

A DevOps team is designing a new serverless application on AWS. They want to define their Lambda functions, API Gateway endpoints, and DynamoDB tables using a simplified syntax that is an extension of CloudFormation, specifically tailored for serverless components. Which AWS service should they use to compose and deploy these serverless resources efficiently?

A) AWS CloudFormation B) AWS Cloud Development Kit (CDK) C) AWS Serverless Application Model (SAM) D) AWS Elastic Beanstalk

Correct Answer: C
Explanation:

Question 5:

A large enterprise uses a multi-account AWS strategy and operates in several AWS Regions. They need to ensure consistent deployment of security baselines, common networking configurations (VPCs, subnets), and shared services across all their accounts and Regions. Manually deploying and updating these resources in each location is becoming unmanageable and prone to errors. Which AWS service is specifically designed to address this challenge by enabling centralized management and deployment of common AWS resources at scale?

A) AWS CloudFormation B) AWS Organizations C) AWS CloudFormation StackSets D) AWS Resource Access Manager (RAM)

Correct Answer: C
Explanation: