Question 300
One template selects a fixed AMI mapping by Region without user input. Which intrinsic design fits?
- A Mappings section with Fn::FindInMap and the Region pseudo parameter
- Use only an operator-supplied AMI parameter
- Use Fn::GetAtt on an AMI ID string
- Use DependsOn with the Region pseudo parameter
Explanation
Correct Answer
A:The template can look up known regional values deterministically from its declared mapping.
Incorrect Answers
B:That requires external input instead of performing the declared fixed regional lookup.
C:GetAtt retrieves a resource attribute rather than selecting a row in a fixed Region mapping.
D:Dependency ordering is not a mechanism for choosing an AMI value.
Question 301
An EC2 stack must not report successful initialization until application bootstrap finishes. What pattern fits?
- Use DependsOn the security group as the readiness signal
- Use only an Output containing the instance ID
- A CreationPolicy with resource signals sent after bootstrap succeeds
- Assume EC2 running state proves application readiness
Explanation
Correct Answer
C:The resource waits for the required signals within its timeout instead of assuming instance launch means application readiness.
Incorrect Answers
A:The group can exist while application bootstrap is still running or has failed.
B:A resource identifier does not prove that initialization completed successfully.
D:An operating-system launch can finish before the bootstrap and application health checks complete.
Question 302
Integration tests unpredictably fail because concurrent runs delete one another's database records. What should change?
- Use execution-specific test namespaces or isolated databases with scoped cleanup
- Disable all cleanup permanently
- Share one fixed test-user identifier
- Increase retry counts indefinitely
Explanation
Correct Answer
A:Independent fixtures prevent cross-run mutation while preserving realistic database interactions.
Incorrect Answers
B:Accumulating data introduces new state dependencies and does not provide isolation.
C:A common identifier preserves the same collision causing failures.
D:Retries hide contention without preventing another run from deleting required data.
Question 303
Investigators find bucket configuration changes in CloudTrail but no object download events. What additional logging scope may be needed?
- Rename the bucket
- Increase only trail file retention
- Enable applicable S3 object-level data events
- Enable only EC2 detailed monitoring
Explanation
Correct Answer
C:Management-event collection does not automatically include all object reads; select the required data-event resources and cost scope.
Incorrect Answers
A:Naming does not select audit-event types.
B:Longer storage cannot recover events that were never selected.
D:Instance metrics do not log S3 object API operations.
Question 304
A property was omitted from a template, and its service default later changed manually. Why might drift detection omit that difference?
- Assume every service default is automatically tracked as an explicit expected property
- Assume direct API edits rewrite the CloudFormation template
- Drift comparison is limited to supported explicitly declared properties
- Use ValidateTemplate to compare all live property values
Explanation
Correct Answer
C:To track important settings, declare them rather than assuming every implicit default is part of the comparison.
Incorrect Answers
A:Drift detection has supported-resource and explicitly declared-property boundaries.
B:Out-of-band changes affect actual resources without automatically updating the declared template.
D:Template validation does not perform a live configuration drift comparison.
Question 305
A Config rule detects an exposed resource and should invoke a defined repair. What links detection to action?
- A remediation configuration referencing a suitable Systems Manager Automation document
- Add a CloudWatch dashboard showing the Config evaluation only
- Change only the Config rule description to name the repair
- Increase the configuration recorder frequency as the action
Explanation
Correct Answer
A:The configuration supplies the runbook and parameters used to repair evaluated resources.
Incorrect Answers
B:Visibility does not connect a noncompliant evaluation to a repair execution.
C:Descriptive text does not establish the remediation configuration or its permissions.
D:Recording can improve detection timeliness but does not perform the defined repair.
Question 306
A sensitive parameter uses NoEcho. Which practice is still unsafe?
- Keeping the secret outside the template and resolving a supported dynamic reference
- Restricting access to the parameter and deployment records
- Avoiding the sensitive value in outputs and physical resource identifiers
- Putting its value in an Output or resource identifier
Explanation
Correct Answer
D:NoEcho is not universal secret redaction; exposed locations can reveal the value despite masked parameter displays.
Incorrect Answers
A:That can reduce plaintext template exposure and is not the unsafe use described.
B:Access control reduces who can inspect sensitive configuration rather than exposing it.
C:Those exclusions address known exposure paths that NoEcho does not universally redact.
Question 307
A workload uses temporary credentials to assume a second role and requests a session beyond one hour. What relevant restriction should be considered?
- The EC2 AMI age determines session length
- Role chaining limits the assumed session to one hour
- A role's maximum session duration always overrides chaining limits
- Increasing S3 retention extends the session
Explanation
Correct Answer
B:A higher configured role maximum does not remove the chaining-specific duration limit.
Incorrect Answers
A:Image age does not set STS credential duration.
C:The special limit still applies to chained sessions.
D:Object retention has no effect on STS expiration.
Question 308
A private-subnet ECS task stops before startup with an image-pull connection error. What should be verified?
- Only the service's minimum healthy percentage
- Network and authorization paths to the registry and required image-layer storage
- Only container CPU utilization
- Only the application's health-check route
Explanation
Correct Answer
B:Image retrieval needs both registry access and the supporting storage path; endpoint configuration or egress can be decisive.
Incorrect Answers
A:Deployment percentages cannot provide registry connectivity.
C:The image is unavailable before workload CPU measurements can explain startup.
D:The application has not started, so its route is not yet relevant.
Question 309
One malformed SQS message repeatedly fails while other messages are valid. Which mechanism bounds its retries for diagnosis?
- Increase message retention alone
- A redrive policy with an appropriate maxReceiveCount and DLQ
- Infinite retries with no isolation
- Purge the entire source queue on any error
Explanation
Correct Answer
B:After repeated receives, poison messages can be isolated while the main consumer continues useful work.
Incorrect Answers
A:A longer lifetime does not impose a retry limit.
C:The malformed input keeps consuming capacity without a bounded investigation path.
D:Valid messages would also be destroyed.
Question 310
An existing EC2 instance should react to changes in its CloudFormation initialization metadata. What mechanism can watch that metadata?
- Run cfn-init only once during initial launch
- Run cfn-signal repeatedly without a metadata hook
- cfn-hup with a configured hook
- Poll only EC2 instance health status
Explanation
Correct Answer
C:The daemon detects metadata changes and can invoke configuration helpers to apply the revised state.
Incorrect Answers
A:One invocation does not establish a watcher for later initialization metadata changes.
B:Signals report initialization outcomes rather than detect and apply revised metadata.
D:Infrastructure status checks do not compare CloudFormation initialization metadata revisions.