You save $34.99
AWS Certified DevOps Engineer - Professional DOP-C02 Premium Bundle
- Premium File 480 Questions & Answers
- Last Update: Nov 4, 2026
- Training Course 242 Lectures
You save $34.99
After a traffic spike, an API experiences intermittent database connection errors despite CPU remaining within normal range.
Which adverse outcome is the recommended change intended to prevent?
Scaling the API tier alone can create more database connections and worsen the original incident. This outcome arises from the mechanism in the situation: Connection exhaustion can degrade database operations even when CPU is not the limiting resource, especially after uncontrolled client concurrency. The corresponding mitigation is: Correlate RDS DatabaseConnections, application connection pools and request concurrency to determine the saturation mechanism.
Blindly adding worker nodes increases cost but does not resolve invalid image tags or inaccessible registries. That is a credible concern for eks image pull errors, normally addressed by: Inspect pod events, image reference, registry access and pull credentials before changing cluster scaling. It is not the primary failure mechanism described here. The relevant exposure is: Scaling the API tier alone can create more database connections and worsen the original incident.
Increasing timeout blindly can hold more concurrent invocations open and amplify pressure on an already degraded dependency. That is a credible concern for lambda timeout dependencies, normally addressed by: Correlate Lambda duration, timeout and downstream trace segments to identify whether the new code or dependency is responsible. It is not the primary failure mechanism described here. The relevant exposure is: Scaling the API tier alone can create more database connections and worsen the original incident.
Unbounded visibility retries consume consumer capacity and allow valid customer jobs to starve. That is a credible concern for sqs poison message triage, normally addressed by: Inspect message processing errors and visibility timeout behavior, then isolate repeated failures in a DLQ for analysis. It is not the primary failure mechanism described here. The relevant exposure is: Scaling the API tier alone can create more database connections and worsen the original incident.
An application pipeline stores its database password in plain-text buildspec environment variables committed to the repository.
What should operators verify before closing the issue?
The build reads a current credential without printing it in logs or storing it in repository history, and access is traceable. It directly verifies the change: Reference Secrets Manager or encrypted Systems Manager Parameter Store values at runtime under a scoped build role rather than embedding secret values in source. The test matters because managed secrets enable controlled retrieval and rotation while IAM determines which build execution may access a credential.
Feature pushes do not deploy to production and only merged, tested commits advance to the release approval stage. That result would help prove branch-aware ci triggers, where the relevant action is: Filter pipeline source events to the approved integration branch and require test-stage success before production deployment. It does not establish this case's required outcome. For pipeline secret retrieval, the decisive verification is: The build reads a current credential without printing it in logs or storing it in repository history, and access is traceable.
Checksums of the staged and production artifact are identical and a release record traces both deployments to the same commit. That result would help prove promotion using one build, where the relevant action is: Build the release once in CodeBuild and promote the same immutable, versioned artifact through all approved environments. It does not establish this case's required outcome. For pipeline secret retrieval, the decisive verification is: The build reads a current credential without printing it in logs or storing it in repository history, and access is traceable.
The artifact digest is unchanged between environments and each deployed stage resolves only its approved endpoint and configuration version. That result would help prove environment configuration separation, where the relevant action is: Keep environment-specific settings in deployment-time configuration such as Parameter Store or AppConfig while preserving the immutable build. It does not establish this case's required outcome. For pipeline secret retrieval, the decisive verification is: The build reads a current credential without printing it in logs or storing it in repository history, and access is traceable.
A security team manages services in every workload account by using the organizations management account for everyday operations.
Which AWS-specific principle most directly explains the desired solution?
Delegated administration separates operational service management from the powerful organizations management account, limiting credential exposure. This explains the implementation decision: Register supported delegated administrator accounts for applicable organization-level security services and minimize management-account use. Verification should show the following: An authorized security account manages the supported organization service while the management account is not used for routine tasks.
Service-managed StackSets propagate approved infrastructure stacks into member accounts and can enroll new accounts when OU membership changes. This reasoning supports the alternative topic of stacksets ou deployment, for which the relevant intervention is: Use service-managed CloudFormation StackSets with AWS Organizations targeting and automatic OU deployment where appropriate. The scenario requires understanding delegated administration control, where delegated administration separates operational service management from the powerful organizations management account, limiting credential exposure.
Distinct deployment identities limit blast radius and let governance trace which automation modified a given account or environment. This reasoning supports the alternative topic of account bootstrap separation, for which the relevant intervention is: Create scoped bootstrap and deployment roles per environment, with explicit cross-account trust and limited permissions. The scenario requires understanding delegated administration control, where delegated administration separates operational service management from the powerful organizations management account, limiting credential exposure.
Federated human identity and permission-set assignment reduce per-account user sprawl and create consistent account-specific role permissions. This reasoning supports the alternative topic of permission sets at scale, for which the relevant intervention is: Use IAM Identity Center federation and permission sets to assign centrally managed workforce access across accounts. The scenario requires understanding delegated administration control, where delegated administration separates operational service management from the powerful organizations management account, limiting credential exposure.
A CI service in the tooling account needs to deploy to one workload account, but a new role trust policy accepts any principal from any AWS account.
What result would most credibly prove that the control is effective?
The intended pipeline assumes the role successfully and an unrelated external AWS principal cannot obtain a session. It directly verifies the change: Restrict the target role trust policy to the intended tooling principal and scope its permissions to needed deployment actions. The test matters because sTS role assumption requires a matching trust policy as well as caller-side permission; broad trust expands the pool of potential assumers.
A former employee loses assigned account access after corporate deprovisioning without manual removal of dozens of IAM users. That result would help prove federated human workforce, where the relevant action is: Federate workforce access using IAM Identity Center and account-specific permission sets instead of cloning persistent IAM users. It does not establish this case's required outcome. For cross account assume role trust, the decisive verification is: The intended pipeline assumes the role successfully and an unrelated external AWS principal cannot obtain a session.
A tested rotation changes the database credential without downtime and only authorized application roles can retrieve the active version. That result would help prove secrets manager rotation, where the relevant action is: Manage the database secret with Secrets Manager and a supported rotation process coordinated with application refresh behavior. It does not establish this case's required outcome. For cross account assume role trust, the decisive verification is: The intended pipeline assumes the role successfully and an unrelated external AWS principal cannot obtain a session.
The application reads only the permitted bucket while no static key exists in its file system or deployment artifact. That result would help prove iam roles for workloads, where the relevant action is: Attach a least-privilege instance profile IAM role to EC2 and retrieve temporary credentials through the instance metadata service. It does not establish this case's required outcome. For cross account assume role trust, the decisive verification is: The intended pipeline assumes the role successfully and an unrelated external AWS principal cannot obtain a session.
A replicated service is deployed into a backup Region but still reads one critical secret and one artifact bucket only from its failed primary Region.
What should operators verify before closing the issue?
During a primary-Region isolation test, the secondary service retrieves configuration and artifacts without calling the unavailable Region. It directly verifies the change: Replicate or independently provision required configuration, secrets, artifacts and key access for the recovery Region. The test matters because application resilience depends on all critical dependencies, not simply copying compute and database resources.
A failover exercise promotes a secondary Region and client connection logic reaches the new writer within the defined RTO. That result would help prove aurora regional disaster availability, where the relevant action is: Design a separate regional recovery capability such as Aurora Global Database with tested secondary promotion and application reconnection. It does not establish this case's required outcome. For regional dependency inventory, the decisive verification is: During a primary-Region isolation test, the secondary service retrieves configuration and artifacts without calling the unavailable Region.
A regional loss leaves the other table accepting intended writes and tests confirm application tolerance of replication convergence. That result would help prove dynamodb global tables, where the relevant action is: Use DynamoDB global tables where suitable and design conflict handling and application routing for replicated multi-Region writes. It does not establish this case's required outcome. For regional dependency inventory, the decisive verification is: During a primary-Region isolation test, the secondary service retrieves configuration and artifacts without calling the unavailable Region.
Requests are acknowledged after valid enqueue and queued work completes after worker recovery with failed items isolated for diagnosis. That result would help prove decouple requests with sqs, where the relevant action is: Place durable SQS buffering between intake and workers with appropriate visibility timeout, retries and a dead-letter queue. It does not establish this case's required outcome. For regional dependency inventory, the decisive verification is: During a primary-Region isolation test, the secondary service retrieves configuration and artifacts without calling the unavailable Region.
A team receives AWS Health events but does not route planned service maintenance notices to the responsible workload owners.
What technical reasoning best supports the required control?
AWS Health reports account-relevant service events; EventBridge enables filtered operational responses instead of relying on manual console review. This explains the implementation decision: Send relevant AWS Health events through EventBridge to owner-specific notification and operations workflows. Verification should show the following: An applicable planned maintenance notice reaches the mapped owner with service and resource context before the event window.
Scaling on a demand-correlated metric allows the group to add capacity as per-instance traffic rises without reacting to every transient spike. This reasoning supports the alternative topic of autoscaling alarms, for which the relevant intervention is: Use a scaling policy tied to a relevant ALB request-count-per-target or equivalent demand metric with appropriate evaluation periods. The scenario requires understanding health event operations, where aWS Health reports account-relevant service events; EventBridge enables filtered operational responses instead of relying on manual console review.
Composite alarms aggregate alarm logic so a related failure produces fewer independent pages and a clearer incident trigger. This reasoning supports the alternative topic of composite alarm noise, for which the relevant intervention is: Use CloudWatch composite alarms to combine related alarm states and page on actionable combined conditions. The scenario requires understanding health event operations, where aWS Health reports account-relevant service events; EventBridge enables filtered operational responses instead of relying on manual console review.
EC2 recover actions can restore an impaired underlying host for supported instances while retaining attached EBS storage and instance identity semantics. This reasoning supports the alternative topic of auto recovery ec2 status, for which the relevant intervention is: Configure a CloudWatch system status-check alarm with supported EC2 recovery action after validating instance eligibility. The scenario requires understanding health event operations, where aWS Health reports account-relevant service events; EventBridge enables filtered operational responses instead of relying on manual console review.
An EventBridge rule sends critical recovery events to a Lambda target, but exhausted retries silently discard events when permissions fail.
What risk best explains the need for a different approach?
Undelivered recovery events can disappear unnoticed, preventing required response during major outages. This outcome arises from the mechanism in the situation: A target DLQ preserves events that cannot be delivered after retry policy exhaustion and makes failures diagnosable. The corresponding mitigation is: Configure EventBridge target retry behavior and a supported dead-letter queue with monitored failure metrics.
Manual event recreation can omit context while careless replay can execute disruptive remediation multiple times. That is a credible concern for eventbridge archive replay, normally addressed by: Use an EventBridge archive and replay strategy on the intended event bus with idempotent processing and scope controls. It is not the primary failure mechanism described here. The relevant exposure is: Undelivered recovery events can disappear unnoticed, preventing required response during major outages.
Non-idempotent processing turns a harmless event retry into repeated destructive changes. That is a credible concern for duplicate event delivery, normally addressed by: Make event handlers idempotent with event identifiers, conditional state transitions and safely repeatable operations. It is not the primary failure mechanism described here. The relevant exposure is: Undelivered recovery events can disappear unnoticed, preventing required response during major outages.
Broad event-bus publish permissions permit untrusted accounts to inject misleading incident signals into central operations. That is a credible concern for cross account event routing, normally addressed by: Configure permitted cross-account EventBridge event-bus routing with resource policies and carefully scoped matching rules. It is not the primary failure mechanism described here. The relevant exposure is: Undelivered recovery events can disappear unnoticed, preventing required response during major outages.
Two independently released teams modify a JSON event schema, and consumers discover incompatible fields only after deployment.
What could most credibly go wrong under these conditions?
Undetected schema drift causes valid events to be rejected by downstream consumers after an otherwise successful deployment. This outcome arises from the mechanism in the situation: Contract testing verifies agreed interface structure while allowing deployment independence and planned schema evolution. The corresponding mitigation is: Introduce versioned producer-consumer contract tests in the CI stages of both services and gate changes on compatibility.
Undertesting a risky schema change can make otherwise healthy application versions unable to read existing production records. That is a credible concern for change risk based tests, normally addressed by: Select additional migration, rollback and compatibility tests based on release impact and dependencies while retaining standard baseline checks. It is not the primary failure mechanism described here. The relevant exposure is: Undetected schema drift causes valid events to be rejected by downstream consumers after an otherwise successful deployment.
Deployment infrastructure can report success even when application requests fail after a misconfigured environment variable. That is a credible concern for acceptance smoke validation, normally addressed by: Execute a post-deployment smoke test against the green endpoint and gate traffic cutover on the result. It is not the primary failure mechanism described here. The relevant exposure is: Undetected schema drift causes valid events to be rejected by downstream consumers after an otherwise successful deployment.
Treating scanner findings as informational permits known exploitable images to reach production without a conscious risk decision. That is a credible concern for security scan enforcement, normally addressed by: Add a vulnerability scanning gate with severity-based failure criteria before promoting the image digest to a production repository. It is not the primary failure mechanism described here. The relevant exposure is: Undetected schema drift causes valid events to be rejected by downstream consumers after an otherwise successful deployment.
Operators change production security-group ingress rules directly while the repository template continues to show a narrower port policy.
What technical reasoning best supports the required control?
Drift detection compares actual supported resource properties with expected stack values, exposing out-of-band configuration changes. This explains the implementation decision: Run CloudFormation drift detection on supported resources and reconcile unauthorized differences back into the declared template state. Verification should show the following: A drift report flags the changed ingress property and an approved deployment restores the intended restricted rule.
Predeployment policy evaluation prevents disallowed infrastructure properties from becoming runtime resources in member accounts. This reasoning supports the alternative topic of template lint and policy checks, for which the relevant intervention is: Run CloudFormation validation and policy-as-code checks such as cfn-guard in CI before executing change sets. The scenario requires understanding cloudformation drift detection, where drift detection compares actual supported resource properties with expected stack values, exposing out-of-band configuration changes.
SAM provides shorthand definitions for supported serverless workloads while the generated resources follow normal stack lifecycle controls. This reasoning supports the alternative topic of sam serverless templates, for which the relevant intervention is: Use an AWS SAM template and supported transforms to define reusable serverless resources and events through CloudFormation. The scenario requires understanding cloudformation drift detection, where drift detection compares actual supported resource properties with expected stack values, exposing out-of-band configuration changes.
CloudFormation resource policies can retain or snapshot supported resources when stack deletion or replacement occurs, reducing accidental loss. This reasoning supports the alternative topic of cloudformation deletion protections, for which the relevant intervention is: Set appropriate DeletionPolicy or UpdateReplacePolicy attributes on critical stateful resources and validate replacement behavior. The scenario requires understanding cloudformation drift detection, where drift detection compares actual supported resource properties with expected stack values, exposing out-of-band configuration changes.
Operations patches Amazon Linux manually but has no continuous evidence of which managed EC2 workloads still contain known vulnerabilities.
What technical reasoning best supports the required control?
Inspector identifies supported software vulnerabilities by resource and package; remediation should confirm the affected package version changes. This explains the implementation decision: Enable an appropriate Amazon Inspector scanning coverage and track vulnerability findings against running workloads and patch outcomes. Verification should show the following: A deliberately vulnerable test host creates an expected finding and the finding changes after supported remediation.
Security integrations can reissue updates to the same finding; response tooling must distinguish state changes from new issues. This reasoning supports the alternative topic of security finding deduplication, for which the relevant intervention is: Correlate findings by stable finding IDs and resource identifiers and update existing incident records rather than always opening new ones. The scenario requires understanding inspector ec2 vulnerabilities, where inspector identifies supported software vulnerabilities by resource and package; remediation should confirm the affected package version changes.
CloudTrail management events contain context to distinguish risky access signals; detection logic needs meaningful predicates rather than every login. This reasoning supports the alternative topic of cloudtrail suspicious console login, for which the relevant intervention is: Create targeted CloudTrail-based detections for privileged console events with identity, outcome and MFA attributes. The scenario requires understanding inspector ec2 vulnerabilities, where inspector identifies supported software vulnerabilities by resource and package; remediation should confirm the affected package version changes.
Protected, integrity-verifiable audit evidence reduces the ability of a compromised workload administrator to erase traces of API activity. This reasoning supports the alternative topic of security trail integrity, for which the relevant intervention is: Centralize organization CloudTrail logs under independent security ownership with log-file validation and appropriate object retention protections. The scenario requires understanding inspector ec2 vulnerabilities, where inspector identifies supported software vulnerabilities by resource and package; remediation should confirm the affected package version changes.
A public API suddenly receives a burst that overloads a fixed downstream Lambda and database tier, triggering a cascade of retries.
Which solution should the DevOps engineer implement?
Apply API Gateway throttling or usage limits aligned with downstream capacity and return intentional retry guidance. API admission controls bound request rates before work reaches a constrained backend, preserving stability for accepted traffic. The relevant operational proof is specific: Under overload, excess calls receive controlled throttle responses while accepted traffic remains within service SLOs.
Select appropriate on-demand capacity or autoscaled provisioned throughput and monitor throttling and cost boundaries. That would address dynamodb on demand capacity, because on-demand capacity adapts to varying request traffic without fixed provisioned settings while still requiring good partition-key design. However, the stated situation instead concerns api gateway throttling. API admission controls bound request rates before work reaches a constrained backend, preserving stability for accepted traffic.
Configure Horizontal Pod Autoscaler against suitable resource or custom metrics and ensure node capacity can support the desired replicas. That would address eks horizontal pod autoscaling, because hPA increases workload replicas, while node autoscaling provides scheduling capacity; these control different levels of scaling. However, the stated situation instead concerns api gateway throttling. API admission controls bound request rates before work reaches a constrained backend, preserving stability for accepted traffic.
Serve cacheable static assets through CloudFront with correct cache headers and controlled invalidation or versioned file names. That would address cloudfront edge caching, because edge caching reduces repeated origin fetches and latency for eligible content while preserving freshness control. However, the stated situation instead concerns api gateway throttling. API admission controls bound request rates before work reaches a constrained backend, preserving stability for accepted traffic.
Please check your mailbox for a message from support@examlabs.com and follow the directions.