Amazon AWS Certified DevOps Engineer – Professional DOP-C02 Practice Test Questions and Exam Dumps Part 14 Q261-280

View Full Amazon AWS Certified DevOps Engineer – Professional DOP-C02 Exam Dumps and Practice Test Dumps

 

Question 261. Which IAM condition can restrict access based on request attributes?

  1. IAM policy condition
    2. ECR lifecycle rule
    3. CloudWatch dashboard
    4. ECS task definition

Correct Answer: 1. IAM policy condition

Explanation:

IAM policy conditions allow permissions to be granted only when specified conditions are satisfied. Conditions can evaluate attributes associated with a request, such as the requested resource, source IP address, MFA status, encryption requirements, or specific AWS service context. This provides more precise authorization than simply allowing or denying an action for a principal. For example, an organization could require MFA for sensitive actions or restrict access based on specific request characteristics. Conditions are an important part of least-privilege security because they can narrow when a permission is usable. They should be tested carefully because overly restrictive conditions can unintentionally prevent legitimate automation.

Question 262. What does an IAM role trust policy define?

  1. Which resources are encrypted
    2. Who can assume the role
    3. Which Docker images are retained
    4. How long CloudWatch logs remain

Correct Answer: 2. Who can assume the role

Explanation:

An IAM role trust policy defines which principals are trusted to assume the role. This is different from the permissions policy attached to the role, which defines what actions the role can perform after it has been assumed. In a CI/CD environment, a trust policy might allow a specific AWS service, IAM principal, or role from another AWS account to assume the role. Cross-account automation depends heavily on correctly configured trust relationships. The trust policy should be as restrictive as practical because allowing an unintended principal to assume a powerful role can create a significant security exposure. Separating trust from permissions helps administrators reason clearly about both identity access and role capabilities.

Question 263. Which AWS service provides temporary security credentials for role assumption?

  1. Amazon ECR
    2. AWS CloudFormation
    3. AWS Security Token Service
    4. Amazon CloudWatch

Correct Answer: 3. AWS Security Token Service

Explanation:

AWS Security Token Service, commonly called AWS STS, provides temporary security credentials that can be used to access AWS resources. These credentials are particularly useful for automation, cross-account access, and applications that should not rely on long-lived access keys. IAM roles can be assumed through STS, resulting in temporary credentials with defined permissions and session durations. Using temporary credentials generally reduces the risks associated with permanently stored credentials. In DevOps environments, services such as CodeBuild, deployment automation, and cross-account workflows can use IAM roles and STS to obtain the access required for specific operations. Permissions should still follow least-privilege principles.

Question 264. What does an AWS Organizations SCP control?

  1. Maximum permissions available to accounts in an organization
    2. Docker image size
    3. Lambda memory allocation
    4. CloudWatch metric resolution

Correct Answer: 1. Maximum permissions available to accounts in an organization

Explanation:

AWS Organizations Service Control Policies, or SCPs, establish permission guardrails for accounts within an AWS Organization. An SCP does not directly grant permissions to users or roles. Instead, it defines the maximum set of permissions that can be available to principals in affected accounts when combined with their identity- or resource-based policies. For example, an organization can use an SCP to prevent accounts from using particular AWS services or performing specific actions. This is useful for centralized governance and security enforcement. Careful testing is important because an SCP can affect many workloads at once. SCPs are particularly valuable in multi-account DevOps environments where consistent organizational controls are required.

Question 265. Which S3 feature can help prevent accidental deletion or overwriting of important artifacts?

  1. Bucket website hosting
    2. Object Lock
    3. Transfer Acceleration
    4. Static routing

Correct Answer: 2. Object Lock

Explanation:

Amazon S3 Object Lock can help protect objects from deletion or modification for a configured retention period. It is designed around a write-once-read-many model and can support retention requirements where important data must remain unchanged. For CI/CD and audit-related storage, Object Lock may be useful when organizations need stronger protection against accidental or unauthorized deletion of critical records. Object Lock should not be treated as a replacement for IAM permissions, encryption, versioning, or other security controls. Teams should also understand retention modes and governance requirements before enabling it because retained objects may not be removable in the same way as ordinary S3 objects.

Question 266. What does CloudTrail primarily record?

  1. AWS API activity and account events
    2. Docker build layers
    3. ECS CPU utilization
    4. CodeArtifact package contents

Correct Answer: 1. AWS API activity and account events

Explanation:

AWS CloudTrail records API activity and other supported events occurring within an AWS environment. These records can provide information about who performed an action, which API operation occurred, when it happened, and other request details. CloudTrail is therefore important for security auditing, troubleshooting, governance, and incident investigation. For example, if an infrastructure resource changes unexpectedly, CloudTrail records can help identify the API activity associated with the change. Organizations can configure trails for broader collection and centralized storage, including organization-level logging. CloudTrail should be combined with appropriate retention, access controls, and monitoring so that audit records remain protected and useful when investigations are required.

Question 267. Why use a CloudTrail organization trail?

  1. To build container images
    2. To collect activity across organization accounts
    3. To increase Lambda memory
    4. To manage ECS task definitions

Correct Answer: 2. To collect activity across organization accounts

Explanation:

A CloudTrail organization trail allows an organization to create a centralized trail configuration that applies across member accounts within AWS Organizations. This can simplify auditing because security and compliance teams do not need to configure equivalent trails manually in every account. Organization-level logging can provide broader visibility into API activity and account events, helping identify changes, investigate incidents, and support governance requirements. Centralized logging should be protected from modification or deletion by unauthorized users. Organizations should also consider the destination bucket, encryption, retention requirements, and access permissions when designing the audit architecture. Consistent CloudTrail configuration is especially valuable in environments using many AWS accounts for development, testing, and production.

Question 268. What does CloudWatch Application Signals monitor?

  1. Application performance and service health indicators
    2. S3 bucket ownership only
    3. ECR repository names
    4. IAM password expiration only

Correct Answer: 1. Application performance and service health indicators

Explanation:

CloudWatch Application Signals provides application-centric observability for supported applications and services. It focuses on important service-level indicators such as latency, availability, errors, and other performance characteristics so teams can understand whether applications are meeting expected operational behavior. This is different from monitoring only infrastructure metrics because an application may have healthy CPU and memory utilization while still returning errors or experiencing high latency. Application Signals can therefore help DevOps teams evaluate application health during and after deployments. When combined with deployment alarms and automated rollback mechanisms, application-level signals can provide useful evidence for determining whether a newly released version is behaving correctly.

Question 269. What does AWS X-Ray help trace?

  1. Distributed application requests
    2. S3 lifecycle rules
    3. IAM password policies
    4. ECR storage limits

Correct Answer: 1. Distributed application requests

Explanation:

AWS X-Ray helps trace requests as they move through distributed applications and services. It can provide visibility into the path of a request, helping developers and operations teams identify where latency, errors, or failures occur. This is particularly useful in architectures that involve multiple services, APIs, databases, queues, or other components where a single user request may cross several systems. X-Ray can help correlate activity and provide a service map that makes dependencies easier to understand. In a DevOps environment, tracing can also support deployment validation by showing whether a new application version introduces increased latency or errors in particular parts of the request path.

Question 270. What is a major benefit of OpenTelemetry in AWS observability?

  1. It replaces IAM authorization
    2. It provides standardized telemetry collection
    3. It manages ECR lifecycle policies
    4. It creates CloudFormation stacks

Correct Answer: 2. It provides standardized telemetry collection

Explanation:

OpenTelemetry provides a vendor-neutral framework for collecting and exporting observability data such as traces, metrics, and logs. This can help organizations avoid designing application instrumentation around a single monitoring backend. Applications can generate standardized telemetry that can then be sent to supported observability destinations. In AWS environments, OpenTelemetry can complement services such as CloudWatch and X-Ray while providing a consistent instrumentation approach across different applications and technologies. This is particularly valuable in distributed systems where teams may use multiple programming languages and frameworks. Standardized telemetry can improve observability consistency and make it easier to analyze application behavior across service boundaries.

Question 271. What does AWS AppConfig help separate from application code?

  1. Runtime configuration
    2. IAM root credentials
    3. EC2 hardware
    4. CloudTrail history

Correct Answer: 1. Runtime configuration

Explanation:

AWS AppConfig allows application configuration to be managed separately from application code. This can include settings such as feature flags, operational parameters, thresholds, or other values that may need to change without rebuilding and redeploying the application itself. Separating configuration from code can make operational changes faster while still allowing controlled deployment strategies, validation, monitoring, and rollback. AppConfig can gradually release configuration changes and integrate with alarms to detect problems during deployment. This is useful for reducing the risk associated with configuration changes because teams can treat configuration updates as controlled releases rather than making unmanaged changes directly inside application binaries or source code.

Question 272. Which AppConfig feature can automatically stop a problematic configuration rollout?

  1. Deployment alarms
    2. ECR lifecycle rules
    3. IAM permission boundaries
    4. S3 replication

Correct Answer: 1. Deployment alarms

Explanation:

AWS AppConfig deployment alarms can monitor CloudWatch alarm states during a configuration deployment. If configured alarms enter a failure state according to the deployment configuration, AppConfig can stop or roll back the deployment rather than continuing to expose the problematic configuration to additional clients. This provides an automated safety mechanism for configuration changes. For example, an alarm could monitor application error rates, latency, or another relevant operational metric. The effectiveness of this approach depends on selecting meaningful metrics and setting appropriate alarm thresholds. Deployment alarms should complement configuration validation and gradual rollout strategies so that both configuration correctness and runtime behavior are evaluated.

Question 273. What does Systems Manager State Manager automate?

  1. Maintaining desired instance configuration
    2. Creating ECR images
    3. Managing DNS records
    4. Building CodePipeline artifacts

Correct Answer: 1. Maintaining desired instance configuration

Explanation:

AWS Systems Manager State Manager helps automate the process of keeping managed instances in a desired configuration state. Administrators can define associations that specify actions or configurations to be applied to targeted instances according to a schedule or defined conditions. This can support tasks such as ensuring software settings, configuration files, or management agents remain in the required state. State Manager is useful when organizations need consistent configuration across fleets rather than relying on manual administration. It can also help detect and correct configuration changes that would otherwise create drift. Proper targeting and IAM permissions are important so that associations affect only the intended instances and environments.

Question 274. What does Systems Manager Automation execute?

  1. Automated operational runbooks
    2. SQL database queries only
    3. ECR image scans only
    4. DNS health checks

Correct Answer: 1. Automated operational runbooks

Explanation:

AWS Systems Manager Automation executes predefined or custom runbooks that automate operational tasks across AWS resources. A runbook can contain multiple steps that perform actions such as modifying resources, running commands, invoking AWS APIs, or validating conditions. Automation is useful for repetitive operational procedures because it turns manual processes into controlled and auditable workflows. It can also be triggered by events, schedules, or other automation systems. In a DevOps environment, Systems Manager Automation can support remediation, deployment preparation, incident response, and infrastructure maintenance. Parameters and permissions should be carefully configured so that the automation has sufficient access to perform its tasks without receiving unnecessary administrative privileges.

Question 275. Which Systems Manager feature runs commands on managed instances?

  1. Session Manager
    2. Run Command
    3. State Manager only
    4. Parameter Store

Correct Answer: 2. Run Command

Explanation:

Systems Manager Run Command allows administrators and automation workflows to execute commands on managed instances without requiring direct interactive access through traditional remote login mechanisms. Commands can be sent to one or many targeted instances according to tags, instance identifiers, or other supported targeting mechanisms. This makes Run Command useful for operational maintenance, configuration changes, software installation, troubleshooting, and automated remediation. Execution results can be monitored through Systems Manager and related AWS services. Because Run Command can affect many systems simultaneously, targeting and IAM permissions should be carefully controlled. It is particularly valuable in automated DevOps workflows where repeatable fleet operations are required.

Question 276. What is Systems Manager Session Manager primarily used for?

  1. Interactive shell access to managed instances
    2. Container image replication
    3. CloudFormation template transformation
    4. S3 lifecycle management

Correct Answer: 1. Interactive shell access to managed instances

Explanation:

Systems Manager Session Manager provides interactive access to managed instances without requiring users to expose inbound SSH or RDP ports to the network. Authorized users can establish sessions through Systems Manager, while access is controlled using IAM permissions. This can reduce the need for bastion hosts and externally accessible management ports. Session activity can also be integrated with logging and auditing mechanisms depending on the configuration. Session Manager is therefore useful for secure operational troubleshooting and administration. It should still be governed through least-privilege permissions, appropriate instance roles, and logging controls so that interactive access remains accountable and restricted to authorized personnel.

Question 277. What can Systems Manager Maintenance Windows schedule?

  1. Recurring operational tasks
    2. IAM root account creation
    3. ECR repository encryption
    4. CloudFormation syntax validation

Correct Answer: 1. Recurring operational tasks

Explanation:

Systems Manager Maintenance Windows allow organizations to schedule operational tasks during defined time periods. These tasks can include patching, running commands, executing Automation runbooks, or performing other supported maintenance activities against targeted resources. Maintenance windows help organizations coordinate disruptive or resource-intensive operations with planned schedules instead of running them unpredictably during business-critical periods. Targets and task permissions should be configured carefully to ensure that maintenance operations affect only the intended resources. They can be particularly useful for large fleets where manual scheduling would be difficult. Combined with Patch Manager and Automation, Maintenance Windows can form an important part of a repeatable infrastructure maintenance process.

Question 278. Which Systems Manager feature provides software and inventory information?

  1. Inventory
    2. EventBridge
    3. CloudTrail
    4. AppConfig

Correct Answer: 1. Inventory

Explanation:

Systems Manager Inventory collects information about managed instances and their installed software, applications, files, network configuration, and other supported inventory data. This information helps operations and security teams understand what is deployed across an instance fleet. Inventory can support compliance reviews, troubleshooting, software management, and vulnerability-management processes by providing centralized visibility into installed components. It is especially useful in environments where administrators need to answer questions about software versions or instance configurations across many systems. Inventory does not itself replace vulnerability scanning or patch management, but it provides valuable data that can support those activities and improve overall infrastructure visibility.

Question 279. Which deployment strategy sends a new version to a small percentage first?

  1. All-at-once
    2. Canary
    3. Immediate replacement
    4. Static deployment

Correct Answer: 2. Canary

Explanation:

A canary deployment introduces a new application version to a small percentage of users, traffic, or infrastructure before expanding the rollout. This creates an opportunity to observe the new version under real operating conditions while limiting the number of users exposed if a problem occurs. Metrics such as error rates, latency, health checks, and application-specific indicators can be monitored during the canary phase. If the results meet defined expectations, additional traffic can be shifted to the new version. If problems are detected, the rollout can be stopped or rolled back. Canary strategies are therefore useful for reducing deployment risk while preserving an automated and measurable release process.

Question 280. What is the primary purpose of a blue/green deployment?

  1. Maintain separate old and new environments for controlled traffic switching
    2. Remove all monitoring
    3. Disable automated testing
    4. Store package dependencies

Correct Answer: 1. Maintain separate old and new environments for controlled traffic switching

Explanation:

A blue/green deployment maintains two application environments: the currently active environment and a separate environment containing the new version. The new environment can be tested and validated before production traffic is shifted to it. Traffic switching can be performed all at once or through a controlled strategy depending on the deployment architecture. If the new environment causes problems, traffic can potentially be returned to the previous environment, providing a straightforward rollback path. Blue/green deployments are especially useful when teams need strong separation between the old and new versions. They require sufficient infrastructure capacity and careful management of stateful resources, databases, configuration, and traffic routing.