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
A new acquisition adds accounts to AWS Organizations, but CloudTrail API activity is collected only in the original security account.
Which AWS operational change most directly resolves the stated problem?
Create an organization-level multi-Region CloudTrail trail with protected centralized log storage and appropriate ownership. An organization trail expands management-event coverage to member accounts and supports consolidated immutable audit operations. The relevant operational proof is specific: An API action in a newly enrolled account produces the expected centralized CloudTrail event with integrity controls.
Use IAM Identity Center federation and permission sets to assign centrally managed workforce access across accounts. That would address permission sets at scale, because federated human identity and permission-set assignment reduce per-account user sprawl and create consistent account-specific role permissions. However, the stated situation instead concerns organization trail audit scope. An organization trail expands management-event coverage to member accounts and supports consolidated immutable audit operations.
Use SCPs as organization-level maximum-permission guardrails and grant necessary actions separately in identity or resource policies. That would address scp permission guardrail, because an SCP restricts permissions available to principals in affected member accounts; it does not itself grant an IAM permission. However, the stated situation instead concerns organization trail audit scope. An organization trail expands management-event coverage to member accounts and supports consolidated immutable audit operations.
Investigate Control Tower drift and restore the prescribed landing-zone resources through supported repair or re-enrollment processes. That would address control tower baseline drift, because control Tower governance depends on baseline resources remaining in their managed expected state; manual alterations can compromise control operation. However, the stated situation instead concerns organization trail audit scope. An organization trail expands management-event coverage to member accounts and supports consolidated immutable audit operations.
A production application uses a database password shared across services for years and deployments break whenever engineers rotate it manually.
What is the most appropriate next step for this team?
Manage the database secret with Secrets Manager and a supported rotation process coordinated with application refresh behavior. Managed rotation reduces static-credential lifetime but consumers must retrieve a current secret and handle transitions correctly. The relevant operational proof is specific: A tested rotation changes the database credential without downtime and only authorized application roles can retrieve the active version.
Restrict the target role trust policy to the intended tooling principal and scope its permissions to needed deployment actions. That would address cross account assume role trust, because sTS role assumption requires a matching trust policy as well as caller-side permission; broad trust expands the pool of potential assumers. However, the stated situation instead concerns secrets manager rotation. Managed rotation reduces static-credential lifetime but consumers must retrieve a current secret and handle transitions correctly.
Require an IAM permissions boundary on developer-created roles in addition to appropriately scoped identity policies. That would address permissions boundary delegation, because permissions boundaries limit the maximum permissions of the relevant IAM identity even if a developer grants broader identity-policy statements. However, the stated situation instead concerns secrets manager rotation. Managed rotation reduces static-credential lifetime but consumers must retrieve a current secret and handle transitions correctly.
Implement controlled IAM attribute-based access using principal and resource tags with protections against unauthorized tag changes. That would address abac application teams, because aBAC compares attributes at authorization time and scales access policy without a separate policy per resource when tags are trustworthy. However, the stated situation instead concerns secrets manager rotation. Managed rotation reduces static-credential lifetime but consumers must retrieve a current secret and handle transitions correctly.
Two teams push different container images under the same ECR tag and staging and production launch different bytes for one release.
Which AWS-specific principle most directly explains the desired solution?
An ECR image digest identifies content independently of a mutable human-readable label, removing ambiguity during promotion and rollback. This explains the implementation decision: Enable immutable image tags or promote by image digest so a release references a fixed container image version. Verification should show the following: The deployed digest is identical across staging and production and a second push cannot silently replace the promoted tag.
Artifact lifecycle policy must balance storage cost with reproducible incident recovery, and deletion eligibility depends on release usage. This reasoning supports the alternative topic of artifact retention rules, for which the relevant intervention is: Define lifecycle policies that prune unused image versions while retaining active and approved rollback digests. The scenario requires understanding immutable container tags, where an ECR image digest identifies content independently of a mutable human-readable label, removing ambiguity during promotion and rollback.
Reading an SSE-KMS object requires both permitted S3 access and effective permissions to use the encryption key. This reasoning supports the alternative topic of cross-account kms artifacts, for which the relevant intervention is: Allow the target deployment role appropriate KMS decrypt access in the key policy and IAM permissions while keeping object access scoped. The scenario requires understanding immutable container tags, where an ECR image digest identifies content independently of a mutable human-readable label, removing ambiguity during promotion and rollback.
A repeatable image pipeline moves OS/package changes into a verifiable artifact instead of modifying live instances unpredictably. This reasoning supports the alternative topic of golden ami pipeline, for which the relevant intervention is: Use EC2 Image Builder to create, test and distribute versioned patched AMIs for immutable instance replacement. The scenario requires understanding immutable container tags, where an ECR image digest identifies content independently of a mutable human-readable label, removing ambiguity during promotion and rollback.
An operations Lambda function performs a four-hour restoration process and times out while waiting for human approval and external jobs.
Which operational observation best confirms the intended design?
A long restoration advances through named states, waits as required and resumes or fails deterministically without a long-lived Lambda invocation. It directly verifies the change: Orchestrate recovery through AWS Step Functions with explicit state transitions, retries, timeouts and approval integration. The test matters because step Functions coordinates multi-step asynchronous work beyond a single Lambda execution and makes failure states observable.
The intended operator can start a logged session under IAM authorization while the instance has no public SSH ingress. That result would help prove session manager access, where the relevant action is: Use Systems Manager Session Manager with least-privilege IAM, managed nodes and audit logging instead of permanent inbound SSH access. It does not establish this case's required outcome. For step functions long workflows, the decisive verification is: A long restoration advances through named states, waits as required and resumes or fails deterministically without a long-lived Lambda invocation.
A central report identifies installed package versions on managed nodes and reports nodes lacking the required agent or permissions. That result would help prove inventory without ssh, where the relevant action is: Collect Systems Manager Inventory through SSM-managed nodes and aggregate the reported package and application metadata. It does not establish this case's required outcome. For step functions long workflows, the decisive verification is: A long restoration advances through named states, waits as required and resumes or fails deterministically without a long-lived Lambda invocation.
Only valid configuration versions reach clients and an alarm-driven rollback reverts a harmful rollout. That result would help prove appconfig progressive rollout, where the relevant action is: Deploy validated configuration through AWS AppConfig with a gradual deployment strategy and CloudWatch alarm rollback. It does not establish this case's required outcome. For step functions long workflows, the decisive verification is: A long restoration advances through named states, waits as required and resumes or fails deterministically without a long-lived Lambda invocation.
A protected S3 dataset is altered unexpectedly, but organization trails capture only management APIs and no object-level writes.
Which solution should the DevOps engineer implement?
Enable appropriately scoped S3 CloudTrail data events for the protected resources and correlate PutObject or DeleteObject actors with alerts. S3 object operations require data-event coverage rather than assuming general management trails capture every object write. The relevant operational proof is specific: A controlled object deletion records the writer principal, bucket/key and event time for the configured scope.
Use AWS Config resource recording and appropriate compliance rules, complementing CloudFormation drift detection for stack-managed resources. That would address config drift compliance, because config evaluates supported resource state against rules, while CloudFormation drift compares actual properties with declared stack templates. However, the stated situation instead concerns s3 change audit data events. S3 object operations require data-event coverage rather than assuming general management trails capture every object write.
Enable VPC Flow Logs on relevant VPCs or interfaces with protected destinations and an analysis approach. That would address vpc flow logs detection, because flow logs capture network-flow metadata such as source, destination, ports and action for supported traffic, not full application payloads. However, the stated situation instead concerns s3 change audit data events. S3 object operations require data-event coverage rather than assuming general management trails capture every object write.
Enable an appropriate Amazon Inspector scanning coverage and track vulnerability findings against running workloads and patch outcomes. That would address inspector ec2 vulnerabilities, because inspector identifies supported software vulnerabilities by resource and package; remediation should confirm the affected package version changes. However, the stated situation instead concerns s3 change audit data events. S3 object operations require data-event coverage rather than assuming general management trails capture every object write.
A stateful web application pins sessions to a single EC2 server, preventing safe traffic shifting between old and new fleets.
What could most credibly go wrong under these conditions?
Local-only session state causes forced logouts and transaction loss when routing moves to a new instance. This outcome arises from the mechanism in the situation: Decoupling user session state from instances allows new targets to receive requests without losing authenticated transaction continuity. The corresponding mitigation is: Move session state into a shared appropriate store or design stateless sessions before using blue/green traffic switching.
Treating a running container as ready can create gaps in service capacity during an otherwise successful rollout. That is a credible concern for kubernetes rolling readiness, normally addressed by: Use readiness probes and rolling-update maxUnavailable/maxSurge settings that preserve service capacity during replacement. It is not the primary failure mechanism described here. The relevant exposure is: Local-only session state causes forced logouts and transaction loss when routing moves to a new instance.
Missing lifecycle steps can make a pipeline report file transfer success while the running application remains on the old version. That is a credible concern for codedeploy lifecycle hooks, normally addressed by: Configure the appropriate AppSpec lifecycle hooks to stop, install and start the application, then validate the service after installation. It is not the primary failure mechanism described here. The relevant exposure is: Local-only session state causes forced logouts and transaction loss when routing moves to a new instance.
Premature cutover sends live requests to bootstrapping instances that cannot yet process transactions. That is a credible concern for alb target group health, normally addressed by: Require healthy load-balancer target status and suitable readiness checks before shifting client traffic to replacement capacity. It is not the primary failure mechanism described here. The relevant exposure is: Local-only session state causes forced logouts and transaction loss when routing moves to a new instance.
The audit team asks for installed package versions across thousands of EC2 instances, but technicians propose logging in to each server manually.
Which validation result offers the strongest acceptance evidence?
A central report identifies installed package versions on managed nodes and reports nodes lacking the required agent or permissions. It directly verifies the change: Collect Systems Manager Inventory through SSM-managed nodes and aggregate the reported package and application metadata. The test matters because sSM Inventory enables programmatic fleet-level software visibility without distributing administrator SSH credentials.
A long restoration advances through named states, waits as required and resumes or fails deterministically without a long-lived Lambda invocation. That result would help prove step functions long workflows, where the relevant action is: Orchestrate recovery through AWS Step Functions with explicit state transitions, retries, timeouts and approval integration. It does not establish this case's required outcome. For inventory without ssh, the decisive verification is: A central report identifies installed package versions on managed nodes and reports nodes lacking the required agent or permissions.
Replaying the same remediation event leaves one intended resource change and one traceable completion record. That result would help prove automation idempotency, where the relevant action is: Make operational automation idempotent with resource-state checks, unique operation keys and safe retry behavior. It does not establish this case's required outcome. For inventory without ssh, the decisive verification is: A central report identifies installed package versions on managed nodes and reports nodes lacking the required agent or permissions.
Fresh instances report successful association compliance and agent settings are restored after an unauthorized change. That result would help prove state manager desired configurations, where the relevant action is: Create Systems Manager State Manager associations that periodically enforce the expected agent and configuration document on managed nodes. It does not establish this case's required outcome. For inventory without ssh, the decisive verification is: A central report identifies installed package versions on managed nodes and reports nodes lacking the required agent or permissions.
Workload VPCs require centralized stateful network inspection for selected egress flows, but teams only add perimeter security-group ingress rules.
What risk best explains the need for a different approach?
A firewall provisioned without correct routing offers an illusion of inspection while traffic goes directly to the internet. This outcome arises from the mechanism in the situation: Network Firewall inspects traffic routed through its endpoints; rules provide no protection for flows that bypass the firewall route. The corresponding mitigation is: Deploy AWS Network Firewall with appropriate subnet placement, routing, stateless/stateful rules and logging for the inspected path.
Accidental broad S3 permissions can expose customer records even when object encryption at rest is enabled. That is a credible concern for s3 public access guardrail, normally addressed by: Enable appropriate S3 Block Public Access settings at account or bucket scope and provide a separate approved public-content pattern. It is not the primary failure mechanism described here. The relevant exposure is: A firewall provisioned without correct routing offers an illusion of inspection while traffic goes directly to the internet.
Overly permissive decrypt access turns an encrypted artifact store into a broadly readable source of secrets. That is a credible concern for kms key least privilege, normally addressed by: Grant KMS use only to authorized artifact and deployment roles with appropriate key policy and identity permissions. It is not the primary failure mechanism described here. The relevant exposure is: A firewall provisioned without correct routing offers an illusion of inspection while traffic goes directly to the internet.
Plaintext credentials on internal networks can be intercepted or redirected by a compromised intermediate component. That is a credible concern for data transport encryption, normally addressed by: Require TLS for sensitive service connections with validated server identity and protected certificate/key management. It is not the primary failure mechanism described here. The relevant exposure is: A firewall provisioned without correct routing offers an illusion of inspection while traffic goes directly to the internet.
A financial team deploys payment changes automatically from developer commits even when an authorized change approval is mandatory.
Which statement correctly explains the implementation tradeoff?
A pipeline approval action pauses a release without discarding its tested artifacts and provides an auditable human authorization boundary. This explains the implementation decision: Insert a manual approval stage in the production promotion path, with reviewers separate from the code authors. Verification should show the following: An unapproved execution remains stopped; approved executions retain reviewer identity, timestamp and the exact artifact version.
A managed repository connection provides a controlled integration between source events and pipeline execution without embedding a personal access token in an instance. This reasoning supports the alternative topic of source connection permissions, for which the relevant intervention is: Use an authorized AWS CodeConnections repository connection and configured pipeline source triggers instead of a developer-maintained token. The scenario requires understanding release approval segregation, where a pipeline approval action pauses a release without discarding its tested artifacts and provides an auditable human authorization boundary.
CodePipeline cross-Region actions require regional artifact stores because pipeline outputs must be transferred to resources near the action. This reasoning supports the alternative topic of multi-region pipeline artifacts, for which the relevant intervention is: Configure a separate encrypted pipeline artifact bucket in each action Region and grant the required cross-Region access. The scenario requires understanding release approval segregation, where a pipeline approval action pauses a release without discarding its tested artifacts and provides an auditable human authorization boundary.
Cross-account role assumption supplies temporary credentials and separates the pipeline's orchestration identity from permissions inside each workload account. This reasoning supports the alternative topic of cross-account deployment roles, for which the relevant intervention is: Configure CodePipeline deployment actions to assume dedicated least-privilege roles in each target account with scoped trust policies. The scenario requires understanding release approval segregation, where a pipeline approval action pauses a release without discarding its tested artifacts and provides an auditable human authorization boundary.
Operations runs a local cron script on a single administrator laptop to shut down nonproduction EC2 workloads every night.
Which consequence is most specific to the observed weakness?
Laptop-hosted cron jobs silently stop running when their owner disconnects or changes machines. This outcome arises from the mechanism in the situation: Managed scheduling removes reliance on a user's workstation and invokes targets under scoped AWS permissions. The corresponding mitigation is: Use EventBridge Scheduler with an authorized target role and time-zone-aware schedule for the required shutdown automation.
An unvalidated global configuration push can disable checkout even though the application binary is unchanged. That is a credible concern for appconfig progressive rollout, normally addressed by: Deploy validated configuration through AWS AppConfig with a gradual deployment strategy and CloudWatch alarm rollback. It is not the primary failure mechanism described here. The relevant exposure is: Laptop-hosted cron jobs silently stop running when their owner disconnects or changes machines.
Wide SSH exposure and shared static keys increase credential compromise and obscure individual operator accountability. That is a credible concern for session manager access, normally addressed by: Use Systems Manager Session Manager with least-privilege IAM, managed nodes and audit logging instead of permanent inbound SSH access. It is not the primary failure mechanism described here. The relevant exposure is: Laptop-hosted cron jobs silently stop running when their owner disconnects or changes machines.
Uncoordinated patch execution during business peaks can restart critical servers and interrupt transactions. That is a credible concern for patch manager maintenance windows, normally addressed by: Use Systems Manager Patch Manager and Maintenance Windows with tagged targets, approved baselines and staged execution settings. It is not the primary failure mechanism described here. The relevant exposure is: Laptop-hosted cron jobs silently stop running when their owner disconnects or changes machines.
Encrypted application data is copied for disaster recovery to a separate AWS Region and account, but destination operators cannot decrypt it.
Which proposed implementation is best supported by the scenario?
Plan destination-region KMS key access and supported re-encryption or key replication patterns in the recovery workflow. KMS key locality and key policies govern decryption; transferring ciphertext alone does not guarantee usable recovery data. The relevant operational proof is specific: An authorized recovery-role test decrypts a replicated backup in the designated Region without broad access grants.
Aggregate and normalize findings through AWS Security Hub with delegated administration and clear response ownership. That would address security hub aggregated posture, because security Hub unifies supported security findings and standards checks, improving cross-account triage and control visibility. However, the stated situation instead concerns cross account encryption keys. KMS key locality and key policies govern decryption; transferring ciphertext alone does not guarantee usable recovery data.
Use an eligible AWS Certificate Manager managed certificate and validate DNS ownership and listener association. That would address acm certificate lifecycle, because aCM can automate supported public certificate renewals when domain validation and service integration remain valid. However, the stated situation instead concerns cross account encryption keys. KMS key locality and key policies govern decryption; transferring ciphertext alone does not guarantee usable recovery data.
Enable appropriate S3 Block Public Access settings at account or bucket scope and provide a separate approved public-content pattern. That would address s3 public access guardrail, because block Public Access controls override many accidental public policy or ACL settings, reducing exposure of private object stores. However, the stated situation instead concerns cross account encryption keys. KMS key locality and key policies govern decryption; transferring ciphertext alone does not guarantee usable recovery data.
Please check your mailbox for a message from support@examlabs.com and follow the directions.