Question 290

A custom metric is published with Service and Environment dimensions, but a query using only Service finds nothing. Why?

  1. Assume CloudWatch automatically aggregates every custom metric across omitted dimensions
  2. Change only the metric period
  3. The query selects a different metric identity
  4. Change only the statistic from Average to Sum

Explanation

Correct Answer

C:

Custom metric dimensions identify distinct series; omit or aggregate dimensions only through supported explicit mechanisms.

Incorrect Answers

A:

Custom metric queries generally need the published identity or an explicit aggregation mechanism.

B:

Period selection does not select a different dimension combination.

D:

The statistic applies after the correct metric identity is selected.

Question 291

An account leaves a baseline StackSet's target OU. Its deployed resources must remain but no longer be managed by that StackSet. Which setting fits?

  1. Enable retention on account removal
  2. Rename the OU
  3. Set removal behavior to delete stacks
  4. Disable resource tags

Explanation

Correct Answer

A:

The stacks remain after removal rather than being deleted with their resources.

Incorrect Answers

B:

Changing a name does not configure retention semantics.

C:

That removes managed stacks instead of preserving the baseline resources.

D:

Tags do not determine StackSet account-removal behavior.

Question 292

Application teams should deploy approved infrastructure bundles without freely selecting arbitrary templates. Which service supports that model?

  1. A CloudWatch log group
  2. A public bucket of unrelated example templates
  3. AWS Service Catalog products and portfolios with appropriate constraints
  4. An IAM user for every template file

Explanation

Correct Answer

C:

Curated products expose approved provisioning options while constraints govern deployment behavior.

Incorrect Answers

A:

Log storage cannot provide a governed infrastructure catalog.

B:

Unrestricted examples do not establish an approved provisioning catalog.

D:

User creation does not curate infrastructure products or their launch rules.

Question 293

The same binary must run in development and production with different endpoints. What packaging approach supports that?

  1. Edit the package manually on production hosts
  2. Use a shared production credential in the development package
  3. Compile production endpoints into a new binary after tests
  4. Keep environment configuration outside the binary and supply it at deployment or runtime

Explanation

Correct Answer

D:

Separating configuration permits promotion of one tested package without recompilation for each environment.

Incorrect Answers

A:

Undocumented mutations destroy reproducibility and integrity tracking.

B:

Credential sharing increases exposure and does not provide safe configuration separation.

C:

Rebuilding changes the delivered artifact and invalidates exact-package promotion.

Question 294

A pipeline runs expensive deployed-environment tests before quick unit tests. How should stages be arranged to reject simple defects sooner?

  1. Run unit tests before deploying an isolated integration environment
  2. Remove unit tests because integration tests exist
  3. Run only production smoke tests
  4. Execute all tests against shared production data

Explanation

Correct Answer

A:

Cheap deterministic checks remove faulty revisions before provisioning and broader validation consume resources.

Incorrect Answers

B:

Different test layers detect different defects; broader testing does not justify discarding fast checks.

C:

Post-release detection cannot provide the earlier rejection required here.

D:

Production coupling creates side effects and does not optimize early feedback.

Question 295

A predictable batch starts every weekday at 09:00 and needs capacity ready beforehand. What scaling mechanism fits?

  1. Wait for the batch error rate to rise before adding capacity
  2. Scheduled scaling before the known workload
  3. Use only a target-tracking policy and assume idle capacity will prewarm automatically
  4. Schedule a scale-in at the batch start time

Explanation

Correct Answer

B:

Preprovisioning avoids waiting for reactive thresholds after the batch has already arrived.

Incorrect Answers

A:

That reacts after the known workload starts rather than preparing capacity beforehand.

C:

Reactive utilization need not rise before the workload arrives.

D:

Removing capacity contradicts the known need for additional ready workers.

Question 296

Product consumers should launch approved infrastructure without receiving all underlying provisioning permissions. What constraint helps?

  1. A public-read bucket ACL
  2. A user-owned root access key
  3. A Service Catalog launch role constraint
  4. A product description naming an administrator

Explanation

Correct Answer

C:

The product can be provisioned through a controlled role instead of granting consumers unrestricted infrastructure authority.

Incorrect Answers

A:

Artifact readability does not delegate approved provisioning authority.

B:

Root credentials bypass the intended limited consumer model.

D:

Text cannot authorize service actions.

Question 297

A notification target needs only selected fields from a large EventBridge event. What feature fits?

  1. An input transformer or supported input selection
  2. Use only an event pattern with no target input selection
  3. Change only the target retry policy
  4. Create a separate event bus without configuring payload transformation

Explanation

Correct Answer

A:

The rule can construct the target payload from selected event fields without changing the original event source.

Incorrect Answers

B:

A pattern selects matching events but does not itself construct a smaller target payload.

C:

Retry settings change delivery attempts rather than JSON field selection.

D:

A different bus does not automatically reduce the fields sent to the target.

Question 298

A web tier runs two instances in one Availability Zone. What removes that zonal single point of failure?

  1. Add more instances to the existing single-AZ subnet
  2. Distribute instances across multiple AZs behind a suitable load balancer
  3. Use only an ALB while keeping all application targets in one AZ
  4. Increase instance storage capacity

Explanation

Correct Answer

B:

Redundant capacity in separate zones can continue serving when one zone fails.

Incorrect Answers

A:

More capacity within one AZ retains the same zonal failure exposure.

C:

A redundant load balancer cannot replace application capacity lost with the target AZ.

D:

A larger disk does not distribute serving resources across zones.

Question 299

Images must be available in a second Region without every build manually pushing twice. What should be configured?

  1. ECR cross-Region replication for the required repositories
  2. A Route 53 latency record for ECR
  3. A second image tag in the source repository
  4. An S3 replication rule on the pipeline bucket only

Explanation

Correct Answer

A:

Registry replication distributes matching pushed images to configured destinations, with destination access and policy prerequisites.

Incorrect Answers

B:

DNS routing cannot copy image manifests and layers between registries.

C:

Additional tags in one Region do not create regional image copies.

D:

Pipeline artifact replication does not replicate ECR registry images.

Question 300

One template selects a fixed AMI mapping by Region without user input. Which intrinsic design fits?

  1. A Mappings section with Fn::FindInMap and the Region pseudo parameter
  2. Use only an operator-supplied AMI parameter
  3. Use Fn::GetAtt on an AMI ID string
  4. 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.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests