AWS Deployment and Management 4 — Questions and Answers
Question 1: A team uses AWS CodePipeline and wants to require manual approval before deploying to production. Which action type should they add to the pipeline?
- AWS Lambda invoke action
- Manual Approval action (Correct answer)
- AWS CodeDeploy action
- Amazon SNS notification action
Correct answer: Manual Approval action
A Manual Approval action pauses the pipeline and sends a notification, requiring a designated approver to approve or reject before execution continues.
Question 2: Which AWS OpsWorks layer type is responsible for load balancing traffic across application server instances?
- Custom Layer
- ECS Cluster Layer
- HAProxy Layer (Correct answer)
- RDS Layer
Correct answer: HAProxy Layer
OpsWorks provides an HAProxy layer that automatically configures the HAProxy load balancer to distribute traffic across application server instances in the stack.
Question 3: When using AWS CloudFormation StackSets, what is a 'stack instance'?
- A running EC2 instance created by a CloudFormation stack
- A reference to a stack in a specific account and region (Correct answer)
- A CloudFormation template version stored in S3
- A nested stack within a parent CloudFormation stack
Correct answer: A reference to a stack in a specific account and region
A stack instance is a reference to a stack that has been or will be deployed in a specific AWS account and region as part of a StackSet.
Question 4: A company wants to automatically roll back an AWS CodeDeploy deployment if error rates exceed a threshold. Which feature enables this?
- Deployment hooks with Lambda validation
- CloudWatch Alarms-based automatic rollback (Correct answer)
- AWS Config rules remediation
- EventBridge rule with Step Functions
Correct answer: CloudWatch Alarms-based automatic rollback
CodeDeploy supports automatic rollback triggered by CloudWatch alarms, reverting to the last known good revision if a specified alarm enters ALARM state during deployment.
Question 5: What is the maximum size of an AWS CloudFormation template that can be uploaded directly via the console or CLI?
- 51,200 bytes (Correct answer)
- 460,800 bytes
- 1 MB
- 10 MB
Correct answer: 51,200 bytes
CloudFormation templates uploaded directly have a 51,200-byte (50KB) limit; larger templates must be stored in S3 and referenced by URL.
Question 6: Which AWS Systems Manager capability allows you to create and manage a predefined set of operating system configurations as versioned documents?
- Run Command
- State Manager (Correct answer)
- Patch Manager
- Parameter Store
Correct answer: State Manager
AWS Systems Manager State Manager uses association documents to define and maintain desired configuration states on managed instances, tracking compliance over time.
Question 7: A developer uses AWS Elastic Beanstalk and needs to deploy a new version while keeping the old version running until validation completes. Which deployment policy should they choose?
- All at once
- Rolling
- Rolling with additional batch
- Immutable (Correct answer)
Correct answer: Immutable
The Immutable deployment policy launches a full set of new instances with the new version alongside existing instances, only replacing the old ones after health checks pass.
A team uses AWS CodePipeline and wants to require manual approval before deploying to production.
Which action type should they add to the pipeline?