Curated

Security and Compliance (4.1–4.2)

0 votes

Questions48

  1. Question 1

    Security and Compliance

    A company requires IAM users in one AWS account to use console passwords of at least 14 characters and prevent reuse of their previous 10 passwords. What should a CloudOps engineer configure?

    Show the answer

    Correct answerC. A custom IAM account password policy

    AWhy not this: Permission sets define account access for IAM Identity Center users, not password rules for IAM users.

    BWhy not this: Permissions boundaries limit identity permissions rather than configure password requirements.

    CWhy this is right: The account password policy supports minimum password length and a specified password reuse prevention count.

    DWhy not this: Service control policies set permission guardrails, not IAM user password length or password history.

    A custom IAM account password policy controls IAM user password length and password reuse. Service control policies limit available permissions; they do not define password composition or password history requirements.

    Open this question
  2. Question 2

    Security and Compliance

    An application on Amazon EC2 needs to read objects from one S3 bucket without storing long-term credentials. What should a CloudOps engineer configure?

    Show the answer

    Correct answerB. An EC2 instance profile containing a role with the required S3 permissions

    AWhy not this: IAM groups organize permissions for IAM users and cannot be associated with EC2 instances.

    BWhy this is right: The instance profile makes role-based temporary credentials available to the application on the instance.

    CWhy not this: Anonymous access exposes the objects instead of giving the application an authenticated identity.

    DWhy not this: An IAM user access key is a long-term credential and would require storage and rotation.

    An instance profile supplies an EC2 instance with an IAM role whose temporary credentials the application can use. An IAM user's access key is a long-term credential, even when its permissions are narrowly scoped.

    Open this question
  3. Question 3

    Security and Compliance

    A monitoring vendor assumes a role in a customer's AWS account and uses the same vendor account for many customers. Which trust policy condition best prevents another customer from tricking the vendor into assuming this role?

    Show the answer

    Correct answerA. Require sts:ExternalId to match a vendor-assigned customer identifier.

    AWhy this is right: A vendor-assigned, customer-specific external ID binds the role assumption to the intended customer's context.

    BWhy not this: SourceArn identifies a source resource in supported service requests, not the target role in a vendor's AssumeRole request.

    CWhy not this: An organization restriction identifies the principal's organization, not the vendor customer on whose behalf it acts.

    DWhy not this: A source account restriction does not distinguish customers sharing the vendor account; this key is intended for supported service-to-service requests.

    A customer-specific external ID lets the vendor distinguish customers when assuming roles, mitigating the confused deputy problem. Restricting the source account does not distinguish customers using the same vendor account.

    Open this question
  4. Question 4

    Security and Compliance

    Which IAM feature requires an additional authentication factor beyond a user's password during console sign-in?

    Show the answer

    Correct answerB. Multi-factor authentication

    AWhy not this: Access key rotation replaces programmatic credentials and does not add a console sign-in factor.

    BWhy this is right: Multi-factor authentication requires another factor, such as a security key or authenticator-generated code.

    CWhy not this: A permissions boundary limits authorization and does not change sign-in authentication.

    DWhy not this: Password expiration changes how long a password remains valid, not the number of authentication factors.

    Multi-factor authentication adds another authentication factor to password-based sign-in. Password expiration requires periodic password changes but does not add a separate factor.

    Open this question
  5. Question 5

    Security and Compliance

    An S3 policy restricts reads of objects tagged Restricted to an approved role, but uploaders can replace object tags and must retain that ability for nonclassification tags. How should the engineer prevent uploaders from bypassing classification-based access controls?

    Show the answer

    Correct answerB. Reserve classification-tag changes for a trusted role while permitting other tag updates.

    AWhy not this: Detective remediation can leave an access window between tag removal and restoration.

    BWhy this is right: Protecting classification-tag changes prevents unauthorized downgrades while preserving unrelated tagging operations.

    CWhy not this: Encryption at rest does not prevent an uploader from changing the classification tag used for access decisions.

    DWhy not this: Encryption in transit does not protect classification tags from authorized tagging operations.

    Classification-based authorization depends on protecting the integrity of the classification label. Reserving label changes for a trusted role prevents unauthorized downgrades; detecting and restoring removed labels leaves a window in which access controls can be bypassed.

    Open this question
  6. Question 6

    Security and Compliance

    Objects in an S3 bucket carry a Classification tag. Objects tagged Restricted must be readable only by an auditor role, while other principals in the account keep reading the bucket's other objects. Which control enforces this?

    Show the answer

    Correct answerC. A bucket policy that denies s3:GetObject on objects whose Classification tag is Restricted, except for the auditor role

    AWhy not this: Macie discovers and reports sensitive data; it does not restrict who can read objects.

    BWhy not this: Object Lock prevents objects from being deleted or overwritten, not from being read.

    CWhy this is right: A deny statement conditioned on s3:ExistingObjectTag/Classification enforces the classification for every principal except the exempted role.

    DWhy not this: Lifecycle rules change storage class or expire objects; they do not control read access.

    A bucket policy can deny s3:GetObject with a condition on s3:ExistingObjectTag/Classification and exempt the auditor role, so the classification tag itself controls who can read each object. Macie finds and reports sensitive data but does not block access.

    Open this question
  7. Question 7

    Security and Compliance

    A company classifies S3 objects containing proprietary customer reference numbers as Restricted. The numbers follow a documented pattern that built-in sensitive data types do not recognize; which approach should identify objects requiring this classification?

    Show the answer

    Correct answerD. Use Amazon Macie with a custom data identifier for the pattern.

    AWhy not this: Amazon Inspector identifies software vulnerabilities and unintended network exposure, not proprietary identifiers inside S3 objects.

    BWhy not this: AWS Config evaluates resource configuration compliance; it does not search S3 object contents for identifiers.

    CWhy not this: An encryption context supplies additional authenticated data for cryptographic operations; it does not discover sensitive content.

    DWhy this is right: A Macie custom data identifier can use a regular expression and supporting criteria to recognize proprietary sensitive data.

    Amazon Macie custom data identifiers can detect proprietary sensitive data patterns in S3 objects. AWS Config evaluates resource configurations rather than inspecting object contents for business-specific identifiers.

    Open this question
  8. Question 8

    Security and Compliance

    Departments assign inconsistent sensitivity labels to similar datasets. Which actions should a CloudOps engineer take to establish a consistent classification scheme? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersC. Define classification levels using business impact and regulatory requirements.F. Map each classification level to required access and handling controls.

    AWhy not this: Secret rotation status describes credential maintenance, not a general classification scheme.

    BWhy not this: Key rotation is an encryption control, not a measure of the sensitivity of the encrypted information.

    CWhy this is right: Business impact and regulatory obligations provide consistent criteria for assigning sensitivity levels.

    DWhy not this: Storage classes describe storage characteristics and cost, not business sensitivity.

    EWhy not this: ACM certificates support TLS identity and encryption; they do not establish data classifications.

    FWhy this is right: Handling requirements turn sensitivity labels into actionable protection rules.

    A consistent scheme defines sensitivity levels using business and regulatory criteria and specifies handling requirements for each level. Encryption settings and storage classes describe technical controls or storage behavior, not the sensitivity of the data.

    Open this question
  9. Question 9

    Security and Compliance

    Which AWS service manages encryption keys used to protect data at rest in services such as Amazon EBS?

    Show the answer

    Correct answerA. AWS Key Management Service

    AWhy this is right: AWS KMS manages the cryptographic keys that integrated services use for encryption at rest.

    BWhy not this: AWS Secrets Manager stores and rotates secrets such as database credentials.

    CWhy not this: AWS Certificate Manager manages certificates, not the KMS keys used for EBS encryption.

    DWhy not this: AWS Config records resource configurations and evaluates compliance rather than managing encryption keys.

    AWS Key Management Service manages cryptographic keys and integrates with services such as Amazon EBS for encryption at rest. AWS Certificate Manager manages certificates used primarily to secure network connections.

    Open this question
  10. Question 10

    Security and Compliance

    A company enables automatic rotation on a symmetric customer managed KMS key. An engineer must ensure that data encrypted before rotation remains readable; what action is required?

    Show the answer

    Correct answerD. No migration; KMS retains previous key material.

    AWhy not this: Automatic rotation preserves the KMS key's identity, including its ARN.

    BWhy not this: Automatic rotation does not require rewriting data encrypted with previous key material.

    CWhy not this: AWS KMS does not allow exporting the key material of a symmetric key generated within KMS.

    DWhy this is right: KMS retains previous key material and selects the appropriate material when decrypting older ciphertext.

    Automatic rotation retains previous key material so KMS can decrypt older ciphertext, and the key ARN remains unchanged. Re-encrypting stored data is not required merely because automatic rotation occurred.

    Open this question
  11. Question 11

    Security and Compliance

    An EBS snapshot is encrypted with the default AWS managed key, and an engineer must share it with another AWS account while preserving encryption. Which approach meets this requirement?

    Show the answer

    Correct answerB. Copy it under a customer managed key, then share the copy and key access.

    AWhy not this: The recipient's encryption defaults do not change the source snapshot's key or make it shareable.

    BWhy this is right: A copy encrypted under a customer managed key can be shared when the recipient also has the required key access.

    CWhy not this: A key alias does not replace the encryption key associated with an existing snapshot.

    DWhy not this: The default AWS managed EBS key cannot be shared across accounts, so the encrypted snapshot cannot be shared directly.

    A snapshot encrypted with the default AWS managed key cannot be shared. Copy it using a customer managed key, then share the copied snapshot and authorize the recipient to use that key; an alias does not change a snapshot's encryption key.

    Open this question
  12. Question 12

    Security and Compliance

    A role in another AWS account can retrieve an SSE-S3 object but cannot retrieve an SSE-KMS object from the same bucket. The customer managed key policy permits the role to decrypt, but the role has only S3 permissions; what should the engineer change?

    Show the answer

    Correct answerA. Grant kms:Decrypt in the role's IAM policy.

    AWhy this is right: The caller's IAM policy must allow kms:Decrypt in addition to the cross-account permission in the key policy.

    BWhy not this: kms:GenerateDataKey is used for encryption operations, not for decrypting the stored object's data key.

    CWhy not this: An S3 bucket policy cannot grant permissions to perform AWS KMS operations.

    DWhy not this: Retrieving the current object does not require s3:GetObjectVersion, and this does not authorize KMS decryption.

    Cross-account KMS access requires permission in both the key policy and the caller's IAM policy. The role needs kms:Decrypt to read the encrypted object; kms:GenerateDataKey supports encryption rather than decrypting an existing object.

    Open this question
  13. Question 13

    Security and Compliance

    An engineer changes an S3 bucket's default encryption from SSE-S3 to SSE-KMS. Existing objects must also use the specified KMS key; which action should the engineer take?

    Show the answer

    Correct answerC. Copy existing objects using S3 Batch Operations with SSE-KMS.

    AWhy not this: Key rotation changes key material for future encryption operations, not existing objects' encryption settings.

    BWhy not this: Requiring HTTPS protects data in transit, not the encryption of stored objects.

    CWhy this is right: A Batch Operations copy job can rewrite existing objects with the specified SSE-KMS encryption.

    DWhy not this: S3 Bucket Keys reduce KMS request costs but do not change encryption on existing objects.

    Copying objects with SSE-KMS encrypts the resulting copies with the specified key. Changing default encryption affects new writes, while S3 Bucket Keys reduce KMS request costs without re-encrypting existing objects.

    Open this question
  14. Question 14

    Security and Compliance

    A role's identity-policy simulation allows s3:GetObject and kms:Decrypt, but a cross-account download of an SSE-KMS object fails despite a bucket policy allowing the role. CloudTrail records a denied Decrypt request for the object's customer managed key. What should the engineer investigate first?

    Show the answer

    Correct answerD. The KMS key policy's cross-account permissions.

    AWhy not this: The recorded failure is KMS Decrypt, and the bucket policy already permits the role's object access.

    BWhy not this: The role has an active session making requests; session duration does not authorize KMS decryption.

    CWhy not this: The evidence identifies a KMS authorization denial, not an object restoration or retrieval issue.

    DWhy this is right: The key policy must authorize the external account or principal in addition to the caller's identity permissions.

    Cross-account KMS access requires permission in both the caller's identity policy and the KMS key policy. CloudTrail identifies Decrypt as the failing operation, so an identity-policy simulation allowing access does not establish that the key authorizes it; the bucket policy governs S3 access, not KMS authorization.

    Open this question
  15. Question 15

    Security and Compliance

    An engineer is reviewing a proposed identity-based policy before attaching it to an IAM user. Which tasks can the IAM policy simulator perform? (Choose three.)

    Choose 3 answers

    Show the answer

    Correct answersA. Identify policy statements that affect the simulated decision.D. Evaluate conditions using supplied request context values.E. Test selected actions against specified resource ARNs.

    AWhy this is right: Simulation results can identify policy statements that contribute to an allow or explicit deny.

    BWhy not this: IAM Access Analyzer external access analysis discovers public or cross-account access from supported resource policies.

    CWhy not this: CloudTrail records actual API requests; the simulator evaluates hypothetical requests.

    DWhy this is right: Supplied context values let the simulator evaluate applicable policy conditions.

    EWhy this is right: The simulator evaluates specified actions against selected resource ARNs without executing those actions.

    The IAM policy simulator evaluates actions, resources, and supplied context, and identifies statements affecting its decisions without making live requests. CloudTrail records actual API activity, while IAM Access Analyzer discovers supported resources with public or external access.

    Open this question
  16. Question 16

    Security and Compliance

    An engineer cannot find yesterday's denied S3 GetObject request in CloudTrail Event history, although management events are visible in the correct Region. What should the engineer do to capture future requests of this type?

    Show the answer

    Correct answerA. Enable S3 object-level data events on a trail.

    AWhy this is right: S3 object-level data event logging captures GetObject requests for the selected resources.

    BWhy not this: Global service events concern services such as IAM, not S3 object-level operations.

    CWhy not this: External access analysis evaluates resource policies rather than recording API requests.

    DWhy not this: AWS Config records resource configuration changes, not individual object access requests.

    GetObject is an S3 data event, which must be explicitly selected for logging. Event history shows management events; enabling global service events does not add object-level requests.

    Open this question
  17. Question 17

    Security and Compliance

    An application role has broad permissions, and an engineer wants a narrower starting policy based on its recorded API activity over the past month. Which approach should the engineer use?

    Show the answer

    Correct answerD. Generate a policy with IAM Access Analyzer using CloudTrail activity.

    AWhy not this: Credential reports describe IAM user credential status and do not generate policies from a role's activity.

    BWhy not this: Conformance packs evaluate compliance rules; they do not generate role policies from API activity.

    CWhy not this: Exposed-key checks address credential exposure, not policy generation from observed application activity.

    DWhy this is right: Policy generation uses recorded CloudTrail activity to create a starting policy for review and refinement.

    IAM Access Analyzer can generate a policy based on a role's CloudTrail activity during a selected period. The generated policy requires review and refinement; an IAM credential report describes IAM user credentials, not the permissions an application role needs.

    Open this question
  18. Question 18

    Security and Compliance

    Which AWS tool identifies S3 bucket policies that allow access from outside a configured zone of trust?

    Show the answer

    Correct answerC. IAM Access Analyzer external access analysis

    AWhy not this: Trusted Advisor provides security recommendations rather than configurable zone-of-trust policy analysis.

    BWhy not this: Conformance packs deploy Config rules and remediation actions, rather than performing this policy analysis.

    CWhy this is right: External access analyzers identify supported resource policies granting access outside their zone of trust.

    DWhy not this: Permission sets define workforce permissions to AWS accounts, not external access findings for bucket policies.

    IAM Access Analyzer external access analysis evaluates supported resource policies for access outside a configured zone of trust. Trusted Advisor provides security recommendations but does not provide this zone-of-trust policy analysis.

    Open this question
  19. Question 19

    Security and Compliance

    All SCPs applicable to a member account allow s3:ListAllMyBuckets, but a new IAM role has no permissions policies. Its request to list buckets is denied. What should a CloudOps engineer do?

    Show the answer

    Correct answerC. Grant s3:ListAllMyBuckets in the role's IAM policy.

    AWhy not this: A role trust policy controls who can assume the role, not which S3 actions the role can perform.

    BWhy not this: Another SCP allow does not grant permissions to the role.

    CWhy this is right: An identity-based policy grants the role the required action within the limits established by SCPs.

    DWhy not this: AWS Config evaluates resource compliance; its rules do not grant API permissions.

    SCPs define the maximum available permissions; they do not grant permissions. The role needs an IAM policy allowing the action, while its trust policy controls who can assume it.

    Open this question
  20. Question 20

    Security and Compliance

    A company uses IAM Identity Center with its corporate identity provider. A finance group needs the same read-only access to five AWS accounts. What should a CloudOps engineer configure?

    Show the answer

    Correct answerD. A read-only permission set assigned to the group for each account

    AWhy not this: SCPs set permission limits for accounts; they do not grant account access to an Identity Center group.

    BWhy not this: An Identity Center group is not an IAM principal that can receive account-wide access through resource policies.

    CWhy not this: An external identity provider authenticates users; attaching an IAM policy to it does not grant the group account permissions.

    DWhy this is right: Assigning a permission set to the group for each account provides consistent account access.

    IAM Identity Center permission sets define account permissions and can be assigned to groups across AWS accounts. SCPs limit available permissions but do not grant access to a group.

    Open this question
  21. Question 21

    Security and Compliance

    Which AWS Organizations structure groups accounts so that the same service control policies can apply to them?

    Show the answer

    Correct answerB. Organizational unit

    AWhy not this: An IAM user group contains IAM users within one account, not member accounts.

    BWhy this is right: An organizational unit groups accounts so that attached SCPs apply through inheritance.

    CWhy not this: A permission set defines permissions for account access; it does not group accounts in an organization.

    DWhy not this: A conformance pack bundles AWS Config rules and remediation actions, not AWS accounts.

    An organizational unit groups AWS accounts within an organization and supports inherited SCPs. An IAM user group groups IAM users within one account, not AWS accounts.

    Open this question
  22. Question 22

    Security and Compliance

    An organization attaches an SCP denying cloudtrail:StopLogging to its root. An IAM administrator in the management account can still stop a trail. What explains this behavior?

    Show the answer

    Correct answerD. SCPs do not restrict principals in the management account.

    AWhy not this: SCP restrictions apply to supported actions regardless of whether requests originate from the console or an API client.

    BWhy not this: IAM administrator permissions cannot override an explicit deny in an applicable SCP.

    CWhy not this: SCPs attached to the organization root are inherited by member accounts.

    DWhy this is right: The management account is outside the permissions restrictions imposed by SCPs.

    SCPs do not restrict users or roles in the organization's management account. AdministratorAccess cannot override an applicable SCP deny in a member account.

    Open this question
  23. Question 23

    Security and Compliance

    An SCP attached to a parent OU explicitly denies ec2:StopInstances. A child OU's SCP and an administrator's IAM policy allow that action in a member account. What must change to let the administrator stop instances?

    Show the answer

    Correct answerC. Remove the applicable deny from the parent OU's SCP.

    AWhy not this: Another child OU under the same parent still inherits the parent's explicit deny.

    BWhy not this: An account-level SCP allow cannot override an explicit deny inherited from a parent OU.

    CWhy this is right: Removing the inherited deny removes this restriction, provided the action is otherwise allowed throughout the hierarchy.

    DWhy not this: AdministratorAccess does not override restrictions imposed by an applicable SCP.

    An explicit deny in an inherited SCP overrides allows in child SCPs and IAM policies. Adding an account-level allow cannot override the parent OU's deny.

    Open this question
  24. Question 24

    Security and Compliance

    A service requires its EC2 application to terminate the original client TLS session and validate client certificates itself; TLS decryption at the load balancer is prohibited. Which configuration provides load balancing while meeting these requirements?

    Show the answer

    Correct answerA. A Network Load Balancer with a TCP listener and a TCP target group

    AWhy this is right: TCP forwarding preserves the original TLS session so the application can terminate it and validate client certificates.

    BWhy not this: HTTPS on both sides creates separate TLS connections; the ALB still decrypts client traffic.

    CWhy not this: ALB mutual TLS passthrough forwards certificate information in headers but still terminates the client's TLS session.

    DWhy not this: A TLS listener terminates client TLS, even when a separate TLS connection encrypts traffic to targets.

    A Network Load Balancer TCP listener passes the encrypted TLS stream to the application without terminating it. Application Load Balancer mutual TLS passthrough still terminates client TLS and forwards certificate information in HTTP headers.

    Open this question
  25. Question 25

    Security and Compliance

    An ACM public certificate in eu-west-1 secures an Application Load Balancer and covers the hostname planned for a CloudFront distribution. The certificate is unavailable when configuring the distribution's viewer HTTPS settings; what should the engineer do?

    Show the answer

    Correct answerC. Request the certificate in us-east-1 and select it for CloudFront.

    AWhy not this: This encrypts the origin connection but does not resolve the viewer certificate's Region requirement.

    BWhy not this: CloudFront requires us-east-1, not us-west-2, for ACM viewer certificates.

    CWhy this is right: CloudFront uses ACM certificates in us-east-1 for custom viewer HTTPS hostnames.

    DWhy not this: Target groups do not accept listener certificates, and origin configuration does not satisfy viewer certificate requirements.

    CloudFront requires ACM certificates for viewer HTTPS connections to be in us-east-1, regardless of the origin's Region. The origin protocol policy controls CloudFront-to-origin encryption and does not make a certificate available for viewer HTTPS.

    Open this question
  26. Question 26

    Security and Compliance

    An Application Load Balancer terminates HTTPS, but its target group forwards requests to EC2 instances over HTTP. How should an engineer encrypt the connection from the load balancer to the instances?

    Show the answer

    Correct answerC. Change the target group to HTTPS and configure TLS on the targets.

    AWhy not this: A listener redirect changes how clients connect but leaves the target group's forwarding protocol unchanged.

    BWhy not this: Listener certificates protect client-facing TLS connections, not HTTP connections to targets.

    CWhy this is right: HTTPS forwarding establishes a TLS connection from the load balancer to each TLS-enabled target.

    DWhy not this: EBS encryption protects stored volume data, not traffic between the load balancer and instances.

    An HTTPS target group with TLS-enabled targets encrypts the load balancer-to-instance connection. Redirecting client requests to HTTPS protects the client-facing connection, not the separate backend connection.

    Open this question
  27. Question 27

    Security and Compliance

    A public ACM certificate uses DNS validation and serves an Application Load Balancer. Which actions maintain its eligibility for automatic renewal and allow ACM to revalidate domain ownership? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersD. Keep the certificate associated with the load balancer.E. Keep the ACM validation CNAME publicly resolvable.

    AWhy not this: ACM DNS validation requires its supplied CNAME record, not a replacement TXT record.

    BWhy not this: KMS key rotation does not establish certificate renewal eligibility or validate domain ownership.

    CWhy not this: Imported certificates require externally managed renewal and do not preserve ACM managed renewal.

    DWhy this is right: Association with an integrated AWS service makes the ACM-issued certificate eligible for managed renewal.

    EWhy this is right: ACM uses the publicly resolvable validation CNAME to verify continued domain ownership during renewal.

    An ACM-issued certificate associated with an integrated service is eligible for managed renewal, and its DNS validation CNAME must remain publicly resolvable. Imported certificates do not receive ACM managed renewal.

    Open this question
  28. Question 28

    Security and Compliance

    Which Application Load Balancer setting controls the TLS protocol versions and cipher suites accepted from clients?

    Show the answer

    Correct answerA. The listener's security policy

    AWhy this is right: The listener security policy defines the TLS protocol versions and cipher suites available during negotiation.

    BWhy not this: A security group filters network traffic by protocol, port, and source, not TLS versions or cipher suites.

    CWhy not this: A health check evaluates target availability rather than client TLS negotiation.

    DWhy not this: A server certificate establishes identity and supplies a public key; it does not define the permitted TLS versions.

    The HTTPS listener's security policy defines supported TLS protocols and cipher suites. The server certificate establishes server identity but does not select the listener's permitted protocol versions.

    Open this question
  29. Question 29

    Security and Compliance

    An engineer accidentally schedules deletion of a Secrets Manager secret with a seven-day recovery window. The application immediately loses access; what should the engineer do to make the secret retrievable again?

    Show the answer

    Correct answerD. Restore the secret before the recovery window ends

    AWhy not this: A secret scheduled for deletion cannot be retrieved by requesting an older version.

    BWhy not this: The scheduled-deletion state, rather than the resource policy, prevents retrieval.

    CWhy not this: Rotation does not cancel scheduled deletion or restore access to the secret.

    DWhy this is right: Restoration cancels scheduled deletion while the secret remains within its recovery window.

    Restoring a secret cancels its scheduled deletion and makes it accessible again. Retrieving AWSPREVIOUS does not bypass the inaccessible state of a secret scheduled for deletion.

    Open this question
  30. Question 30

    Security and Compliance

    A Secrets Manager secret uses the AWS managed key aws/secretsmanager, and a role in another account must read it directly. The secret resource policy and role permissions already allow retrieval; which additional configuration enables access?

    Show the answer

    Correct answerA. Encrypt with a customer managed key that permits the role

    AWhy this is right: A customer managed key can authorize the external role to decrypt the secret.

    BWhy not this: Customers cannot edit the policy of an AWS managed key.

    CWhy not this: An AWS managed key cannot provide the required cross-account access to a secret in the owning account.

    DWhy not this: Rotating encryption key material does not grant cross-account access.

    Cross-account secret access requires a customer managed KMS key with suitable permissions. The aws/secretsmanager AWS managed key cannot support this access, and its key policy cannot be edited.

    Open this question
  31. Question 31

    Security and Compliance

    An EC2 application in a private subnet must retrieve Secrets Manager secrets without internet access or a NAT gateway. Which configuration provides private connectivity using the standard regional service hostname?

    Show the answer

    Correct answerC. A Secrets Manager interface endpoint with private DNS enabled

    AWhy not this: Replication does not provide a private network path to Secrets Manager.

    BWhy not this: A KMS endpoint provides access to KMS APIs, not the Secrets Manager retrieval API.

    CWhy this is right: The interface endpoint provides private connectivity, and private DNS resolves the standard hostname to it.

    DWhy not this: An S3 gateway endpoint routes S3 requests, not Secrets Manager requests.

    A Secrets Manager interface VPC endpoint provides private access through AWS PrivateLink, and private DNS supports the standard service hostname. A KMS endpoint serves KMS API requests, not Secrets Manager retrieval requests.

    Open this question
  32. Question 32

    Security and Compliance

    Which AWS Systems Manager Parameter Store parameter type encrypts a stored API token using AWS KMS?

    Show the answer

    Correct answerC. SecureString

    AWhy not this: Advanced specifies a parameter tier, not whether the parameter value is encrypted.

    BWhy not this: StringList stores comma-separated values without SecureString encryption.

    CWhy this is right: SecureString encrypts the parameter value using an AWS KMS key.

    DWhy not this: String stores a text value without SecureString encryption.

    SecureString parameters encrypt sensitive values using AWS KMS. Advanced is a parameter tier, not an encrypted parameter type.

    Open this question
  33. Question 33

    Security and Compliance

    An application stores its Amazon RDS database credentials in AWS Secrets Manager. The credentials must change automatically every 30 days without manual database updates; what should the engineer configure?

    Show the answer

    Correct answerD. Automatic rotation of the secret

    AWhy not this: Replication copies a secret to another Region; it does not change the database password.

    BWhy not this: KMS key rotation changes encryption key material rather than database credentials.

    CWhy not this: Replacing an IAM role does not change the database credentials stored in the secret.

    DWhy this is right: Secret rotation coordinates changing the database credentials and updating their stored value.

    Secrets Manager rotation updates the stored credentials and the corresponding database credentials. KMS key rotation changes encryption key material, not the database password.

    Open this question
  34. Question 34

    Security and Compliance

    Trusted Advisor flags unrestricted SSH access on an EC2 instance with two security groups: one allows all inbound traffic from the internet, and another allows SSH from a corporate CIDR. HTTPS must remain public, SSH must remain available only from the corporate CIDR, and other instances sharing these groups must remain unchanged. What should a CloudOps engineer do?

    Show the answer

    Correct answerD. Replace both associations with a dedicated group allowing public HTTPS and corporate-only SSH.

    AWhy not this: The unrestricted group still allows public SSH; a narrower rule in another group does not override that permission.

    BWhy not this: Changing a shared group changes traffic permissions for other associated instances, violating the stated constraint.

    CWhy not this: Instance-role policies control AWS API permissions, not inbound SSH connections.

    DWhy this is right: Replacing both associations removes the unrestricted access while preserving required traffic and leaving shared groups unchanged.

    A dedicated security group meets the access requirements without changing shared groups. Security group permissions are additive, so adding a restricted SSH rule cannot override an existing unrestricted allow.

    Open this question
  35. Question 35

    Security and Compliance

    Trusted Advisor flags an active IAM access key that exceeds the organization's rotation interval. An external application still uses the key and must remain available during remediation. Which actions should a CloudOps engineer take? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersA. Create a replacement key and update the application to use it.E. After validating the replacement, deactivate and then delete the old key.

    AWhy this is right: Deploying a replacement key lets the application transition before the existing credential is retired.

    BWhy not this: A permissions boundary limits permissions but does not change an access key's age or credentials.

    CWhy not this: Console passwords and access keys are separate credentials; changing the password does not rotate an access key.

    DWhy not this: Refreshing a check reevaluates its findings; it does not issue or rotate credentials.

    EWhy this is right: Retiring the old key after successful validation removes the aged credential without interrupting the transition.

    Rotate the key by deploying replacement credentials, validating application operation, and retiring the old key. Resetting a console password does not change access keys used for programmatic access.

    Open this question
  36. Question 36

    Security and Compliance

    Trusted Advisor reports that the AWS account root user has access keys. What is the recommended remediation?

    Show the answer

    Correct answerB. Delete the root access keys.

    AWhy not this: Secure storage does not remove the risk of retaining root user access keys.

    BWhy this is right: Deleting root access keys removes unnecessary programmatic credentials with unrestricted account privileges.

    CWhy not this: IAM permissions boundaries cannot be attached to the AWS account root user.

    DWhy not this: Rotation retains root programmatic credentials instead of eliminating the risk identified by the check.

    AWS recommends deleting root user access keys and using appropriately permissioned identities for routine work. Rotating root keys retains the unnecessary high-privilege credentials.

    Open this question
  37. Question 37

    Security and Compliance

    Trusted Advisor reports that CloudTrail logging is disabled in a Region. An engineer can still view recent management events in CloudTrail Event history. What should the engineer do to remediate the finding?

    Show the answer

    Correct answerA. Start logging on a trail configured to cover that Region.

    AWhy this is right: Starting a trail that covers the Region enables the logging missing from the finding.

    BWhy not this: Application log retention does not enable CloudTrail trail logging.

    CWhy not this: AWS Config records resource configurations; it does not enable CloudTrail logging.

    DWhy not this: An external access analyzer evaluates resource access policies rather than recording API activity in a trail.

    An actively logging trail covering the Region addresses the CloudTrail logging finding. Event history provides recent management events without a trail, so its availability does not establish that trail logging is enabled.

    Open this question
  38. Question 38

    Security and Compliance

    Trusted Advisor flags an unencrypted manual RDS DB snapshot as public. An approved partner AWS account must retain access to copy the snapshot, but no other external account should have access. Which change directly remediates the finding?

    Show the answer

    Correct answerD. Remove public restore access and explicitly share the snapshot with the partner account ID.

    AWhy not this: Changing a DB instance role does not revoke public permissions on the snapshot.

    BWhy not this: Removing public access helps, but a security group rule does not grant the partner permission to copy the snapshot.

    CWhy not this: Database security group rules do not restrict access to publicly shared snapshots.

    DWhy this is right: Explicit account sharing preserves the approved partner's access while removing public snapshot access.

    Remove public snapshot sharing and grant restore access only to the approved account ID. DB security groups govern database network connections, not access to copy a shared snapshot.

    Open this question
  39. Question 39

    Security and Compliance

    A policy requires all stored customer data, including disaster recovery copies, to remain in approved AWS Regions. A proposed design uses an approved primary Region. What else must be verified?

    Show the answer

    Correct answerC. Backup and replication destinations use approved Regions

    AWhy not this: Activity log retention does not establish the storage locations of disaster recovery copies.

    BWhy not this: External access analysis evaluates access relationships rather than the geographic location of stored data.

    CWhy this is right: Backup and replication destinations must satisfy the same location restriction as primary customer data.

    DWhy not this: Workforce access assignments do not establish where backup or replicated data is stored.

    Data residency includes backup and replicated copies, so their destination Regions must also be approved. External access findings concern who can access resources, not where data is stored.

    Open this question
  40. Question 40

    Security and Compliance

    Which AWS Config feature packages compliance rules and remediation actions into a single deployable template?

    Show the answer

    Correct answerA. Conformance pack

    AWhy this is right: A conformance pack deploys a collection of AWS Config rules and remediation actions together.

    BWhy not this: A service control policy limits available permissions; it does not package configuration checks and remediation.

    CWhy not this: A configuration aggregator collects configuration and compliance data from multiple accounts and Regions.

    DWhy not this: An organization trail records account activity across an AWS organization.

    A conformance pack bundles AWS Config rules and remediation actions into a deployable template. A configuration aggregator collects configuration and compliance data but does not package or deploy rules.

    Open this question
  41. Question 41

    Security and Compliance

    Which AWS capability shows how a security group's recorded configuration changed over time?

    Show the answer

    Correct answerA. AWS Config resource timeline

    AWhy this is right: The resource timeline displays recorded configurations and changes for the selected resource.

    BWhy not this: The policy simulator evaluates permissions rather than tracking resource configuration changes.

    CWhy not this: Trusted Advisor security checks identify recommended improvements, not a chronological configuration history.

    DWhy not this: Policy validation identifies policy errors and security warnings, not historical security group configurations.

    The AWS Config resource timeline displays recorded configuration changes for a resource. Trusted Advisor security checks provide recommendations rather than a resource's configuration history.

    Open this question
  42. Question 42

    Security and Compliance

    An AWS Config rule identifies unencrypted Amazon EBS volumes. An approved AWS Systems Manager Automation runbook corrects the condition, but engineers currently start it manually. How should they automate correction?

    Show the answer

    Correct answerD. Configure automatic remediation on the AWS Config rule

    AWhy not this: Policy validation checks IAM policies, not EBS encryption compliance or corrective runbook execution.

    BWhy not this: Preventing future volume creation does not remediate the existing volumes identified by the rule.

    CWhy not this: A trail records activity but does not invoke the approved runbook to correct noncompliant resources.

    DWhy this is right: Automatic remediation connects the rule's noncompliance findings to the approved Automation runbook.

    AWS Config automatic remediation can invoke a Systems Manager Automation runbook for noncompliant resources. An SCP can restrict future requests but does not correct existing noncompliant volumes.

    Open this question
  43. Question 43

    Security and Compliance

    An AWS Config aggregator includes two Regions, but only one has recording enabled and compliance rules deployed. What must an engineer do to evaluate resources in the other Region?

    Show the answer

    Correct answerA. Enable recording and deploy rules in the other Region

    AWhy this is right: Recording supplies resource configurations, and regional rules evaluate those configurations for compliance.

    BWhy not this: Rules deployed in the aggregator's Region do not evaluate resources in another Region.

    CWhy not this: Aggregation authorization permits data collection but does not enable recording or deploy compliance rules.

    DWhy not this: CloudTrail records API activity; it does not enable AWS Config recording or compliance evaluation.

    AWS Config recording and rule evaluation must be configured in each source Region. An aggregator collects existing data; deploying rules in its home Region does not evaluate resources in other Regions.

    Open this question
  44. Question 44

    Security and Compliance

    A security team needs centrally visible configuration-control findings from member accounts in two Regions using AWS Security Hub CSPM (formerly AWS Security Hub). Cross-Region aggregation is configured, but the linked Region has no findings because CSPM and AWS Config recording are disabled there; which action meets the requirement?

    Show the answer

    Correct answerC. Enable CSPM and the required AWS Config recording in each target account and Region.

    AWhy not this: Standards enabled only in the administrator account do not evaluate resources in other accounts and Regions.

    BWhy not this: An insight filters existing findings; it cannot generate findings from disabled regional services.

    CWhy this is right: Regional enablement and required recording allow configuration controls to evaluate resources and generate findings.

    DWhy not this: An AWS Config aggregator collects configuration and compliance data but does not enable CSPM evaluations.

    Cross-Region aggregation collects findings but does not enable regional services or generate missing evaluations. Enable CSPM, the relevant controls, and required AWS Config recording in the target accounts and Regions; an AWS Config aggregator alone does not produce CSPM findings.

    Open this question
  45. Question 45

    Security and Compliance

    Amazon Inspector reports a vulnerable operating system package on an EC2 instance, and a fixed version is available. Which actions should an engineer take to remediate and verify the finding? (Choose two.)

    Choose 2 answers

    Show the answer

    Correct answersB. Confirm that a subsequent Inspector scan closes the finding.D. Install the fixed package version on the instance.

    AWhy not this: Changing an encryption key does not correct a software package vulnerability.

    BWhy this is right: Closure after rescanning confirms that Inspector no longer detects the reported vulnerability.

    CWhy not this: Suppression hides matching findings without correcting the vulnerable package.

    DWhy this is right: Installing the fixed version addresses the package vulnerability identified by Inspector.

    Installing the fixed version removes the reported package vulnerability, and a subsequent Inspector scan verifies remediation by closing the finding. Suppression changes finding visibility but does not fix the vulnerable software.

    Open this question
  46. Question 46

    Security and Compliance

    Which AWS Config feature packages compliance rules and remediation actions into a single deployable collection?

    Show the answer

    Correct answerB. Conformance pack

    AWhy not this: A configuration aggregator consolidates configuration and compliance data across accounts and Regions.

    BWhy this is right: A conformance pack packages AWS Config rules and remediation actions into a deployable collection.

    CWhy not this: A configuration recorder captures configuration information for supported resources.

    DWhy not this: A delivery channel specifies destinations for configuration snapshots, history, and notifications.

    An AWS Config conformance pack groups rules and remediation actions for deployment and compliance monitoring. A configuration aggregator consolidates data from accounts and Regions but does not package rules and remediation actions.

    Open this question
  47. Question 47

    Security and Compliance

    Amazon GuardDuty findings of type CryptoCurrency:EC2/BitcoinTool.B!DNS must automatically isolate the affected instance by replacing its security groups with a quarantine group. Which configuration meets this requirement?

    Show the answer

    Correct answerC. An EventBridge rule that matches the finding type and starts a Systems Manager Automation runbook

    AWhy not this: Suppression rules archive matching findings as soon as they are generated; they do not change the affected resource.

    BWhy not this: Config rules evaluate resource configurations against rules and are not triggered by GuardDuty findings.

    CWhy this is right: EventBridge receives GuardDuty findings, and the rule's runbook target can apply the quarantine security group.

    DWhy not this: A trusted IP list stops GuardDuty from generating findings for listed addresses rather than isolating an instance.

    GuardDuty sends findings to EventBridge, where a rule can match the finding type and start a Systems Manager Automation runbook or Lambda function that swaps the instance's security groups. Suppression rules archive matching findings automatically; they take no action on the instance.

    Open this question
  48. Question 48

    Security and Compliance

    An AWS Config rule automatically starts remediation using a Systems Manager Automation runbook. Recently corrected resources sometimes undergo remediation because compliance snapshots are stale; how should the engineer prevent unnecessary changes?

    Show the answer

    Correct answerD. Check the current resource state within the runbook.

    AWhy not this: Periodic evaluation can still leave a gap between evaluation and remediation.

    BWhy not this: More retries do not establish whether the resource still requires remediation.

    CWhy not this: Higher concurrency changes execution throughput, not the freshness of compliance information.

    DWhy this is right: A current-state check lets the runbook skip changes when the resource is already compliant.

    AWS Config automatic remediation can act on stale compliance snapshots. The runbook should verify the current resource state before changing it; changing evaluation frequency does not eliminate the stale-state risk.

    Open this question