Question 200

An S3-backed source must distinguish successive uploads at the same key for reliable revision tracking. What bucket feature is required for that source setup?

  1. S3 Versioning
  2. Bucket website hosting
  3. S3 Transfer Acceleration
  4. A default object ACL

Explanation

Correct Answer

A:

Version identifiers distinguish object revisions even when their key remains unchanged.

Incorrect Answers

B:

Website endpoints do not supply source revision history.

C:

Accelerated transfer changes upload paths, not object revision identity.

D:

ACL defaults cannot create distinct versions of repeated uploads.

Question 201

A restored RDS database has a new endpoint. The recovery application still retrieves a secret whose host field names the original database, and that database is intentionally unreachable. What should the recovery workflow change?

  1. Increase only the restored database storage allocation
  2. Update the recovery-specific connection configuration to the restored endpoint and verify credentials and access
  3. Assume the original database DNS endpoint automatically becomes the restored instance endpoint
  4. Repeatedly restart the application without changing its connection configuration

Explanation

Correct Answer

B:

Restoring the database does not automatically rewrite every application secret or configuration reference. Validate the new endpoint before routing recovery traffic.

Incorrect Answers

A:

More storage does not update the hostname the application uses for its connection.

C:

A separately restored database has its own endpoint; the application must use an intentionally managed connection reference.

D:

Each restart retrieves the same old host value and continues targeting the unavailable database.

Question 202

An IAM user should perform a sensitive API operation only when using an MFA-authenticated temporary session. What policy requirement fits?

  1. Require the appropriate MFA context condition for that access path
  2. Check only the source resource's creation time
  3. Require the user name to contain MFA
  4. Allow the action merely because an MFA device is registered

Explanation

Correct Answer

A:

The policy can test MFA presence for supported IAM-user temporary sessions; federation needs its own identity-context design.

Incorrect Answers

B:

Resource age does not establish the caller's authentication context.

C:

A naming convention is not evidence of authentication factors.

D:

Enrollment does not prove the current request used MFA.

Question 203

A supported ElastiCache replication group needs automatic promotion after primary failure. Which configuration is relevant?

  1. Use a primary with no replica
  2. Place every replica in the primary's Availability Zone
  3. Replicas across AZs with automatic failover and suitable Multi-AZ settings
  4. Configure only a longer cache-entry TTL

Explanation

Correct Answer

C:

A replica can become primary when the configured failover mechanism detects primary failure.

Incorrect Answers

A:

There is no replica available to promote after the primary fails.

B:

Replicas in the same zone do not remove that zone's shared failure exposure.

D:

Data expiration does not establish automatic replica promotion.

Question 204

A provisioning workflow must release a reservation when a later step fails permanently. What control-flow mechanism fits?

  1. An application DNS alias
  2. A larger success payload
  3. A Catch path to a compensating cleanup task
  4. A retry without any cleanup path

Explanation

Correct Answer

C:

Explicit error handling can reverse earlier side effects when automatic transaction rollback is unavailable.

Incorrect Answers

A:

Routing names do not implement workflow compensation.

B:

Output size does not undo prior external operations.

D:

Repeated failure can leave the reservation allocated indefinitely.

Question 205

Many requests simultaneously rebuild an expired popular cache entry and overload the database. What pattern helps?

  1. Request coalescing or controlled refresh with expiry jitter
  2. Expire all popular keys at the same moment
  3. Disable the cache during the peak
  4. Allow every caller to rebuild the same key independently

Explanation

Correct Answer

A:

Coordinating refreshes avoids a synchronized surge of identical recomputation.

Incorrect Answers

B:

Synchronized expiration can maximize the concurrent rebuild burst.

C:

That sends all requests to the database instead of controlling refresh pressure.

D:

Duplicate concurrent rebuilds are the source of the stampede.

Question 206

A provisioning request may be submitted twice after a network timeout. What design avoids duplicate resources?

  1. Assume timeouts prove no resource was created
  2. Generate a new request identity for every retry
  3. Disable all response logging
  4. Use a supported idempotency token or durable request-state check

Explanation

Correct Answer

D:

The operation must recognize the same logical request instead of treating every retry as new work.

Incorrect Answers

A:

The server may have completed work before the client lost the response.

B:

Different identities defeat request deduplication.

C:

Less visibility does not prevent duplicated side effects.

Question 207

A KMS policy should allow decrypt only when a nonsecret application context matches the request. Which mechanism fits?

  1. Assume context replaces every key permission
  2. Put the secret plaintext in the encryption context
  3. Use the key description as the per-request context
  4. Require the intended encryption-context values in applicable KMS conditions

Explanation

Correct Answer

D:

Encryption context is authenticated additional data for supported symmetric operations and must match for decryption; it is not a place for secrets.

Incorrect Answers

A:

The caller still needs appropriate authorization to use the key.

B:

Context can appear in logs and is not confidential secret storage.

C:

A description is metadata rather than authenticated request context.

Question 208

Application instances should accept service traffic only from their ALB. Which inbound security-group source fits?

  1. Remove the target group's health-check configuration
  2. Allow only the ALB's current public IP addresses permanently
  3. Reference the ALB's security group on the application port
  4. Allow 0.0.0.0/0 on every application port

Explanation

Correct Answer

C:

The reference permits traffic associated with the load balancer's group rather than exposing the target port to all addresses.

Incorrect Answers

A:

Health-check removal does not restrict network sources.

B:

Load-balancer addressing can change and is not the intended group-based control.

D:

That permits a much broader source set than the load balancer.

Question 209

A pipeline role is permitted to call sts:AssumeRole on a target deployment role, but assumption is denied. Which target-side configuration is essential?

  1. A source repository webhook
  2. A trust policy accepting the pipeline identity
  3. An identity policy on the target allowing S3 reads only
  4. An instance profile containing the pipeline role

Explanation

Correct Answer

B:

Cross-account role assumption requires authorization in the caller and a compatible trust relationship on the target.

Incorrect Answers

A:

Triggering a pipeline cannot authorize a role session.

C:

Resource access after assumption does not determine who may assume the role.

D:

Instance profiles deliver EC2 credentials and do not establish cross-account trust.

Question 210

An external review system must tell a workflow when a long-running task finishes. Which pattern fits?

  1. A task that returns success before the external work starts
  2. A static output containing approved
  3. A supported callback task using a task token
  4. Polling within one Lambda invocation indefinitely

Explanation

Correct Answer

C:

The external system returns the token through the completion API, allowing the waiting workflow to resume.

Incorrect Answers

A:

Premature success loses coordination with the real outcome.

B:

Fixed text is not evidence that the external review completed.

D:

Long-lived waiting exceeds function limits and consumes execution resources.

AWS Certified DevOps Engineer - Professional DOP-C02 Practice Tests